don't print 2 empty commands after building the program under non-Mac
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62 # Configure paths for GTK+
63 # Owen Taylor     1997-2001
64
65
66
67 # Configure paths for GTK+
68 # Owen Taylor     97-11-3
69
70
71
72
73
74
75
76
77 # Guess values for system-dependent variables and create Makefiles.
78 # Generated automatically using autoconf version 2.13 
79 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
80 #
81 # This configure script is free software; the Free Software Foundation
82 # gives unlimited permission to copy, distribute and modify it.
83
84 # Defaults:
85 ac_help=
86 ac_default_prefix=/usr/local
87 # Any additions from configure.in:
88 ac_help="$ac_help
89   --enable-gui            use GUI classes"
90 ac_help="$ac_help
91   --enable-universal      use wxWindows GUI controls instead of native ones"
92 ac_help="$ac_help
93   --with-gtk              use GTK+"
94 ac_help="$ac_help
95   --with-motif            use Motif/Lesstif"
96 ac_help="$ac_help
97   --with-mac              use Mac OS X"
98 ac_help="$ac_help
99   --with-wine             use Wine"
100 ac_help="$ac_help
101   --with-msw              use MS-Windows"
102 ac_help="$ac_help
103   --with-pm               use OS/2 Presentation Manager"
104 ac_help="$ac_help
105   --with-mgl              use SciTech MGL"
106 ac_help="$ac_help
107   --with-microwin         use MicroWindows"
108 ac_help="$ac_help
109   --with-x11              use X11"
110 ac_help="$ac_help
111   --enable-nanox          use NanoX"
112 ac_help="$ac_help
113   --enable-gtk2           use GTK+ 2.0 if available (EXPERIMENTAL)"
114 ac_help="$ac_help
115   --with-libpng           use libpng (PNG image format)"
116 ac_help="$ac_help
117   --with-libjpeg          use libjpeg (JPEG file format)"
118 ac_help="$ac_help
119   --with-libtiff          use libtiff (TIFF file format)"
120 ac_help="$ac_help
121   --with-opengl           use OpenGL (or Mesa)"
122 ac_help="$ac_help
123   --with-dmalloc          use dmalloc library (http://dmalloc.com/)"
124 ac_help="$ac_help
125   --with-regex            enable support for wxRegEx class"
126 ac_help="$ac_help
127   --with-zlib             use zlib for LZW compression"
128 ac_help="$ac_help
129   --with-odbc             use the IODBC and wxODBC classes"
130 ac_help="$ac_help
131   --enable-shared         create shared library code"
132 ac_help="$ac_help
133   --enable-soname         set the DT_SONAME field in ELF shared libraries"
134 ac_help="$ac_help
135   --enable-optimise       create optimised code"
136 ac_help="$ac_help
137   --enable-debug          same as debug_flag and debug_info"
138 ac_help="$ac_help
139   --enable-precomp        enable use of precompiled headers (Mac OS X/Darwin)"
140 ac_help="$ac_help
141   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)"
142 ac_help="$ac_help
143   --enable-debug_info     create code with debugging information"
144 ac_help="$ac_help
145   --enable-debug_gdb      create code with extra GDB debugging information"
146 ac_help="$ac_help
147   --enable-debug_cntxt    use wxDebugContext"
148 ac_help="$ac_help
149   --enable-mem_tracing    create code with memory tracing"
150 ac_help="$ac_help
151   --enable-profile        create code with profiling information"
152 ac_help="$ac_help
153   --enable-no_rtti        create code without RTTI information"
154 ac_help="$ac_help
155   --enable-no_exceptions  create code without C++ exceptions handling"
156 ac_help="$ac_help
157   --enable-permissive     compile code disregarding strict ANSI"
158 ac_help="$ac_help
159   --enable-no_deps        create code without dependency information"
160 ac_help="$ac_help
161   --enable-compat20       enable wxWindows 2.0 compatibility"
162 ac_help="$ac_help
163   --enable-compat22       enable wxWindows 2.2 compatibility"
164 ac_help="$ac_help
165   --disable-compat24      disable wxWindows 2.4 compatibility"
166 ac_help="$ac_help
167   --enable-rpath=DIR      output the rpath flag from wx-config"
168 ac_help="$ac_help
169   --enable-intl           use internationalization system"
170 ac_help="$ac_help
171   --enable-config         use wxConfig (and derived) classes"
172 ac_help="$ac_help
173   --enable-protocols      use wxProtocol and derived classes"
174 ac_help="$ac_help
175   --enable-ftp            use wxFTP (requires wxProtocol"
176 ac_help="$ac_help
177   --enable-http           use wxHTTP (requires wxProtocol"
178 ac_help="$ac_help
179   --enable-fileproto      use wxFileProto class (requires wxProtocol"
180 ac_help="$ac_help
181   --enable-sockets        use socket/network classes"
182 ac_help="$ac_help
183   --enable-ole            use OLE classes"
184 ac_help="$ac_help
185   --enable-dataobj        use data object classes"
186 ac_help="$ac_help
187   --enable-ipc            use interprocess communication (wxSocket etc.)"
188 ac_help="$ac_help
189   --enable-cmdline        use wxCmdLineParser class"
190 ac_help="$ac_help
191   --enable-datetime       use wxDateTime class"
192 ac_help="$ac_help
193   --enable-timedate       use obsolete wxDate/wxTime classes"
194 ac_help="$ac_help
195   --enable-stopwatch      use wxStopWatch class"
196 ac_help="$ac_help
197   --enable-dialupman      use dialup network classes"
198 ac_help="$ac_help
199   --enable-apple_ieee     use the Apple IEEE codec"
200 ac_help="$ac_help
201   --enable-timer          use wxTimer class"
202 ac_help="$ac_help
203   --enable-wave           use wxWave class"
204 ac_help="$ac_help
205   --enable-fraction       use wxFraction class"
206 ac_help="$ac_help
207   --enable-dynlib         use wxLibrary class for DLL loading"
208 ac_help="$ac_help
209   --enable-dynamicloader  use (new) wxDynamicLibrary class"
210 ac_help="$ac_help
211   --enable-longlong       use wxLongLong class"
212 ac_help="$ac_help
213   --enable-geometry       use geometry class"
214 ac_help="$ac_help
215   --enable-log            use logging system"
216 ac_help="$ac_help
217   --enable-streams        use wxStream etc classes"
218 ac_help="$ac_help
219   --enable-file           use wxFile classes"
220 ac_help="$ac_help
221   --enable-ffile          use wxFFile classes"
222 ac_help="$ac_help
223   --enable-textbuf        use wxTextBuffer class"
224 ac_help="$ac_help
225   --enable-textfile       use wxTextFile class"
226 ac_help="$ac_help
227   --enable-fontmap        use font encodings conversion classes"
228 ac_help="$ac_help
229   --enable-unicode        compile wxString with Unicode support"
230 ac_help="$ac_help
231   --enable-mslu           use MS Layer for Unicode on Windows 9x (win32 only)"
232 ac_help="$ac_help
233   --enable-wxprintfv      use wxWindows implementation of vprintf()"
234 ac_help="$ac_help
235   --enable-std_iostreams  use standard C++ stream classes"
236 ac_help="$ac_help
237   --enable-filesystem     use virtual file systems classes"
238 ac_help="$ac_help
239   --enable-fs_inet        use virtual HTTP/FTP filesystems"
240 ac_help="$ac_help
241   --enable-fs_zip         use virtual ZIP filesystems"
242 ac_help="$ac_help
243   --enable-zipstream      use wxZipInputStream"
244 ac_help="$ac_help
245   --enable-catch_segvs    catch signals and pass them to wxApp::OnFatalException"
246 ac_help="$ac_help
247   --enable-snglinst       use wxSingleInstanceChecker class"
248 ac_help="$ac_help
249   --enable-mimetype       use wxMimeTypesManager"
250 ac_help="$ac_help
251   --enable-sysoptions     use wxSystemOptions"
252 ac_help="$ac_help
253   --enable-url            use wxURL class"
254 ac_help="$ac_help
255   --enable-protocol       use wxProtocol class"
256 ac_help="$ac_help
257   --enable-protocol-http  HTTP support in wxProtocol"
258 ac_help="$ac_help
259   --enable-protocol-ftp   FTP support in wxProtocol"
260 ac_help="$ac_help
261   --enable-protocol-file  FILE support in wxProtocol"
262 ac_help="$ac_help
263   --enable-threads        use threads"
264 ac_help="$ac_help
265   --enable-docview        use document view architecture"
266 ac_help="$ac_help
267   --enable-help           use help subsystem"
268 ac_help="$ac_help
269   --enable-mshtmlhelp     use MS HTML Help (win32)"
270 ac_help="$ac_help
271   --enable-html           use wxHTML sub-library"
272 ac_help="$ac_help
273   --enable-htmlhelp       use wxHTML-based help"
274 ac_help="$ac_help
275   --enable-constraints    use layout-constraints system"
276 ac_help="$ac_help
277   --enable-printarch      use printing architecture"
278 ac_help="$ac_help
279   --enable-mdi            use multiple document interface architecture"
280 ac_help="$ac_help
281   --enable-loggui         use standard GUI logger"
282 ac_help="$ac_help
283   --enable-logwin         use wxLogWindow"
284 ac_help="$ac_help
285   --enable-logdialog      use wxLogDialog"
286 ac_help="$ac_help
287   --enable-postscript     use wxPostscriptDC device context (default for gtk+)"
288 ac_help="$ac_help
289   --enable-prologio       use Prolog IO library"
290 ac_help="$ac_help
291   --enable-resources      use wxWindows resources"
292 ac_help="$ac_help
293   --enable-xresources     use X resources for save (default for gtk+)"
294 ac_help="$ac_help
295   --enable-clipboard      use wxClipboard classes"
296 ac_help="$ac_help
297   --enable-dnd            use Drag'n'Drop classes"
298 ac_help="$ac_help
299   --enable-metafile       use win32 metafiles"
300 ac_help="$ac_help
301   --enable-treelayout     use wxTreeLayout classes"
302 ac_help="$ac_help
303   --enable-controls       use all usual controls"
304 ac_help="$ac_help
305   --enable-accel          use accelerators"
306 ac_help="$ac_help
307   --enable-button         use wxButton class"
308 ac_help="$ac_help
309   --enable-bmpbutton      use wxBitmapButton class"
310 ac_help="$ac_help
311   --enable-calendar       use wxCalendarCtrl class"
312 ac_help="$ac_help
313   --enable-caret          use wxCaret class"
314 ac_help="$ac_help
315   --enable-checkbox       use wxCheckBox class"
316 ac_help="$ac_help
317   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class"
318 ac_help="$ac_help
319   --enable-choice         use wxChoice class"
320 ac_help="$ac_help
321   --enable-combobox       use wxComboBox classes"
322 ac_help="$ac_help
323   --enable-gauge          use wxGauge class"
324 ac_help="$ac_help
325   --enable-grid           use wxGrid class"
326 ac_help="$ac_help
327   --enable-newgrid        use new wxGrid class"
328 ac_help="$ac_help
329   --enable-imaglist       use wxImageList class"
330 ac_help="$ac_help
331   --enable-listbox        use wxListBox class"
332 ac_help="$ac_help
333   --enable-listctrl       use wxListCtrl class"
334 ac_help="$ac_help
335   --enable-notebook       use wxNotebook class"
336 ac_help="$ac_help
337   --enable-propsheet      use wxPropertySheet class"
338 ac_help="$ac_help
339   --enable-radiobox       use wxRadioBox class"
340 ac_help="$ac_help
341   --enable-radiobtn       use wxRadioButton class"
342 ac_help="$ac_help
343   --enable-sash           use wxSashWindow class"
344 ac_help="$ac_help
345   --enable-scrollbar      use wxScrollBar class and scrollable windows"
346 ac_help="$ac_help
347   --enable-slider         use wxSlider class"
348 ac_help="$ac_help
349   --enable-spinbtn        use wxSpinButton class"
350 ac_help="$ac_help
351   --enable-spinctrl       use wxSpinCtrl class"
352 ac_help="$ac_help
353   --enable-splitter       use wxSplitterWindow class"
354 ac_help="$ac_help
355   --enable-statbmp        use wxStaticBitmap class"
356 ac_help="$ac_help
357   --enable-statbox        use wxStaticBox class"
358 ac_help="$ac_help
359   --enable-statline       use wxStaticLine class"
360 ac_help="$ac_help
361   --enable-stattext       use wxStaticText class"
362 ac_help="$ac_help
363   --enable-statusbar      use wxStatusBar class"
364 ac_help="$ac_help
365   --enable-tabdialog      use wxTabControl class"
366 ac_help="$ac_help
367   --enable-textctrl       use wxTextCtrl class"
368 ac_help="$ac_help
369   --enable-togglebtn      use wxToggleButton class"
370 ac_help="$ac_help
371   --enable-toolbar        use wxToolBar class"
372 ac_help="$ac_help
373   --enable-tbarnative     use native wxToolBar class"
374 ac_help="$ac_help
375   --enable-tbarsmpl       use wxToolBarSimple class"
376 ac_help="$ac_help
377   --enable-treectrl       use wxTreeCtrl class"
378 ac_help="$ac_help
379   --enable-tipwindow      use wxTipWindow class"
380 ac_help="$ac_help
381   --enable-popupwin       use wxPopUpWindow class"
382 ac_help="$ac_help
383   --enable-commondlg      use all common dialogs"
384 ac_help="$ac_help
385   --enable-choicedlg      use wxChoiceDialog"
386 ac_help="$ac_help
387   --enable-coldlg         use wxColourDialog"
388 ac_help="$ac_help
389   --enable-filedlg        use wxFileDialog"
390 ac_help="$ac_help
391   --enable-finddlg        use wxFindReplaceDialog"
392 ac_help="$ac_help
393   --enable-fontdlg        use wxFontDialog"
394 ac_help="$ac_help
395   --enable-dirdlg         use wxDirDialog"
396 ac_help="$ac_help
397   --enable-msgdlg         use wxMessageDialog"
398 ac_help="$ac_help
399   --enable-numberdlg      use wxNumberEntryDialog"
400 ac_help="$ac_help
401   --enable-splash         use wxSplashScreen"
402 ac_help="$ac_help
403   --enable-textdlg        use wxTextDialog"
404 ac_help="$ac_help
405   --enable-tipdlg         use startup tips"
406 ac_help="$ac_help
407   --enable-progressdlg    use wxProgressDialog"
408 ac_help="$ac_help
409   --enable-wizarddlg      use wxWizard"
410 ac_help="$ac_help
411   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes"
412 ac_help="$ac_help
413   --enable-miniframe      use wxMiniFrame class"
414 ac_help="$ac_help
415   --enable-tooltips       use wxToolTip class"
416 ac_help="$ac_help
417   --enable-splines        use spline drawing code"
418 ac_help="$ac_help
419   --enable-validators     use wxValidator and derived classes"
420 ac_help="$ac_help
421   --enable-busyinfo       use wxBusyInfo"
422 ac_help="$ac_help
423   --enable-joystick       use wxJoystick (Linux only)"
424 ac_help="$ac_help
425   --enable-metafiles      use wxMetaFile (Windows only)"
426 ac_help="$ac_help
427   --enable-dragimage      use wxDragImage"
428 ac_help="$ac_help
429   --enable-palette        use wxPalette class"
430 ac_help="$ac_help
431   --enable-image          use wxImage class"
432 ac_help="$ac_help
433   --enable-gif            use gif images (GIF file format)"
434 ac_help="$ac_help
435   --enable-pcx            use pcx images (PCX file format)"
436 ac_help="$ac_help
437   --enable-iff            use iff images (IFF file format)"
438 ac_help="$ac_help
439   --enable-pnm            use pnm images (PNM file format)"
440 ac_help="$ac_help
441   --enable-xpm            use xpm images (XPM file format)"
442 ac_help="$ac_help
443   --enable-icocur         use Windows ICO and CUR formats"
444 ac_help="$ac_help
445   --disable-largefile     omit support for large files"
446 ac_help="$ac_help
447   --disable-gtktest       do not try to compile and run a test GTK+ program"
448 ac_help="$ac_help
449   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
450 ac_help="$ac_help
451   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
452 ac_help="$ac_help
453   --disable-gtktest       Do not try to compile and run a test GTK program"
454 ac_help="$ac_help
455   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
456 ac_help="$ac_help
457   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
458 ac_help="$ac_help
459   --disable-gtktest       Do not try to compile and run a test GTK program"
460 ac_help="$ac_help
461   --with-x                use the X Window System"
462 ac_help="$ac_help
463   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib"
464
465 # Initialize some variables set by options.
466 # The variables have the same names as the options, with
467 # dashes changed to underlines.
468 build=NONE
469 cache_file=./config.cache
470 exec_prefix=NONE
471 host=NONE
472 no_create=
473 nonopt=NONE
474 no_recursion=
475 prefix=NONE
476 program_prefix=NONE
477 program_suffix=NONE
478 program_transform_name=s,x,x,
479 silent=
480 site=
481 srcdir=
482 target=NONE
483 verbose=
484 x_includes=NONE
485 x_libraries=NONE
486 bindir='${exec_prefix}/bin'
487 sbindir='${exec_prefix}/sbin'
488 libexecdir='${exec_prefix}/libexec'
489 datadir='${prefix}/share'
490 sysconfdir='${prefix}/etc'
491 sharedstatedir='${prefix}/com'
492 localstatedir='${prefix}/var'
493 libdir='${exec_prefix}/lib'
494 includedir='${prefix}/include'
495 oldincludedir='/usr/include'
496 infodir='${prefix}/info'
497 mandir='${prefix}/man'
498
499 # Initialize some other variables.
500 subdirs=
501 MFLAGS= MAKEFLAGS=
502 SHELL=${CONFIG_SHELL-/bin/sh}
503 # Maximum number of lines to put in a shell here document.
504 ac_max_here_lines=12
505
506 ac_prev=
507 for ac_option
508 do
509
510   # If the previous option needs an argument, assign it.
511   if test -n "$ac_prev"; then
512     eval "$ac_prev=\$ac_option"
513     ac_prev=
514     continue
515   fi
516
517   case "$ac_option" in
518   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
519   *) ac_optarg= ;;
520   esac
521
522   # Accept the important Cygnus configure options, so we can diagnose typos.
523
524   case "$ac_option" in
525
526   -bindir | --bindir | --bindi | --bind | --bin | --bi)
527     ac_prev=bindir ;;
528   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529     bindir="$ac_optarg" ;;
530
531   -build | --build | --buil | --bui | --bu)
532     ac_prev=build ;;
533   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534     build="$ac_optarg" ;;
535
536   -cache-file | --cache-file | --cache-fil | --cache-fi \
537   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538     ac_prev=cache_file ;;
539   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541     cache_file="$ac_optarg" ;;
542
543   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544     ac_prev=datadir ;;
545   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546   | --da=*)
547     datadir="$ac_optarg" ;;
548
549   -disable-* | --disable-*)
550     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
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     eval "enable_${ac_feature}=no" ;;
557
558   -enable-* | --enable-*)
559     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
560     # Reject names that are not valid shell variable names.
561     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
562       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
563     fi
564     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
565     case "$ac_option" in
566       *=*) ;;
567       *) ac_optarg=yes ;;
568     esac
569     eval "enable_${ac_feature}='$ac_optarg'" ;;
570
571   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573   | --exec | --exe | --ex)
574     ac_prev=exec_prefix ;;
575   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577   | --exec=* | --exe=* | --ex=*)
578     exec_prefix="$ac_optarg" ;;
579
580   -gas | --gas | --ga | --g)
581     # Obsolete; use --with-gas.
582     with_gas=yes ;;
583
584   -help | --help | --hel | --he)
585     # Omit some internal or obsolete options to make the list less imposing.
586     # This message is too long to be a string in the A/UX 3.1 sh.
587     cat << EOF
588 Usage: configure [options] [host]
589 Options: [defaults in brackets after descriptions]
590 Configuration:
591   --cache-file=FILE       cache test results in FILE
592   --help                  print this message
593   --no-create             do not create output files
594   --quiet, --silent       do not print \`checking...' messages
595   --version               print the version of autoconf that created configure
596 Directory and file names:
597   --prefix=PREFIX         install architecture-independent files in PREFIX
598                           [$ac_default_prefix]
599   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
600                           [same as prefix]
601   --bindir=DIR            user executables in DIR [EPREFIX/bin]
602   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
603   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
604   --datadir=DIR           read-only architecture-independent data in DIR
605                           [PREFIX/share]
606   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
607   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
608                           [PREFIX/com]
609   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
610   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
611   --includedir=DIR        C header files in DIR [PREFIX/include]
612   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
613   --infodir=DIR           info documentation in DIR [PREFIX/info]
614   --mandir=DIR            man documentation in DIR [PREFIX/man]
615   --srcdir=DIR            find the sources in DIR [configure dir or ..]
616   --program-prefix=PREFIX prepend PREFIX to installed program names
617   --program-suffix=SUFFIX append SUFFIX to installed program names
618   --program-transform-name=PROGRAM
619                           run sed PROGRAM on installed program names
620 EOF
621     cat << EOF
622 Host type:
623   --build=BUILD           configure for building on BUILD [BUILD=HOST]
624   --host=HOST             configure for HOST [guessed]
625   --target=TARGET         configure for TARGET [TARGET=HOST]
626 Features and packages:
627   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
628   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
629   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
630   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
631   --x-includes=DIR        X include files are in DIR
632   --x-libraries=DIR       X library files are in DIR
633 EOF
634     if test -n "$ac_help"; then
635       echo "--enable and --with options recognized:$ac_help"
636     fi
637     exit 0 ;;
638
639   -host | --host | --hos | --ho)
640     ac_prev=host ;;
641   -host=* | --host=* | --hos=* | --ho=*)
642     host="$ac_optarg" ;;
643
644   -includedir | --includedir | --includedi | --included | --include \
645   | --includ | --inclu | --incl | --inc)
646     ac_prev=includedir ;;
647   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
648   | --includ=* | --inclu=* | --incl=* | --inc=*)
649     includedir="$ac_optarg" ;;
650
651   -infodir | --infodir | --infodi | --infod | --info | --inf)
652     ac_prev=infodir ;;
653   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
654     infodir="$ac_optarg" ;;
655
656   -libdir | --libdir | --libdi | --libd)
657     ac_prev=libdir ;;
658   -libdir=* | --libdir=* | --libdi=* | --libd=*)
659     libdir="$ac_optarg" ;;
660
661   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
662   | --libexe | --libex | --libe)
663     ac_prev=libexecdir ;;
664   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
665   | --libexe=* | --libex=* | --libe=*)
666     libexecdir="$ac_optarg" ;;
667
668   -localstatedir | --localstatedir | --localstatedi | --localstated \
669   | --localstate | --localstat | --localsta | --localst \
670   | --locals | --local | --loca | --loc | --lo)
671     ac_prev=localstatedir ;;
672   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
673   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
674   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
675     localstatedir="$ac_optarg" ;;
676
677   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
678     ac_prev=mandir ;;
679   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
680     mandir="$ac_optarg" ;;
681
682   -nfp | --nfp | --nf)
683     # Obsolete; use --without-fp.
684     with_fp=no ;;
685
686   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
687   | --no-cr | --no-c)
688     no_create=yes ;;
689
690   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
691   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
692     no_recursion=yes ;;
693
694   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
695   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
696   | --oldin | --oldi | --old | --ol | --o)
697     ac_prev=oldincludedir ;;
698   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
699   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
700   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
701     oldincludedir="$ac_optarg" ;;
702
703   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
704     ac_prev=prefix ;;
705   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
706     prefix="$ac_optarg" ;;
707
708   -program-prefix | --program-prefix | --program-prefi | --program-pref \
709   | --program-pre | --program-pr | --program-p)
710     ac_prev=program_prefix ;;
711   -program-prefix=* | --program-prefix=* | --program-prefi=* \
712   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
713     program_prefix="$ac_optarg" ;;
714
715   -program-suffix | --program-suffix | --program-suffi | --program-suff \
716   | --program-suf | --program-su | --program-s)
717     ac_prev=program_suffix ;;
718   -program-suffix=* | --program-suffix=* | --program-suffi=* \
719   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
720     program_suffix="$ac_optarg" ;;
721
722   -program-transform-name | --program-transform-name \
723   | --program-transform-nam | --program-transform-na \
724   | --program-transform-n | --program-transform- \
725   | --program-transform | --program-transfor \
726   | --program-transfo | --program-transf \
727   | --program-trans | --program-tran \
728   | --progr-tra | --program-tr | --program-t)
729     ac_prev=program_transform_name ;;
730   -program-transform-name=* | --program-transform-name=* \
731   | --program-transform-nam=* | --program-transform-na=* \
732   | --program-transform-n=* | --program-transform-=* \
733   | --program-transform=* | --program-transfor=* \
734   | --program-transfo=* | --program-transf=* \
735   | --program-trans=* | --program-tran=* \
736   | --progr-tra=* | --program-tr=* | --program-t=*)
737     program_transform_name="$ac_optarg" ;;
738
739   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
740   | -silent | --silent | --silen | --sile | --sil)
741     silent=yes ;;
742
743   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
744     ac_prev=sbindir ;;
745   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
746   | --sbi=* | --sb=*)
747     sbindir="$ac_optarg" ;;
748
749   -sharedstatedir | --sharedstatedir | --sharedstatedi \
750   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
751   | --sharedst | --shareds | --shared | --share | --shar \
752   | --sha | --sh)
753     ac_prev=sharedstatedir ;;
754   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
755   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
756   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
757   | --sha=* | --sh=*)
758     sharedstatedir="$ac_optarg" ;;
759
760   -site | --site | --sit)
761     ac_prev=site ;;
762   -site=* | --site=* | --sit=*)
763     site="$ac_optarg" ;;
764
765   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
766     ac_prev=srcdir ;;
767   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
768     srcdir="$ac_optarg" ;;
769
770   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
771   | --syscon | --sysco | --sysc | --sys | --sy)
772     ac_prev=sysconfdir ;;
773   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
774   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
775     sysconfdir="$ac_optarg" ;;
776
777   -target | --target | --targe | --targ | --tar | --ta | --t)
778     ac_prev=target ;;
779   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
780     target="$ac_optarg" ;;
781
782   -v | -verbose | --verbose | --verbos | --verbo | --verb)
783     verbose=yes ;;
784
785   -version | --version | --versio | --versi | --vers)
786     echo "configure generated by autoconf version 2.13"
787     exit 0 ;;
788
789   -with-* | --with-*)
790     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
791     # Reject names that are not valid shell variable names.
792     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
793       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
794     fi
795     ac_package=`echo $ac_package| sed 's/-/_/g'`
796     case "$ac_option" in
797       *=*) ;;
798       *) ac_optarg=yes ;;
799     esac
800     eval "with_${ac_package}='$ac_optarg'" ;;
801
802   -without-* | --without-*)
803     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
804     # Reject names that are not valid shell variable names.
805     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
806       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
807     fi
808     ac_package=`echo $ac_package| sed 's/-/_/g'`
809     eval "with_${ac_package}=no" ;;
810
811   --x)
812     # Obsolete; use --with-x.
813     with_x=yes ;;
814
815   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
816   | --x-incl | --x-inc | --x-in | --x-i)
817     ac_prev=x_includes ;;
818   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
819   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
820     x_includes="$ac_optarg" ;;
821
822   -x-libraries | --x-libraries | --x-librarie | --x-librari \
823   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
824     ac_prev=x_libraries ;;
825   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
826   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
827     x_libraries="$ac_optarg" ;;
828
829   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
830     ;;
831
832   *)
833     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
834       echo "configure: warning: $ac_option: invalid host type" 1>&2
835     fi
836     if test "x$nonopt" != xNONE; then
837       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
838     fi
839     nonopt="$ac_option"
840     ;;
841
842   esac
843 done
844
845 if test -n "$ac_prev"; then
846   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
847 fi
848
849 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
850
851 # File descriptor usage:
852 # 0 standard input
853 # 1 file creation
854 # 2 errors and warnings
855 # 3 some systems may open it to /dev/tty
856 # 4 used on the Kubota Titan
857 # 6 checking for... messages and results
858 # 5 compiler messages saved in config.log
859 if test "$silent" = yes; then
860   exec 6>/dev/null
861 else
862   exec 6>&1
863 fi
864 exec 5>./config.log
865
866 echo "\
867 This file contains any messages produced by compilers while
868 running configure, to aid debugging if configure makes a mistake.
869 " 1>&5
870
871 # Strip out --no-create and --no-recursion so they do not pile up.
872 # Also quote any args containing shell metacharacters.
873 ac_configure_args=
874 for ac_arg
875 do
876   case "$ac_arg" in
877   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
878   | --no-cr | --no-c) ;;
879   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
880   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
881   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
882   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
883   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
884   esac
885 done
886
887 # NLS nuisances.
888 # Only set these to C if already set.  These must not be set unconditionally
889 # because not all systems understand e.g. LANG=C (notably SCO).
890 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
891 # Non-C LC_CTYPE values break the ctype check.
892 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
893 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
894 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
895 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
896
897 # confdefs.h avoids OS command line length limits that DEFS can exceed.
898 rm -rf conftest* confdefs.h
899 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
900 echo > confdefs.h
901
902 # A filename unique to this package, relative to the directory that
903 # configure is in, which we can look for to find out if srcdir is correct.
904 ac_unique_file=wx-config.in
905
906 # Find the source files, if location was not specified.
907 if test -z "$srcdir"; then
908   ac_srcdir_defaulted=yes
909   # Try the directory containing this script, then its parent.
910   ac_prog=$0
911   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
912   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
913   srcdir=$ac_confdir
914   if test ! -r $srcdir/$ac_unique_file; then
915     srcdir=..
916   fi
917 else
918   ac_srcdir_defaulted=no
919 fi
920 if test ! -r $srcdir/$ac_unique_file; then
921   if test "$ac_srcdir_defaulted" = yes; then
922     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
923   else
924     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
925   fi
926 fi
927 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
928
929 # Prefer explicitly selected file to automatically selected ones.
930 if test -z "$CONFIG_SITE"; then
931   if test "x$prefix" != xNONE; then
932     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
933   else
934     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
935   fi
936 fi
937 for ac_site_file in $CONFIG_SITE; do
938   if test -r "$ac_site_file"; then
939     echo "loading site script $ac_site_file"
940     . "$ac_site_file"
941   fi
942 done
943
944 if test -r "$cache_file"; then
945   echo "loading cache $cache_file"
946   . $cache_file
947 else
948   echo "creating cache $cache_file"
949   > $cache_file
950 fi
951
952 ac_ext=c
953 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
954 ac_cpp='$CPP $CPPFLAGS'
955 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
956 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
957 cross_compiling=$ac_cv_prog_cc_cross
958
959 ac_exeext=
960 ac_objext=o
961 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
962   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
963   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
964     ac_n= ac_c='
965 ' ac_t='        '
966   else
967     ac_n=-n ac_c= ac_t=
968   fi
969 else
970   ac_n= ac_c='\c' ac_t=
971 fi
972
973
974
975 ac_aux_dir=
976 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
977   if test -f $ac_dir/install-sh; then
978     ac_aux_dir=$ac_dir
979     ac_install_sh="$ac_aux_dir/install-sh -c"
980     break
981   elif test -f $ac_dir/install.sh; then
982     ac_aux_dir=$ac_dir
983     ac_install_sh="$ac_aux_dir/install.sh -c"
984     break
985   fi
986 done
987 if test -z "$ac_aux_dir"; then
988   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
989 fi
990 ac_config_guess=$ac_aux_dir/config.guess
991 ac_config_sub=$ac_aux_dir/config.sub
992 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
993
994
995 # Do some error checking and defaulting for the host and target type.
996 # The inputs are:
997 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
998 #
999 # The rules are:
1000 # 1. You are not allowed to specify --host, --target, and nonopt at the
1001 #    same time.
1002 # 2. Host defaults to nonopt.
1003 # 3. If nonopt is not specified, then host defaults to the current host,
1004 #    as determined by config.guess.
1005 # 4. Target and build default to nonopt.
1006 # 5. If nonopt is not specified, then target and build default to host.
1007
1008 # The aliases save the names the user supplied, while $host etc.
1009 # will get canonicalized.
1010 case $host---$target---$nonopt in
1011 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1012 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1013 esac
1014
1015
1016 # Make sure we can run config.sub.
1017 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1018 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1019 fi
1020
1021 echo $ac_n "checking host system type""... $ac_c" 1>&6
1022 echo "configure:1023: checking host system type" >&5
1023
1024 host_alias=$host
1025 case "$host_alias" in
1026 NONE)
1027   case $nonopt in
1028   NONE)
1029     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1030     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1031     fi ;;
1032   *) host_alias=$nonopt ;;
1033   esac ;;
1034 esac
1035
1036 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1037 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1038 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1039 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1040 echo "$ac_t""$host" 1>&6
1041
1042 echo $ac_n "checking target system type""... $ac_c" 1>&6
1043 echo "configure:1044: checking target system type" >&5
1044
1045 target_alias=$target
1046 case "$target_alias" in
1047 NONE)
1048   case $nonopt in
1049   NONE) target_alias=$host_alias ;;
1050   *) target_alias=$nonopt ;;
1051   esac ;;
1052 esac
1053
1054 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1055 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1056 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1057 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1058 echo "$ac_t""$target" 1>&6
1059
1060 echo $ac_n "checking build system type""... $ac_c" 1>&6
1061 echo "configure:1062: checking build system type" >&5
1062
1063 build_alias=$build
1064 case "$build_alias" in
1065 NONE)
1066   case $nonopt in
1067   NONE) build_alias=$host_alias ;;
1068   *) build_alias=$nonopt ;;
1069   esac ;;
1070 esac
1071
1072 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1073 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1074 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1075 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1076 echo "$ac_t""$build" 1>&6
1077
1078 test "$host_alias" != "$target_alias" &&
1079   test "$program_prefix$program_suffix$program_transform_name" = \
1080     NONENONEs,x,x, &&
1081   program_prefix=${target_alias}-
1082
1083
1084
1085 WX_MAJOR_VERSION_NUMBER=2
1086 WX_MINOR_VERSION_NUMBER=5
1087 WX_RELEASE_NUMBER=0
1088
1089 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1090 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1091
1092 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1093
1094 WX_CURRENT=0
1095 WX_REVISION=0
1096 WX_AGE=0
1097
1098
1099
1100 USE_UNIX=1
1101 USE_WIN32=0
1102 USE_DOS=0
1103 USE_BEOS=0
1104 USE_MAC=0
1105
1106 USE_LINUX=
1107 USE_SGI=
1108 USE_HPUX=
1109 USE_SYSV=
1110 USE_SVR4=
1111 USE_AIX=
1112 USE_SUN=
1113 USE_SOLARIS=
1114 USE_SUNOS=
1115 USE_ALPHA=
1116 USE_OSF=
1117 USE_BSD=
1118 USE_DARWIN=
1119 USE_FREEBSD=
1120 USE_OPENBSD=
1121 USE_NETBSD=
1122 USE_VMS=
1123 USE_ULTRIX=
1124 USE_DATA_GENERAL=
1125
1126 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1127
1128 ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1129
1130 DEFAULT_wxUSE_GTK=0
1131 DEFAULT_wxUSE_MAC=0
1132 DEFAULT_wxUSE_MGL=0
1133 DEFAULT_wxUSE_MICROWIN=0
1134 DEFAULT_wxUSE_MOTIF=0
1135 DEFAULT_wxUSE_MSW=0
1136 DEFAULT_wxUSE_PM=0
1137 DEFAULT_wxUSE_X11=0
1138
1139 DEFAULT_DEFAULT_wxUSE_GTK=0
1140 DEFAULT_DEFAULT_wxUSE_MAC=0
1141 DEFAULT_DEFAULT_wxUSE_MGL=0
1142 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1143 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1144 DEFAULT_DEFAULT_wxUSE_MSW=0
1145 DEFAULT_DEFAULT_wxUSE_PM=0
1146 DEFAULT_DEFAULT_wxUSE_X11=0
1147
1148 PROGRAM_EXT=
1149 SO_SUFFIX=so
1150
1151 case "${host}" in
1152   *-hp-hpux* )
1153     USE_HPUX=1
1154     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1155     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1156     SO_SUFFIX=sl
1157     cat >> confdefs.h <<\EOF
1158 #define __HPUX__ 1
1159 EOF
1160
1161   ;;
1162   *-*-linux* )
1163     USE_LINUX=1
1164     cat >> confdefs.h <<\EOF
1165 #define __LINUX__ 1
1166 EOF
1167
1168     TMP=`uname -m`
1169     if test "x$TMP" = "xalpha"; then
1170       USE_ALPHA=1
1171       cat >> confdefs.h <<\EOF
1172 #define __ALPHA__ 1
1173 EOF
1174
1175     fi
1176     DEFAULT_DEFAULT_wxUSE_GTK=1
1177   ;;
1178   *-*-irix5* | *-*-irix6* )
1179     USE_SGI=1
1180     USE_SVR4=1
1181     cat >> confdefs.h <<\EOF
1182 #define __SGI__ 1
1183 EOF
1184
1185     cat >> confdefs.h <<\EOF
1186 #define __SVR4__ 1
1187 EOF
1188
1189     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1190   ;;
1191   *-*-solaris2* )
1192     USE_SUN=1
1193     USE_SOLARIS=1
1194     USE_SVR4=1
1195     cat >> confdefs.h <<\EOF
1196 #define __SUN__ 1
1197 EOF
1198
1199     cat >> confdefs.h <<\EOF
1200 #define __SOLARIS__ 1
1201 EOF
1202
1203     cat >> confdefs.h <<\EOF
1204 #define __SVR4__ 1
1205 EOF
1206
1207     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1208     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1209   ;;
1210   *-*-sunos4* )
1211     USE_SUN=1
1212     USE_SUNOS=1
1213     USE_BSD=1
1214     cat >> confdefs.h <<\EOF
1215 #define __SUN__ 1
1216 EOF
1217
1218     cat >> confdefs.h <<\EOF
1219 #define __SUNOS__ 1
1220 EOF
1221
1222     cat >> confdefs.h <<\EOF
1223 #define __BSD__ 1
1224 EOF
1225
1226     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1227   ;;
1228   *-*-freebsd*)
1229     USE_BSD=1
1230     USE_FREEBSD=1
1231     cat >> confdefs.h <<\EOF
1232 #define __FREEBSD__ 1
1233 EOF
1234
1235     cat >> confdefs.h <<\EOF
1236 #define __BSD__ 1
1237 EOF
1238
1239     DEFAULT_DEFAULT_wxUSE_GTK=1
1240   ;;
1241   *-*-openbsd*)
1242     USE_BSD=1
1243     USE_OPENBSD=1
1244     cat >> confdefs.h <<\EOF
1245 #define __OPENBSD__ 1
1246 EOF
1247
1248     cat >> confdefs.h <<\EOF
1249 #define __BSD__ 1
1250 EOF
1251
1252     DEFAULT_DEFAULT_wxUSE_GTK=1
1253   ;;
1254   *-*-netbsd*)
1255     USE_BSD=1
1256     USE_NETBSD=1
1257     cat >> confdefs.h <<\EOF
1258 #define __NETBSD__ 1
1259 EOF
1260
1261     cat >> confdefs.h <<\EOF
1262 #define __BSD__ 1
1263 EOF
1264
1265     DEFAULT_DEFAULT_wxUSE_GTK=1
1266   ;;
1267   *-*-osf* )
1268     USE_ALPHA=1
1269     USE_OSF=1
1270     cat >> confdefs.h <<\EOF
1271 #define __ALPHA__ 1
1272 EOF
1273
1274     cat >> confdefs.h <<\EOF
1275 #define __OSF__ 1
1276 EOF
1277
1278     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1279     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1280   ;;
1281   *-*-dgux5* )
1282     USE_ALPHA=1
1283     USE_SVR4=1
1284     cat >> confdefs.h <<\EOF
1285 #define __ALPHA__ 1
1286 EOF
1287
1288     cat >> confdefs.h <<\EOF
1289 #define __SVR4__ 1
1290 EOF
1291
1292     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1293   ;;
1294   *-*-sysv5* )
1295     USE_SYSV=1
1296     USE_SVR4=1
1297     cat >> confdefs.h <<\EOF
1298 #define __SYSV__ 1
1299 EOF
1300
1301     cat >> confdefs.h <<\EOF
1302 #define __SVR4__ 1
1303 EOF
1304
1305     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1306   ;;
1307   *-*-aix* )
1308     USE_AIX=1
1309     USE_SYSV=1
1310     USE_SVR4=1
1311                         SO_SUFFIX=a
1312     cat >> confdefs.h <<\EOF
1313 #define __AIX__ 1
1314 EOF
1315
1316     cat >> confdefs.h <<\EOF
1317 #define __SYSV__ 1
1318 EOF
1319
1320     cat >> confdefs.h <<\EOF
1321 #define __SVR4__ 1
1322 EOF
1323
1324     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1325   ;;
1326
1327   *-*-cygwin* | *-*-mingw32* )
1328                 SO_SUFFIX=dll
1329     PROGRAM_EXT=".exe"
1330     RESCOMP=windres
1331     DEFAULT_DEFAULT_wxUSE_MSW=1
1332   ;;
1333
1334   *-pc-msdosdjgpp )
1335     USE_UNIX=0
1336     USE_DOS=1
1337     cat >> confdefs.h <<\EOF
1338 #define __DOS__ 1
1339 EOF
1340
1341     PROGRAM_EXT=".exe"
1342     DEFAULT_DEFAULT_wxUSE_MGL=1
1343         LIBS="$LIBS -lstdc++"
1344   ;;
1345
1346   *-pc-os2_emx | *-pc-os2-emx )
1347     cat >> confdefs.h <<\EOF
1348 #define __EMX__ 1
1349 EOF
1350
1351     PROGRAM_EXT=".exe"
1352     DEFAULT_DEFAULT_wxUSE_PM=1
1353   ;;
1354
1355   powerpc-*-darwin* )
1356         USE_BSD=1
1357     USE_DARWIN=1
1358     SO_SUFFIX=dylib
1359     cat >> confdefs.h <<\EOF
1360 #define __BSD__ 1
1361 EOF
1362
1363     cat >> confdefs.h <<\EOF
1364 #define __DARWIN__ 1
1365 EOF
1366
1367     cat >> confdefs.h <<\EOF
1368 #define __POWERPC__ 1
1369 EOF
1370
1371     cat >> confdefs.h <<\EOF
1372 #define TARGET_CARBON 1
1373 EOF
1374
1375     DEFAULT_DEFAULT_wxUSE_MAC=1
1376   ;;
1377
1378   *-*-beos* )
1379         USE_BEOS=1
1380     cat >> confdefs.h <<\EOF
1381 #define __BEOS__ 1
1382 EOF
1383
1384   ;;
1385
1386   *)
1387     { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1388 esac
1389
1390
1391
1392
1393           wx_arg_cache_file="configarg.cache"
1394           echo "loading argument cache $wx_arg_cache_file"
1395           rm -f ${wx_arg_cache_file}.tmp
1396           touch ${wx_arg_cache_file}.tmp
1397           touch ${wx_arg_cache_file}
1398         
1399
1400 DEBUG_CONFIGURE=0
1401 if test $DEBUG_CONFIGURE = 1; then
1402   DEFAULT_wxUSE_UNIVERSAL=no
1403
1404   DEFAULT_wxUSE_NANOX=no
1405
1406   DEFAULT_wxUSE_THREADS=yes
1407
1408   DEFAULT_wxUSE_SHARED=yes
1409   DEFAULT_wxUSE_SONAME=no
1410   DEFAULT_wxUSE_OPTIMISE=no
1411   DEFAULT_wxUSE_PROFILE=no
1412   DEFAULT_wxUSE_NO_DEPS=no
1413   DEFAULT_wxUSE_NO_RTTI=no
1414   DEFAULT_wxUSE_NO_EXCEPTIONS=no
1415   DEFAULT_wxUSE_PERMISSIVE=no
1416   DEFAULT_wxUSE_DEBUG_FLAG=yes
1417   DEFAULT_wxUSE_DEBUG_INFO=yes
1418   DEFAULT_wxUSE_DEBUG_GDB=yes
1419   DEFAULT_wxUSE_MEM_TRACING=no
1420   DEFAULT_wxUSE_DEBUG_CONTEXT=no
1421   DEFAULT_wxUSE_DMALLOC=no
1422   DEFAULT_wxUSE_PRECOMP=no
1423   DEFAULT_wxUSE_APPLE_IEEE=no
1424
1425   DEFAULT_wxUSE_LOG=yes
1426   DEFAULT_wxUSE_LOGWINDOW=no
1427   DEFAULT_wxUSE_LOGGUI=no
1428   DEFAULT_wxUSE_LOGDIALOG=no
1429
1430   DEFAULT_wxUSE_GUI=yes
1431   DEFAULT_wxUSE_CONTROLS=no
1432
1433   DEFAULT_wxUSE_REGEX=no
1434   DEFAULT_wxUSE_ZLIB=no
1435   DEFAULT_wxUSE_LIBPNG=no
1436   DEFAULT_wxUSE_LIBJPEG=no
1437   DEFAULT_wxUSE_LIBTIFF=no
1438   DEFAULT_wxUSE_ODBC=no
1439   DEFAULT_wxUSE_OPENGL=no
1440
1441   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1442   DEFAULT_wxUSE_SNGLINST_CHECKER=no
1443   DEFAULT_wxUSE_STD_IOSTREAM=no
1444   DEFAULT_wxUSE_CMDLINE_PARSER=no
1445   DEFAULT_wxUSE_DATETIME=no
1446   DEFAULT_wxUSE_TIMEDATE=no
1447   DEFAULT_wxUSE_TIMER=no
1448   DEFAULT_wxUSE_STOPWATCH=no
1449   DEFAULT_wxUSE_FILE=no
1450   DEFAULT_wxUSE_FFILE=no
1451   DEFAULT_wxUSE_TEXTBUFFER=no
1452   DEFAULT_wxUSE_TEXTFILE=no
1453   DEFAULT_wxUSE_WAVE=no
1454   DEFAULT_wxUSE_INTL=no
1455   DEFAULT_wxUSE_CONFIG=no
1456   DEFAULT_wxUSE_FONTMAP=no
1457   DEFAULT_wxUSE_STREAMS=no
1458   DEFAULT_wxUSE_SOCKETS=no
1459   DEFAULT_wxUSE_OLE=no
1460   DEFAULT_wxUSE_DATAOBJ=no
1461   DEFAULT_wxUSE_DIALUP_MANAGER=no
1462   DEFAULT_wxUSE_JOYSTICK=no
1463   DEFAULT_wxUSE_DYNLIB_CLASS=no
1464   DEFAULT_wxUSE_DYNAMIC_LOADER=no
1465   DEFAULT_wxUSE_LONGLONG=no
1466   DEFAULT_wxUSE_GEOMETRY=no
1467
1468   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1469   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1470   DEFAULT_wxUSE_POSTSCRIPT=no
1471
1472   DEFAULT_wxUSE_X_RESOURCES=no
1473   DEFAULT_wxUSE_CLIPBOARD=no
1474   DEFAULT_wxUSE_TOOLTIPS=no
1475   DEFAULT_wxUSE_DRAG_AND_DROP=no
1476   DEFAULT_wxUSE_DRAGIMAGE=no
1477   DEFAULT_wxUSE_SPLINES=no
1478
1479   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1480   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1481   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1482
1483   DEFAULT_wxUSE_PROLOGIO=no
1484   DEFAULT_wxUSE_RESOURCES=no
1485   DEFAULT_wxUSE_CONSTRAINTS=no
1486   DEFAULT_wxUSE_IPC=no
1487   DEFAULT_wxUSE_HELP=no
1488   DEFAULT_wxUSE_MS_HTML_HELP=no
1489   DEFAULT_wxUSE_WXHTML_HELP=no
1490   DEFAULT_wxUSE_TREELAYOUT=no
1491   DEFAULT_wxUSE_METAFILE=no
1492   DEFAULT_wxUSE_MIMETYPE=no
1493   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1494   DEFAULT_wxUSE_PROTOCOL=no
1495   DEFAULT_wxUSE_PROTOCOL_HTTP=no
1496   DEFAULT_wxUSE_PROTOCOL_FTP=no
1497   DEFAULT_wxUSE_PROTOCOL_FILE=no
1498   DEFAULT_wxUSE_URL=no
1499
1500   DEFAULT_wxUSE_COMMONDLGS=no
1501   DEFAULT_wxUSE_CHOICEDLG=no
1502   DEFAULT_wxUSE_COLOURDLG=no
1503   DEFAULT_wxUSE_DIRDLG=no
1504   DEFAULT_wxUSE_FILEDLG=no
1505   DEFAULT_wxUSE_FINDREPLDLG=no
1506   DEFAULT_wxUSE_FONTDLG=no
1507   DEFAULT_wxUSE_MSGDLG=no
1508   DEFAULT_wxUSE_NUMBERDLG=no
1509   DEFAULT_wxUSE_TEXTDLG=no
1510   DEFAULT_wxUSE_SPLASH=no
1511   DEFAULT_wxUSE_STARTUP_TIPS=no
1512   DEFAULT_wxUSE_PROGRESSDLG=no
1513   DEFAULT_wxUSE_WIZARDDLG=no
1514
1515   DEFAULT_wxUSE_MENUS=no
1516   DEFAULT_wxUSE_MINIFRAME=no
1517   DEFAULT_wxUSE_HTML=no
1518   DEFAULT_wxUSE_FILESYSTEM=no
1519   DEFAULT_wxUSE_FS_INET=no
1520   DEFAULT_wxUSE_FS_ZIP=no
1521   DEFAULT_wxUSE_BUSYINFO=no
1522   DEFAULT_wxUSE_ZIPSTREAM=no
1523   DEFAULT_wxUSE_VALIDATORS=no
1524
1525   DEFAULT_wxUSE_ACCEL=no
1526   DEFAULT_wxUSE_BUTTON=no
1527   DEFAULT_wxUSE_BMPBUTTON=no
1528   DEFAULT_wxUSE_CALCTRL=no
1529   DEFAULT_wxUSE_CARET=no
1530   DEFAULT_wxUSE_CHECKBOX=no
1531   DEFAULT_wxUSE_CHECKLST=no
1532   DEFAULT_wxUSE_CHOICE=no
1533   DEFAULT_wxUSE_COMBOBOX=no
1534   DEFAULT_wxUSE_GAUGE=no
1535   DEFAULT_wxUSE_GRID=no
1536   DEFAULT_wxUSE_NEW_GRID=no
1537   DEFAULT_wxUSE_IMAGLIST=no
1538   DEFAULT_wxUSE_LISTBOX=no
1539   DEFAULT_wxUSE_LISTCTRL=no
1540   DEFAULT_wxUSE_NOTEBOOK=no
1541   DEFAULT_wxUSE_PROPSHEET=no
1542   DEFAULT_wxUSE_RADIOBOX=no
1543   DEFAULT_wxUSE_RADIOBTN=no
1544   DEFAULT_wxUSE_SASH=no
1545   DEFAULT_wxUSE_SCROLLBAR=no
1546   DEFAULT_wxUSE_SLIDER=no
1547   DEFAULT_wxUSE_SPINBTN=no
1548   DEFAULT_wxUSE_SPINCTRL=no
1549   DEFAULT_wxUSE_SPLITTER=no
1550   DEFAULT_wxUSE_STATBMP=no
1551   DEFAULT_wxUSE_STATBOX=no
1552   DEFAULT_wxUSE_STATLINE=no
1553   DEFAULT_wxUSE_STATTEXT=no
1554   DEFAULT_wxUSE_STATUSBAR=yes
1555   DEFAULT_wxUSE_TABDIALOG=no
1556   DEFAULT_wxUSE_TEXTCTRL=no
1557   DEFAULT_wxUSE_TOGGLEBTN=no
1558   DEFAULT_wxUSE_TOOLBAR=no
1559   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1560   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1561   DEFAULT_wxUSE_TREECTRL=no
1562   DEFAULT_wxUSE_POPUPWIN=no
1563   DEFAULT_wxUSE_TIPWINDOW=no
1564
1565   DEFAULT_wxUSE_UNICODE=no
1566   DEFAULT_wxUSE_UNICODE_MSLU=no
1567   DEFAULT_wxUSE_WCSRTOMBS=no
1568
1569   DEFAULT_wxUSE_PALETTE=no
1570   DEFAULT_wxUSE_IMAGE=no
1571   DEFAULT_wxUSE_GIF=no
1572   DEFAULT_wxUSE_PCX=no
1573   DEFAULT_wxUSE_PNM=no
1574   DEFAULT_wxUSE_IFF=no
1575   DEFAULT_wxUSE_XPM=no
1576   DEFAULT_wxUSE_ICO_CUR=no
1577 else
1578   DEFAULT_wxUSE_UNIVERSAL=no
1579
1580   DEFAULT_wxUSE_NANOX=no
1581
1582   DEFAULT_wxUSE_THREADS=yes
1583
1584   DEFAULT_wxUSE_SHARED=yes
1585   DEFAULT_wxUSE_SONAME=no
1586   DEFAULT_wxUSE_OPTIMISE=yes
1587   DEFAULT_wxUSE_PROFILE=no
1588   DEFAULT_wxUSE_NO_DEPS=no
1589   DEFAULT_wxUSE_NO_RTTI=no
1590   DEFAULT_wxUSE_NO_EXCEPTIONS=no
1591   DEFAULT_wxUSE_PERMISSIVE=no
1592   DEFAULT_wxUSE_DEBUG_FLAG=no
1593   DEFAULT_wxUSE_DEBUG_INFO=no
1594   DEFAULT_wxUSE_DEBUG_GDB=no
1595   DEFAULT_wxUSE_MEM_TRACING=no
1596   DEFAULT_wxUSE_DEBUG_CONTEXT=no
1597   DEFAULT_wxUSE_DMALLOC=no
1598   DEFAULT_wxUSE_PRECOMP=no
1599   DEFAULT_wxUSE_APPLE_IEEE=yes
1600
1601   DEFAULT_wxUSE_LOG=yes
1602   DEFAULT_wxUSE_LOGWINDOW=yes
1603   DEFAULT_wxUSE_LOGGUI=yes
1604   DEFAULT_wxUSE_LOGDIALOG=yes
1605
1606   DEFAULT_wxUSE_GUI=yes
1607
1608   DEFAULT_wxUSE_REGEX=yes
1609   DEFAULT_wxUSE_ZLIB=yes
1610   DEFAULT_wxUSE_LIBPNG=yes
1611   DEFAULT_wxUSE_LIBJPEG=yes
1612   DEFAULT_wxUSE_LIBTIFF=yes
1613   DEFAULT_wxUSE_ODBC=no
1614   DEFAULT_wxUSE_OPENGL=no
1615
1616   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1617   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1618   DEFAULT_wxUSE_STD_IOSTREAM=no
1619   DEFAULT_wxUSE_CMDLINE_PARSER=yes
1620   DEFAULT_wxUSE_DATETIME=yes
1621   DEFAULT_wxUSE_TIMEDATE=no
1622   DEFAULT_wxUSE_TIMER=yes
1623   DEFAULT_wxUSE_STOPWATCH=yes
1624   DEFAULT_wxUSE_FILE=yes
1625   DEFAULT_wxUSE_FFILE=yes
1626   DEFAULT_wxUSE_TEXTBUFFER=yes
1627   DEFAULT_wxUSE_TEXTFILE=yes
1628   DEFAULT_wxUSE_WAVE=no
1629   DEFAULT_wxUSE_INTL=yes
1630   DEFAULT_wxUSE_CONFIG=yes
1631   DEFAULT_wxUSE_FONTMAP=yes
1632   DEFAULT_wxUSE_STREAMS=yes
1633   DEFAULT_wxUSE_SOCKETS=yes
1634   DEFAULT_wxUSE_OLE=yes
1635   DEFAULT_wxUSE_DATAOBJ=yes
1636   DEFAULT_wxUSE_DIALUP_MANAGER=yes
1637   DEFAULT_wxUSE_JOYSTICK=yes
1638   DEFAULT_wxUSE_DYNLIB_CLASS=yes
1639   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1640   DEFAULT_wxUSE_LONGLONG=yes
1641   DEFAULT_wxUSE_GEOMETRY=yes
1642
1643   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1644   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1645   DEFAULT_wxUSE_POSTSCRIPT=yes
1646
1647   DEFAULT_wxUSE_X_RESOURCES=no
1648   DEFAULT_wxUSE_CLIPBOARD=yes
1649   DEFAULT_wxUSE_TOOLTIPS=yes
1650   DEFAULT_wxUSE_DRAG_AND_DROP=yes
1651   DEFAULT_wxUSE_DRAGIMAGE=yes
1652   DEFAULT_wxUSE_SPLINES=yes
1653
1654   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1655   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1656   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1657
1658   DEFAULT_wxUSE_PROLOGIO=no
1659   DEFAULT_wxUSE_RESOURCES=no
1660   DEFAULT_wxUSE_CONSTRAINTS=yes
1661   DEFAULT_wxUSE_IPC=yes
1662   DEFAULT_wxUSE_HELP=yes
1663   DEFAULT_wxUSE_MS_HTML_HELP=yes
1664   DEFAULT_wxUSE_WXHTML_HELP=yes
1665   DEFAULT_wxUSE_TREELAYOUT=yes
1666   DEFAULT_wxUSE_METAFILE=yes
1667   DEFAULT_wxUSE_MIMETYPE=yes
1668   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1669   DEFAULT_wxUSE_PROTOCOL=yes
1670   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1671   DEFAULT_wxUSE_PROTOCOL_FTP=yes
1672   DEFAULT_wxUSE_PROTOCOL_FILE=yes
1673   DEFAULT_wxUSE_URL=yes
1674
1675   DEFAULT_wxUSE_COMMONDLGS=yes
1676   DEFAULT_wxUSE_CHOICEDLG=yes
1677   DEFAULT_wxUSE_COLOURDLG=yes
1678   DEFAULT_wxUSE_DIRDLG=yes
1679   DEFAULT_wxUSE_FILEDLG=yes
1680   DEFAULT_wxUSE_FINDREPLDLG=yes
1681   DEFAULT_wxUSE_FONTDLG=yes
1682   DEFAULT_wxUSE_MSGDLG=yes
1683   DEFAULT_wxUSE_NUMBERDLG=yes
1684   DEFAULT_wxUSE_TEXTDLG=yes
1685   DEFAULT_wxUSE_SPLASH=yes
1686   DEFAULT_wxUSE_STARTUP_TIPS=yes
1687   DEFAULT_wxUSE_PROGRESSDLG=yes
1688   DEFAULT_wxUSE_WIZARDDLG=yes
1689
1690   DEFAULT_wxUSE_MENUS=yes
1691   DEFAULT_wxUSE_MINIFRAME=yes
1692   DEFAULT_wxUSE_HTML=yes
1693   DEFAULT_wxUSE_FILESYSTEM=yes
1694   DEFAULT_wxUSE_FS_INET=yes
1695   DEFAULT_wxUSE_FS_ZIP=yes
1696   DEFAULT_wxUSE_BUSYINFO=yes
1697   DEFAULT_wxUSE_ZIPSTREAM=yes
1698   DEFAULT_wxUSE_VALIDATORS=yes
1699
1700   DEFAULT_wxUSE_ACCEL=yes
1701   DEFAULT_wxUSE_BUTTON=yes
1702   DEFAULT_wxUSE_BMPBUTTON=yes
1703   DEFAULT_wxUSE_CALCTRL=yes
1704   DEFAULT_wxUSE_CARET=yes
1705   DEFAULT_wxUSE_CHECKBOX=yes
1706   DEFAULT_wxUSE_CHECKLST=yes
1707   DEFAULT_wxUSE_CHOICE=yes
1708   DEFAULT_wxUSE_COMBOBOX=yes
1709   DEFAULT_wxUSE_GAUGE=yes
1710   DEFAULT_wxUSE_GRID=yes
1711   DEFAULT_wxUSE_NEW_GRID=yes
1712   DEFAULT_wxUSE_IMAGLIST=yes
1713   DEFAULT_wxUSE_LISTBOX=yes
1714   DEFAULT_wxUSE_LISTCTRL=yes
1715   DEFAULT_wxUSE_NOTEBOOK=yes
1716   DEFAULT_wxUSE_PROPSHEET=yes
1717   DEFAULT_wxUSE_RADIOBOX=yes
1718   DEFAULT_wxUSE_RADIOBTN=yes
1719   DEFAULT_wxUSE_SASH=yes
1720   DEFAULT_wxUSE_SCROLLBAR=yes
1721   DEFAULT_wxUSE_SLIDER=yes
1722   DEFAULT_wxUSE_SPINBTN=yes
1723   DEFAULT_wxUSE_SPINCTRL=yes
1724   DEFAULT_wxUSE_SPLITTER=yes
1725   DEFAULT_wxUSE_STATBMP=yes
1726   DEFAULT_wxUSE_STATBOX=yes
1727   DEFAULT_wxUSE_STATLINE=yes
1728   DEFAULT_wxUSE_STATTEXT=yes
1729   DEFAULT_wxUSE_STATUSBAR=yes
1730   DEFAULT_wxUSE_TABDIALOG=no
1731   DEFAULT_wxUSE_TEXTCTRL=yes
1732   DEFAULT_wxUSE_TOGGLEBTN=yes
1733   DEFAULT_wxUSE_TOOLBAR=yes
1734   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1735   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1736   DEFAULT_wxUSE_TREECTRL=yes
1737   DEFAULT_wxUSE_POPUPWIN=yes
1738   DEFAULT_wxUSE_TIPWINDOW=yes
1739
1740   DEFAULT_wxUSE_UNICODE=no
1741   DEFAULT_wxUSE_UNICODE_MSLU=yes
1742   DEFAULT_wxUSE_WCSRTOMBS=no
1743
1744   DEFAULT_wxUSE_PALETTE=yes
1745   DEFAULT_wxUSE_IMAGE=yes
1746   DEFAULT_wxUSE_GIF=yes
1747   DEFAULT_wxUSE_PCX=yes
1748   DEFAULT_wxUSE_IFF=no
1749   DEFAULT_wxUSE_PNM=yes
1750   DEFAULT_wxUSE_XPM=yes
1751   DEFAULT_wxUSE_ICO_CUR=yes
1752 fi
1753
1754
1755
1756 for toolkit in `echo $ALL_TOOLKITS`; do
1757   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1758   if test "x$LINE" != "x" ; then
1759     has_toolkit_in_cache=1
1760     eval "DEFAULT_$LINE"
1761     eval "CACHE_$toolkit=1"
1762   fi
1763 done
1764
1765
1766
1767           enablestring=
1768           echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
1769 echo "configure:1770: checking for --${enablestring:-enable}-gui" >&5
1770           no_cache=0
1771           # Check whether --enable-gui or --disable-gui was given.
1772 if test "${enable_gui+set}" = set; then
1773   enableval="$enable_gui"
1774   
1775                           if test "$enableval" = yes; then
1776                             ac_cv_use_gui='wxUSE_GUI=yes'
1777                           else
1778                             ac_cv_use_gui='wxUSE_GUI=no'
1779                           fi
1780                         
1781 else
1782   
1783                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1784                           if test "x$LINE" != x ; then
1785                             eval "DEFAULT_$LINE"
1786                           else
1787                             no_cache=1
1788                           fi
1789
1790                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1791                         
1792 fi
1793
1794
1795           eval "$ac_cv_use_gui"
1796           if test "$no_cache" != 1; then
1797             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1798           fi
1799
1800           if test "$wxUSE_GUI" = yes; then
1801             echo "$ac_t""yes" 1>&6
1802           else
1803             echo "$ac_t""no" 1>&6
1804           fi
1805         
1806
1807 if test "$wxUSE_GUI" = "yes"; then
1808
1809
1810           enablestring=
1811           echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
1812 echo "configure:1813: checking for --${enablestring:-enable}-universal" >&5
1813           no_cache=0
1814           # Check whether --enable-universal or --disable-universal was given.
1815 if test "${enable_universal+set}" = set; then
1816   enableval="$enable_universal"
1817   
1818                           if test "$enableval" = yes; then
1819                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1820                           else
1821                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1822                           fi
1823                         
1824 else
1825   
1826                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1827                           if test "x$LINE" != x ; then
1828                             eval "DEFAULT_$LINE"
1829                           else
1830                             no_cache=1
1831                           fi
1832
1833                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1834                         
1835 fi
1836
1837
1838           eval "$ac_cv_use_universal"
1839           if test "$no_cache" != 1; then
1840             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1841           fi
1842
1843           if test "$wxUSE_UNIVERSAL" = yes; then
1844             echo "$ac_t""yes" 1>&6
1845           else
1846             echo "$ac_t""no" 1>&6
1847           fi
1848         
1849 # Check whether --with-gtk or --without-gtk was given.
1850 if test "${with_gtk+set}" = set; then
1851   withval="$with_gtk"
1852   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1853 fi
1854
1855 # Check whether --with-motif or --without-motif was given.
1856 if test "${with_motif+set}" = set; then
1857   withval="$with_motif"
1858   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1859 fi
1860
1861 # Check whether --with-mac or --without-mac was given.
1862 if test "${with_mac+set}" = set; then
1863   withval="$with_mac"
1864   wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1865 fi
1866
1867 # Check whether --with-wine or --without-wine was given.
1868 if test "${with_wine+set}" = set; then
1869   withval="$with_wine"
1870   wxUSE_WINE="$withval" CACHE_WINE=1
1871 fi
1872
1873 # Check whether --with-msw or --without-msw was given.
1874 if test "${with_msw+set}" = set; then
1875   withval="$with_msw"
1876   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1877 fi
1878
1879 # Check whether --with-pm or --without-pm was given.
1880 if test "${with_pm+set}" = set; then
1881   withval="$with_pm"
1882   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1883 fi
1884
1885 # Check whether --with-mgl or --without-mgl was given.
1886 if test "${with_mgl+set}" = set; then
1887   withval="$with_mgl"
1888   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1889 fi
1890
1891 # Check whether --with-microwin or --without-microwin was given.
1892 if test "${with_microwin+set}" = set; then
1893   withval="$with_microwin"
1894   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1895 fi
1896
1897 # Check whether --with-x11 or --without-x11 was given.
1898 if test "${with_x11+set}" = set; then
1899   withval="$with_x11"
1900   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1901 fi
1902
1903
1904           enablestring=
1905           echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
1906 echo "configure:1907: checking for --${enablestring:-enable}-nanox" >&5
1907           no_cache=0
1908           # Check whether --enable-nanox or --disable-nanox was given.
1909 if test "${enable_nanox+set}" = set; then
1910   enableval="$enable_nanox"
1911   
1912                           if test "$enableval" = yes; then
1913                             ac_cv_use_nanox='wxUSE_NANOX=yes'
1914                           else
1915                             ac_cv_use_nanox='wxUSE_NANOX=no'
1916                           fi
1917                         
1918 else
1919   
1920                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1921                           if test "x$LINE" != x ; then
1922                             eval "DEFAULT_$LINE"
1923                           else
1924                             no_cache=1
1925                           fi
1926
1927                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1928                         
1929 fi
1930
1931
1932           eval "$ac_cv_use_nanox"
1933           if test "$no_cache" != 1; then
1934             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1935           fi
1936
1937           if test "$wxUSE_NANOX" = yes; then
1938             echo "$ac_t""yes" 1>&6
1939           else
1940             echo "$ac_t""no" 1>&6
1941           fi
1942         
1943
1944
1945           enablestring=
1946           echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
1947 echo "configure:1948: checking for --${enablestring:-enable}-gtk2" >&5
1948           no_cache=0
1949           # Check whether --enable-gtk2 or --disable-gtk2 was given.
1950 if test "${enable_gtk2+set}" = set; then
1951   enableval="$enable_gtk2"
1952   
1953                           if test "$enableval" = yes; then
1954                             ac_cv_use_gtk2='wxUSE_GTK2=yes'
1955                           else
1956                             ac_cv_use_gtk2='wxUSE_GTK2=no'
1957                           fi
1958                         
1959 else
1960   
1961                           LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1962                           if test "x$LINE" != x ; then
1963                             eval "DEFAULT_$LINE"
1964                           else
1965                             no_cache=1
1966                           fi
1967
1968                           ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
1969                         
1970 fi
1971
1972
1973           eval "$ac_cv_use_gtk2"
1974           if test "$no_cache" != 1; then
1975             echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1976           fi
1977
1978           if test "$wxUSE_GTK2" = yes; then
1979             echo "$ac_t""yes" 1>&6
1980           else
1981             echo "$ac_t""no" 1>&6
1982           fi
1983         
1984
1985
1986           echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1987 echo "configure:1988: checking for --with-libpng" >&5
1988           no_cache=0
1989           # Check whether --with-libpng or --without-libpng was given.
1990 if test "${with_libpng+set}" = set; then
1991   withval="$with_libpng"
1992   
1993                         if test "$withval" = yes; then
1994                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1995                         elif test "$withval" = no; then
1996                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
1997                         elif test "$withval" = sys; then
1998                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1999                         elif test "$withval" = builtin; then
2000                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2001                         else
2002                           { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2003                         fi
2004                       
2005 else
2006   
2007                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2008                         if test "x$LINE" != x ; then
2009                           eval "DEFAULT_$LINE"
2010                         else
2011                           no_cache=1
2012                         fi
2013
2014                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2015                       
2016 fi
2017
2018
2019           eval "$ac_cv_use_libpng"
2020           if test "$no_cache" != 1; then
2021             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2022           fi
2023
2024           if test "$wxUSE_LIBPNG" = yes; then
2025             echo "$ac_t""yes" 1>&6
2026           elif test "$wxUSE_LIBPNG" = no; then
2027             echo "$ac_t""no" 1>&6
2028           elif test "$wxUSE_LIBPNG" = sys; then
2029             echo "$ac_t""system version" 1>&6
2030           elif test "$wxUSE_LIBPNG" = builtin; then
2031             echo "$ac_t""builtin version" 1>&6
2032           else
2033             { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2034           fi
2035         
2036
2037           echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2038 echo "configure:2039: checking for --with-libjpeg" >&5
2039           no_cache=0
2040           # Check whether --with-libjpeg or --without-libjpeg was given.
2041 if test "${with_libjpeg+set}" = set; then
2042   withval="$with_libjpeg"
2043   
2044                         if test "$withval" = yes; then
2045                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2046                         elif test "$withval" = no; then
2047                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2048                         elif test "$withval" = sys; then
2049                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2050                         elif test "$withval" = builtin; then
2051                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2052                         else
2053                           { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2054                         fi
2055                       
2056 else
2057   
2058                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2059                         if test "x$LINE" != x ; then
2060                           eval "DEFAULT_$LINE"
2061                         else
2062                           no_cache=1
2063                         fi
2064
2065                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2066                       
2067 fi
2068
2069
2070           eval "$ac_cv_use_libjpeg"
2071           if test "$no_cache" != 1; then
2072             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2073           fi
2074
2075           if test "$wxUSE_LIBJPEG" = yes; then
2076             echo "$ac_t""yes" 1>&6
2077           elif test "$wxUSE_LIBJPEG" = no; then
2078             echo "$ac_t""no" 1>&6
2079           elif test "$wxUSE_LIBJPEG" = sys; then
2080             echo "$ac_t""system version" 1>&6
2081           elif test "$wxUSE_LIBJPEG" = builtin; then
2082             echo "$ac_t""builtin version" 1>&6
2083           else
2084             { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2085           fi
2086         
2087
2088           echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2089 echo "configure:2090: checking for --with-libtiff" >&5
2090           no_cache=0
2091           # Check whether --with-libtiff or --without-libtiff was given.
2092 if test "${with_libtiff+set}" = set; then
2093   withval="$with_libtiff"
2094   
2095                         if test "$withval" = yes; then
2096                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2097                         elif test "$withval" = no; then
2098                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2099                         elif test "$withval" = sys; then
2100                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2101                         elif test "$withval" = builtin; then
2102                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2103                         else
2104                           { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2105                         fi
2106                       
2107 else
2108   
2109                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2110                         if test "x$LINE" != x ; then
2111                           eval "DEFAULT_$LINE"
2112                         else
2113                           no_cache=1
2114                         fi
2115
2116                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2117                       
2118 fi
2119
2120
2121           eval "$ac_cv_use_libtiff"
2122           if test "$no_cache" != 1; then
2123             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2124           fi
2125
2126           if test "$wxUSE_LIBTIFF" = yes; then
2127             echo "$ac_t""yes" 1>&6
2128           elif test "$wxUSE_LIBTIFF" = no; then
2129             echo "$ac_t""no" 1>&6
2130           elif test "$wxUSE_LIBTIFF" = sys; then
2131             echo "$ac_t""system version" 1>&6
2132           elif test "$wxUSE_LIBTIFF" = builtin; then
2133             echo "$ac_t""builtin version" 1>&6
2134           else
2135             { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2136           fi
2137         
2138
2139           echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2140 echo "configure:2141: checking for --with-opengl" >&5
2141           no_cache=0
2142           # Check whether --with-opengl or --without-opengl was given.
2143 if test "${with_opengl+set}" = set; then
2144   withval="$with_opengl"
2145   
2146                         if test "$withval" = yes; then
2147                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
2148                         else
2149                           ac_cv_use_opengl='wxUSE_OPENGL=no'
2150                         fi
2151                       
2152 else
2153   
2154                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2155                         if test "x$LINE" != x ; then
2156                           eval "DEFAULT_$LINE"
2157                         else
2158                           no_cache=1
2159                         fi
2160
2161                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2162                       
2163 fi
2164
2165
2166           eval "$ac_cv_use_opengl"
2167           if test "$no_cache" != 1; then
2168             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2169           fi
2170
2171           if test "$wxUSE_OPENGL" = yes; then
2172             echo "$ac_t""yes" 1>&6
2173           else
2174             echo "$ac_t""no" 1>&6
2175           fi
2176         
2177
2178 fi
2179
2180
2181           echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2182 echo "configure:2183: checking for --with-dmalloc" >&5
2183           no_cache=0
2184           # Check whether --with-dmalloc or --without-dmalloc was given.
2185 if test "${with_dmalloc+set}" = set; then
2186   withval="$with_dmalloc"
2187   
2188                         if test "$withval" = yes; then
2189                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2190                         else
2191                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2192                         fi
2193                       
2194 else
2195   
2196                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2197                         if test "x$LINE" != x ; then
2198                           eval "DEFAULT_$LINE"
2199                         else
2200                           no_cache=1
2201                         fi
2202
2203                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2204                       
2205 fi
2206
2207
2208           eval "$ac_cv_use_dmalloc"
2209           if test "$no_cache" != 1; then
2210             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2211           fi
2212
2213           if test "$wxUSE_DMALLOC" = yes; then
2214             echo "$ac_t""yes" 1>&6
2215           else
2216             echo "$ac_t""no" 1>&6
2217           fi
2218         
2219
2220           echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2221 echo "configure:2222: checking for --with-regex" >&5
2222           no_cache=0
2223           # Check whether --with-regex or --without-regex was given.
2224 if test "${with_regex+set}" = set; then
2225   withval="$with_regex"
2226   
2227                         if test "$withval" = yes; then
2228                           ac_cv_use_regex='wxUSE_REGEX=yes'
2229                         elif test "$withval" = no; then
2230                           ac_cv_use_regex='wxUSE_REGEX=no'
2231                         elif test "$withval" = sys; then
2232                           ac_cv_use_regex='wxUSE_REGEX=sys'
2233                         elif test "$withval" = builtin; then
2234                           ac_cv_use_regex='wxUSE_REGEX=builtin'
2235                         else
2236                           { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2237                         fi
2238                       
2239 else
2240   
2241                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2242                         if test "x$LINE" != x ; then
2243                           eval "DEFAULT_$LINE"
2244                         else
2245                           no_cache=1
2246                         fi
2247
2248                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2249                       
2250 fi
2251
2252
2253           eval "$ac_cv_use_regex"
2254           if test "$no_cache" != 1; then
2255             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2256           fi
2257
2258           if test "$wxUSE_REGEX" = yes; then
2259             echo "$ac_t""yes" 1>&6
2260           elif test "$wxUSE_REGEX" = no; then
2261             echo "$ac_t""no" 1>&6
2262           elif test "$wxUSE_REGEX" = sys; then
2263             echo "$ac_t""system version" 1>&6
2264           elif test "$wxUSE_REGEX" = builtin; then
2265             echo "$ac_t""builtin version" 1>&6
2266           else
2267             { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2268           fi
2269         
2270
2271           echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2272 echo "configure:2273: checking for --with-zlib" >&5
2273           no_cache=0
2274           # Check whether --with-zlib or --without-zlib was given.
2275 if test "${with_zlib+set}" = set; then
2276   withval="$with_zlib"
2277   
2278                         if test "$withval" = yes; then
2279                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
2280                         elif test "$withval" = no; then
2281                           ac_cv_use_zlib='wxUSE_ZLIB=no'
2282                         elif test "$withval" = sys; then
2283                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
2284                         elif test "$withval" = builtin; then
2285                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2286                         else
2287                           { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2288                         fi
2289                       
2290 else
2291   
2292                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2293                         if test "x$LINE" != x ; then
2294                           eval "DEFAULT_$LINE"
2295                         else
2296                           no_cache=1
2297                         fi
2298
2299                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2300                       
2301 fi
2302
2303
2304           eval "$ac_cv_use_zlib"
2305           if test "$no_cache" != 1; then
2306             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2307           fi
2308
2309           if test "$wxUSE_ZLIB" = yes; then
2310             echo "$ac_t""yes" 1>&6
2311           elif test "$wxUSE_ZLIB" = no; then
2312             echo "$ac_t""no" 1>&6
2313           elif test "$wxUSE_ZLIB" = sys; then
2314             echo "$ac_t""system version" 1>&6
2315           elif test "$wxUSE_ZLIB" = builtin; then
2316             echo "$ac_t""builtin version" 1>&6
2317           else
2318             { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2319           fi
2320         
2321
2322           echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2323 echo "configure:2324: checking for --with-odbc" >&5
2324           no_cache=0
2325           # Check whether --with-odbc or --without-odbc was given.
2326 if test "${with_odbc+set}" = set; then
2327   withval="$with_odbc"
2328   
2329                         if test "$withval" = yes; then
2330                           ac_cv_use_odbc='wxUSE_ODBC=yes'
2331                         else
2332                           ac_cv_use_odbc='wxUSE_ODBC=no'
2333                         fi
2334                       
2335 else
2336   
2337                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2338                         if test "x$LINE" != x ; then
2339                           eval "DEFAULT_$LINE"
2340                         else
2341                           no_cache=1
2342                         fi
2343
2344                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2345                       
2346 fi
2347
2348
2349           eval "$ac_cv_use_odbc"
2350           if test "$no_cache" != 1; then
2351             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2352           fi
2353
2354           if test "$wxUSE_ODBC" = yes; then
2355             echo "$ac_t""yes" 1>&6
2356           else
2357             echo "$ac_t""no" 1>&6
2358           fi
2359         
2360
2361
2362
2363           enablestring=
2364           echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
2365 echo "configure:2366: checking for --${enablestring:-enable}-shared" >&5
2366           no_cache=0
2367           # Check whether --enable-shared or --disable-shared was given.
2368 if test "${enable_shared+set}" = set; then
2369   enableval="$enable_shared"
2370   
2371                           if test "$enableval" = yes; then
2372                             ac_cv_use_shared='wxUSE_SHARED=yes'
2373                           else
2374                             ac_cv_use_shared='wxUSE_SHARED=no'
2375                           fi
2376                         
2377 else
2378   
2379                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2380                           if test "x$LINE" != x ; then
2381                             eval "DEFAULT_$LINE"
2382                           else
2383                             no_cache=1
2384                           fi
2385
2386                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2387                         
2388 fi
2389
2390
2391           eval "$ac_cv_use_shared"
2392           if test "$no_cache" != 1; then
2393             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2394           fi
2395
2396           if test "$wxUSE_SHARED" = yes; then
2397             echo "$ac_t""yes" 1>&6
2398           else
2399             echo "$ac_t""no" 1>&6
2400           fi
2401         
2402
2403           enablestring=
2404           echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
2405 echo "configure:2406: checking for --${enablestring:-enable}-soname" >&5
2406           no_cache=0
2407           # Check whether --enable-soname or --disable-soname was given.
2408 if test "${enable_soname+set}" = set; then
2409   enableval="$enable_soname"
2410   
2411                           if test "$enableval" = yes; then
2412                             ac_cv_use_soname='wxUSE_SONAME=yes'
2413                           else
2414                             ac_cv_use_soname='wxUSE_SONAME=no'
2415                           fi
2416                         
2417 else
2418   
2419                           LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2420                           if test "x$LINE" != x ; then
2421                             eval "DEFAULT_$LINE"
2422                           else
2423                             no_cache=1
2424                           fi
2425
2426                           ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2427                         
2428 fi
2429
2430
2431           eval "$ac_cv_use_soname"
2432           if test "$no_cache" != 1; then
2433             echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2434           fi
2435
2436           if test "$wxUSE_SONAME" = yes; then
2437             echo "$ac_t""yes" 1>&6
2438           else
2439             echo "$ac_t""no" 1>&6
2440           fi
2441         
2442
2443           enablestring=
2444           echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
2445 echo "configure:2446: checking for --${enablestring:-enable}-optimise" >&5
2446           no_cache=0
2447           # Check whether --enable-optimise or --disable-optimise was given.
2448 if test "${enable_optimise+set}" = set; then
2449   enableval="$enable_optimise"
2450   
2451                           if test "$enableval" = yes; then
2452                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2453                           else
2454                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2455                           fi
2456                         
2457 else
2458   
2459                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2460                           if test "x$LINE" != x ; then
2461                             eval "DEFAULT_$LINE"
2462                           else
2463                             no_cache=1
2464                           fi
2465
2466                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2467                         
2468 fi
2469
2470
2471           eval "$ac_cv_use_optimise"
2472           if test "$no_cache" != 1; then
2473             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2474           fi
2475
2476           if test "$wxUSE_OPTIMISE" = yes; then
2477             echo "$ac_t""yes" 1>&6
2478           else
2479             echo "$ac_t""no" 1>&6
2480           fi
2481         
2482
2483           enablestring=
2484           echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
2485 echo "configure:2486: checking for --${enablestring:-enable}-debug" >&5
2486           no_cache=0
2487           # Check whether --enable-debug or --disable-debug was given.
2488 if test "${enable_debug+set}" = set; then
2489   enableval="$enable_debug"
2490   
2491                           if test "$enableval" = yes; then
2492                             ac_cv_use_debug='wxUSE_DEBUG=yes'
2493                           else
2494                             ac_cv_use_debug='wxUSE_DEBUG=no'
2495                           fi
2496                         
2497 else
2498   
2499                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2500                           if test "x$LINE" != x ; then
2501                             eval "DEFAULT_$LINE"
2502                           else
2503                             no_cache=1
2504                           fi
2505
2506                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2507                         
2508 fi
2509
2510
2511           eval "$ac_cv_use_debug"
2512           if test "$no_cache" != 1; then
2513             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2514           fi
2515
2516           if test "$wxUSE_DEBUG" = yes; then
2517             echo "$ac_t""yes" 1>&6
2518           else
2519             echo "$ac_t""no" 1>&6
2520           fi
2521         
2522
2523
2524           enablestring=
2525           echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
2526 echo "configure:2527: checking for --${enablestring:-enable}-precomp" >&5
2527           no_cache=0
2528           # Check whether --enable-precomp or --disable-precomp was given.
2529 if test "${enable_precomp+set}" = set; then
2530   enableval="$enable_precomp"
2531   
2532                           if test "$enableval" = yes; then
2533                             ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2534                           else
2535                             ac_cv_use_precomp='wxUSE_PRECOMP=no'
2536                           fi
2537                         
2538 else
2539   
2540                           LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2541                           if test "x$LINE" != x ; then
2542                             eval "DEFAULT_$LINE"
2543                           else
2544                             no_cache=1
2545                           fi
2546
2547                           ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2548                         
2549 fi
2550
2551
2552           eval "$ac_cv_use_precomp"
2553           if test "$no_cache" != 1; then
2554             echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2555           fi
2556
2557           if test "$wxUSE_PRECOMP" = yes; then
2558             echo "$ac_t""yes" 1>&6
2559           else
2560             echo "$ac_t""no" 1>&6
2561           fi
2562         
2563
2564 if test "$wxUSE_DEBUG" = "yes"; then
2565   DEFAULT_wxUSE_DEBUG_FLAG=yes
2566   DEFAULT_wxUSE_DEBUG_INFO=yes
2567 elif test "$wxUSE_DEBUG" = "no"; then
2568   DEFAULT_wxUSE_DEBUG_FLAG=no
2569   DEFAULT_wxUSE_DEBUG_INFO=no
2570 fi
2571
2572
2573           enablestring=
2574           echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
2575 echo "configure:2576: checking for --${enablestring:-enable}-debug_flag" >&5
2576           no_cache=0
2577           # Check whether --enable-debug_flag or --disable-debug_flag was given.
2578 if test "${enable_debug_flag+set}" = set; then
2579   enableval="$enable_debug_flag"
2580   
2581                           if test "$enableval" = yes; then
2582                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2583                           else
2584                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2585                           fi
2586                         
2587 else
2588   
2589                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2590                           if test "x$LINE" != x ; then
2591                             eval "DEFAULT_$LINE"
2592                           else
2593                             no_cache=1
2594                           fi
2595
2596                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2597                         
2598 fi
2599
2600
2601           eval "$ac_cv_use_debug_flag"
2602           if test "$no_cache" != 1; then
2603             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2604           fi
2605
2606           if test "$wxUSE_DEBUG_FLAG" = yes; then
2607             echo "$ac_t""yes" 1>&6
2608           else
2609             echo "$ac_t""no" 1>&6
2610           fi
2611         
2612
2613           enablestring=
2614           echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
2615 echo "configure:2616: checking for --${enablestring:-enable}-debug_info" >&5
2616           no_cache=0
2617           # Check whether --enable-debug_info or --disable-debug_info was given.
2618 if test "${enable_debug_info+set}" = set; then
2619   enableval="$enable_debug_info"
2620   
2621                           if test "$enableval" = yes; then
2622                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2623                           else
2624                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2625                           fi
2626                         
2627 else
2628   
2629                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2630                           if test "x$LINE" != x ; then
2631                             eval "DEFAULT_$LINE"
2632                           else
2633                             no_cache=1
2634                           fi
2635
2636                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2637                         
2638 fi
2639
2640
2641           eval "$ac_cv_use_debug_info"
2642           if test "$no_cache" != 1; then
2643             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2644           fi
2645
2646           if test "$wxUSE_DEBUG_INFO" = yes; then
2647             echo "$ac_t""yes" 1>&6
2648           else
2649             echo "$ac_t""no" 1>&6
2650           fi
2651         
2652
2653           enablestring=
2654           echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
2655 echo "configure:2656: checking for --${enablestring:-enable}-debug_gdb" >&5
2656           no_cache=0
2657           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2658 if test "${enable_debug_gdb+set}" = set; then
2659   enableval="$enable_debug_gdb"
2660   
2661                           if test "$enableval" = yes; then
2662                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2663                           else
2664                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2665                           fi
2666                         
2667 else
2668   
2669                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2670                           if test "x$LINE" != x ; then
2671                             eval "DEFAULT_$LINE"
2672                           else
2673                             no_cache=1
2674                           fi
2675
2676                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2677                         
2678 fi
2679
2680
2681           eval "$ac_cv_use_debug_gdb"
2682           if test "$no_cache" != 1; then
2683             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2684           fi
2685
2686           if test "$wxUSE_DEBUG_GDB" = yes; then
2687             echo "$ac_t""yes" 1>&6
2688           else
2689             echo "$ac_t""no" 1>&6
2690           fi
2691         
2692
2693           enablestring=
2694           echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
2695 echo "configure:2696: checking for --${enablestring:-enable}-debug_cntxt" >&5
2696           no_cache=0
2697           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2698 if test "${enable_debug_cntxt+set}" = set; then
2699   enableval="$enable_debug_cntxt"
2700   
2701                           if test "$enableval" = yes; then
2702                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2703                           else
2704                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2705                           fi
2706                         
2707 else
2708   
2709                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2710                           if test "x$LINE" != x ; then
2711                             eval "DEFAULT_$LINE"
2712                           else
2713                             no_cache=1
2714                           fi
2715
2716                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2717                         
2718 fi
2719
2720
2721           eval "$ac_cv_use_debug_cntxt"
2722           if test "$no_cache" != 1; then
2723             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2724           fi
2725
2726           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2727             echo "$ac_t""yes" 1>&6
2728           else
2729             echo "$ac_t""no" 1>&6
2730           fi
2731         
2732
2733           enablestring=
2734           echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
2735 echo "configure:2736: checking for --${enablestring:-enable}-mem_tracing" >&5
2736           no_cache=0
2737           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2738 if test "${enable_mem_tracing+set}" = set; then
2739   enableval="$enable_mem_tracing"
2740   
2741                           if test "$enableval" = yes; then
2742                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2743                           else
2744                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2745                           fi
2746                         
2747 else
2748   
2749                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2750                           if test "x$LINE" != x ; then
2751                             eval "DEFAULT_$LINE"
2752                           else
2753                             no_cache=1
2754                           fi
2755
2756                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2757                         
2758 fi
2759
2760
2761           eval "$ac_cv_use_mem_tracing"
2762           if test "$no_cache" != 1; then
2763             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2764           fi
2765
2766           if test "$wxUSE_MEM_TRACING" = yes; then
2767             echo "$ac_t""yes" 1>&6
2768           else
2769             echo "$ac_t""no" 1>&6
2770           fi
2771         
2772
2773           enablestring=
2774           echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
2775 echo "configure:2776: checking for --${enablestring:-enable}-profile" >&5
2776           no_cache=0
2777           # Check whether --enable-profile or --disable-profile was given.
2778 if test "${enable_profile+set}" = set; then
2779   enableval="$enable_profile"
2780   
2781                           if test "$enableval" = yes; then
2782                             ac_cv_use_profile='wxUSE_PROFILE=yes'
2783                           else
2784                             ac_cv_use_profile='wxUSE_PROFILE=no'
2785                           fi
2786                         
2787 else
2788   
2789                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2790                           if test "x$LINE" != x ; then
2791                             eval "DEFAULT_$LINE"
2792                           else
2793                             no_cache=1
2794                           fi
2795
2796                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2797                         
2798 fi
2799
2800
2801           eval "$ac_cv_use_profile"
2802           if test "$no_cache" != 1; then
2803             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2804           fi
2805
2806           if test "$wxUSE_PROFILE" = yes; then
2807             echo "$ac_t""yes" 1>&6
2808           else
2809             echo "$ac_t""no" 1>&6
2810           fi
2811         
2812
2813           enablestring=
2814           echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
2815 echo "configure:2816: checking for --${enablestring:-enable}-no_rtti" >&5
2816           no_cache=0
2817           # Check whether --enable-no_rtti or --disable-no_rtti was given.
2818 if test "${enable_no_rtti+set}" = set; then
2819   enableval="$enable_no_rtti"
2820   
2821                           if test "$enableval" = yes; then
2822                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2823                           else
2824                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2825                           fi
2826                         
2827 else
2828   
2829                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2830                           if test "x$LINE" != x ; then
2831                             eval "DEFAULT_$LINE"
2832                           else
2833                             no_cache=1
2834                           fi
2835
2836                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2837                         
2838 fi
2839
2840
2841           eval "$ac_cv_use_no_rtti"
2842           if test "$no_cache" != 1; then
2843             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2844           fi
2845
2846           if test "$wxUSE_NO_RTTI" = yes; then
2847             echo "$ac_t""yes" 1>&6
2848           else
2849             echo "$ac_t""no" 1>&6
2850           fi
2851         
2852
2853           enablestring=
2854           echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
2855 echo "configure:2856: checking for --${enablestring:-enable}-no_exceptions" >&5
2856           no_cache=0
2857           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2858 if test "${enable_no_exceptions+set}" = set; then
2859   enableval="$enable_no_exceptions"
2860   
2861                           if test "$enableval" = yes; then
2862                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2863                           else
2864                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2865                           fi
2866                         
2867 else
2868   
2869                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2870                           if test "x$LINE" != x ; then
2871                             eval "DEFAULT_$LINE"
2872                           else
2873                             no_cache=1
2874                           fi
2875
2876                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2877                         
2878 fi
2879
2880
2881           eval "$ac_cv_use_no_exceptions"
2882           if test "$no_cache" != 1; then
2883             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2884           fi
2885
2886           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2887             echo "$ac_t""yes" 1>&6
2888           else
2889             echo "$ac_t""no" 1>&6
2890           fi
2891         
2892
2893           enablestring=
2894           echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
2895 echo "configure:2896: checking for --${enablestring:-enable}-permissive" >&5
2896           no_cache=0
2897           # Check whether --enable-permissive or --disable-permissive was given.
2898 if test "${enable_permissive+set}" = set; then
2899   enableval="$enable_permissive"
2900   
2901                           if test "$enableval" = yes; then
2902                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2903                           else
2904                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2905                           fi
2906                         
2907 else
2908   
2909                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2910                           if test "x$LINE" != x ; then
2911                             eval "DEFAULT_$LINE"
2912                           else
2913                             no_cache=1
2914                           fi
2915
2916                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2917                         
2918 fi
2919
2920
2921           eval "$ac_cv_use_permissive"
2922           if test "$no_cache" != 1; then
2923             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2924           fi
2925
2926           if test "$wxUSE_PERMISSIVE" = yes; then
2927             echo "$ac_t""yes" 1>&6
2928           else
2929             echo "$ac_t""no" 1>&6
2930           fi
2931         
2932
2933           enablestring=
2934           echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
2935 echo "configure:2936: checking for --${enablestring:-enable}-no_deps" >&5
2936           no_cache=0
2937           # Check whether --enable-no_deps or --disable-no_deps was given.
2938 if test "${enable_no_deps+set}" = set; then
2939   enableval="$enable_no_deps"
2940   
2941                           if test "$enableval" = yes; then
2942                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2943                           else
2944                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2945                           fi
2946                         
2947 else
2948   
2949                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2950                           if test "x$LINE" != x ; then
2951                             eval "DEFAULT_$LINE"
2952                           else
2953                             no_cache=1
2954                           fi
2955
2956                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2957                         
2958 fi
2959
2960
2961           eval "$ac_cv_use_no_deps"
2962           if test "$no_cache" != 1; then
2963             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2964           fi
2965
2966           if test "$wxUSE_NO_DEPS" = yes; then
2967             echo "$ac_t""yes" 1>&6
2968           else
2969             echo "$ac_t""no" 1>&6
2970           fi
2971         
2972
2973
2974           enablestring=
2975           echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
2976 echo "configure:2977: checking for --${enablestring:-enable}-compat20" >&5
2977           no_cache=0
2978           # Check whether --enable-compat20 or --disable-compat20 was given.
2979 if test "${enable_compat20+set}" = set; then
2980   enableval="$enable_compat20"
2981   
2982                           if test "$enableval" = yes; then
2983                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2984                           else
2985                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2986                           fi
2987                         
2988 else
2989   
2990                           LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2991                           if test "x$LINE" != x ; then
2992                             eval "DEFAULT_$LINE"
2993                           else
2994                             no_cache=1
2995                           fi
2996
2997                           ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2998                         
2999 fi
3000
3001
3002           eval "$ac_cv_use_compat20"
3003           if test "$no_cache" != 1; then
3004             echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3005           fi
3006
3007           if test "$WXWIN_COMPATIBILITY_2" = yes; then
3008             echo "$ac_t""yes" 1>&6
3009           else
3010             echo "$ac_t""no" 1>&6
3011           fi
3012         
3013
3014           enablestring=
3015           echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
3016 echo "configure:3017: checking for --${enablestring:-enable}-compat22" >&5
3017           no_cache=0
3018           # Check whether --enable-compat22 or --disable-compat22 was given.
3019 if test "${enable_compat22+set}" = set; then
3020   enableval="$enable_compat22"
3021   
3022                           if test "$enableval" = yes; then
3023                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3024                           else
3025                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3026                           fi
3027                         
3028 else
3029   
3030                           LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3031                           if test "x$LINE" != x ; then
3032                             eval "DEFAULT_$LINE"
3033                           else
3034                             no_cache=1
3035                           fi
3036
3037                           ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3038                         
3039 fi
3040
3041
3042           eval "$ac_cv_use_compat22"
3043           if test "$no_cache" != 1; then
3044             echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3045           fi
3046
3047           if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3048             echo "$ac_t""yes" 1>&6
3049           else
3050             echo "$ac_t""no" 1>&6
3051           fi
3052         
3053
3054           enablestring=disable
3055           echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
3056 echo "configure:3057: checking for --${enablestring:-enable}-compat24" >&5
3057           no_cache=0
3058           # Check whether --enable-compat24 or --disable-compat24 was given.
3059 if test "${enable_compat24+set}" = set; then
3060   enableval="$enable_compat24"
3061   
3062                           if test "$enableval" = yes; then
3063                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3064                           else
3065                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3066                           fi
3067                         
3068 else
3069   
3070                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3071                           if test "x$LINE" != x ; then
3072                             eval "DEFAULT_$LINE"
3073                           else
3074                             no_cache=1
3075                           fi
3076
3077                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3078                         
3079 fi
3080
3081
3082           eval "$ac_cv_use_compat24"
3083           if test "$no_cache" != 1; then
3084             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3085           fi
3086
3087           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3088             echo "$ac_t""yes" 1>&6
3089           else
3090             echo "$ac_t""no" 1>&6
3091           fi
3092         
3093
3094 # Check whether --enable-rpath or --disable-rpath was given.
3095 if test "${enable_rpath+set}" = set; then
3096   enableval="$enable_rpath"
3097   wxRPATH_DIR="$enableval"
3098 fi
3099
3100
3101 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3102    WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3103 fi
3104
3105
3106
3107
3108           enablestring=
3109           echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
3110 echo "configure:3111: checking for --${enablestring:-enable}-intl" >&5
3111           no_cache=0
3112           # Check whether --enable-intl or --disable-intl was given.
3113 if test "${enable_intl+set}" = set; then
3114   enableval="$enable_intl"
3115   
3116                           if test "$enableval" = yes; then
3117                             ac_cv_use_intl='wxUSE_INTL=yes'
3118                           else
3119                             ac_cv_use_intl='wxUSE_INTL=no'
3120                           fi
3121                         
3122 else
3123   
3124                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3125                           if test "x$LINE" != x ; then
3126                             eval "DEFAULT_$LINE"
3127                           else
3128                             no_cache=1
3129                           fi
3130
3131                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3132                         
3133 fi
3134
3135
3136           eval "$ac_cv_use_intl"
3137           if test "$no_cache" != 1; then
3138             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3139           fi
3140
3141           if test "$wxUSE_INTL" = yes; then
3142             echo "$ac_t""yes" 1>&6
3143           else
3144             echo "$ac_t""no" 1>&6
3145           fi
3146         
3147
3148           enablestring=
3149           echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
3150 echo "configure:3151: checking for --${enablestring:-enable}-config" >&5
3151           no_cache=0
3152           # Check whether --enable-config or --disable-config was given.
3153 if test "${enable_config+set}" = set; then
3154   enableval="$enable_config"
3155   
3156                           if test "$enableval" = yes; then
3157                             ac_cv_use_config='wxUSE_CONFIG=yes'
3158                           else
3159                             ac_cv_use_config='wxUSE_CONFIG=no'
3160                           fi
3161                         
3162 else
3163   
3164                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3165                           if test "x$LINE" != x ; then
3166                             eval "DEFAULT_$LINE"
3167                           else
3168                             no_cache=1
3169                           fi
3170
3171                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3172                         
3173 fi
3174
3175
3176           eval "$ac_cv_use_config"
3177           if test "$no_cache" != 1; then
3178             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3179           fi
3180
3181           if test "$wxUSE_CONFIG" = yes; then
3182             echo "$ac_t""yes" 1>&6
3183           else
3184             echo "$ac_t""no" 1>&6
3185           fi
3186         
3187
3188
3189           enablestring=
3190           echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
3191 echo "configure:3192: checking for --${enablestring:-enable}-protocols" >&5
3192           no_cache=0
3193           # Check whether --enable-protocols or --disable-protocols was given.
3194 if test "${enable_protocols+set}" = set; then
3195   enableval="$enable_protocols"
3196   
3197                           if test "$enableval" = yes; then
3198                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3199                           else
3200                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3201                           fi
3202                         
3203 else
3204   
3205                           LINE=`grep "wxUSE_PROTOCOL" ${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_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3213                         
3214 fi
3215
3216
3217           eval "$ac_cv_use_protocols"
3218           if test "$no_cache" != 1; then
3219             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3220           fi
3221
3222           if test "$wxUSE_PROTOCOL" = yes; then
3223             echo "$ac_t""yes" 1>&6
3224           else
3225             echo "$ac_t""no" 1>&6
3226           fi
3227         
3228
3229           enablestring=
3230           echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
3231 echo "configure:3232: checking for --${enablestring:-enable}-ftp" >&5
3232           no_cache=0
3233           # Check whether --enable-ftp or --disable-ftp was given.
3234 if test "${enable_ftp+set}" = set; then
3235   enableval="$enable_ftp"
3236   
3237                           if test "$enableval" = yes; then
3238                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3239                           else
3240                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3241                           fi
3242                         
3243 else
3244   
3245                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3246                           if test "x$LINE" != x ; then
3247                             eval "DEFAULT_$LINE"
3248                           else
3249                             no_cache=1
3250                           fi
3251
3252                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3253                         
3254 fi
3255
3256
3257           eval "$ac_cv_use_ftp"
3258           if test "$no_cache" != 1; then
3259             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3260           fi
3261
3262           if test "$wxUSE_PROTOCOL_FTP" = yes; then
3263             echo "$ac_t""yes" 1>&6
3264           else
3265             echo "$ac_t""no" 1>&6
3266           fi
3267         
3268
3269           enablestring=
3270           echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
3271 echo "configure:3272: checking for --${enablestring:-enable}-http" >&5
3272           no_cache=0
3273           # Check whether --enable-http or --disable-http was given.
3274 if test "${enable_http+set}" = set; then
3275   enableval="$enable_http"
3276   
3277                           if test "$enableval" = yes; then
3278                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3279                           else
3280                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3281                           fi
3282                         
3283 else
3284   
3285                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3286                           if test "x$LINE" != x ; then
3287                             eval "DEFAULT_$LINE"
3288                           else
3289                             no_cache=1
3290                           fi
3291
3292                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3293                         
3294 fi
3295
3296
3297           eval "$ac_cv_use_http"
3298           if test "$no_cache" != 1; then
3299             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3300           fi
3301
3302           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3303             echo "$ac_t""yes" 1>&6
3304           else
3305             echo "$ac_t""no" 1>&6
3306           fi
3307         
3308
3309           enablestring=
3310           echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
3311 echo "configure:3312: checking for --${enablestring:-enable}-fileproto" >&5
3312           no_cache=0
3313           # Check whether --enable-fileproto or --disable-fileproto was given.
3314 if test "${enable_fileproto+set}" = set; then
3315   enableval="$enable_fileproto"
3316   
3317                           if test "$enableval" = yes; then
3318                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3319                           else
3320                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3321                           fi
3322                         
3323 else
3324   
3325                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3326                           if test "x$LINE" != x ; then
3327                             eval "DEFAULT_$LINE"
3328                           else
3329                             no_cache=1
3330                           fi
3331
3332                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3333                         
3334 fi
3335
3336
3337           eval "$ac_cv_use_fileproto"
3338           if test "$no_cache" != 1; then
3339             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3340           fi
3341
3342           if test "$wxUSE_PROTOCOL_FILE" = yes; then
3343             echo "$ac_t""yes" 1>&6
3344           else
3345             echo "$ac_t""no" 1>&6
3346           fi
3347         
3348
3349           enablestring=
3350           echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
3351 echo "configure:3352: checking for --${enablestring:-enable}-sockets" >&5
3352           no_cache=0
3353           # Check whether --enable-sockets or --disable-sockets was given.
3354 if test "${enable_sockets+set}" = set; then
3355   enableval="$enable_sockets"
3356   
3357                           if test "$enableval" = yes; then
3358                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3359                           else
3360                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
3361                           fi
3362                         
3363 else
3364   
3365                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3366                           if test "x$LINE" != x ; then
3367                             eval "DEFAULT_$LINE"
3368                           else
3369                             no_cache=1
3370                           fi
3371
3372                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3373                         
3374 fi
3375
3376
3377           eval "$ac_cv_use_sockets"
3378           if test "$no_cache" != 1; then
3379             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3380           fi
3381
3382           if test "$wxUSE_SOCKETS" = yes; then
3383             echo "$ac_t""yes" 1>&6
3384           else
3385             echo "$ac_t""no" 1>&6
3386           fi
3387         
3388
3389           enablestring=
3390           echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
3391 echo "configure:3392: checking for --${enablestring:-enable}-ole" >&5
3392           no_cache=0
3393           # Check whether --enable-ole or --disable-ole was given.
3394 if test "${enable_ole+set}" = set; then
3395   enableval="$enable_ole"
3396   
3397                           if test "$enableval" = yes; then
3398                             ac_cv_use_ole='wxUSE_OLE=yes'
3399                           else
3400                             ac_cv_use_ole='wxUSE_OLE=no'
3401                           fi
3402                         
3403 else
3404   
3405                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3406                           if test "x$LINE" != x ; then
3407                             eval "DEFAULT_$LINE"
3408                           else
3409                             no_cache=1
3410                           fi
3411
3412                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3413                         
3414 fi
3415
3416
3417           eval "$ac_cv_use_ole"
3418           if test "$no_cache" != 1; then
3419             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3420           fi
3421
3422           if test "$wxUSE_OLE" = yes; then
3423             echo "$ac_t""yes" 1>&6
3424           else
3425             echo "$ac_t""no" 1>&6
3426           fi
3427         
3428
3429           enablestring=
3430           echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
3431 echo "configure:3432: checking for --${enablestring:-enable}-dataobj" >&5
3432           no_cache=0
3433           # Check whether --enable-dataobj or --disable-dataobj was given.
3434 if test "${enable_dataobj+set}" = set; then
3435   enableval="$enable_dataobj"
3436   
3437                           if test "$enableval" = yes; then
3438                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3439                           else
3440                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3441                           fi
3442                         
3443 else
3444   
3445                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3446                           if test "x$LINE" != x ; then
3447                             eval "DEFAULT_$LINE"
3448                           else
3449                             no_cache=1
3450                           fi
3451
3452                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3453                         
3454 fi
3455
3456
3457           eval "$ac_cv_use_dataobj"
3458           if test "$no_cache" != 1; then
3459             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3460           fi
3461
3462           if test "$wxUSE_DATAOBJ" = yes; then
3463             echo "$ac_t""yes" 1>&6
3464           else
3465             echo "$ac_t""no" 1>&6
3466           fi
3467         
3468
3469
3470           enablestring=
3471           echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
3472 echo "configure:3473: checking for --${enablestring:-enable}-ipc" >&5
3473           no_cache=0
3474           # Check whether --enable-ipc or --disable-ipc was given.
3475 if test "${enable_ipc+set}" = set; then
3476   enableval="$enable_ipc"
3477   
3478                           if test "$enableval" = yes; then
3479                             ac_cv_use_ipc='wxUSE_IPC=yes'
3480                           else
3481                             ac_cv_use_ipc='wxUSE_IPC=no'
3482                           fi
3483                         
3484 else
3485   
3486                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3487                           if test "x$LINE" != x ; then
3488                             eval "DEFAULT_$LINE"
3489                           else
3490                             no_cache=1
3491                           fi
3492
3493                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3494                         
3495 fi
3496
3497
3498           eval "$ac_cv_use_ipc"
3499           if test "$no_cache" != 1; then
3500             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3501           fi
3502
3503           if test "$wxUSE_IPC" = yes; then
3504             echo "$ac_t""yes" 1>&6
3505           else
3506             echo "$ac_t""no" 1>&6
3507           fi
3508         
3509
3510
3511           enablestring=
3512           echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
3513 echo "configure:3514: checking for --${enablestring:-enable}-cmdline" >&5
3514           no_cache=0
3515           # Check whether --enable-cmdline or --disable-cmdline was given.
3516 if test "${enable_cmdline+set}" = set; then
3517   enableval="$enable_cmdline"
3518   
3519                           if test "$enableval" = yes; then
3520                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3521                           else
3522                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3523                           fi
3524                         
3525 else
3526   
3527                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3528                           if test "x$LINE" != x ; then
3529                             eval "DEFAULT_$LINE"
3530                           else
3531                             no_cache=1
3532                           fi
3533
3534                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3535                         
3536 fi
3537
3538
3539           eval "$ac_cv_use_cmdline"
3540           if test "$no_cache" != 1; then
3541             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3542           fi
3543
3544           if test "$wxUSE_CMDLINE_PARSER" = yes; then
3545             echo "$ac_t""yes" 1>&6
3546           else
3547             echo "$ac_t""no" 1>&6
3548           fi
3549         
3550
3551           enablestring=
3552           echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
3553 echo "configure:3554: checking for --${enablestring:-enable}-datetime" >&5
3554           no_cache=0
3555           # Check whether --enable-datetime or --disable-datetime was given.
3556 if test "${enable_datetime+set}" = set; then
3557   enableval="$enable_datetime"
3558   
3559                           if test "$enableval" = yes; then
3560                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
3561                           else
3562                             ac_cv_use_datetime='wxUSE_DATETIME=no'
3563                           fi
3564                         
3565 else
3566   
3567                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3568                           if test "x$LINE" != x ; then
3569                             eval "DEFAULT_$LINE"
3570                           else
3571                             no_cache=1
3572                           fi
3573
3574                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3575                         
3576 fi
3577
3578
3579           eval "$ac_cv_use_datetime"
3580           if test "$no_cache" != 1; then
3581             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3582           fi
3583
3584           if test "$wxUSE_DATETIME" = yes; then
3585             echo "$ac_t""yes" 1>&6
3586           else
3587             echo "$ac_t""no" 1>&6
3588           fi
3589         
3590
3591           enablestring=
3592           echo $ac_n "checking for --${enablestring:-enable}-timedate""... $ac_c" 1>&6
3593 echo "configure:3594: checking for --${enablestring:-enable}-timedate" >&5
3594           no_cache=0
3595           # Check whether --enable-timedate or --disable-timedate was given.
3596 if test "${enable_timedate+set}" = set; then
3597   enableval="$enable_timedate"
3598   
3599                           if test "$enableval" = yes; then
3600                             ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3601                           else
3602                             ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3603                           fi
3604                         
3605 else
3606   
3607                           LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3608                           if test "x$LINE" != x ; then
3609                             eval "DEFAULT_$LINE"
3610                           else
3611                             no_cache=1
3612                           fi
3613
3614                           ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3615                         
3616 fi
3617
3618
3619           eval "$ac_cv_use_timedate"
3620           if test "$no_cache" != 1; then
3621             echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3622           fi
3623
3624           if test "$wxUSE_TIMEDATE" = yes; then
3625             echo "$ac_t""yes" 1>&6
3626           else
3627             echo "$ac_t""no" 1>&6
3628           fi
3629         
3630
3631           enablestring=
3632           echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
3633 echo "configure:3634: checking for --${enablestring:-enable}-stopwatch" >&5
3634           no_cache=0
3635           # Check whether --enable-stopwatch or --disable-stopwatch was given.
3636 if test "${enable_stopwatch+set}" = set; then
3637   enableval="$enable_stopwatch"
3638   
3639                           if test "$enableval" = yes; then
3640                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3641                           else
3642                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3643                           fi
3644                         
3645 else
3646   
3647                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3648                           if test "x$LINE" != x ; then
3649                             eval "DEFAULT_$LINE"
3650                           else
3651                             no_cache=1
3652                           fi
3653
3654                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3655                         
3656 fi
3657
3658
3659           eval "$ac_cv_use_stopwatch"
3660           if test "$no_cache" != 1; then
3661             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3662           fi
3663
3664           if test "$wxUSE_STOPWATCH" = yes; then
3665             echo "$ac_t""yes" 1>&6
3666           else
3667             echo "$ac_t""no" 1>&6
3668           fi
3669         
3670
3671           enablestring=
3672           echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
3673 echo "configure:3674: checking for --${enablestring:-enable}-dialupman" >&5
3674           no_cache=0
3675           # Check whether --enable-dialupman or --disable-dialupman was given.
3676 if test "${enable_dialupman+set}" = set; then
3677   enableval="$enable_dialupman"
3678   
3679                           if test "$enableval" = yes; then
3680                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3681                           else
3682                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3683                           fi
3684                         
3685 else
3686   
3687                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3688                           if test "x$LINE" != x ; then
3689                             eval "DEFAULT_$LINE"
3690                           else
3691                             no_cache=1
3692                           fi
3693
3694                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3695                         
3696 fi
3697
3698
3699           eval "$ac_cv_use_dialupman"
3700           if test "$no_cache" != 1; then
3701             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3702           fi
3703
3704           if test "$wxUSE_DIALUP_MANAGER" = yes; then
3705             echo "$ac_t""yes" 1>&6
3706           else
3707             echo "$ac_t""no" 1>&6
3708           fi
3709         
3710
3711           enablestring=
3712           echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
3713 echo "configure:3714: checking for --${enablestring:-enable}-apple_ieee" >&5
3714           no_cache=0
3715           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3716 if test "${enable_apple_ieee+set}" = set; then
3717   enableval="$enable_apple_ieee"
3718   
3719                           if test "$enableval" = yes; then
3720                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3721                           else
3722                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3723                           fi
3724                         
3725 else
3726   
3727                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3728                           if test "x$LINE" != x ; then
3729                             eval "DEFAULT_$LINE"
3730                           else
3731                             no_cache=1
3732                           fi
3733
3734                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3735                         
3736 fi
3737
3738
3739           eval "$ac_cv_use_apple_ieee"
3740           if test "$no_cache" != 1; then
3741             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3742           fi
3743
3744           if test "$wxUSE_APPLE_IEEE" = yes; then
3745             echo "$ac_t""yes" 1>&6
3746           else
3747             echo "$ac_t""no" 1>&6
3748           fi
3749         
3750
3751           enablestring=
3752           echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
3753 echo "configure:3754: checking for --${enablestring:-enable}-timer" >&5
3754           no_cache=0
3755           # Check whether --enable-timer or --disable-timer was given.
3756 if test "${enable_timer+set}" = set; then
3757   enableval="$enable_timer"
3758   
3759                           if test "$enableval" = yes; then
3760                             ac_cv_use_timer='wxUSE_TIMER=yes'
3761                           else
3762                             ac_cv_use_timer='wxUSE_TIMER=no'
3763                           fi
3764                         
3765 else
3766   
3767                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3768                           if test "x$LINE" != x ; then
3769                             eval "DEFAULT_$LINE"
3770                           else
3771                             no_cache=1
3772                           fi
3773
3774                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3775                         
3776 fi
3777
3778
3779           eval "$ac_cv_use_timer"
3780           if test "$no_cache" != 1; then
3781             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3782           fi
3783
3784           if test "$wxUSE_TIMER" = yes; then
3785             echo "$ac_t""yes" 1>&6
3786           else
3787             echo "$ac_t""no" 1>&6
3788           fi
3789         
3790
3791           enablestring=
3792           echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
3793 echo "configure:3794: checking for --${enablestring:-enable}-wave" >&5
3794           no_cache=0
3795           # Check whether --enable-wave or --disable-wave was given.
3796 if test "${enable_wave+set}" = set; then
3797   enableval="$enable_wave"
3798   
3799                           if test "$enableval" = yes; then
3800                             ac_cv_use_wave='wxUSE_WAVE=yes'
3801                           else
3802                             ac_cv_use_wave='wxUSE_WAVE=no'
3803                           fi
3804                         
3805 else
3806   
3807                           LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3808                           if test "x$LINE" != x ; then
3809                             eval "DEFAULT_$LINE"
3810                           else
3811                             no_cache=1
3812                           fi
3813
3814                           ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3815                         
3816 fi
3817
3818
3819           eval "$ac_cv_use_wave"
3820           if test "$no_cache" != 1; then
3821             echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3822           fi
3823
3824           if test "$wxUSE_WAVE" = yes; then
3825             echo "$ac_t""yes" 1>&6
3826           else
3827             echo "$ac_t""no" 1>&6
3828           fi
3829         
3830
3831           enablestring=
3832           echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
3833 echo "configure:3834: checking for --${enablestring:-enable}-fraction" >&5
3834           no_cache=0
3835           # Check whether --enable-fraction or --disable-fraction was given.
3836 if test "${enable_fraction+set}" = set; then
3837   enableval="$enable_fraction"
3838   
3839                           if test "$enableval" = yes; then
3840                             ac_cv_use_fraction='wxUSE_FRACTION=yes'
3841                           else
3842                             ac_cv_use_fraction='wxUSE_FRACTION=no'
3843                           fi
3844                         
3845 else
3846   
3847                           LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3848                           if test "x$LINE" != x ; then
3849                             eval "DEFAULT_$LINE"
3850                           else
3851                             no_cache=1
3852                           fi
3853
3854                           ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3855                         
3856 fi
3857
3858
3859           eval "$ac_cv_use_fraction"
3860           if test "$no_cache" != 1; then
3861             echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3862           fi
3863
3864           if test "$wxUSE_FRACTION" = yes; then
3865             echo "$ac_t""yes" 1>&6
3866           else
3867             echo "$ac_t""no" 1>&6
3868           fi
3869         
3870
3871           enablestring=
3872           echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
3873 echo "configure:3874: checking for --${enablestring:-enable}-dynlib" >&5
3874           no_cache=0
3875           # Check whether --enable-dynlib or --disable-dynlib was given.
3876 if test "${enable_dynlib+set}" = set; then
3877   enableval="$enable_dynlib"
3878   
3879                           if test "$enableval" = yes; then
3880                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3881                           else
3882                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3883                           fi
3884                         
3885 else
3886   
3887                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3888                           if test "x$LINE" != x ; then
3889                             eval "DEFAULT_$LINE"
3890                           else
3891                             no_cache=1
3892                           fi
3893
3894                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3895                         
3896 fi
3897
3898
3899           eval "$ac_cv_use_dynlib"
3900           if test "$no_cache" != 1; then
3901             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3902           fi
3903
3904           if test "$wxUSE_DYNLIB_CLASS" = yes; then
3905             echo "$ac_t""yes" 1>&6
3906           else
3907             echo "$ac_t""no" 1>&6
3908           fi
3909         
3910
3911           enablestring=
3912           echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
3913 echo "configure:3914: checking for --${enablestring:-enable}-dynamicloader" >&5
3914           no_cache=0
3915           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3916 if test "${enable_dynamicloader+set}" = set; then
3917   enableval="$enable_dynamicloader"
3918   
3919                           if test "$enableval" = yes; then
3920                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3921                           else
3922                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3923                           fi
3924                         
3925 else
3926   
3927                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3928                           if test "x$LINE" != x ; then
3929                             eval "DEFAULT_$LINE"
3930                           else
3931                             no_cache=1
3932                           fi
3933
3934                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3935                         
3936 fi
3937
3938
3939           eval "$ac_cv_use_dynamicloader"
3940           if test "$no_cache" != 1; then
3941             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3942           fi
3943
3944           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3945             echo "$ac_t""yes" 1>&6
3946           else
3947             echo "$ac_t""no" 1>&6
3948           fi
3949         
3950
3951           enablestring=
3952           echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
3953 echo "configure:3954: checking for --${enablestring:-enable}-longlong" >&5
3954           no_cache=0
3955           # Check whether --enable-longlong or --disable-longlong was given.
3956 if test "${enable_longlong+set}" = set; then
3957   enableval="$enable_longlong"
3958   
3959                           if test "$enableval" = yes; then
3960                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3961                           else
3962                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
3963                           fi
3964                         
3965 else
3966   
3967                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3968                           if test "x$LINE" != x ; then
3969                             eval "DEFAULT_$LINE"
3970                           else
3971                             no_cache=1
3972                           fi
3973
3974                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3975                         
3976 fi
3977
3978
3979           eval "$ac_cv_use_longlong"
3980           if test "$no_cache" != 1; then
3981             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3982           fi
3983
3984           if test "$wxUSE_LONGLONG" = yes; then
3985             echo "$ac_t""yes" 1>&6
3986           else
3987             echo "$ac_t""no" 1>&6
3988           fi
3989         
3990
3991           enablestring=
3992           echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
3993 echo "configure:3994: checking for --${enablestring:-enable}-geometry" >&5
3994           no_cache=0
3995           # Check whether --enable-geometry or --disable-geometry was given.
3996 if test "${enable_geometry+set}" = set; then
3997   enableval="$enable_geometry"
3998   
3999                           if test "$enableval" = yes; then
4000                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4001                           else
4002                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4003                           fi
4004                         
4005 else
4006   
4007                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4008                           if test "x$LINE" != x ; then
4009                             eval "DEFAULT_$LINE"
4010                           else
4011                             no_cache=1
4012                           fi
4013
4014                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
4015                         
4016 fi
4017
4018
4019           eval "$ac_cv_use_geometry"
4020           if test "$no_cache" != 1; then
4021             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4022           fi
4023
4024           if test "$wxUSE_GEOMETRY" = yes; then
4025             echo "$ac_t""yes" 1>&6
4026           else
4027             echo "$ac_t""no" 1>&6
4028           fi
4029         
4030
4031           enablestring=
4032           echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
4033 echo "configure:4034: checking for --${enablestring:-enable}-log" >&5
4034           no_cache=0
4035           # Check whether --enable-log or --disable-log was given.
4036 if test "${enable_log+set}" = set; then
4037   enableval="$enable_log"
4038   
4039                           if test "$enableval" = yes; then
4040                             ac_cv_use_log='wxUSE_LOG=yes'
4041                           else
4042                             ac_cv_use_log='wxUSE_LOG=no'
4043                           fi
4044                         
4045 else
4046   
4047                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4048                           if test "x$LINE" != x ; then
4049                             eval "DEFAULT_$LINE"
4050                           else
4051                             no_cache=1
4052                           fi
4053
4054                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4055                         
4056 fi
4057
4058
4059           eval "$ac_cv_use_log"
4060           if test "$no_cache" != 1; then
4061             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4062           fi
4063
4064           if test "$wxUSE_LOG" = yes; then
4065             echo "$ac_t""yes" 1>&6
4066           else
4067             echo "$ac_t""no" 1>&6
4068           fi
4069         
4070
4071           enablestring=
4072           echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
4073 echo "configure:4074: checking for --${enablestring:-enable}-streams" >&5
4074           no_cache=0
4075           # Check whether --enable-streams or --disable-streams was given.
4076 if test "${enable_streams+set}" = set; then
4077   enableval="$enable_streams"
4078   
4079                           if test "$enableval" = yes; then
4080                             ac_cv_use_streams='wxUSE_STREAMS=yes'
4081                           else
4082                             ac_cv_use_streams='wxUSE_STREAMS=no'
4083                           fi
4084                         
4085 else
4086   
4087                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4088                           if test "x$LINE" != x ; then
4089                             eval "DEFAULT_$LINE"
4090                           else
4091                             no_cache=1
4092                           fi
4093
4094                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4095                         
4096 fi
4097
4098
4099           eval "$ac_cv_use_streams"
4100           if test "$no_cache" != 1; then
4101             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4102           fi
4103
4104           if test "$wxUSE_STREAMS" = yes; then
4105             echo "$ac_t""yes" 1>&6
4106           else
4107             echo "$ac_t""no" 1>&6
4108           fi
4109         
4110
4111           enablestring=
4112           echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
4113 echo "configure:4114: checking for --${enablestring:-enable}-file" >&5
4114           no_cache=0
4115           # Check whether --enable-file or --disable-file was given.
4116 if test "${enable_file+set}" = set; then
4117   enableval="$enable_file"
4118   
4119                           if test "$enableval" = yes; then
4120                             ac_cv_use_file='wxUSE_FILE=yes'
4121                           else
4122                             ac_cv_use_file='wxUSE_FILE=no'
4123                           fi
4124                         
4125 else
4126   
4127                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4128                           if test "x$LINE" != x ; then
4129                             eval "DEFAULT_$LINE"
4130                           else
4131                             no_cache=1
4132                           fi
4133
4134                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4135                         
4136 fi
4137
4138
4139           eval "$ac_cv_use_file"
4140           if test "$no_cache" != 1; then
4141             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4142           fi
4143
4144           if test "$wxUSE_FILE" = yes; then
4145             echo "$ac_t""yes" 1>&6
4146           else
4147             echo "$ac_t""no" 1>&6
4148           fi
4149         
4150
4151           enablestring=
4152           echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
4153 echo "configure:4154: checking for --${enablestring:-enable}-ffile" >&5
4154           no_cache=0
4155           # Check whether --enable-ffile or --disable-ffile was given.
4156 if test "${enable_ffile+set}" = set; then
4157   enableval="$enable_ffile"
4158   
4159                           if test "$enableval" = yes; then
4160                             ac_cv_use_ffile='wxUSE_FFILE=yes'
4161                           else
4162                             ac_cv_use_ffile='wxUSE_FFILE=no'
4163                           fi
4164                         
4165 else
4166   
4167                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4168                           if test "x$LINE" != x ; then
4169                             eval "DEFAULT_$LINE"
4170                           else
4171                             no_cache=1
4172                           fi
4173
4174                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4175                         
4176 fi
4177
4178
4179           eval "$ac_cv_use_ffile"
4180           if test "$no_cache" != 1; then
4181             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4182           fi
4183
4184           if test "$wxUSE_FFILE" = yes; then
4185             echo "$ac_t""yes" 1>&6
4186           else
4187             echo "$ac_t""no" 1>&6
4188           fi
4189         
4190
4191           enablestring=
4192           echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
4193 echo "configure:4194: checking for --${enablestring:-enable}-textbuf" >&5
4194           no_cache=0
4195           # Check whether --enable-textbuf or --disable-textbuf was given.
4196 if test "${enable_textbuf+set}" = set; then
4197   enableval="$enable_textbuf"
4198   
4199                           if test "$enableval" = yes; then
4200                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4201                           else
4202                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4203                           fi
4204                         
4205 else
4206   
4207                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4208                           if test "x$LINE" != x ; then
4209                             eval "DEFAULT_$LINE"
4210                           else
4211                             no_cache=1
4212                           fi
4213
4214                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4215                         
4216 fi
4217
4218
4219           eval "$ac_cv_use_textbuf"
4220           if test "$no_cache" != 1; then
4221             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4222           fi
4223
4224           if test "$wxUSE_TEXTBUFFER" = yes; then
4225             echo "$ac_t""yes" 1>&6
4226           else
4227             echo "$ac_t""no" 1>&6
4228           fi
4229         
4230
4231           enablestring=
4232           echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
4233 echo "configure:4234: checking for --${enablestring:-enable}-textfile" >&5
4234           no_cache=0
4235           # Check whether --enable-textfile or --disable-textfile was given.
4236 if test "${enable_textfile+set}" = set; then
4237   enableval="$enable_textfile"
4238   
4239                           if test "$enableval" = yes; then
4240                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4241                           else
4242                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4243                           fi
4244                         
4245 else
4246   
4247                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4248                           if test "x$LINE" != x ; then
4249                             eval "DEFAULT_$LINE"
4250                           else
4251                             no_cache=1
4252                           fi
4253
4254                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4255                         
4256 fi
4257
4258
4259           eval "$ac_cv_use_textfile"
4260           if test "$no_cache" != 1; then
4261             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4262           fi
4263
4264           if test "$wxUSE_TEXTFILE" = yes; then
4265             echo "$ac_t""yes" 1>&6
4266           else
4267             echo "$ac_t""no" 1>&6
4268           fi
4269         
4270
4271           enablestring=
4272           echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
4273 echo "configure:4274: checking for --${enablestring:-enable}-fontmap" >&5
4274           no_cache=0
4275           # Check whether --enable-fontmap or --disable-fontmap was given.
4276 if test "${enable_fontmap+set}" = set; then
4277   enableval="$enable_fontmap"
4278   
4279                           if test "$enableval" = yes; then
4280                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4281                           else
4282                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4283                           fi
4284                         
4285 else
4286   
4287                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4288                           if test "x$LINE" != x ; then
4289                             eval "DEFAULT_$LINE"
4290                           else
4291                             no_cache=1
4292                           fi
4293
4294                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4295                         
4296 fi
4297
4298
4299           eval "$ac_cv_use_fontmap"
4300           if test "$no_cache" != 1; then
4301             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4302           fi
4303
4304           if test "$wxUSE_FONTMAP" = yes; then
4305             echo "$ac_t""yes" 1>&6
4306           else
4307             echo "$ac_t""no" 1>&6
4308           fi
4309         
4310
4311           enablestring=
4312           echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
4313 echo "configure:4314: checking for --${enablestring:-enable}-unicode" >&5
4314           no_cache=0
4315           # Check whether --enable-unicode or --disable-unicode was given.
4316 if test "${enable_unicode+set}" = set; then
4317   enableval="$enable_unicode"
4318   
4319                           if test "$enableval" = yes; then
4320                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
4321                           else
4322                             ac_cv_use_unicode='wxUSE_UNICODE=no'
4323                           fi
4324                         
4325 else
4326   
4327                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4328                           if test "x$LINE" != x ; then
4329                             eval "DEFAULT_$LINE"
4330                           else
4331                             no_cache=1
4332                           fi
4333
4334                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4335                         
4336 fi
4337
4338
4339           eval "$ac_cv_use_unicode"
4340           if test "$no_cache" != 1; then
4341             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4342           fi
4343
4344           if test "$wxUSE_UNICODE" = yes; then
4345             echo "$ac_t""yes" 1>&6
4346           else
4347             echo "$ac_t""no" 1>&6
4348           fi
4349         
4350
4351           enablestring=
4352           echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
4353 echo "configure:4354: checking for --${enablestring:-enable}-mslu" >&5
4354           no_cache=0
4355           # Check whether --enable-mslu or --disable-mslu was given.
4356 if test "${enable_mslu+set}" = set; then
4357   enableval="$enable_mslu"
4358   
4359                           if test "$enableval" = yes; then
4360                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4361                           else
4362                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4363                           fi
4364                         
4365 else
4366   
4367                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4368                           if test "x$LINE" != x ; then
4369                             eval "DEFAULT_$LINE"
4370                           else
4371                             no_cache=1
4372                           fi
4373
4374                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4375                         
4376 fi
4377
4378
4379           eval "$ac_cv_use_mslu"
4380           if test "$no_cache" != 1; then
4381             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4382           fi
4383
4384           if test "$wxUSE_UNICODE_MSLU" = yes; then
4385             echo "$ac_t""yes" 1>&6
4386           else
4387             echo "$ac_t""no" 1>&6
4388           fi
4389         
4390
4391           enablestring=
4392           echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
4393 echo "configure:4394: checking for --${enablestring:-enable}-wxprintfv" >&5
4394           no_cache=0
4395           # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4396 if test "${enable_wxprintfv+set}" = set; then
4397   enableval="$enable_wxprintfv"
4398   
4399                           if test "$enableval" = yes; then
4400                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4401                           else
4402                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4403                           fi
4404                         
4405 else
4406   
4407                           LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4408                           if test "x$LINE" != x ; then
4409                             eval "DEFAULT_$LINE"
4410                           else
4411                             no_cache=1
4412                           fi
4413
4414                           ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4415                         
4416 fi
4417
4418
4419           eval "$ac_cv_use_wxprintfv"
4420           if test "$no_cache" != 1; then
4421             echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4422           fi
4423
4424           if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4425             echo "$ac_t""yes" 1>&6
4426           else
4427             echo "$ac_t""no" 1>&6
4428           fi
4429         
4430
4431           enablestring=
4432           echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
4433 echo "configure:4434: checking for --${enablestring:-enable}-std_iostreams" >&5
4434           no_cache=0
4435           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4436 if test "${enable_std_iostreams+set}" = set; then
4437   enableval="$enable_std_iostreams"
4438   
4439                           if test "$enableval" = yes; then
4440                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4441                           else
4442                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4443                           fi
4444                         
4445 else
4446   
4447                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4448                           if test "x$LINE" != x ; then
4449                             eval "DEFAULT_$LINE"
4450                           else
4451                             no_cache=1
4452                           fi
4453
4454                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4455                         
4456 fi
4457
4458
4459           eval "$ac_cv_use_std_iostreams"
4460           if test "$no_cache" != 1; then
4461             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4462           fi
4463
4464           if test "$wxUSE_STD_IOSTREAM" = yes; then
4465             echo "$ac_t""yes" 1>&6
4466           else
4467             echo "$ac_t""no" 1>&6
4468           fi
4469         
4470
4471           enablestring=
4472           echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
4473 echo "configure:4474: checking for --${enablestring:-enable}-filesystem" >&5
4474           no_cache=0
4475           # Check whether --enable-filesystem or --disable-filesystem was given.
4476 if test "${enable_filesystem+set}" = set; then
4477   enableval="$enable_filesystem"
4478   
4479                           if test "$enableval" = yes; then
4480                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4481                           else
4482                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4483                           fi
4484                         
4485 else
4486   
4487                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4488                           if test "x$LINE" != x ; then
4489                             eval "DEFAULT_$LINE"
4490                           else
4491                             no_cache=1
4492                           fi
4493
4494                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4495                         
4496 fi
4497
4498
4499           eval "$ac_cv_use_filesystem"
4500           if test "$no_cache" != 1; then
4501             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4502           fi
4503
4504           if test "$wxUSE_FILESYSTEM" = yes; then
4505             echo "$ac_t""yes" 1>&6
4506           else
4507             echo "$ac_t""no" 1>&6
4508           fi
4509         
4510
4511           enablestring=
4512           echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
4513 echo "configure:4514: checking for --${enablestring:-enable}-fs_inet" >&5
4514           no_cache=0
4515           # Check whether --enable-fs_inet or --disable-fs_inet was given.
4516 if test "${enable_fs_inet+set}" = set; then
4517   enableval="$enable_fs_inet"
4518   
4519                           if test "$enableval" = yes; then
4520                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4521                           else
4522                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4523                           fi
4524                         
4525 else
4526   
4527                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4528                           if test "x$LINE" != x ; then
4529                             eval "DEFAULT_$LINE"
4530                           else
4531                             no_cache=1
4532                           fi
4533
4534                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4535                         
4536 fi
4537
4538
4539           eval "$ac_cv_use_fs_inet"
4540           if test "$no_cache" != 1; then
4541             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4542           fi
4543
4544           if test "$wxUSE_FS_INET" = yes; then
4545             echo "$ac_t""yes" 1>&6
4546           else
4547             echo "$ac_t""no" 1>&6
4548           fi
4549         
4550
4551           enablestring=
4552           echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
4553 echo "configure:4554: checking for --${enablestring:-enable}-fs_zip" >&5
4554           no_cache=0
4555           # Check whether --enable-fs_zip or --disable-fs_zip was given.
4556 if test "${enable_fs_zip+set}" = set; then
4557   enableval="$enable_fs_zip"
4558   
4559                           if test "$enableval" = yes; then
4560                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4561                           else
4562                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4563                           fi
4564                         
4565 else
4566   
4567                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4568                           if test "x$LINE" != x ; then
4569                             eval "DEFAULT_$LINE"
4570                           else
4571                             no_cache=1
4572                           fi
4573
4574                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4575                         
4576 fi
4577
4578
4579           eval "$ac_cv_use_fs_zip"
4580           if test "$no_cache" != 1; then
4581             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4582           fi
4583
4584           if test "$wxUSE_FS_ZIP" = yes; then
4585             echo "$ac_t""yes" 1>&6
4586           else
4587             echo "$ac_t""no" 1>&6
4588           fi
4589         
4590
4591           enablestring=
4592           echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
4593 echo "configure:4594: checking for --${enablestring:-enable}-zipstream" >&5
4594           no_cache=0
4595           # Check whether --enable-zipstream or --disable-zipstream was given.
4596 if test "${enable_zipstream+set}" = set; then
4597   enableval="$enable_zipstream"
4598   
4599                           if test "$enableval" = yes; then
4600                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4601                           else
4602                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4603                           fi
4604                         
4605 else
4606   
4607                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4608                           if test "x$LINE" != x ; then
4609                             eval "DEFAULT_$LINE"
4610                           else
4611                             no_cache=1
4612                           fi
4613
4614                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4615                         
4616 fi
4617
4618
4619           eval "$ac_cv_use_zipstream"
4620           if test "$no_cache" != 1; then
4621             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4622           fi
4623
4624           if test "$wxUSE_ZIPSTREAM" = yes; then
4625             echo "$ac_t""yes" 1>&6
4626           else
4627             echo "$ac_t""no" 1>&6
4628           fi
4629         
4630
4631
4632           enablestring=
4633           echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
4634 echo "configure:4635: checking for --${enablestring:-enable}-catch_segvs" >&5
4635           no_cache=0
4636           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4637 if test "${enable_catch_segvs+set}" = set; then
4638   enableval="$enable_catch_segvs"
4639   
4640                           if test "$enableval" = yes; then
4641                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4642                           else
4643                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4644                           fi
4645                         
4646 else
4647   
4648                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4649                           if test "x$LINE" != x ; then
4650                             eval "DEFAULT_$LINE"
4651                           else
4652                             no_cache=1
4653                           fi
4654
4655                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4656                         
4657 fi
4658
4659
4660           eval "$ac_cv_use_catch_segvs"
4661           if test "$no_cache" != 1; then
4662             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4663           fi
4664
4665           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4666             echo "$ac_t""yes" 1>&6
4667           else
4668             echo "$ac_t""no" 1>&6
4669           fi
4670         
4671
4672           enablestring=
4673           echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
4674 echo "configure:4675: checking for --${enablestring:-enable}-snglinst" >&5
4675           no_cache=0
4676           # Check whether --enable-snglinst or --disable-snglinst was given.
4677 if test "${enable_snglinst+set}" = set; then
4678   enableval="$enable_snglinst"
4679   
4680                           if test "$enableval" = yes; then
4681                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4682                           else
4683                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4684                           fi
4685                         
4686 else
4687   
4688                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4689                           if test "x$LINE" != x ; then
4690                             eval "DEFAULT_$LINE"
4691                           else
4692                             no_cache=1
4693                           fi
4694
4695                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4696                         
4697 fi
4698
4699
4700           eval "$ac_cv_use_snglinst"
4701           if test "$no_cache" != 1; then
4702             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4703           fi
4704
4705           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4706             echo "$ac_t""yes" 1>&6
4707           else
4708             echo "$ac_t""no" 1>&6
4709           fi
4710         
4711
4712
4713           enablestring=
4714           echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
4715 echo "configure:4716: checking for --${enablestring:-enable}-mimetype" >&5
4716           no_cache=0
4717           # Check whether --enable-mimetype or --disable-mimetype was given.
4718 if test "${enable_mimetype+set}" = set; then
4719   enableval="$enable_mimetype"
4720   
4721                           if test "$enableval" = yes; then
4722                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4723                           else
4724                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4725                           fi
4726                         
4727 else
4728   
4729                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4730                           if test "x$LINE" != x ; then
4731                             eval "DEFAULT_$LINE"
4732                           else
4733                             no_cache=1
4734                           fi
4735
4736                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4737                         
4738 fi
4739
4740
4741           eval "$ac_cv_use_mimetype"
4742           if test "$no_cache" != 1; then
4743             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4744           fi
4745
4746           if test "$wxUSE_MIMETYPE" = yes; then
4747             echo "$ac_t""yes" 1>&6
4748           else
4749             echo "$ac_t""no" 1>&6
4750           fi
4751         
4752
4753           enablestring=
4754           echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
4755 echo "configure:4756: checking for --${enablestring:-enable}-system_options" >&5
4756           no_cache=0
4757           # Check whether --enable-system_options or --disable-system_options was given.
4758 if test "${enable_system_options+set}" = set; then
4759   enableval="$enable_system_options"
4760   
4761                           if test "$enableval" = yes; then
4762                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4763                           else
4764                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4765                           fi
4766                         
4767 else
4768   
4769                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4770                           if test "x$LINE" != x ; then
4771                             eval "DEFAULT_$LINE"
4772                           else
4773                             no_cache=1
4774                           fi
4775
4776                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4777                         
4778 fi
4779
4780
4781           eval "$ac_cv_use_system_options"
4782           if test "$no_cache" != 1; then
4783             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4784           fi
4785
4786           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4787             echo "$ac_t""yes" 1>&6
4788           else
4789             echo "$ac_t""no" 1>&6
4790           fi
4791         
4792
4793
4794           enablestring=
4795           echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
4796 echo "configure:4797: checking for --${enablestring:-enable}-url" >&5
4797           no_cache=0
4798           # Check whether --enable-url or --disable-url was given.
4799 if test "${enable_url+set}" = set; then
4800   enableval="$enable_url"
4801   
4802                           if test "$enableval" = yes; then
4803                             ac_cv_use_url='wxUSE_URL=yes'
4804                           else
4805                             ac_cv_use_url='wxUSE_URL=no'
4806                           fi
4807                         
4808 else
4809   
4810                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4811                           if test "x$LINE" != x ; then
4812                             eval "DEFAULT_$LINE"
4813                           else
4814                             no_cache=1
4815                           fi
4816
4817                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4818                         
4819 fi
4820
4821
4822           eval "$ac_cv_use_url"
4823           if test "$no_cache" != 1; then
4824             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4825           fi
4826
4827           if test "$wxUSE_URL" = yes; then
4828             echo "$ac_t""yes" 1>&6
4829           else
4830             echo "$ac_t""no" 1>&6
4831           fi
4832         
4833
4834           enablestring=
4835           echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
4836 echo "configure:4837: checking for --${enablestring:-enable}-protocol" >&5
4837           no_cache=0
4838           # Check whether --enable-protocol or --disable-protocol was given.
4839 if test "${enable_protocol+set}" = set; then
4840   enableval="$enable_protocol"
4841   
4842                           if test "$enableval" = yes; then
4843                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4844                           else
4845                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4846                           fi
4847                         
4848 else
4849   
4850                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4851                           if test "x$LINE" != x ; then
4852                             eval "DEFAULT_$LINE"
4853                           else
4854                             no_cache=1
4855                           fi
4856
4857                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4858                         
4859 fi
4860
4861
4862           eval "$ac_cv_use_protocol"
4863           if test "$no_cache" != 1; then
4864             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4865           fi
4866
4867           if test "$wxUSE_PROTOCOL" = yes; then
4868             echo "$ac_t""yes" 1>&6
4869           else
4870             echo "$ac_t""no" 1>&6
4871           fi
4872         
4873
4874           enablestring=
4875           echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
4876 echo "configure:4877: checking for --${enablestring:-enable}-protocol_http" >&5
4877           no_cache=0
4878           # Check whether --enable-protocol_http or --disable-protocol_http was given.
4879 if test "${enable_protocol_http+set}" = set; then
4880   enableval="$enable_protocol_http"
4881   
4882                           if test "$enableval" = yes; then
4883                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4884                           else
4885                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4886                           fi
4887                         
4888 else
4889   
4890                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4891                           if test "x$LINE" != x ; then
4892                             eval "DEFAULT_$LINE"
4893                           else
4894                             no_cache=1
4895                           fi
4896
4897                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4898                         
4899 fi
4900
4901
4902           eval "$ac_cv_use_protocol_http"
4903           if test "$no_cache" != 1; then
4904             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4905           fi
4906
4907           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4908             echo "$ac_t""yes" 1>&6
4909           else
4910             echo "$ac_t""no" 1>&6
4911           fi
4912         
4913
4914           enablestring=
4915           echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
4916 echo "configure:4917: checking for --${enablestring:-enable}-protocol_ftp" >&5
4917           no_cache=0
4918           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4919 if test "${enable_protocol_ftp+set}" = set; then
4920   enableval="$enable_protocol_ftp"
4921   
4922                           if test "$enableval" = yes; then
4923                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4924                           else
4925                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4926                           fi
4927                         
4928 else
4929   
4930                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4931                           if test "x$LINE" != x ; then
4932                             eval "DEFAULT_$LINE"
4933                           else
4934                             no_cache=1
4935                           fi
4936
4937                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4938                         
4939 fi
4940
4941
4942           eval "$ac_cv_use_protocol_ftp"
4943           if test "$no_cache" != 1; then
4944             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4945           fi
4946
4947           if test "$wxUSE_PROTOCOL_FTP" = yes; then
4948             echo "$ac_t""yes" 1>&6
4949           else
4950             echo "$ac_t""no" 1>&6
4951           fi
4952         
4953
4954           enablestring=
4955           echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
4956 echo "configure:4957: checking for --${enablestring:-enable}-protocol_file" >&5
4957           no_cache=0
4958           # Check whether --enable-protocol_file or --disable-protocol_file was given.
4959 if test "${enable_protocol_file+set}" = set; then
4960   enableval="$enable_protocol_file"
4961   
4962                           if test "$enableval" = yes; then
4963                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4964                           else
4965                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4966                           fi
4967                         
4968 else
4969   
4970                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4971                           if test "x$LINE" != x ; then
4972                             eval "DEFAULT_$LINE"
4973                           else
4974                             no_cache=1
4975                           fi
4976
4977                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4978                         
4979 fi
4980
4981
4982           eval "$ac_cv_use_protocol_file"
4983           if test "$no_cache" != 1; then
4984             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4985           fi
4986
4987           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4988             echo "$ac_t""yes" 1>&6
4989           else
4990             echo "$ac_t""no" 1>&6
4991           fi
4992         
4993
4994
4995
4996
4997           enablestring=
4998           echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
4999 echo "configure:5000: checking for --${enablestring:-enable}-threads" >&5
5000           no_cache=0
5001           # Check whether --enable-threads or --disable-threads was given.
5002 if test "${enable_threads+set}" = set; then
5003   enableval="$enable_threads"
5004   
5005                           if test "$enableval" = yes; then
5006                             ac_cv_use_threads='wxUSE_THREADS=yes'
5007                           else
5008                             ac_cv_use_threads='wxUSE_THREADS=no'
5009                           fi
5010                         
5011 else
5012   
5013                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5014                           if test "x$LINE" != x ; then
5015                             eval "DEFAULT_$LINE"
5016                           else
5017                             no_cache=1
5018                           fi
5019
5020                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5021                         
5022 fi
5023
5024
5025           eval "$ac_cv_use_threads"
5026           if test "$no_cache" != 1; then
5027             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5028           fi
5029
5030           if test "$wxUSE_THREADS" = yes; then
5031             echo "$ac_t""yes" 1>&6
5032           else
5033             echo "$ac_t""no" 1>&6
5034           fi
5035         
5036
5037 if test "$wxUSE_GUI" = "yes"; then
5038
5039
5040
5041           enablestring=
5042           echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
5043 echo "configure:5044: checking for --${enablestring:-enable}-docview" >&5
5044           no_cache=0
5045           # Check whether --enable-docview or --disable-docview was given.
5046 if test "${enable_docview+set}" = set; then
5047   enableval="$enable_docview"
5048   
5049                           if test "$enableval" = yes; then
5050                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5051                           else
5052                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5053                           fi
5054                         
5055 else
5056   
5057                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5058                           if test "x$LINE" != x ; then
5059                             eval "DEFAULT_$LINE"
5060                           else
5061                             no_cache=1
5062                           fi
5063
5064                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5065                         
5066 fi
5067
5068
5069           eval "$ac_cv_use_docview"
5070           if test "$no_cache" != 1; then
5071             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5072           fi
5073
5074           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5075             echo "$ac_t""yes" 1>&6
5076           else
5077             echo "$ac_t""no" 1>&6
5078           fi
5079         
5080
5081           enablestring=
5082           echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
5083 echo "configure:5084: checking for --${enablestring:-enable}-help" >&5
5084           no_cache=0
5085           # Check whether --enable-help or --disable-help was given.
5086 if test "${enable_help+set}" = set; then
5087   enableval="$enable_help"
5088   
5089                           if test "$enableval" = yes; then
5090                             ac_cv_use_help='wxUSE_HELP=yes'
5091                           else
5092                             ac_cv_use_help='wxUSE_HELP=no'
5093                           fi
5094                         
5095 else
5096   
5097                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5098                           if test "x$LINE" != x ; then
5099                             eval "DEFAULT_$LINE"
5100                           else
5101                             no_cache=1
5102                           fi
5103
5104                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5105                         
5106 fi
5107
5108
5109           eval "$ac_cv_use_help"
5110           if test "$no_cache" != 1; then
5111             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5112           fi
5113
5114           if test "$wxUSE_HELP" = yes; then
5115             echo "$ac_t""yes" 1>&6
5116           else
5117             echo "$ac_t""no" 1>&6
5118           fi
5119         
5120
5121           enablestring=
5122           echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
5123 echo "configure:5124: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5124           no_cache=0
5125           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5126 if test "${enable_mshtmlhelp+set}" = set; then
5127   enableval="$enable_mshtmlhelp"
5128   
5129                           if test "$enableval" = yes; then
5130                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5131                           else
5132                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5133                           fi
5134                         
5135 else
5136   
5137                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5138                           if test "x$LINE" != x ; then
5139                             eval "DEFAULT_$LINE"
5140                           else
5141                             no_cache=1
5142                           fi
5143
5144                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5145                         
5146 fi
5147
5148
5149           eval "$ac_cv_use_mshtmlhelp"
5150           if test "$no_cache" != 1; then
5151             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5152           fi
5153
5154           if test "$wxUSE_MS_HTML_HELP" = yes; then
5155             echo "$ac_t""yes" 1>&6
5156           else
5157             echo "$ac_t""no" 1>&6
5158           fi
5159         
5160
5161           enablestring=
5162           echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
5163 echo "configure:5164: checking for --${enablestring:-enable}-html" >&5
5164           no_cache=0
5165           # Check whether --enable-html or --disable-html was given.
5166 if test "${enable_html+set}" = set; then
5167   enableval="$enable_html"
5168   
5169                           if test "$enableval" = yes; then
5170                             ac_cv_use_html='wxUSE_HTML=yes'
5171                           else
5172                             ac_cv_use_html='wxUSE_HTML=no'
5173                           fi
5174                         
5175 else
5176   
5177                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5178                           if test "x$LINE" != x ; then
5179                             eval "DEFAULT_$LINE"
5180                           else
5181                             no_cache=1
5182                           fi
5183
5184                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5185                         
5186 fi
5187
5188
5189           eval "$ac_cv_use_html"
5190           if test "$no_cache" != 1; then
5191             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5192           fi
5193
5194           if test "$wxUSE_HTML" = yes; then
5195             echo "$ac_t""yes" 1>&6
5196           else
5197             echo "$ac_t""no" 1>&6
5198           fi
5199         
5200
5201           enablestring=
5202           echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
5203 echo "configure:5204: checking for --${enablestring:-enable}-htmlhelp" >&5
5204           no_cache=0
5205           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5206 if test "${enable_htmlhelp+set}" = set; then
5207   enableval="$enable_htmlhelp"
5208   
5209                           if test "$enableval" = yes; then
5210                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5211                           else
5212                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5213                           fi
5214                         
5215 else
5216   
5217                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5218                           if test "x$LINE" != x ; then
5219                             eval "DEFAULT_$LINE"
5220                           else
5221                             no_cache=1
5222                           fi
5223
5224                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5225                         
5226 fi
5227
5228
5229           eval "$ac_cv_use_htmlhelp"
5230           if test "$no_cache" != 1; then
5231             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5232           fi
5233
5234           if test "$wxUSE_WXHTML_HELP" = yes; then
5235             echo "$ac_t""yes" 1>&6
5236           else
5237             echo "$ac_t""no" 1>&6
5238           fi
5239         
5240
5241           enablestring=
5242           echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
5243 echo "configure:5244: checking for --${enablestring:-enable}-constraints" >&5
5244           no_cache=0
5245           # Check whether --enable-constraints or --disable-constraints was given.
5246 if test "${enable_constraints+set}" = set; then
5247   enableval="$enable_constraints"
5248   
5249                           if test "$enableval" = yes; then
5250                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5251                           else
5252                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5253                           fi
5254                         
5255 else
5256   
5257                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5258                           if test "x$LINE" != x ; then
5259                             eval "DEFAULT_$LINE"
5260                           else
5261                             no_cache=1
5262                           fi
5263
5264                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5265                         
5266 fi
5267
5268
5269           eval "$ac_cv_use_constraints"
5270           if test "$no_cache" != 1; then
5271             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5272           fi
5273
5274           if test "$wxUSE_CONSTRAINTS" = yes; then
5275             echo "$ac_t""yes" 1>&6
5276           else
5277             echo "$ac_t""no" 1>&6
5278           fi
5279         
5280
5281           enablestring=
5282           echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
5283 echo "configure:5284: checking for --${enablestring:-enable}-printarch" >&5
5284           no_cache=0
5285           # Check whether --enable-printarch or --disable-printarch was given.
5286 if test "${enable_printarch+set}" = set; then
5287   enableval="$enable_printarch"
5288   
5289                           if test "$enableval" = yes; then
5290                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5291                           else
5292                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5293                           fi
5294                         
5295 else
5296   
5297                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5298                           if test "x$LINE" != x ; then
5299                             eval "DEFAULT_$LINE"
5300                           else
5301                             no_cache=1
5302                           fi
5303
5304                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5305                         
5306 fi
5307
5308
5309           eval "$ac_cv_use_printarch"
5310           if test "$no_cache" != 1; then
5311             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5312           fi
5313
5314           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5315             echo "$ac_t""yes" 1>&6
5316           else
5317             echo "$ac_t""no" 1>&6
5318           fi
5319         
5320
5321           enablestring=
5322           echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
5323 echo "configure:5324: checking for --${enablestring:-enable}-mdi" >&5
5324           no_cache=0
5325           # Check whether --enable-mdi or --disable-mdi was given.
5326 if test "${enable_mdi+set}" = set; then
5327   enableval="$enable_mdi"
5328   
5329                           if test "$enableval" = yes; then
5330                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5331                           else
5332                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5333                           fi
5334                         
5335 else
5336   
5337                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5338                           if test "x$LINE" != x ; then
5339                             eval "DEFAULT_$LINE"
5340                           else
5341                             no_cache=1
5342                           fi
5343
5344                           ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5345                         
5346 fi
5347
5348
5349           eval "$ac_cv_use_mdi"
5350           if test "$no_cache" != 1; then
5351             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5352           fi
5353
5354           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5355             echo "$ac_t""yes" 1>&6
5356           else
5357             echo "$ac_t""no" 1>&6
5358           fi
5359         
5360
5361           enablestring=
5362           echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
5363 echo "configure:5364: checking for --${enablestring:-enable}-loggui" >&5
5364           no_cache=0
5365           # Check whether --enable-loggui or --disable-loggui was given.
5366 if test "${enable_loggui+set}" = set; then
5367   enableval="$enable_loggui"
5368   
5369                           if test "$enableval" = yes; then
5370                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5371                           else
5372                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
5373                           fi
5374                         
5375 else
5376   
5377                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5378                           if test "x$LINE" != x ; then
5379                             eval "DEFAULT_$LINE"
5380                           else
5381                             no_cache=1
5382                           fi
5383
5384                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5385                         
5386 fi
5387
5388
5389           eval "$ac_cv_use_loggui"
5390           if test "$no_cache" != 1; then
5391             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5392           fi
5393
5394           if test "$wxUSE_LOGGUI" = yes; then
5395             echo "$ac_t""yes" 1>&6
5396           else
5397             echo "$ac_t""no" 1>&6
5398           fi
5399         
5400
5401           enablestring=
5402           echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
5403 echo "configure:5404: checking for --${enablestring:-enable}-logwin" >&5
5404           no_cache=0
5405           # Check whether --enable-logwin or --disable-logwin was given.
5406 if test "${enable_logwin+set}" = set; then
5407   enableval="$enable_logwin"
5408   
5409                           if test "$enableval" = yes; then
5410                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5411                           else
5412                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5413                           fi
5414                         
5415 else
5416   
5417                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5418                           if test "x$LINE" != x ; then
5419                             eval "DEFAULT_$LINE"
5420                           else
5421                             no_cache=1
5422                           fi
5423
5424                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5425                         
5426 fi
5427
5428
5429           eval "$ac_cv_use_logwin"
5430           if test "$no_cache" != 1; then
5431             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5432           fi
5433
5434           if test "$wxUSE_LOGWINDOW" = yes; then
5435             echo "$ac_t""yes" 1>&6
5436           else
5437             echo "$ac_t""no" 1>&6
5438           fi
5439         
5440
5441           enablestring=
5442           echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
5443 echo "configure:5444: checking for --${enablestring:-enable}-logdialog" >&5
5444           no_cache=0
5445           # Check whether --enable-logdialog or --disable-logdialog was given.
5446 if test "${enable_logdialog+set}" = set; then
5447   enableval="$enable_logdialog"
5448   
5449                           if test "$enableval" = yes; then
5450                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5451                           else
5452                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5453                           fi
5454                         
5455 else
5456   
5457                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5458                           if test "x$LINE" != x ; then
5459                             eval "DEFAULT_$LINE"
5460                           else
5461                             no_cache=1
5462                           fi
5463
5464                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5465                         
5466 fi
5467
5468
5469           eval "$ac_cv_use_logdialog"
5470           if test "$no_cache" != 1; then
5471             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5472           fi
5473
5474           if test "$wxUSE_LOGDIALOG" = yes; then
5475             echo "$ac_t""yes" 1>&6
5476           else
5477             echo "$ac_t""no" 1>&6
5478           fi
5479         
5480
5481
5482           enablestring=
5483           echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
5484 echo "configure:5485: checking for --${enablestring:-enable}-postscript" >&5
5485           no_cache=0
5486           # Check whether --enable-postscript or --disable-postscript was given.
5487 if test "${enable_postscript+set}" = set; then
5488   enableval="$enable_postscript"
5489   
5490                           if test "$enableval" = yes; then
5491                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5492                           else
5493                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5494                           fi
5495                         
5496 else
5497   
5498                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5499                           if test "x$LINE" != x ; then
5500                             eval "DEFAULT_$LINE"
5501                           else
5502                             no_cache=1
5503                           fi
5504
5505                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5506                         
5507 fi
5508
5509
5510           eval "$ac_cv_use_postscript"
5511           if test "$no_cache" != 1; then
5512             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5513           fi
5514
5515           if test "$wxUSE_POSTSCRIPT" = yes; then
5516             echo "$ac_t""yes" 1>&6
5517           else
5518             echo "$ac_t""no" 1>&6
5519           fi
5520         
5521
5522
5523
5524
5525           enablestring=
5526           echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6
5527 echo "configure:5528: checking for --${enablestring:-enable}-prologio" >&5
5528           no_cache=0
5529           # Check whether --enable-prologio or --disable-prologio was given.
5530 if test "${enable_prologio+set}" = set; then
5531   enableval="$enable_prologio"
5532   
5533                           if test "$enableval" = yes; then
5534                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5535                           else
5536                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5537                           fi
5538                         
5539 else
5540   
5541                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5542                           if test "x$LINE" != x ; then
5543                             eval "DEFAULT_$LINE"
5544                           else
5545                             no_cache=1
5546                           fi
5547
5548                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5549                         
5550 fi
5551
5552
5553           eval "$ac_cv_use_prologio"
5554           if test "$no_cache" != 1; then
5555             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5556           fi
5557
5558           if test "$wxUSE_PROLOGIO" = yes; then
5559             echo "$ac_t""yes" 1>&6
5560           else
5561             echo "$ac_t""no" 1>&6
5562           fi
5563         
5564
5565           enablestring=
5566           echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
5567 echo "configure:5568: checking for --${enablestring:-enable}-resources" >&5
5568           no_cache=0
5569           # Check whether --enable-resources or --disable-resources was given.
5570 if test "${enable_resources+set}" = set; then
5571   enableval="$enable_resources"
5572   
5573                           if test "$enableval" = yes; then
5574                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
5575                           else
5576                             ac_cv_use_resources='wxUSE_RESOURCES=no'
5577                           fi
5578                         
5579 else
5580   
5581                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5582                           if test "x$LINE" != x ; then
5583                             eval "DEFAULT_$LINE"
5584                           else
5585                             no_cache=1
5586                           fi
5587
5588                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5589                         
5590 fi
5591
5592
5593           eval "$ac_cv_use_resources"
5594           if test "$no_cache" != 1; then
5595             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5596           fi
5597
5598           if test "$wxUSE_RESOURCES" = yes; then
5599             echo "$ac_t""yes" 1>&6
5600           else
5601             echo "$ac_t""no" 1>&6
5602           fi
5603         
5604
5605
5606           enablestring=
5607           echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6
5608 echo "configure:5609: checking for --${enablestring:-enable}-xresources" >&5
5609           no_cache=0
5610           # Check whether --enable-xresources or --disable-xresources was given.
5611 if test "${enable_xresources+set}" = set; then
5612   enableval="$enable_xresources"
5613   
5614                           if test "$enableval" = yes; then
5615                             ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5616                           else
5617                             ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5618                           fi
5619                         
5620 else
5621   
5622                           LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5623                           if test "x$LINE" != x ; then
5624                             eval "DEFAULT_$LINE"
5625                           else
5626                             no_cache=1
5627                           fi
5628
5629                           ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5630                         
5631 fi
5632
5633
5634           eval "$ac_cv_use_xresources"
5635           if test "$no_cache" != 1; then
5636             echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5637           fi
5638
5639           if test "$wxUSE_X_RESOURCES" = yes; then
5640             echo "$ac_t""yes" 1>&6
5641           else
5642             echo "$ac_t""no" 1>&6
5643           fi
5644         
5645
5646
5647
5648           enablestring=
5649           echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
5650 echo "configure:5651: checking for --${enablestring:-enable}-clipboard" >&5
5651           no_cache=0
5652           # Check whether --enable-clipboard or --disable-clipboard was given.
5653 if test "${enable_clipboard+set}" = set; then
5654   enableval="$enable_clipboard"
5655   
5656                           if test "$enableval" = yes; then
5657                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5658                           else
5659                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5660                           fi
5661                         
5662 else
5663   
5664                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5665                           if test "x$LINE" != x ; then
5666                             eval "DEFAULT_$LINE"
5667                           else
5668                             no_cache=1
5669                           fi
5670
5671                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5672                         
5673 fi
5674
5675
5676           eval "$ac_cv_use_clipboard"
5677           if test "$no_cache" != 1; then
5678             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5679           fi
5680
5681           if test "$wxUSE_CLIPBOARD" = yes; then
5682             echo "$ac_t""yes" 1>&6
5683           else
5684             echo "$ac_t""no" 1>&6
5685           fi
5686         
5687
5688           enablestring=
5689           echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
5690 echo "configure:5691: checking for --${enablestring:-enable}-dnd" >&5
5691           no_cache=0
5692           # Check whether --enable-dnd or --disable-dnd was given.
5693 if test "${enable_dnd+set}" = set; then
5694   enableval="$enable_dnd"
5695   
5696                           if test "$enableval" = yes; then
5697                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5698                           else
5699                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5700                           fi
5701                         
5702 else
5703   
5704                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5705                           if test "x$LINE" != x ; then
5706                             eval "DEFAULT_$LINE"
5707                           else
5708                             no_cache=1
5709                           fi
5710
5711                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5712                         
5713 fi
5714
5715
5716           eval "$ac_cv_use_dnd"
5717           if test "$no_cache" != 1; then
5718             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5719           fi
5720
5721           if test "$wxUSE_DRAG_AND_DROP" = yes; then
5722             echo "$ac_t""yes" 1>&6
5723           else
5724             echo "$ac_t""no" 1>&6
5725           fi
5726         
5727
5728           enablestring=
5729           echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
5730 echo "configure:5731: checking for --${enablestring:-enable}-metafile" >&5
5731           no_cache=0
5732           # Check whether --enable-metafile or --disable-metafile was given.
5733 if test "${enable_metafile+set}" = set; then
5734   enableval="$enable_metafile"
5735   
5736                           if test "$enableval" = yes; then
5737                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
5738                           else
5739                             ac_cv_use_metafile='wxUSE_METAFILE=no'
5740                           fi
5741                         
5742 else
5743   
5744                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5745                           if test "x$LINE" != x ; then
5746                             eval "DEFAULT_$LINE"
5747                           else
5748                             no_cache=1
5749                           fi
5750
5751                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5752                         
5753 fi
5754
5755
5756           eval "$ac_cv_use_metafile"
5757           if test "$no_cache" != 1; then
5758             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5759           fi
5760
5761           if test "$wxUSE_METAFILE" = yes; then
5762             echo "$ac_t""yes" 1>&6
5763           else
5764             echo "$ac_t""no" 1>&6
5765           fi
5766         
5767
5768
5769           enablestring=
5770           echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6
5771 echo "configure:5772: checking for --${enablestring:-enable}-treelayout" >&5
5772           no_cache=0
5773           # Check whether --enable-treelayout or --disable-treelayout was given.
5774 if test "${enable_treelayout+set}" = set; then
5775   enableval="$enable_treelayout"
5776   
5777                           if test "$enableval" = yes; then
5778                             ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5779                           else
5780                             ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5781                           fi
5782                         
5783 else
5784   
5785                           LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5786                           if test "x$LINE" != x ; then
5787                             eval "DEFAULT_$LINE"
5788                           else
5789                             no_cache=1
5790                           fi
5791
5792                           ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5793                         
5794 fi
5795
5796
5797           eval "$ac_cv_use_treelayout"
5798           if test "$no_cache" != 1; then
5799             echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5800           fi
5801
5802           if test "$wxUSE_TREELAYOUT" = yes; then
5803             echo "$ac_t""yes" 1>&6
5804           else
5805             echo "$ac_t""no" 1>&6
5806           fi
5807         
5808
5809
5810
5811           enablestring=
5812           echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
5813 echo "configure:5814: checking for --${enablestring:-enable}-controls" >&5
5814           no_cache=0
5815           # Check whether --enable-controls or --disable-controls was given.
5816 if test "${enable_controls+set}" = set; then
5817   enableval="$enable_controls"
5818   
5819                           if test "$enableval" = yes; then
5820                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
5821                           else
5822                             ac_cv_use_controls='wxUSE_CONTROLS=no'
5823                           fi
5824                         
5825 else
5826   
5827                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5828                           if test "x$LINE" != x ; then
5829                             eval "DEFAULT_$LINE"
5830                           else
5831                             no_cache=1
5832                           fi
5833
5834                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5835                         
5836 fi
5837
5838
5839           eval "$ac_cv_use_controls"
5840           if test "$no_cache" != 1; then
5841             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5842           fi
5843
5844           if test "$wxUSE_CONTROLS" = yes; then
5845             echo "$ac_t""yes" 1>&6
5846           else
5847             echo "$ac_t""no" 1>&6
5848           fi
5849         
5850
5851 if test "$wxUSE_CONTROLS" = "yes"; then
5852   DEFAULT_wxUSE_ACCEL=yes
5853   DEFAULT_wxUSE_BMPBUTTON=yes
5854   DEFAULT_wxUSE_BUTTON=yes
5855   DEFAULT_wxUSE_CALCTRL=no
5856   DEFAULT_wxUSE_CARET=yes
5857   DEFAULT_wxUSE_COMBOBOX=yes
5858   DEFAULT_wxUSE_CHECKBOX=yes
5859   DEFAULT_wxUSE_CHECKLISTBOX=yes
5860   DEFAULT_wxUSE_CHOICE=yes
5861   DEFAULT_wxUSE_GAUGE=yes
5862   DEFAULT_wxUSE_GRID=yes
5863   DEFAULT_wxUSE_NEW_GRID=yes
5864   DEFAULT_wxUSE_IMAGLIST=yes
5865   DEFAULT_wxUSE_LISTBOX=yes
5866   DEFAULT_wxUSE_LISTCTRL=yes
5867   DEFAULT_wxUSE_NOTEBOOK=yes
5868   DEFAULT_wxUSE_PROPSHEET=yes
5869   DEFAULT_wxUSE_RADIOBOX=yes
5870   DEFAULT_wxUSE_RADIOBTN=yes
5871   DEFAULT_wxUSE_SASH=yes
5872   DEFAULT_wxUSE_SCROLLBAR=yes
5873   DEFAULT_wxUSE_SLIDER=yes
5874   DEFAULT_wxUSE_SPINBTN=yes
5875   DEFAULT_wxUSE_SPINCTRL=yes
5876   DEFAULT_wxUSE_SPLITTER=yes
5877   DEFAULT_wxUSE_STATBMP=yes
5878   DEFAULT_wxUSE_STATBOX=yes
5879   DEFAULT_wxUSE_STATLINE=yes
5880   DEFAULT_wxUSE_STATUSBAR=yes
5881   DEFAULT_wxUSE_TAB_DIALOG=yes
5882   DEFAULT_wxUSE_TOGGLEBTN=yes
5883   DEFAULT_wxUSE_TOOLBAR=yes
5884   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5885   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5886   DEFAULT_wxUSE_TOOLTIPS=yes
5887   DEFAULT_wxUSE_TREECTRL=yes
5888   DEFAULT_wxUSE_POPUPWIN=yes
5889   DEFAULT_wxUSE_TIPWINDOW=yes
5890 elif test "$wxUSE_CONTROLS" = "no"; then
5891   DEFAULT_wxUSE_ACCEL=no
5892   DEFAULT_wxUSE_BMPBUTTON=no
5893   DEFAULT_wxUSE_BUTTON=no
5894   DEFAULT_wxUSE_CALCTRL=no
5895   DEFAULT_wxUSE_CARET=no
5896   DEFAULT_wxUSE_COMBOBOX=no
5897   DEFAULT_wxUSE_CHECKBOX=no
5898   DEFAULT_wxUSE_CHECKLISTBOX=no
5899   DEFAULT_wxUSE_CHOICE=no
5900   DEFAULT_wxUSE_GAUGE=no
5901   DEFAULT_wxUSE_GRID=no
5902   DEFAULT_wxUSE_NEW_GRID=no
5903   DEFAULT_wxUSE_IMAGLIST=no
5904   DEFAULT_wxUSE_LISTBOX=no
5905   DEFAULT_wxUSE_LISTCTRL=no
5906   DEFAULT_wxUSE_NOTEBOOK=no
5907   DEFAULT_wxUSE_PROPSHEET=no
5908   DEFAULT_wxUSE_RADIOBOX=no
5909   DEFAULT_wxUSE_RADIOBTN=no
5910   DEFAULT_wxUSE_SASH=no
5911   DEFAULT_wxUSE_SCROLLBAR=no
5912   DEFAULT_wxUSE_SLIDER=no
5913   DEFAULT_wxUSE_SPINBTN=no
5914   DEFAULT_wxUSE_SPINCTRL=no
5915   DEFAULT_wxUSE_SPLITTER=no
5916   DEFAULT_wxUSE_STATBMP=no
5917   DEFAULT_wxUSE_STATBOX=no
5918   DEFAULT_wxUSE_STATLINE=no
5919   DEFAULT_wxUSE_STATUSBAR=no
5920   DEFAULT_wxUSE_TAB_DIALOG=no
5921   DEFAULT_wxUSE_TOGGLEBTN=no
5922   DEFAULT_wxUSE_TOOLBAR=no
5923   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5924   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5925   DEFAULT_wxUSE_TOOLTIPS=no
5926   DEFAULT_wxUSE_TREECTRL=no
5927   DEFAULT_wxUSE_POPUPWIN=no
5928   DEFAULT_wxUSE_TIPWINDOW=no
5929 fi
5930
5931
5932           enablestring=
5933           echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
5934 echo "configure:5935: checking for --${enablestring:-enable}-accel" >&5
5935           no_cache=0
5936           # Check whether --enable-accel or --disable-accel was given.
5937 if test "${enable_accel+set}" = set; then
5938   enableval="$enable_accel"
5939   
5940                           if test "$enableval" = yes; then
5941                             ac_cv_use_accel='wxUSE_ACCEL=yes'
5942                           else
5943                             ac_cv_use_accel='wxUSE_ACCEL=no'
5944                           fi
5945                         
5946 else
5947   
5948                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5949                           if test "x$LINE" != x ; then
5950                             eval "DEFAULT_$LINE"
5951                           else
5952                             no_cache=1
5953                           fi
5954
5955                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5956                         
5957 fi
5958
5959
5960           eval "$ac_cv_use_accel"
5961           if test "$no_cache" != 1; then
5962             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5963           fi
5964
5965           if test "$wxUSE_ACCEL" = yes; then
5966             echo "$ac_t""yes" 1>&6
5967           else
5968             echo "$ac_t""no" 1>&6
5969           fi
5970         
5971
5972           enablestring=
5973           echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
5974 echo "configure:5975: checking for --${enablestring:-enable}-button" >&5
5975           no_cache=0
5976           # Check whether --enable-button or --disable-button was given.
5977 if test "${enable_button+set}" = set; then
5978   enableval="$enable_button"
5979   
5980                           if test "$enableval" = yes; then
5981                             ac_cv_use_button='wxUSE_BUTTON=yes'
5982                           else
5983                             ac_cv_use_button='wxUSE_BUTTON=no'
5984                           fi
5985                         
5986 else
5987   
5988                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5989                           if test "x$LINE" != x ; then
5990                             eval "DEFAULT_$LINE"
5991                           else
5992                             no_cache=1
5993                           fi
5994
5995                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5996                         
5997 fi
5998
5999
6000           eval "$ac_cv_use_button"
6001           if test "$no_cache" != 1; then
6002             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
6003           fi
6004
6005           if test "$wxUSE_BUTTON" = yes; then
6006             echo "$ac_t""yes" 1>&6
6007           else
6008             echo "$ac_t""no" 1>&6
6009           fi
6010         
6011
6012           enablestring=
6013           echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
6014 echo "configure:6015: checking for --${enablestring:-enable}-bmpbutton" >&5
6015           no_cache=0
6016           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6017 if test "${enable_bmpbutton+set}" = set; then
6018   enableval="$enable_bmpbutton"
6019   
6020                           if test "$enableval" = yes; then
6021                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6022                           else
6023                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6024                           fi
6025                         
6026 else
6027   
6028                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6029                           if test "x$LINE" != x ; then
6030                             eval "DEFAULT_$LINE"
6031                           else
6032                             no_cache=1
6033                           fi
6034
6035                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
6036                         
6037 fi
6038
6039
6040           eval "$ac_cv_use_bmpbutton"
6041           if test "$no_cache" != 1; then
6042             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6043           fi
6044
6045           if test "$wxUSE_BMPBUTTON" = yes; then
6046             echo "$ac_t""yes" 1>&6
6047           else
6048             echo "$ac_t""no" 1>&6
6049           fi
6050         
6051
6052           enablestring=
6053           echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
6054 echo "configure:6055: checking for --${enablestring:-enable}-calendar" >&5
6055           no_cache=0
6056           # Check whether --enable-calendar or --disable-calendar was given.
6057 if test "${enable_calendar+set}" = set; then
6058   enableval="$enable_calendar"
6059   
6060                           if test "$enableval" = yes; then
6061                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6062                           else
6063                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
6064                           fi
6065                         
6066 else
6067   
6068                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6069                           if test "x$LINE" != x ; then
6070                             eval "DEFAULT_$LINE"
6071                           else
6072                             no_cache=1
6073                           fi
6074
6075                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6076                         
6077 fi
6078
6079
6080           eval "$ac_cv_use_calendar"
6081           if test "$no_cache" != 1; then
6082             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6083           fi
6084
6085           if test "$wxUSE_CALCTRL" = yes; then
6086             echo "$ac_t""yes" 1>&6
6087           else
6088             echo "$ac_t""no" 1>&6
6089           fi
6090         
6091
6092           enablestring=
6093           echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
6094 echo "configure:6095: checking for --${enablestring:-enable}-caret" >&5
6095           no_cache=0
6096           # Check whether --enable-caret or --disable-caret was given.
6097 if test "${enable_caret+set}" = set; then
6098   enableval="$enable_caret"
6099   
6100                           if test "$enableval" = yes; then
6101                             ac_cv_use_caret='wxUSE_CARET=yes'
6102                           else
6103                             ac_cv_use_caret='wxUSE_CARET=no'
6104                           fi
6105                         
6106 else
6107   
6108                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6109                           if test "x$LINE" != x ; then
6110                             eval "DEFAULT_$LINE"
6111                           else
6112                             no_cache=1
6113                           fi
6114
6115                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6116                         
6117 fi
6118
6119
6120           eval "$ac_cv_use_caret"
6121           if test "$no_cache" != 1; then
6122             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6123           fi
6124
6125           if test "$wxUSE_CARET" = yes; then
6126             echo "$ac_t""yes" 1>&6
6127           else
6128             echo "$ac_t""no" 1>&6
6129           fi
6130         
6131
6132           enablestring=
6133           echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
6134 echo "configure:6135: checking for --${enablestring:-enable}-checkbox" >&5
6135           no_cache=0
6136           # Check whether --enable-checkbox or --disable-checkbox was given.
6137 if test "${enable_checkbox+set}" = set; then
6138   enableval="$enable_checkbox"
6139   
6140                           if test "$enableval" = yes; then
6141                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6142                           else
6143                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6144                           fi
6145                         
6146 else
6147   
6148                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6149                           if test "x$LINE" != x ; then
6150                             eval "DEFAULT_$LINE"
6151                           else
6152                             no_cache=1
6153                           fi
6154
6155                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6156                         
6157 fi
6158
6159
6160           eval "$ac_cv_use_checkbox"
6161           if test "$no_cache" != 1; then
6162             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6163           fi
6164
6165           if test "$wxUSE_CHECKBOX" = yes; then
6166             echo "$ac_t""yes" 1>&6
6167           else
6168             echo "$ac_t""no" 1>&6
6169           fi
6170         
6171
6172           enablestring=
6173           echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
6174 echo "configure:6175: checking for --${enablestring:-enable}-checklst" >&5
6175           no_cache=0
6176           # Check whether --enable-checklst or --disable-checklst was given.
6177 if test "${enable_checklst+set}" = set; then
6178   enableval="$enable_checklst"
6179   
6180                           if test "$enableval" = yes; then
6181                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6182                           else
6183                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
6184                           fi
6185                         
6186 else
6187   
6188                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6189                           if test "x$LINE" != x ; then
6190                             eval "DEFAULT_$LINE"
6191                           else
6192                             no_cache=1
6193                           fi
6194
6195                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6196                         
6197 fi
6198
6199
6200           eval "$ac_cv_use_checklst"
6201           if test "$no_cache" != 1; then
6202             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6203           fi
6204
6205           if test "$wxUSE_CHECKLST" = yes; then
6206             echo "$ac_t""yes" 1>&6
6207           else
6208             echo "$ac_t""no" 1>&6
6209           fi
6210         
6211
6212           enablestring=
6213           echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
6214 echo "configure:6215: checking for --${enablestring:-enable}-choice" >&5
6215           no_cache=0
6216           # Check whether --enable-choice or --disable-choice was given.
6217 if test "${enable_choice+set}" = set; then
6218   enableval="$enable_choice"
6219   
6220                           if test "$enableval" = yes; then
6221                             ac_cv_use_choice='wxUSE_CHOICE=yes'
6222                           else
6223                             ac_cv_use_choice='wxUSE_CHOICE=no'
6224                           fi
6225                         
6226 else
6227   
6228                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6229                           if test "x$LINE" != x ; then
6230                             eval "DEFAULT_$LINE"
6231                           else
6232                             no_cache=1
6233                           fi
6234
6235                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6236                         
6237 fi
6238
6239
6240           eval "$ac_cv_use_choice"
6241           if test "$no_cache" != 1; then
6242             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6243           fi
6244
6245           if test "$wxUSE_CHOICE" = yes; then
6246             echo "$ac_t""yes" 1>&6
6247           else
6248             echo "$ac_t""no" 1>&6
6249           fi
6250         
6251
6252           enablestring=
6253           echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
6254 echo "configure:6255: checking for --${enablestring:-enable}-combobox" >&5
6255           no_cache=0
6256           # Check whether --enable-combobox or --disable-combobox was given.
6257 if test "${enable_combobox+set}" = set; then
6258   enableval="$enable_combobox"
6259   
6260                           if test "$enableval" = yes; then
6261                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6262                           else
6263                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6264                           fi
6265                         
6266 else
6267   
6268                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6269                           if test "x$LINE" != x ; then
6270                             eval "DEFAULT_$LINE"
6271                           else
6272                             no_cache=1
6273                           fi
6274
6275                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6276                         
6277 fi
6278
6279
6280           eval "$ac_cv_use_combobox"
6281           if test "$no_cache" != 1; then
6282             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6283           fi
6284
6285           if test "$wxUSE_COMBOBOX" = yes; then
6286             echo "$ac_t""yes" 1>&6
6287           else
6288             echo "$ac_t""no" 1>&6
6289           fi
6290         
6291
6292           enablestring=
6293           echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
6294 echo "configure:6295: checking for --${enablestring:-enable}-gauge" >&5
6295           no_cache=0
6296           # Check whether --enable-gauge or --disable-gauge was given.
6297 if test "${enable_gauge+set}" = set; then
6298   enableval="$enable_gauge"
6299   
6300                           if test "$enableval" = yes; then
6301                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
6302                           else
6303                             ac_cv_use_gauge='wxUSE_GAUGE=no'
6304                           fi
6305                         
6306 else
6307   
6308                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6309                           if test "x$LINE" != x ; then
6310                             eval "DEFAULT_$LINE"
6311                           else
6312                             no_cache=1
6313                           fi
6314
6315                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6316                         
6317 fi
6318
6319
6320           eval "$ac_cv_use_gauge"
6321           if test "$no_cache" != 1; then
6322             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6323           fi
6324
6325           if test "$wxUSE_GAUGE" = yes; then
6326             echo "$ac_t""yes" 1>&6
6327           else
6328             echo "$ac_t""no" 1>&6
6329           fi
6330         
6331
6332           enablestring=
6333           echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
6334 echo "configure:6335: checking for --${enablestring:-enable}-grid" >&5
6335           no_cache=0
6336           # Check whether --enable-grid or --disable-grid was given.
6337 if test "${enable_grid+set}" = set; then
6338   enableval="$enable_grid"
6339   
6340                           if test "$enableval" = yes; then
6341                             ac_cv_use_grid='wxUSE_GRID=yes'
6342                           else
6343                             ac_cv_use_grid='wxUSE_GRID=no'
6344                           fi
6345                         
6346 else
6347   
6348                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6349                           if test "x$LINE" != x ; then
6350                             eval "DEFAULT_$LINE"
6351                           else
6352                             no_cache=1
6353                           fi
6354
6355                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6356                         
6357 fi
6358
6359
6360           eval "$ac_cv_use_grid"
6361           if test "$no_cache" != 1; then
6362             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6363           fi
6364
6365           if test "$wxUSE_GRID" = yes; then
6366             echo "$ac_t""yes" 1>&6
6367           else
6368             echo "$ac_t""no" 1>&6
6369           fi
6370         
6371
6372           enablestring=
6373           echo $ac_n "checking for --${enablestring:-enable}-newgrid""... $ac_c" 1>&6
6374 echo "configure:6375: checking for --${enablestring:-enable}-newgrid" >&5
6375           no_cache=0
6376           # Check whether --enable-newgrid or --disable-newgrid was given.
6377 if test "${enable_newgrid+set}" = set; then
6378   enableval="$enable_newgrid"
6379   
6380                           if test "$enableval" = yes; then
6381                             ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6382                           else
6383                             ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6384                           fi
6385                         
6386 else
6387   
6388                           LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6389                           if test "x$LINE" != x ; then
6390                             eval "DEFAULT_$LINE"
6391                           else
6392                             no_cache=1
6393                           fi
6394
6395                           ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6396                         
6397 fi
6398
6399
6400           eval "$ac_cv_use_newgrid"
6401           if test "$no_cache" != 1; then
6402             echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6403           fi
6404
6405           if test "$wxUSE_NEW_GRID" = yes; then
6406             echo "$ac_t""yes" 1>&6
6407           else
6408             echo "$ac_t""no" 1>&6
6409           fi
6410         
6411
6412           enablestring=
6413           echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
6414 echo "configure:6415: checking for --${enablestring:-enable}-imaglist" >&5
6415           no_cache=0
6416           # Check whether --enable-imaglist or --disable-imaglist was given.
6417 if test "${enable_imaglist+set}" = set; then
6418   enableval="$enable_imaglist"
6419   
6420                           if test "$enableval" = yes; then
6421                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6422                           else
6423                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6424                           fi
6425                         
6426 else
6427   
6428                           LINE=`grep "wxUSE_IMAGLIST" ${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_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6436                         
6437 fi
6438
6439
6440           eval "$ac_cv_use_imaglist"
6441           if test "$no_cache" != 1; then
6442             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6443           fi
6444
6445           if test "$wxUSE_IMAGLIST" = yes; then
6446             echo "$ac_t""yes" 1>&6
6447           else
6448             echo "$ac_t""no" 1>&6
6449           fi
6450         
6451
6452           enablestring=
6453           echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
6454 echo "configure:6455: checking for --${enablestring:-enable}-listbox" >&5
6455           no_cache=0
6456           # Check whether --enable-listbox or --disable-listbox was given.
6457 if test "${enable_listbox+set}" = set; then
6458   enableval="$enable_listbox"
6459   
6460                           if test "$enableval" = yes; then
6461                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6462                           else
6463                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
6464                           fi
6465                         
6466 else
6467   
6468                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6469                           if test "x$LINE" != x ; then
6470                             eval "DEFAULT_$LINE"
6471                           else
6472                             no_cache=1
6473                           fi
6474
6475                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6476                         
6477 fi
6478
6479
6480           eval "$ac_cv_use_listbox"
6481           if test "$no_cache" != 1; then
6482             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6483           fi
6484
6485           if test "$wxUSE_LISTBOX" = yes; then
6486             echo "$ac_t""yes" 1>&6
6487           else
6488             echo "$ac_t""no" 1>&6
6489           fi
6490         
6491
6492           enablestring=
6493           echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
6494 echo "configure:6495: checking for --${enablestring:-enable}-listctrl" >&5
6495           no_cache=0
6496           # Check whether --enable-listctrl or --disable-listctrl was given.
6497 if test "${enable_listctrl+set}" = set; then
6498   enableval="$enable_listctrl"
6499   
6500                           if test "$enableval" = yes; then
6501                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6502                           else
6503                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6504                           fi
6505                         
6506 else
6507   
6508                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6509                           if test "x$LINE" != x ; then
6510                             eval "DEFAULT_$LINE"
6511                           else
6512                             no_cache=1
6513                           fi
6514
6515                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6516                         
6517 fi
6518
6519
6520           eval "$ac_cv_use_listctrl"
6521           if test "$no_cache" != 1; then
6522             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6523           fi
6524
6525           if test "$wxUSE_LISTCTRL" = yes; then
6526             echo "$ac_t""yes" 1>&6
6527           else
6528             echo "$ac_t""no" 1>&6
6529           fi
6530         
6531
6532           enablestring=
6533           echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
6534 echo "configure:6535: checking for --${enablestring:-enable}-notebook" >&5
6535           no_cache=0
6536           # Check whether --enable-notebook or --disable-notebook was given.
6537 if test "${enable_notebook+set}" = set; then
6538   enableval="$enable_notebook"
6539   
6540                           if test "$enableval" = yes; then
6541                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6542                           else
6543                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6544                           fi
6545                         
6546 else
6547   
6548                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6549                           if test "x$LINE" != x ; then
6550                             eval "DEFAULT_$LINE"
6551                           else
6552                             no_cache=1
6553                           fi
6554
6555                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6556                         
6557 fi
6558
6559
6560           eval "$ac_cv_use_notebook"
6561           if test "$no_cache" != 1; then
6562             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6563           fi
6564
6565           if test "$wxUSE_NOTEBOOK" = yes; then
6566             echo "$ac_t""yes" 1>&6
6567           else
6568             echo "$ac_t""no" 1>&6
6569           fi
6570         
6571
6572           enablestring=
6573           echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6
6574 echo "configure:6575: checking for --${enablestring:-enable}-propsheet" >&5
6575           no_cache=0
6576           # Check whether --enable-propsheet or --disable-propsheet was given.
6577 if test "${enable_propsheet+set}" = set; then
6578   enableval="$enable_propsheet"
6579   
6580                           if test "$enableval" = yes; then
6581                             ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6582                           else
6583                             ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6584                           fi
6585                         
6586 else
6587   
6588                           LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6589                           if test "x$LINE" != x ; then
6590                             eval "DEFAULT_$LINE"
6591                           else
6592                             no_cache=1
6593                           fi
6594
6595                           ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6596                         
6597 fi
6598
6599
6600           eval "$ac_cv_use_propsheet"
6601           if test "$no_cache" != 1; then
6602             echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6603           fi
6604
6605           if test "$wxUSE_PROPSHEET" = yes; then
6606             echo "$ac_t""yes" 1>&6
6607           else
6608             echo "$ac_t""no" 1>&6
6609           fi
6610         
6611
6612           enablestring=
6613           echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
6614 echo "configure:6615: checking for --${enablestring:-enable}-radiobox" >&5
6615           no_cache=0
6616           # Check whether --enable-radiobox or --disable-radiobox was given.
6617 if test "${enable_radiobox+set}" = set; then
6618   enableval="$enable_radiobox"
6619   
6620                           if test "$enableval" = yes; then
6621                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6622                           else
6623                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6624                           fi
6625                         
6626 else
6627   
6628                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6629                           if test "x$LINE" != x ; then
6630                             eval "DEFAULT_$LINE"
6631                           else
6632                             no_cache=1
6633                           fi
6634
6635                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6636                         
6637 fi
6638
6639
6640           eval "$ac_cv_use_radiobox"
6641           if test "$no_cache" != 1; then
6642             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6643           fi
6644
6645           if test "$wxUSE_RADIOBOX" = yes; then
6646             echo "$ac_t""yes" 1>&6
6647           else
6648             echo "$ac_t""no" 1>&6
6649           fi
6650         
6651
6652           enablestring=
6653           echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
6654 echo "configure:6655: checking for --${enablestring:-enable}-radiobtn" >&5
6655           no_cache=0
6656           # Check whether --enable-radiobtn or --disable-radiobtn was given.
6657 if test "${enable_radiobtn+set}" = set; then
6658   enableval="$enable_radiobtn"
6659   
6660                           if test "$enableval" = yes; then
6661                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6662                           else
6663                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6664                           fi
6665                         
6666 else
6667   
6668                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6669                           if test "x$LINE" != x ; then
6670                             eval "DEFAULT_$LINE"
6671                           else
6672                             no_cache=1
6673                           fi
6674
6675                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6676                         
6677 fi
6678
6679
6680           eval "$ac_cv_use_radiobtn"
6681           if test "$no_cache" != 1; then
6682             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6683           fi
6684
6685           if test "$wxUSE_RADIOBTN" = yes; then
6686             echo "$ac_t""yes" 1>&6
6687           else
6688             echo "$ac_t""no" 1>&6
6689           fi
6690         
6691
6692           enablestring=
6693           echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
6694 echo "configure:6695: checking for --${enablestring:-enable}-sash" >&5
6695           no_cache=0
6696           # Check whether --enable-sash or --disable-sash was given.
6697 if test "${enable_sash+set}" = set; then
6698   enableval="$enable_sash"
6699   
6700                           if test "$enableval" = yes; then
6701                             ac_cv_use_sash='wxUSE_SASH=yes'
6702                           else
6703                             ac_cv_use_sash='wxUSE_SASH=no'
6704                           fi
6705                         
6706 else
6707   
6708                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6709                           if test "x$LINE" != x ; then
6710                             eval "DEFAULT_$LINE"
6711                           else
6712                             no_cache=1
6713                           fi
6714
6715                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6716                         
6717 fi
6718
6719
6720           eval "$ac_cv_use_sash"
6721           if test "$no_cache" != 1; then
6722             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6723           fi
6724
6725           if test "$wxUSE_SASH" = yes; then
6726             echo "$ac_t""yes" 1>&6
6727           else
6728             echo "$ac_t""no" 1>&6
6729           fi
6730         
6731
6732           enablestring=
6733           echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
6734 echo "configure:6735: checking for --${enablestring:-enable}-scrollbar" >&5
6735           no_cache=0
6736           # Check whether --enable-scrollbar or --disable-scrollbar was given.
6737 if test "${enable_scrollbar+set}" = set; then
6738   enableval="$enable_scrollbar"
6739   
6740                           if test "$enableval" = yes; then
6741                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6742                           else
6743                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6744                           fi
6745                         
6746 else
6747   
6748                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6749                           if test "x$LINE" != x ; then
6750                             eval "DEFAULT_$LINE"
6751                           else
6752                             no_cache=1
6753                           fi
6754
6755                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6756                         
6757 fi
6758
6759
6760           eval "$ac_cv_use_scrollbar"
6761           if test "$no_cache" != 1; then
6762             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6763           fi
6764
6765           if test "$wxUSE_SCROLLBAR" = yes; then
6766             echo "$ac_t""yes" 1>&6
6767           else
6768             echo "$ac_t""no" 1>&6
6769           fi
6770         
6771
6772           enablestring=
6773           echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
6774 echo "configure:6775: checking for --${enablestring:-enable}-slider" >&5
6775           no_cache=0
6776           # Check whether --enable-slider or --disable-slider was given.
6777 if test "${enable_slider+set}" = set; then
6778   enableval="$enable_slider"
6779   
6780                           if test "$enableval" = yes; then
6781                             ac_cv_use_slider='wxUSE_SLIDER=yes'
6782                           else
6783                             ac_cv_use_slider='wxUSE_SLIDER=no'
6784                           fi
6785                         
6786 else
6787   
6788                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6789                           if test "x$LINE" != x ; then
6790                             eval "DEFAULT_$LINE"
6791                           else
6792                             no_cache=1
6793                           fi
6794
6795                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6796                         
6797 fi
6798
6799
6800           eval "$ac_cv_use_slider"
6801           if test "$no_cache" != 1; then
6802             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6803           fi
6804
6805           if test "$wxUSE_SLIDER" = yes; then
6806             echo "$ac_t""yes" 1>&6
6807           else
6808             echo "$ac_t""no" 1>&6
6809           fi
6810         
6811
6812           enablestring=
6813           echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
6814 echo "configure:6815: checking for --${enablestring:-enable}-spinbtn" >&5
6815           no_cache=0
6816           # Check whether --enable-spinbtn or --disable-spinbtn was given.
6817 if test "${enable_spinbtn+set}" = set; then
6818   enableval="$enable_spinbtn"
6819   
6820                           if test "$enableval" = yes; then
6821                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6822                           else
6823                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6824                           fi
6825                         
6826 else
6827   
6828                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6829                           if test "x$LINE" != x ; then
6830                             eval "DEFAULT_$LINE"
6831                           else
6832                             no_cache=1
6833                           fi
6834
6835                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6836                         
6837 fi
6838
6839
6840           eval "$ac_cv_use_spinbtn"
6841           if test "$no_cache" != 1; then
6842             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6843           fi
6844
6845           if test "$wxUSE_SPINBTN" = yes; then
6846             echo "$ac_t""yes" 1>&6
6847           else
6848             echo "$ac_t""no" 1>&6
6849           fi
6850         
6851
6852           enablestring=
6853           echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
6854 echo "configure:6855: checking for --${enablestring:-enable}-spinctrl" >&5
6855           no_cache=0
6856           # Check whether --enable-spinctrl or --disable-spinctrl was given.
6857 if test "${enable_spinctrl+set}" = set; then
6858   enableval="$enable_spinctrl"
6859   
6860                           if test "$enableval" = yes; then
6861                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6862                           else
6863                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6864                           fi
6865                         
6866 else
6867   
6868                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6869                           if test "x$LINE" != x ; then
6870                             eval "DEFAULT_$LINE"
6871                           else
6872                             no_cache=1
6873                           fi
6874
6875                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6876                         
6877 fi
6878
6879
6880           eval "$ac_cv_use_spinctrl"
6881           if test "$no_cache" != 1; then
6882             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6883           fi
6884
6885           if test "$wxUSE_SPINCTRL" = yes; then
6886             echo "$ac_t""yes" 1>&6
6887           else
6888             echo "$ac_t""no" 1>&6
6889           fi
6890         
6891
6892           enablestring=
6893           echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
6894 echo "configure:6895: checking for --${enablestring:-enable}-splitter" >&5
6895           no_cache=0
6896           # Check whether --enable-splitter or --disable-splitter was given.
6897 if test "${enable_splitter+set}" = set; then
6898   enableval="$enable_splitter"
6899   
6900                           if test "$enableval" = yes; then
6901                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6902                           else
6903                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
6904                           fi
6905                         
6906 else
6907   
6908                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6909                           if test "x$LINE" != x ; then
6910                             eval "DEFAULT_$LINE"
6911                           else
6912                             no_cache=1
6913                           fi
6914
6915                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6916                         
6917 fi
6918
6919
6920           eval "$ac_cv_use_splitter"
6921           if test "$no_cache" != 1; then
6922             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6923           fi
6924
6925           if test "$wxUSE_SPLITTER" = yes; then
6926             echo "$ac_t""yes" 1>&6
6927           else
6928             echo "$ac_t""no" 1>&6
6929           fi
6930         
6931
6932           enablestring=
6933           echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
6934 echo "configure:6935: checking for --${enablestring:-enable}-statbmp" >&5
6935           no_cache=0
6936           # Check whether --enable-statbmp or --disable-statbmp was given.
6937 if test "${enable_statbmp+set}" = set; then
6938   enableval="$enable_statbmp"
6939   
6940                           if test "$enableval" = yes; then
6941                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6942                           else
6943                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
6944                           fi
6945                         
6946 else
6947   
6948                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6949                           if test "x$LINE" != x ; then
6950                             eval "DEFAULT_$LINE"
6951                           else
6952                             no_cache=1
6953                           fi
6954
6955                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6956                         
6957 fi
6958
6959
6960           eval "$ac_cv_use_statbmp"
6961           if test "$no_cache" != 1; then
6962             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6963           fi
6964
6965           if test "$wxUSE_STATBMP" = yes; then
6966             echo "$ac_t""yes" 1>&6
6967           else
6968             echo "$ac_t""no" 1>&6
6969           fi
6970         
6971
6972           enablestring=
6973           echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
6974 echo "configure:6975: checking for --${enablestring:-enable}-statbox" >&5
6975           no_cache=0
6976           # Check whether --enable-statbox or --disable-statbox was given.
6977 if test "${enable_statbox+set}" = set; then
6978   enableval="$enable_statbox"
6979   
6980                           if test "$enableval" = yes; then
6981                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
6982                           else
6983                             ac_cv_use_statbox='wxUSE_STATBOX=no'
6984                           fi
6985                         
6986 else
6987   
6988                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6989                           if test "x$LINE" != x ; then
6990                             eval "DEFAULT_$LINE"
6991                           else
6992                             no_cache=1
6993                           fi
6994
6995                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6996                         
6997 fi
6998
6999
7000           eval "$ac_cv_use_statbox"
7001           if test "$no_cache" != 1; then
7002             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7003           fi
7004
7005           if test "$wxUSE_STATBOX" = yes; then
7006             echo "$ac_t""yes" 1>&6
7007           else
7008             echo "$ac_t""no" 1>&6
7009           fi
7010         
7011
7012           enablestring=
7013           echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
7014 echo "configure:7015: checking for --${enablestring:-enable}-statline" >&5
7015           no_cache=0
7016           # Check whether --enable-statline or --disable-statline was given.
7017 if test "${enable_statline+set}" = set; then
7018   enableval="$enable_statline"
7019   
7020                           if test "$enableval" = yes; then
7021                             ac_cv_use_statline='wxUSE_STATLINE=yes'
7022                           else
7023                             ac_cv_use_statline='wxUSE_STATLINE=no'
7024                           fi
7025                         
7026 else
7027   
7028                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7029                           if test "x$LINE" != x ; then
7030                             eval "DEFAULT_$LINE"
7031                           else
7032                             no_cache=1
7033                           fi
7034
7035                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
7036                         
7037 fi
7038
7039
7040           eval "$ac_cv_use_statline"
7041           if test "$no_cache" != 1; then
7042             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7043           fi
7044
7045           if test "$wxUSE_STATLINE" = yes; then
7046             echo "$ac_t""yes" 1>&6
7047           else
7048             echo "$ac_t""no" 1>&6
7049           fi
7050         
7051
7052           enablestring=
7053           echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
7054 echo "configure:7055: checking for --${enablestring:-enable}-stattext" >&5
7055           no_cache=0
7056           # Check whether --enable-stattext or --disable-stattext was given.
7057 if test "${enable_stattext+set}" = set; then
7058   enableval="$enable_stattext"
7059   
7060                           if test "$enableval" = yes; then
7061                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7062                           else
7063                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
7064                           fi
7065                         
7066 else
7067   
7068                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7069                           if test "x$LINE" != x ; then
7070                             eval "DEFAULT_$LINE"
7071                           else
7072                             no_cache=1
7073                           fi
7074
7075                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
7076                         
7077 fi
7078
7079
7080           eval "$ac_cv_use_stattext"
7081           if test "$no_cache" != 1; then
7082             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7083           fi
7084
7085           if test "$wxUSE_STATTEXT" = yes; then
7086             echo "$ac_t""yes" 1>&6
7087           else
7088             echo "$ac_t""no" 1>&6
7089           fi
7090         
7091
7092           enablestring=
7093           echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
7094 echo "configure:7095: checking for --${enablestring:-enable}-statusbar" >&5
7095           no_cache=0
7096           # Check whether --enable-statusbar or --disable-statusbar was given.
7097 if test "${enable_statusbar+set}" = set; then
7098   enableval="$enable_statusbar"
7099   
7100                           if test "$enableval" = yes; then
7101                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7102                           else
7103                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7104                           fi
7105                         
7106 else
7107   
7108                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7109                           if test "x$LINE" != x ; then
7110                             eval "DEFAULT_$LINE"
7111                           else
7112                             no_cache=1
7113                           fi
7114
7115                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
7116                         
7117 fi
7118
7119
7120           eval "$ac_cv_use_statusbar"
7121           if test "$no_cache" != 1; then
7122             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7123           fi
7124
7125           if test "$wxUSE_STATUSBAR" = yes; then
7126             echo "$ac_t""yes" 1>&6
7127           else
7128             echo "$ac_t""no" 1>&6
7129           fi
7130         
7131
7132           enablestring=
7133           echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
7134 echo "configure:7135: checking for --${enablestring:-enable}-tabdialog" >&5
7135           no_cache=0
7136           # Check whether --enable-tabdialog or --disable-tabdialog was given.
7137 if test "${enable_tabdialog+set}" = set; then
7138   enableval="$enable_tabdialog"
7139   
7140                           if test "$enableval" = yes; then
7141                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7142                           else
7143                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7144                           fi
7145                         
7146 else
7147   
7148                           LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7149                           if test "x$LINE" != x ; then
7150                             eval "DEFAULT_$LINE"
7151                           else
7152                             no_cache=1
7153                           fi
7154
7155                           ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7156                         
7157 fi
7158
7159
7160           eval "$ac_cv_use_tabdialog"
7161           if test "$no_cache" != 1; then
7162             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7163           fi
7164
7165           if test "$wxUSE_TABDIALOG" = yes; then
7166             echo "$ac_t""yes" 1>&6
7167           else
7168             echo "$ac_t""no" 1>&6
7169           fi
7170         
7171
7172           enablestring=
7173           echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
7174 echo "configure:7175: checking for --${enablestring:-enable}-textctrl" >&5
7175           no_cache=0
7176           # Check whether --enable-textctrl or --disable-textctrl was given.
7177 if test "${enable_textctrl+set}" = set; then
7178   enableval="$enable_textctrl"
7179   
7180                           if test "$enableval" = yes; then
7181                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7182                           else
7183                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7184                           fi
7185                         
7186 else
7187   
7188                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7189                           if test "x$LINE" != x ; then
7190                             eval "DEFAULT_$LINE"
7191                           else
7192                             no_cache=1
7193                           fi
7194
7195                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7196                         
7197 fi
7198
7199
7200           eval "$ac_cv_use_textctrl"
7201           if test "$no_cache" != 1; then
7202             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7203           fi
7204
7205           if test "$wxUSE_TEXTCTRL" = yes; then
7206             echo "$ac_t""yes" 1>&6
7207           else
7208             echo "$ac_t""no" 1>&6
7209           fi
7210         
7211
7212           enablestring=
7213           echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
7214 echo "configure:7215: checking for --${enablestring:-enable}-togglebtn" >&5
7215           no_cache=0
7216           # Check whether --enable-togglebtn or --disable-togglebtn was given.
7217 if test "${enable_togglebtn+set}" = set; then
7218   enableval="$enable_togglebtn"
7219   
7220                           if test "$enableval" = yes; then
7221                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7222                           else
7223                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7224                           fi
7225                         
7226 else
7227   
7228                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7229                           if test "x$LINE" != x ; then
7230                             eval "DEFAULT_$LINE"
7231                           else
7232                             no_cache=1
7233                           fi
7234
7235                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7236                         
7237 fi
7238
7239
7240           eval "$ac_cv_use_togglebtn"
7241           if test "$no_cache" != 1; then
7242             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7243           fi
7244
7245           if test "$wxUSE_TOGGLEBTN" = yes; then
7246             echo "$ac_t""yes" 1>&6
7247           else
7248             echo "$ac_t""no" 1>&6
7249           fi
7250         
7251
7252           enablestring=
7253           echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
7254 echo "configure:7255: checking for --${enablestring:-enable}-toolbar" >&5
7255           no_cache=0
7256           # Check whether --enable-toolbar or --disable-toolbar was given.
7257 if test "${enable_toolbar+set}" = set; then
7258   enableval="$enable_toolbar"
7259   
7260                           if test "$enableval" = yes; then
7261                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7262                           else
7263                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7264                           fi
7265                         
7266 else
7267   
7268                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7269                           if test "x$LINE" != x ; then
7270                             eval "DEFAULT_$LINE"
7271                           else
7272                             no_cache=1
7273                           fi
7274
7275                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7276                         
7277 fi
7278
7279
7280           eval "$ac_cv_use_toolbar"
7281           if test "$no_cache" != 1; then
7282             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7283           fi
7284
7285           if test "$wxUSE_TOOLBAR" = yes; then
7286             echo "$ac_t""yes" 1>&6
7287           else
7288             echo "$ac_t""no" 1>&6
7289           fi
7290         
7291
7292           enablestring=
7293           echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
7294 echo "configure:7295: checking for --${enablestring:-enable}-tbarnative" >&5
7295           no_cache=0
7296           # Check whether --enable-tbarnative or --disable-tbarnative was given.
7297 if test "${enable_tbarnative+set}" = set; then
7298   enableval="$enable_tbarnative"
7299   
7300                           if test "$enableval" = yes; then
7301                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7302                           else
7303                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7304                           fi
7305                         
7306 else
7307   
7308                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7309                           if test "x$LINE" != x ; then
7310                             eval "DEFAULT_$LINE"
7311                           else
7312                             no_cache=1
7313                           fi
7314
7315                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7316                         
7317 fi
7318
7319
7320           eval "$ac_cv_use_tbarnative"
7321           if test "$no_cache" != 1; then
7322             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7323           fi
7324
7325           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7326             echo "$ac_t""yes" 1>&6
7327           else
7328             echo "$ac_t""no" 1>&6
7329           fi
7330         
7331
7332           enablestring=
7333           echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
7334 echo "configure:7335: checking for --${enablestring:-enable}-tbarsmpl" >&5
7335           no_cache=0
7336           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7337 if test "${enable_tbarsmpl+set}" = set; then
7338   enableval="$enable_tbarsmpl"
7339   
7340                           if test "$enableval" = yes; then
7341                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7342                           else
7343                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7344                           fi
7345                         
7346 else
7347   
7348                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7349                           if test "x$LINE" != x ; then
7350                             eval "DEFAULT_$LINE"
7351                           else
7352                             no_cache=1
7353                           fi
7354
7355                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7356                         
7357 fi
7358
7359
7360           eval "$ac_cv_use_tbarsmpl"
7361           if test "$no_cache" != 1; then
7362             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7363           fi
7364
7365           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7366             echo "$ac_t""yes" 1>&6
7367           else
7368             echo "$ac_t""no" 1>&6
7369           fi
7370         
7371
7372           enablestring=
7373           echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
7374 echo "configure:7375: checking for --${enablestring:-enable}-treectrl" >&5
7375           no_cache=0
7376           # Check whether --enable-treectrl or --disable-treectrl was given.
7377 if test "${enable_treectrl+set}" = set; then
7378   enableval="$enable_treectrl"
7379   
7380                           if test "$enableval" = yes; then
7381                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7382                           else
7383                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7384                           fi
7385                         
7386 else
7387   
7388                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7389                           if test "x$LINE" != x ; then
7390                             eval "DEFAULT_$LINE"
7391                           else
7392                             no_cache=1
7393                           fi
7394
7395                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7396                         
7397 fi
7398
7399
7400           eval "$ac_cv_use_treectrl"
7401           if test "$no_cache" != 1; then
7402             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7403           fi
7404
7405           if test "$wxUSE_TREECTRL" = yes; then
7406             echo "$ac_t""yes" 1>&6
7407           else
7408             echo "$ac_t""no" 1>&6
7409           fi
7410         
7411
7412           enablestring=
7413           echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
7414 echo "configure:7415: checking for --${enablestring:-enable}-tipwindow" >&5
7415           no_cache=0
7416           # Check whether --enable-tipwindow or --disable-tipwindow was given.
7417 if test "${enable_tipwindow+set}" = set; then
7418   enableval="$enable_tipwindow"
7419   
7420                           if test "$enableval" = yes; then
7421                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7422                           else
7423                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7424                           fi
7425                         
7426 else
7427   
7428                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7429                           if test "x$LINE" != x ; then
7430                             eval "DEFAULT_$LINE"
7431                           else
7432                             no_cache=1
7433                           fi
7434
7435                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7436                         
7437 fi
7438
7439
7440           eval "$ac_cv_use_tipwindow"
7441           if test "$no_cache" != 1; then
7442             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7443           fi
7444
7445           if test "$wxUSE_TIPWINDOW" = yes; then
7446             echo "$ac_t""yes" 1>&6
7447           else
7448             echo "$ac_t""no" 1>&6
7449           fi
7450         
7451
7452           enablestring=
7453           echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
7454 echo "configure:7455: checking for --${enablestring:-enable}-popupwin" >&5
7455           no_cache=0
7456           # Check whether --enable-popupwin or --disable-popupwin was given.
7457 if test "${enable_popupwin+set}" = set; then
7458   enableval="$enable_popupwin"
7459   
7460                           if test "$enableval" = yes; then
7461                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7462                           else
7463                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7464                           fi
7465                         
7466 else
7467   
7468                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7469                           if test "x$LINE" != x ; then
7470                             eval "DEFAULT_$LINE"
7471                           else
7472                             no_cache=1
7473                           fi
7474
7475                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7476                         
7477 fi
7478
7479
7480           eval "$ac_cv_use_popupwin"
7481           if test "$no_cache" != 1; then
7482             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7483           fi
7484
7485           if test "$wxUSE_POPUPWIN" = yes; then
7486             echo "$ac_t""yes" 1>&6
7487           else
7488             echo "$ac_t""no" 1>&6
7489           fi
7490         
7491
7492
7493
7494           enablestring=
7495           echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
7496 echo "configure:7497: checking for --${enablestring:-enable}-commondlg" >&5
7497           no_cache=0
7498           # Check whether --enable-commondlg or --disable-commondlg was given.
7499 if test "${enable_commondlg+set}" = set; then
7500   enableval="$enable_commondlg"
7501   
7502                           if test "$enableval" = yes; then
7503                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7504                           else
7505                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7506                           fi
7507                         
7508 else
7509   
7510                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7511                           if test "x$LINE" != x ; then
7512                             eval "DEFAULT_$LINE"
7513                           else
7514                             no_cache=1
7515                           fi
7516
7517                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7518                         
7519 fi
7520
7521
7522           eval "$ac_cv_use_commondlg"
7523           if test "$no_cache" != 1; then
7524             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7525           fi
7526
7527           if test "$wxUSE_COMMONDLGS" = yes; then
7528             echo "$ac_t""yes" 1>&6
7529           else
7530             echo "$ac_t""no" 1>&6
7531           fi
7532         
7533
7534           enablestring=
7535           echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
7536 echo "configure:7537: checking for --${enablestring:-enable}-choicedlg" >&5
7537           no_cache=0
7538           # Check whether --enable-choicedlg or --disable-choicedlg was given.
7539 if test "${enable_choicedlg+set}" = set; then
7540   enableval="$enable_choicedlg"
7541   
7542                           if test "$enableval" = yes; then
7543                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7544                           else
7545                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7546                           fi
7547                         
7548 else
7549   
7550                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7551                           if test "x$LINE" != x ; then
7552                             eval "DEFAULT_$LINE"
7553                           else
7554                             no_cache=1
7555                           fi
7556
7557                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7558                         
7559 fi
7560
7561
7562           eval "$ac_cv_use_choicedlg"
7563           if test "$no_cache" != 1; then
7564             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7565           fi
7566
7567           if test "$wxUSE_CHOICEDLG" = yes; then
7568             echo "$ac_t""yes" 1>&6
7569           else
7570             echo "$ac_t""no" 1>&6
7571           fi
7572         
7573
7574           enablestring=
7575           echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
7576 echo "configure:7577: checking for --${enablestring:-enable}-coldlg" >&5
7577           no_cache=0
7578           # Check whether --enable-coldlg or --disable-coldlg was given.
7579 if test "${enable_coldlg+set}" = set; then
7580   enableval="$enable_coldlg"
7581   
7582                           if test "$enableval" = yes; then
7583                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7584                           else
7585                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7586                           fi
7587                         
7588 else
7589   
7590                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7591                           if test "x$LINE" != x ; then
7592                             eval "DEFAULT_$LINE"
7593                           else
7594                             no_cache=1
7595                           fi
7596
7597                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7598                         
7599 fi
7600
7601
7602           eval "$ac_cv_use_coldlg"
7603           if test "$no_cache" != 1; then
7604             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7605           fi
7606
7607           if test "$wxUSE_COLOURDLG" = yes; then
7608             echo "$ac_t""yes" 1>&6
7609           else
7610             echo "$ac_t""no" 1>&6
7611           fi
7612         
7613
7614           enablestring=
7615           echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
7616 echo "configure:7617: checking for --${enablestring:-enable}-filedlg" >&5
7617           no_cache=0
7618           # Check whether --enable-filedlg or --disable-filedlg was given.
7619 if test "${enable_filedlg+set}" = set; then
7620   enableval="$enable_filedlg"
7621   
7622                           if test "$enableval" = yes; then
7623                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7624                           else
7625                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7626                           fi
7627                         
7628 else
7629   
7630                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7631                           if test "x$LINE" != x ; then
7632                             eval "DEFAULT_$LINE"
7633                           else
7634                             no_cache=1
7635                           fi
7636
7637                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7638                         
7639 fi
7640
7641
7642           eval "$ac_cv_use_filedlg"
7643           if test "$no_cache" != 1; then
7644             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7645           fi
7646
7647           if test "$wxUSE_FILEDLG" = yes; then
7648             echo "$ac_t""yes" 1>&6
7649           else
7650             echo "$ac_t""no" 1>&6
7651           fi
7652         
7653
7654           enablestring=
7655           echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
7656 echo "configure:7657: checking for --${enablestring:-enable}-finddlg" >&5
7657           no_cache=0
7658           # Check whether --enable-finddlg or --disable-finddlg was given.
7659 if test "${enable_finddlg+set}" = set; then
7660   enableval="$enable_finddlg"
7661   
7662                           if test "$enableval" = yes; then
7663                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7664                           else
7665                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7666                           fi
7667                         
7668 else
7669   
7670                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7671                           if test "x$LINE" != x ; then
7672                             eval "DEFAULT_$LINE"
7673                           else
7674                             no_cache=1
7675                           fi
7676
7677                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7678                         
7679 fi
7680
7681
7682           eval "$ac_cv_use_finddlg"
7683           if test "$no_cache" != 1; then
7684             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7685           fi
7686
7687           if test "$wxUSE_FINDREPLDLG" = yes; then
7688             echo "$ac_t""yes" 1>&6
7689           else
7690             echo "$ac_t""no" 1>&6
7691           fi
7692         
7693
7694           enablestring=
7695           echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
7696 echo "configure:7697: checking for --${enablestring:-enable}-fontdlg" >&5
7697           no_cache=0
7698           # Check whether --enable-fontdlg or --disable-fontdlg was given.
7699 if test "${enable_fontdlg+set}" = set; then
7700   enableval="$enable_fontdlg"
7701   
7702                           if test "$enableval" = yes; then
7703                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7704                           else
7705                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7706                           fi
7707                         
7708 else
7709   
7710                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7711                           if test "x$LINE" != x ; then
7712                             eval "DEFAULT_$LINE"
7713                           else
7714                             no_cache=1
7715                           fi
7716
7717                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7718                         
7719 fi
7720
7721
7722           eval "$ac_cv_use_fontdlg"
7723           if test "$no_cache" != 1; then
7724             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7725           fi
7726
7727           if test "$wxUSE_FONTDLG" = yes; then
7728             echo "$ac_t""yes" 1>&6
7729           else
7730             echo "$ac_t""no" 1>&6
7731           fi
7732         
7733
7734           enablestring=
7735           echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
7736 echo "configure:7737: checking for --${enablestring:-enable}-dirdlg" >&5
7737           no_cache=0
7738           # Check whether --enable-dirdlg or --disable-dirdlg was given.
7739 if test "${enable_dirdlg+set}" = set; then
7740   enableval="$enable_dirdlg"
7741   
7742                           if test "$enableval" = yes; then
7743                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7744                           else
7745                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7746                           fi
7747                         
7748 else
7749   
7750                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7751                           if test "x$LINE" != x ; then
7752                             eval "DEFAULT_$LINE"
7753                           else
7754                             no_cache=1
7755                           fi
7756
7757                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7758                         
7759 fi
7760
7761
7762           eval "$ac_cv_use_dirdlg"
7763           if test "$no_cache" != 1; then
7764             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7765           fi
7766
7767           if test "$wxUSE_DIRDLG" = yes; then
7768             echo "$ac_t""yes" 1>&6
7769           else
7770             echo "$ac_t""no" 1>&6
7771           fi
7772         
7773
7774           enablestring=
7775           echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
7776 echo "configure:7777: checking for --${enablestring:-enable}-msgdlg" >&5
7777           no_cache=0
7778           # Check whether --enable-msgdlg or --disable-msgdlg was given.
7779 if test "${enable_msgdlg+set}" = set; then
7780   enableval="$enable_msgdlg"
7781   
7782                           if test "$enableval" = yes; then
7783                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7784                           else
7785                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7786                           fi
7787                         
7788 else
7789   
7790                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7791                           if test "x$LINE" != x ; then
7792                             eval "DEFAULT_$LINE"
7793                           else
7794                             no_cache=1
7795                           fi
7796
7797                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7798                         
7799 fi
7800
7801
7802           eval "$ac_cv_use_msgdlg"
7803           if test "$no_cache" != 1; then
7804             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7805           fi
7806
7807           if test "$wxUSE_MSGDLG" = yes; then
7808             echo "$ac_t""yes" 1>&6
7809           else
7810             echo "$ac_t""no" 1>&6
7811           fi
7812         
7813
7814           enablestring=
7815           echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
7816 echo "configure:7817: checking for --${enablestring:-enable}-numberdlg" >&5
7817           no_cache=0
7818           # Check whether --enable-numberdlg or --disable-numberdlg was given.
7819 if test "${enable_numberdlg+set}" = set; then
7820   enableval="$enable_numberdlg"
7821   
7822                           if test "$enableval" = yes; then
7823                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7824                           else
7825                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7826                           fi
7827                         
7828 else
7829   
7830                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7831                           if test "x$LINE" != x ; then
7832                             eval "DEFAULT_$LINE"
7833                           else
7834                             no_cache=1
7835                           fi
7836
7837                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7838                         
7839 fi
7840
7841
7842           eval "$ac_cv_use_numberdlg"
7843           if test "$no_cache" != 1; then
7844             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7845           fi
7846
7847           if test "$wxUSE_NUMBERDLG" = yes; then
7848             echo "$ac_t""yes" 1>&6
7849           else
7850             echo "$ac_t""no" 1>&6
7851           fi
7852         
7853
7854           enablestring=
7855           echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
7856 echo "configure:7857: checking for --${enablestring:-enable}-splash" >&5
7857           no_cache=0
7858           # Check whether --enable-splash or --disable-splash was given.
7859 if test "${enable_splash+set}" = set; then
7860   enableval="$enable_splash"
7861   
7862                           if test "$enableval" = yes; then
7863                             ac_cv_use_splash='wxUSE_SPLASH=yes'
7864                           else
7865                             ac_cv_use_splash='wxUSE_SPLASH=no'
7866                           fi
7867                         
7868 else
7869   
7870                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7871                           if test "x$LINE" != x ; then
7872                             eval "DEFAULT_$LINE"
7873                           else
7874                             no_cache=1
7875                           fi
7876
7877                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7878                         
7879 fi
7880
7881
7882           eval "$ac_cv_use_splash"
7883           if test "$no_cache" != 1; then
7884             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7885           fi
7886
7887           if test "$wxUSE_SPLASH" = yes; then
7888             echo "$ac_t""yes" 1>&6
7889           else
7890             echo "$ac_t""no" 1>&6
7891           fi
7892         
7893
7894           enablestring=
7895           echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
7896 echo "configure:7897: checking for --${enablestring:-enable}-textdlg" >&5
7897           no_cache=0
7898           # Check whether --enable-textdlg or --disable-textdlg was given.
7899 if test "${enable_textdlg+set}" = set; then
7900   enableval="$enable_textdlg"
7901   
7902                           if test "$enableval" = yes; then
7903                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7904                           else
7905                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7906                           fi
7907                         
7908 else
7909   
7910                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7911                           if test "x$LINE" != x ; then
7912                             eval "DEFAULT_$LINE"
7913                           else
7914                             no_cache=1
7915                           fi
7916
7917                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7918                         
7919 fi
7920
7921
7922           eval "$ac_cv_use_textdlg"
7923           if test "$no_cache" != 1; then
7924             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7925           fi
7926
7927           if test "$wxUSE_TEXTDLG" = yes; then
7928             echo "$ac_t""yes" 1>&6
7929           else
7930             echo "$ac_t""no" 1>&6
7931           fi
7932         
7933
7934           enablestring=
7935           echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
7936 echo "configure:7937: checking for --${enablestring:-enable}-tipdlg" >&5
7937           no_cache=0
7938           # Check whether --enable-tipdlg or --disable-tipdlg was given.
7939 if test "${enable_tipdlg+set}" = set; then
7940   enableval="$enable_tipdlg"
7941   
7942                           if test "$enableval" = yes; then
7943                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7944                           else
7945                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7946                           fi
7947                         
7948 else
7949   
7950                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7951                           if test "x$LINE" != x ; then
7952                             eval "DEFAULT_$LINE"
7953                           else
7954                             no_cache=1
7955                           fi
7956
7957                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7958                         
7959 fi
7960
7961
7962           eval "$ac_cv_use_tipdlg"
7963           if test "$no_cache" != 1; then
7964             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7965           fi
7966
7967           if test "$wxUSE_STARTUP_TIPS" = yes; then
7968             echo "$ac_t""yes" 1>&6
7969           else
7970             echo "$ac_t""no" 1>&6
7971           fi
7972         
7973
7974           enablestring=
7975           echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
7976 echo "configure:7977: checking for --${enablestring:-enable}-progressdlg" >&5
7977           no_cache=0
7978           # Check whether --enable-progressdlg or --disable-progressdlg was given.
7979 if test "${enable_progressdlg+set}" = set; then
7980   enableval="$enable_progressdlg"
7981   
7982                           if test "$enableval" = yes; then
7983                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7984                           else
7985                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7986                           fi
7987                         
7988 else
7989   
7990                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7991                           if test "x$LINE" != x ; then
7992                             eval "DEFAULT_$LINE"
7993                           else
7994                             no_cache=1
7995                           fi
7996
7997                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7998                         
7999 fi
8000
8001
8002           eval "$ac_cv_use_progressdlg"
8003           if test "$no_cache" != 1; then
8004             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8005           fi
8006
8007           if test "$wxUSE_PROGRESSDLG" = yes; then
8008             echo "$ac_t""yes" 1>&6
8009           else
8010             echo "$ac_t""no" 1>&6
8011           fi
8012         
8013
8014           enablestring=
8015           echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
8016 echo "configure:8017: checking for --${enablestring:-enable}-wizarddlg" >&5
8017           no_cache=0
8018           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8019 if test "${enable_wizarddlg+set}" = set; then
8020   enableval="$enable_wizarddlg"
8021   
8022                           if test "$enableval" = yes; then
8023                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8024                           else
8025                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8026                           fi
8027                         
8028 else
8029   
8030                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8031                           if test "x$LINE" != x ; then
8032                             eval "DEFAULT_$LINE"
8033                           else
8034                             no_cache=1
8035                           fi
8036
8037                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
8038                         
8039 fi
8040
8041
8042           eval "$ac_cv_use_wizarddlg"
8043           if test "$no_cache" != 1; then
8044             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8045           fi
8046
8047           if test "$wxUSE_WIZARDDLG" = yes; then
8048             echo "$ac_t""yes" 1>&6
8049           else
8050             echo "$ac_t""no" 1>&6
8051           fi
8052         
8053
8054
8055
8056           enablestring=
8057           echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
8058 echo "configure:8059: checking for --${enablestring:-enable}-menus" >&5
8059           no_cache=0
8060           # Check whether --enable-menus or --disable-menus was given.
8061 if test "${enable_menus+set}" = set; then
8062   enableval="$enable_menus"
8063   
8064                           if test "$enableval" = yes; then
8065                             ac_cv_use_menus='wxUSE_MENUS=yes'
8066                           else
8067                             ac_cv_use_menus='wxUSE_MENUS=no'
8068                           fi
8069                         
8070 else
8071   
8072                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8073                           if test "x$LINE" != x ; then
8074                             eval "DEFAULT_$LINE"
8075                           else
8076                             no_cache=1
8077                           fi
8078
8079                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
8080                         
8081 fi
8082
8083
8084           eval "$ac_cv_use_menus"
8085           if test "$no_cache" != 1; then
8086             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8087           fi
8088
8089           if test "$wxUSE_MENUS" = yes; then
8090             echo "$ac_t""yes" 1>&6
8091           else
8092             echo "$ac_t""no" 1>&6
8093           fi
8094         
8095
8096           enablestring=
8097           echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
8098 echo "configure:8099: checking for --${enablestring:-enable}-miniframe" >&5
8099           no_cache=0
8100           # Check whether --enable-miniframe or --disable-miniframe was given.
8101 if test "${enable_miniframe+set}" = set; then
8102   enableval="$enable_miniframe"
8103   
8104                           if test "$enableval" = yes; then
8105                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8106                           else
8107                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8108                           fi
8109                         
8110 else
8111   
8112                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8113                           if test "x$LINE" != x ; then
8114                             eval "DEFAULT_$LINE"
8115                           else
8116                             no_cache=1
8117                           fi
8118
8119                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
8120                         
8121 fi
8122
8123
8124           eval "$ac_cv_use_miniframe"
8125           if test "$no_cache" != 1; then
8126             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8127           fi
8128
8129           if test "$wxUSE_MINIFRAME" = yes; then
8130             echo "$ac_t""yes" 1>&6
8131           else
8132             echo "$ac_t""no" 1>&6
8133           fi
8134         
8135
8136           enablestring=
8137           echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
8138 echo "configure:8139: checking for --${enablestring:-enable}-tooltips" >&5
8139           no_cache=0
8140           # Check whether --enable-tooltips or --disable-tooltips was given.
8141 if test "${enable_tooltips+set}" = set; then
8142   enableval="$enable_tooltips"
8143   
8144                           if test "$enableval" = yes; then
8145                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8146                           else
8147                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8148                           fi
8149                         
8150 else
8151   
8152                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8153                           if test "x$LINE" != x ; then
8154                             eval "DEFAULT_$LINE"
8155                           else
8156                             no_cache=1
8157                           fi
8158
8159                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8160                         
8161 fi
8162
8163
8164           eval "$ac_cv_use_tooltips"
8165           if test "$no_cache" != 1; then
8166             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8167           fi
8168
8169           if test "$wxUSE_TOOLTIPS" = yes; then
8170             echo "$ac_t""yes" 1>&6
8171           else
8172             echo "$ac_t""no" 1>&6
8173           fi
8174         
8175
8176           enablestring=
8177           echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
8178 echo "configure:8179: checking for --${enablestring:-enable}-splines" >&5
8179           no_cache=0
8180           # Check whether --enable-splines or --disable-splines was given.
8181 if test "${enable_splines+set}" = set; then
8182   enableval="$enable_splines"
8183   
8184                           if test "$enableval" = yes; then
8185                             ac_cv_use_splines='wxUSE_SPLINES=yes'
8186                           else
8187                             ac_cv_use_splines='wxUSE_SPLINES=no'
8188                           fi
8189                         
8190 else
8191   
8192                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8193                           if test "x$LINE" != x ; then
8194                             eval "DEFAULT_$LINE"
8195                           else
8196                             no_cache=1
8197                           fi
8198
8199                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8200                         
8201 fi
8202
8203
8204           eval "$ac_cv_use_splines"
8205           if test "$no_cache" != 1; then
8206             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8207           fi
8208
8209           if test "$wxUSE_SPLINES" = yes; then
8210             echo "$ac_t""yes" 1>&6
8211           else
8212             echo "$ac_t""no" 1>&6
8213           fi
8214         
8215
8216           enablestring=
8217           echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
8218 echo "configure:8219: checking for --${enablestring:-enable}-validators" >&5
8219           no_cache=0
8220           # Check whether --enable-validators or --disable-validators was given.
8221 if test "${enable_validators+set}" = set; then
8222   enableval="$enable_validators"
8223   
8224                           if test "$enableval" = yes; then
8225                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8226                           else
8227                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
8228                           fi
8229                         
8230 else
8231   
8232                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8233                           if test "x$LINE" != x ; then
8234                             eval "DEFAULT_$LINE"
8235                           else
8236                             no_cache=1
8237                           fi
8238
8239                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8240                         
8241 fi
8242
8243
8244           eval "$ac_cv_use_validators"
8245           if test "$no_cache" != 1; then
8246             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8247           fi
8248
8249           if test "$wxUSE_VALIDATORS" = yes; then
8250             echo "$ac_t""yes" 1>&6
8251           else
8252             echo "$ac_t""no" 1>&6
8253           fi
8254         
8255
8256           enablestring=
8257           echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
8258 echo "configure:8259: checking for --${enablestring:-enable}-busyinfo" >&5
8259           no_cache=0
8260           # Check whether --enable-busyinfo or --disable-busyinfo was given.
8261 if test "${enable_busyinfo+set}" = set; then
8262   enableval="$enable_busyinfo"
8263   
8264                           if test "$enableval" = yes; then
8265                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8266                           else
8267                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8268                           fi
8269                         
8270 else
8271   
8272                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8273                           if test "x$LINE" != x ; then
8274                             eval "DEFAULT_$LINE"
8275                           else
8276                             no_cache=1
8277                           fi
8278
8279                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8280                         
8281 fi
8282
8283
8284           eval "$ac_cv_use_busyinfo"
8285           if test "$no_cache" != 1; then
8286             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8287           fi
8288
8289           if test "$wxUSE_BUSYINFO" = yes; then
8290             echo "$ac_t""yes" 1>&6
8291           else
8292             echo "$ac_t""no" 1>&6
8293           fi
8294         
8295
8296           enablestring=
8297           echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
8298 echo "configure:8299: checking for --${enablestring:-enable}-joystick" >&5
8299           no_cache=0
8300           # Check whether --enable-joystick or --disable-joystick was given.
8301 if test "${enable_joystick+set}" = set; then
8302   enableval="$enable_joystick"
8303   
8304                           if test "$enableval" = yes; then
8305                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8306                           else
8307                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8308                           fi
8309                         
8310 else
8311   
8312                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8313                           if test "x$LINE" != x ; then
8314                             eval "DEFAULT_$LINE"
8315                           else
8316                             no_cache=1
8317                           fi
8318
8319                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8320                         
8321 fi
8322
8323
8324           eval "$ac_cv_use_joystick"
8325           if test "$no_cache" != 1; then
8326             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8327           fi
8328
8329           if test "$wxUSE_JOYSTICK" = yes; then
8330             echo "$ac_t""yes" 1>&6
8331           else
8332             echo "$ac_t""no" 1>&6
8333           fi
8334         
8335
8336           enablestring=
8337           echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
8338 echo "configure:8339: checking for --${enablestring:-enable}-metafile" >&5
8339           no_cache=0
8340           # Check whether --enable-metafile or --disable-metafile was given.
8341 if test "${enable_metafile+set}" = set; then
8342   enableval="$enable_metafile"
8343   
8344                           if test "$enableval" = yes; then
8345                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
8346                           else
8347                             ac_cv_use_metafile='wxUSE_METAFILE=no'
8348                           fi
8349                         
8350 else
8351   
8352                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8353                           if test "x$LINE" != x ; then
8354                             eval "DEFAULT_$LINE"
8355                           else
8356                             no_cache=1
8357                           fi
8358
8359                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8360                         
8361 fi
8362
8363
8364           eval "$ac_cv_use_metafile"
8365           if test "$no_cache" != 1; then
8366             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8367           fi
8368
8369           if test "$wxUSE_METAFILE" = yes; then
8370             echo "$ac_t""yes" 1>&6
8371           else
8372             echo "$ac_t""no" 1>&6
8373           fi
8374         
8375
8376           enablestring=
8377           echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
8378 echo "configure:8379: checking for --${enablestring:-enable}-dragimage" >&5
8379           no_cache=0
8380           # Check whether --enable-dragimage or --disable-dragimage was given.
8381 if test "${enable_dragimage+set}" = set; then
8382   enableval="$enable_dragimage"
8383   
8384                           if test "$enableval" = yes; then
8385                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8386                           else
8387                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8388                           fi
8389                         
8390 else
8391   
8392                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8393                           if test "x$LINE" != x ; then
8394                             eval "DEFAULT_$LINE"
8395                           else
8396                             no_cache=1
8397                           fi
8398
8399                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8400                         
8401 fi
8402
8403
8404           eval "$ac_cv_use_dragimage"
8405           if test "$no_cache" != 1; then
8406             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8407           fi
8408
8409           if test "$wxUSE_DRAGIMAGE" = yes; then
8410             echo "$ac_t""yes" 1>&6
8411           else
8412             echo "$ac_t""no" 1>&6
8413           fi
8414         
8415
8416
8417
8418           enablestring=
8419           echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
8420 echo "configure:8421: checking for --${enablestring:-enable}-palette" >&5
8421           no_cache=0
8422           # Check whether --enable-palette or --disable-palette was given.
8423 if test "${enable_palette+set}" = set; then
8424   enableval="$enable_palette"
8425   
8426                           if test "$enableval" = yes; then
8427                             ac_cv_use_palette='wxUSE_PALETTE=yes'
8428                           else
8429                             ac_cv_use_palette='wxUSE_PALETTE=no'
8430                           fi
8431                         
8432 else
8433   
8434                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8435                           if test "x$LINE" != x ; then
8436                             eval "DEFAULT_$LINE"
8437                           else
8438                             no_cache=1
8439                           fi
8440
8441                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8442                         
8443 fi
8444
8445
8446           eval "$ac_cv_use_palette"
8447           if test "$no_cache" != 1; then
8448             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8449           fi
8450
8451           if test "$wxUSE_PALETTE" = yes; then
8452             echo "$ac_t""yes" 1>&6
8453           else
8454             echo "$ac_t""no" 1>&6
8455           fi
8456         
8457
8458           enablestring=
8459           echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
8460 echo "configure:8461: checking for --${enablestring:-enable}-image" >&5
8461           no_cache=0
8462           # Check whether --enable-image or --disable-image was given.
8463 if test "${enable_image+set}" = set; then
8464   enableval="$enable_image"
8465   
8466                           if test "$enableval" = yes; then
8467                             ac_cv_use_image='wxUSE_IMAGE=yes'
8468                           else
8469                             ac_cv_use_image='wxUSE_IMAGE=no'
8470                           fi
8471                         
8472 else
8473   
8474                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8475                           if test "x$LINE" != x ; then
8476                             eval "DEFAULT_$LINE"
8477                           else
8478                             no_cache=1
8479                           fi
8480
8481                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8482                         
8483 fi
8484
8485
8486           eval "$ac_cv_use_image"
8487           if test "$no_cache" != 1; then
8488             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8489           fi
8490
8491           if test "$wxUSE_IMAGE" = yes; then
8492             echo "$ac_t""yes" 1>&6
8493           else
8494             echo "$ac_t""no" 1>&6
8495           fi
8496         
8497
8498           enablestring=
8499           echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
8500 echo "configure:8501: checking for --${enablestring:-enable}-gif" >&5
8501           no_cache=0
8502           # Check whether --enable-gif or --disable-gif was given.
8503 if test "${enable_gif+set}" = set; then
8504   enableval="$enable_gif"
8505   
8506                           if test "$enableval" = yes; then
8507                             ac_cv_use_gif='wxUSE_GIF=yes'
8508                           else
8509                             ac_cv_use_gif='wxUSE_GIF=no'
8510                           fi
8511                         
8512 else
8513   
8514                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8515                           if test "x$LINE" != x ; then
8516                             eval "DEFAULT_$LINE"
8517                           else
8518                             no_cache=1
8519                           fi
8520
8521                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8522                         
8523 fi
8524
8525
8526           eval "$ac_cv_use_gif"
8527           if test "$no_cache" != 1; then
8528             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8529           fi
8530
8531           if test "$wxUSE_GIF" = yes; then
8532             echo "$ac_t""yes" 1>&6
8533           else
8534             echo "$ac_t""no" 1>&6
8535           fi
8536         
8537
8538           enablestring=
8539           echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
8540 echo "configure:8541: checking for --${enablestring:-enable}-pcx" >&5
8541           no_cache=0
8542           # Check whether --enable-pcx or --disable-pcx was given.
8543 if test "${enable_pcx+set}" = set; then
8544   enableval="$enable_pcx"
8545   
8546                           if test "$enableval" = yes; then
8547                             ac_cv_use_pcx='wxUSE_PCX=yes'
8548                           else
8549                             ac_cv_use_pcx='wxUSE_PCX=no'
8550                           fi
8551                         
8552 else
8553   
8554                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8555                           if test "x$LINE" != x ; then
8556                             eval "DEFAULT_$LINE"
8557                           else
8558                             no_cache=1
8559                           fi
8560
8561                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8562                         
8563 fi
8564
8565
8566           eval "$ac_cv_use_pcx"
8567           if test "$no_cache" != 1; then
8568             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8569           fi
8570
8571           if test "$wxUSE_PCX" = yes; then
8572             echo "$ac_t""yes" 1>&6
8573           else
8574             echo "$ac_t""no" 1>&6
8575           fi
8576         
8577
8578           enablestring=
8579           echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
8580 echo "configure:8581: checking for --${enablestring:-enable}-iff" >&5
8581           no_cache=0
8582           # Check whether --enable-iff or --disable-iff was given.
8583 if test "${enable_iff+set}" = set; then
8584   enableval="$enable_iff"
8585   
8586                           if test "$enableval" = yes; then
8587                             ac_cv_use_iff='wxUSE_IFF=yes'
8588                           else
8589                             ac_cv_use_iff='wxUSE_IFF=no'
8590                           fi
8591                         
8592 else
8593   
8594                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8595                           if test "x$LINE" != x ; then
8596                             eval "DEFAULT_$LINE"
8597                           else
8598                             no_cache=1
8599                           fi
8600
8601                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8602                         
8603 fi
8604
8605
8606           eval "$ac_cv_use_iff"
8607           if test "$no_cache" != 1; then
8608             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8609           fi
8610
8611           if test "$wxUSE_IFF" = yes; then
8612             echo "$ac_t""yes" 1>&6
8613           else
8614             echo "$ac_t""no" 1>&6
8615           fi
8616         
8617
8618           enablestring=
8619           echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
8620 echo "configure:8621: checking for --${enablestring:-enable}-pnm" >&5
8621           no_cache=0
8622           # Check whether --enable-pnm or --disable-pnm was given.
8623 if test "${enable_pnm+set}" = set; then
8624   enableval="$enable_pnm"
8625   
8626                           if test "$enableval" = yes; then
8627                             ac_cv_use_pnm='wxUSE_PNM=yes'
8628                           else
8629                             ac_cv_use_pnm='wxUSE_PNM=no'
8630                           fi
8631                         
8632 else
8633   
8634                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8635                           if test "x$LINE" != x ; then
8636                             eval "DEFAULT_$LINE"
8637                           else
8638                             no_cache=1
8639                           fi
8640
8641                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8642                         
8643 fi
8644
8645
8646           eval "$ac_cv_use_pnm"
8647           if test "$no_cache" != 1; then
8648             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8649           fi
8650
8651           if test "$wxUSE_PNM" = yes; then
8652             echo "$ac_t""yes" 1>&6
8653           else
8654             echo "$ac_t""no" 1>&6
8655           fi
8656         
8657
8658           enablestring=
8659           echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
8660 echo "configure:8661: checking for --${enablestring:-enable}-xpm" >&5
8661           no_cache=0
8662           # Check whether --enable-xpm or --disable-xpm was given.
8663 if test "${enable_xpm+set}" = set; then
8664   enableval="$enable_xpm"
8665   
8666                           if test "$enableval" = yes; then
8667                             ac_cv_use_xpm='wxUSE_XPM=yes'
8668                           else
8669                             ac_cv_use_xpm='wxUSE_XPM=no'
8670                           fi
8671                         
8672 else
8673   
8674                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8675                           if test "x$LINE" != x ; then
8676                             eval "DEFAULT_$LINE"
8677                           else
8678                             no_cache=1
8679                           fi
8680
8681                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8682                         
8683 fi
8684
8685
8686           eval "$ac_cv_use_xpm"
8687           if test "$no_cache" != 1; then
8688             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8689           fi
8690
8691           if test "$wxUSE_XPM" = yes; then
8692             echo "$ac_t""yes" 1>&6
8693           else
8694             echo "$ac_t""no" 1>&6
8695           fi
8696         
8697
8698           enablestring=
8699           echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
8700 echo "configure:8701: checking for --${enablestring:-enable}-ico_cur" >&5
8701           no_cache=0
8702           # Check whether --enable-ico_cur or --disable-ico_cur was given.
8703 if test "${enable_ico_cur+set}" = set; then
8704   enableval="$enable_ico_cur"
8705   
8706                           if test "$enableval" = yes; then
8707                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8708                           else
8709                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8710                           fi
8711                         
8712 else
8713   
8714                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8715                           if test "x$LINE" != x ; then
8716                             eval "DEFAULT_$LINE"
8717                           else
8718                             no_cache=1
8719                           fi
8720
8721                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8722                         
8723 fi
8724
8725
8726           eval "$ac_cv_use_ico_cur"
8727           if test "$no_cache" != 1; then
8728             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8729           fi
8730
8731           if test "$wxUSE_ICO_CUR" = yes; then
8732             echo "$ac_t""yes" 1>&6
8733           else
8734             echo "$ac_t""no" 1>&6
8735           fi
8736         
8737
8738 fi
8739
8740 case "${host}" in
8741   *-pc-os2_emx | *-pc-os2-emx )
8742     PATH_IFS=';'
8743     LEX_STEM="lexyy"
8744   ;;
8745   *)
8746     PATH_IFS=':'
8747     LEX_STEM="lex.yy"
8748   ;;
8749 esac
8750
8751
8752
8753           echo "saving argument cache $wx_arg_cache_file"
8754           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8755         
8756
8757
8758 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8759 echo "configure:8760: checking for toolkit" >&5
8760
8761 # In Wine, we need to default to MSW, not GTK or MOTIF
8762 if test "$wxUSE_WINE" = "yes"; then
8763     DEFAULT_DEFAULT_wxUSE_GTK=0
8764     DEFAULT_DEFAULT_wxUSE_MOTIF=0
8765     DEFAULT_DEFAULT_wxUSE_MSW=1
8766 fi
8767
8768 if test "$wxUSE_GUI" = "yes"; then
8769
8770     if test "$USE_BEOS" = 1; then
8771         { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8772     fi
8773
8774     if test "$TOOLKIT_GIVEN" = 1; then
8775             for toolkit in `echo $ALL_TOOLKITS`; do
8776         var=wxUSE_$toolkit
8777         eval "value=\$${var}"
8778         eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8779       done
8780     else
8781             for toolkit in `echo $ALL_TOOLKITS`; do
8782         if test "$has_toolkit_in_cache" != 1; then
8783           var=DEFAULT_DEFAULT_wxUSE_$toolkit
8784         else
8785           var=DEFAULT_wxUSE_$toolkit
8786         fi
8787         eval "wxUSE_$toolkit=\$${var}"
8788       done
8789     fi
8790
8791             NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0}  \
8792                   + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8793
8794         case "${host}" in
8795       *-pc-os2_emx | *-pc-os2-emx )
8796         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8797     esac
8798
8799     case "$NUM_TOOLKITS" in
8800       1)
8801       ;;
8802       0)
8803         { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
8804       ;;
8805       *)
8806         { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
8807     esac
8808
8809         for toolkit in `echo $ALL_TOOLKITS`; do
8810       var=wxUSE_$toolkit
8811       eval "value=\$${var}"
8812       if test "x$value" != x; then
8813         cache_var=CACHE_$toolkit
8814         eval "cache=\$${cache_var}"
8815         if test "$cache" = 1; then
8816           echo "$var=$value" >> ${wx_arg_cache_file}
8817         fi
8818         if test "$value" = 1; then
8819           toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8820           echo "$ac_t""$toolkit_echo" 1>&6
8821         fi
8822       fi
8823     done
8824 else
8825     echo "$ac_t""base ($host_alias hosted) only" 1>&6
8826 fi
8827
8828 wants_win32=0
8829 doesnt_want_win32=0
8830 case "${host}" in
8831   *-*-cygwin*)
8832       if test "$wxUSE_MSW" = 1 ; then
8833         wants_win32=1
8834       else
8835         doesnt_want_win32=1
8836       fi
8837   ;;
8838   *-*-mingw*)
8839       wants_win32=1
8840   ;;
8841 esac
8842
8843 if test "$wxUSE_WINE" = "yes"; then
8844     wants_win32=1
8845         CC=winegcc
8846     CXX=wineg++
8847     RESCOMP=wrc
8848 fi
8849
8850 if test "$wants_win32" = 1 ; then
8851     USE_UNIX=0
8852     USE_WIN32=1
8853     cat >> confdefs.h <<\EOF
8854 #define __WIN32__ 1
8855 EOF
8856
8857     cat >> confdefs.h <<\EOF
8858 #define __WIN95__ 1
8859 EOF
8860
8861     cat >> confdefs.h <<\EOF
8862 #define __WINDOWS__ 1
8863 EOF
8864
8865     cat >> confdefs.h <<\EOF
8866 #define __GNUWIN32__ 1
8867 EOF
8868
8869     cat >> confdefs.h <<\EOF
8870 #define STRICT 1
8871 EOF
8872
8873     cat >> confdefs.h <<\EOF
8874 #define WINVER 0x0400
8875 EOF
8876
8877 fi
8878 if test "$doesnt_want_win32" = 1 ; then
8879     USE_UNIX=1
8880     USE_WIN32=0
8881 fi
8882
8883 if test "$USE_UNIX" = 1 ; then
8884     wxUSE_UNIX=yes
8885     cat >> confdefs.h <<\EOF
8886 #define __UNIX__ 1
8887 EOF
8888
8889 fi
8890
8891
8892 cat > confcache <<\EOF
8893 # This file is a shell script that caches the results of configure
8894 # tests run on this system so they can be shared between configure
8895 # scripts and configure runs.  It is not useful on other systems.
8896 # If it contains results you don't want to keep, you may remove or edit it.
8897 #
8898 # By default, configure uses ./config.cache as the cache file,
8899 # creating it if it does not exist already.  You can give configure
8900 # the --cache-file=FILE option to use a different cache file; that is
8901 # what configure does when it calls configure scripts in
8902 # subdirectories, so they share the cache.
8903 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8904 # config.status only pays attention to the cache file if you give it the
8905 # --recheck option to rerun configure.
8906 #
8907 EOF
8908 # The following way of writing the cache mishandles newlines in values,
8909 # but we know of no workaround that is simple, portable, and efficient.
8910 # So, don't put newlines in cache variables' values.
8911 # Ultrix sh set writes to stderr and can't be redirected directly,
8912 # and sets the high bit in the cache file unless we assign to the vars.
8913 (set) 2>&1 |
8914   case `(ac_space=' '; set | grep ac_space) 2>&1` in
8915   *ac_space=\ *)
8916     # `set' does not quote correctly, so add quotes (double-quote substitution
8917     # turns \\\\ into \\, and sed turns \\ into \).
8918     sed -n \
8919       -e "s/'/'\\\\''/g" \
8920       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8921     ;;
8922   *)
8923     # `set' quotes correctly as required by POSIX, so do not add quotes.
8924     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8925     ;;
8926   esac >> confcache
8927 if cmp -s $cache_file confcache; then
8928   :
8929 else
8930   if test -w $cache_file; then
8931     echo "updating cache $cache_file"
8932     cat confcache > $cache_file
8933   else
8934     echo "not updating unwritable cache $cache_file"
8935   fi
8936 fi
8937 rm -f confcache
8938
8939
8940 if test "$build" != "$host" ; then
8941     if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8942         CC=$host_alias-gcc
8943         CXX=$host_alias-c++
8944         AR=$host_alias-ar
8945         RANLIB=$host_alias-ranlib
8946         DLLTOOL=$host_alias-dlltool
8947         RESCOMP=$host_alias-windres
8948         LD=$host_alias-ld
8949         NM=$host_alias-nm
8950         STRIP=$host_alias-strip
8951     else
8952         { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8953     fi
8954 fi
8955
8956 CFLAGS=${CFLAGS:=}
8957 # Extract the first word of "gcc", so it can be a program name with args.
8958 set dummy gcc; ac_word=$2
8959 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8960 echo "configure:8961: checking for $ac_word" >&5
8961 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8962   echo $ac_n "(cached) $ac_c" 1>&6
8963 else
8964   if test -n "$CC"; then
8965   ac_cv_prog_CC="$CC" # Let the user override the test.
8966 else
8967   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8968   ac_dummy="$PATH"
8969   for ac_dir in $ac_dummy; do
8970     test -z "$ac_dir" && ac_dir=.
8971     if test -f $ac_dir/$ac_word; then
8972       ac_cv_prog_CC="gcc"
8973       break
8974     fi
8975   done
8976   IFS="$ac_save_ifs"
8977 fi
8978 fi
8979 CC="$ac_cv_prog_CC"
8980 if test -n "$CC"; then
8981   echo "$ac_t""$CC" 1>&6
8982 else
8983   echo "$ac_t""no" 1>&6
8984 fi
8985
8986 if test -z "$CC"; then
8987   # Extract the first word of "cc", so it can be a program name with args.
8988 set dummy cc; ac_word=$2
8989 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8990 echo "configure:8991: checking for $ac_word" >&5
8991 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8992   echo $ac_n "(cached) $ac_c" 1>&6
8993 else
8994   if test -n "$CC"; then
8995   ac_cv_prog_CC="$CC" # Let the user override the test.
8996 else
8997   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8998   ac_prog_rejected=no
8999   ac_dummy="$PATH"
9000   for ac_dir in $ac_dummy; do
9001     test -z "$ac_dir" && ac_dir=.
9002     if test -f $ac_dir/$ac_word; then
9003       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
9004         ac_prog_rejected=yes
9005         continue
9006       fi
9007       ac_cv_prog_CC="cc"
9008       break
9009     fi
9010   done
9011   IFS="$ac_save_ifs"
9012 if test $ac_prog_rejected = yes; then
9013   # We found a bogon in the path, so make sure we never use it.
9014   set dummy $ac_cv_prog_CC
9015   shift
9016   if test $# -gt 0; then
9017     # We chose a different compiler from the bogus one.
9018     # However, it has the same basename, so the bogon will be chosen
9019     # first if we set CC to just the basename; use the full file name.
9020     shift
9021     set dummy "$ac_dir/$ac_word" "$@"
9022     shift
9023     ac_cv_prog_CC="$@"
9024   fi
9025 fi
9026 fi
9027 fi
9028 CC="$ac_cv_prog_CC"
9029 if test -n "$CC"; then
9030   echo "$ac_t""$CC" 1>&6
9031 else
9032   echo "$ac_t""no" 1>&6
9033 fi
9034
9035   if test -z "$CC"; then
9036     case "`uname -s`" in
9037     *win32* | *WIN32*)
9038       # Extract the first word of "cl", so it can be a program name with args.
9039 set dummy cl; ac_word=$2
9040 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9041 echo "configure:9042: checking for $ac_word" >&5
9042 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
9043   echo $ac_n "(cached) $ac_c" 1>&6
9044 else
9045   if test -n "$CC"; then
9046   ac_cv_prog_CC="$CC" # Let the user override the test.
9047 else
9048   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9049   ac_dummy="$PATH"
9050   for ac_dir in $ac_dummy; do
9051     test -z "$ac_dir" && ac_dir=.
9052     if test -f $ac_dir/$ac_word; then
9053       ac_cv_prog_CC="cl"
9054       break
9055     fi
9056   done
9057   IFS="$ac_save_ifs"
9058 fi
9059 fi
9060 CC="$ac_cv_prog_CC"
9061 if test -n "$CC"; then
9062   echo "$ac_t""$CC" 1>&6
9063 else
9064   echo "$ac_t""no" 1>&6
9065 fi
9066  ;;
9067     esac
9068   fi
9069   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
9070 fi
9071
9072 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9073 echo "configure:9074: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
9074
9075 ac_ext=c
9076 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9077 ac_cpp='$CPP $CPPFLAGS'
9078 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9079 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9080 cross_compiling=$ac_cv_prog_cc_cross
9081
9082 cat > conftest.$ac_ext << EOF
9083
9084 #line 9085 "configure"
9085 #include "confdefs.h"
9086
9087 main(){return(0);}
9088 EOF
9089 if { (eval echo configure:9090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9090   ac_cv_prog_cc_works=yes
9091   # If we can't run a trivial program, we are probably using a cross compiler.
9092   if (./conftest; exit) 2>/dev/null; then
9093     ac_cv_prog_cc_cross=no
9094   else
9095     ac_cv_prog_cc_cross=yes
9096   fi
9097 else
9098   echo "configure: failed program was:" >&5
9099   cat conftest.$ac_ext >&5
9100   ac_cv_prog_cc_works=no
9101 fi
9102 rm -fr conftest*
9103 ac_ext=c
9104 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9105 ac_cpp='$CPP $CPPFLAGS'
9106 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9107 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9108 cross_compiling=$ac_cv_prog_cc_cross
9109
9110 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9111 if test $ac_cv_prog_cc_works = no; then
9112   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9113 fi
9114 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9115 echo "configure:9116: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
9116 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9117 cross_compiling=$ac_cv_prog_cc_cross
9118
9119 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
9120 echo "configure:9121: checking whether we are using GNU C" >&5
9121 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9122   echo $ac_n "(cached) $ac_c" 1>&6
9123 else
9124   cat > conftest.c <<EOF
9125 #ifdef __GNUC__
9126   yes;
9127 #endif
9128 EOF
9129 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9130   ac_cv_prog_gcc=yes
9131 else
9132   ac_cv_prog_gcc=no
9133 fi
9134 fi
9135
9136 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
9137
9138 if test $ac_cv_prog_gcc = yes; then
9139   GCC=yes
9140 else
9141   GCC=
9142 fi
9143
9144 ac_test_CFLAGS="${CFLAGS+set}"
9145 ac_save_CFLAGS="$CFLAGS"
9146 CFLAGS=
9147 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9148 echo "configure:9149: checking whether ${CC-cc} accepts -g" >&5
9149 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9150   echo $ac_n "(cached) $ac_c" 1>&6
9151 else
9152   echo 'void f(){}' > conftest.c
9153 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9154   ac_cv_prog_cc_g=yes
9155 else
9156   ac_cv_prog_cc_g=no
9157 fi
9158 rm -f conftest*
9159
9160 fi
9161
9162 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
9163 if test "$ac_test_CFLAGS" = set; then
9164   CFLAGS="$ac_save_CFLAGS"
9165 elif test $ac_cv_prog_cc_g = yes; then
9166   if test "$GCC" = yes; then
9167     CFLAGS="-g -O2"
9168   else
9169     CFLAGS="-g"
9170   fi
9171 else
9172   if test "$GCC" = yes; then
9173     CFLAGS="-O2"
9174   else
9175     CFLAGS=
9176   fi
9177 fi
9178
9179
9180 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9181 echo "configure:9182: checking how to run the C preprocessor" >&5
9182 # On Suns, sometimes $CPP names a directory.
9183 if test -n "$CPP" && test -d "$CPP"; then
9184   CPP=
9185 fi
9186 if test -z "$CPP"; then
9187 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9188   echo $ac_n "(cached) $ac_c" 1>&6
9189 else
9190     # This must be in double quotes, not single quotes, because CPP may get
9191   # substituted into the Makefile and "${CC-cc}" will confuse make.
9192   CPP="${CC-cc} -E"
9193   # On the NeXT, cc -E runs the code through the compiler's parser,
9194   # not just through cpp.
9195   cat > conftest.$ac_ext <<EOF
9196 #line 9197 "configure"
9197 #include "confdefs.h"
9198 #include <assert.h>
9199 Syntax Error
9200 EOF
9201 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9202 { (eval echo configure:9203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9203 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9204 if test -z "$ac_err"; then
9205   :
9206 else
9207   echo "$ac_err" >&5
9208   echo "configure: failed program was:" >&5
9209   cat conftest.$ac_ext >&5
9210   rm -rf conftest*
9211   CPP="${CC-cc} -E -traditional-cpp"
9212   cat > conftest.$ac_ext <<EOF
9213 #line 9214 "configure"
9214 #include "confdefs.h"
9215 #include <assert.h>
9216 Syntax Error
9217 EOF
9218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9219 { (eval echo configure:9220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9220 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9221 if test -z "$ac_err"; then
9222   :
9223 else
9224   echo "$ac_err" >&5
9225   echo "configure: failed program was:" >&5
9226   cat conftest.$ac_ext >&5
9227   rm -rf conftest*
9228   CPP="${CC-cc} -nologo -E"
9229   cat > conftest.$ac_ext <<EOF
9230 #line 9231 "configure"
9231 #include "confdefs.h"
9232 #include <assert.h>
9233 Syntax Error
9234 EOF
9235 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9236 { (eval echo configure:9237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9237 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9238 if test -z "$ac_err"; then
9239   :
9240 else
9241   echo "$ac_err" >&5
9242   echo "configure: failed program was:" >&5
9243   cat conftest.$ac_ext >&5
9244   rm -rf conftest*
9245   CPP=/lib/cpp
9246 fi
9247 rm -f conftest*
9248 fi
9249 rm -f conftest*
9250 fi
9251 rm -f conftest*
9252   ac_cv_prog_CPP="$CPP"
9253 fi
9254   CPP="$ac_cv_prog_CPP"
9255 else
9256   ac_cv_prog_CPP="$CPP"
9257 fi
9258 echo "$ac_t""$CPP" 1>&6
9259
9260 if test $ac_cv_prog_gcc = yes; then
9261     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9262 echo "configure:9263: checking whether ${CC-cc} needs -traditional" >&5
9263 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9264   echo $ac_n "(cached) $ac_c" 1>&6
9265 else
9266     ac_pattern="Autoconf.*'x'"
9267   cat > conftest.$ac_ext <<EOF
9268 #line 9269 "configure"
9269 #include "confdefs.h"
9270 #include <sgtty.h>
9271 Autoconf TIOCGETP
9272 EOF
9273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9274   egrep "$ac_pattern" >/dev/null 2>&1; then
9275   rm -rf conftest*
9276   ac_cv_prog_gcc_traditional=yes
9277 else
9278   rm -rf conftest*
9279   ac_cv_prog_gcc_traditional=no
9280 fi
9281 rm -f conftest*
9282
9283
9284   if test $ac_cv_prog_gcc_traditional = no; then
9285     cat > conftest.$ac_ext <<EOF
9286 #line 9287 "configure"
9287 #include "confdefs.h"
9288 #include <termio.h>
9289 Autoconf TCGETA
9290 EOF
9291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9292   egrep "$ac_pattern" >/dev/null 2>&1; then
9293   rm -rf conftest*
9294   ac_cv_prog_gcc_traditional=yes
9295 fi
9296 rm -f conftest*
9297
9298   fi
9299 fi
9300
9301 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
9302   if test $ac_cv_prog_gcc_traditional = yes; then
9303     CC="$CC -traditional"
9304   fi
9305 fi
9306
9307
9308
9309 ac_ext=C
9310 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9311 ac_cpp='$CXXCPP $CPPFLAGS'
9312 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9313 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9314 cross_compiling=$ac_cv_prog_cxx_cross
9315
9316
9317 CXXFLAGS=${CXXFLAGS:=}
9318 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9319 do
9320 # Extract the first word of "$ac_prog", so it can be a program name with args.
9321 set dummy $ac_prog; ac_word=$2
9322 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9323 echo "configure:9324: checking for $ac_word" >&5
9324 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9325   echo $ac_n "(cached) $ac_c" 1>&6
9326 else
9327   if test -n "$CXX"; then
9328   ac_cv_prog_CXX="$CXX" # Let the user override the test.
9329 else
9330   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9331   ac_dummy="$PATH"
9332   for ac_dir in $ac_dummy; do
9333     test -z "$ac_dir" && ac_dir=.
9334     if test -f $ac_dir/$ac_word; then
9335       ac_cv_prog_CXX="$ac_prog"
9336       break
9337     fi
9338   done
9339   IFS="$ac_save_ifs"
9340 fi
9341 fi
9342 CXX="$ac_cv_prog_CXX"
9343 if test -n "$CXX"; then
9344   echo "$ac_t""$CXX" 1>&6
9345 else
9346   echo "$ac_t""no" 1>&6
9347 fi
9348
9349 test -n "$CXX" && break
9350 done
9351 test -n "$CXX" || CXX="gcc"
9352
9353
9354 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9355 echo "configure:9356: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9356
9357 ac_ext=C
9358 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9359 ac_cpp='$CXXCPP $CPPFLAGS'
9360 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9361 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9362 cross_compiling=$ac_cv_prog_cxx_cross
9363
9364 cat > conftest.$ac_ext << EOF
9365
9366 #line 9367 "configure"
9367 #include "confdefs.h"
9368
9369 int main(){return(0);}
9370 EOF
9371 if { (eval echo configure:9372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9372   ac_cv_prog_cxx_works=yes
9373   # If we can't run a trivial program, we are probably using a cross compiler.
9374   if (./conftest; exit) 2>/dev/null; then
9375     ac_cv_prog_cxx_cross=no
9376   else
9377     ac_cv_prog_cxx_cross=yes
9378   fi
9379 else
9380   echo "configure: failed program was:" >&5
9381   cat conftest.$ac_ext >&5
9382   ac_cv_prog_cxx_works=no
9383 fi
9384 rm -fr conftest*
9385 ac_ext=C
9386 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9387 ac_cpp='$CXXCPP $CPPFLAGS'
9388 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9389 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9390 cross_compiling=$ac_cv_prog_cxx_cross
9391
9392 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9393 if test $ac_cv_prog_cxx_works = no; then
9394   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9395 fi
9396 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9397 echo "configure:9398: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9398 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9399 cross_compiling=$ac_cv_prog_cxx_cross
9400
9401 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9402 echo "configure:9403: checking whether we are using GNU C++" >&5
9403 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9404   echo $ac_n "(cached) $ac_c" 1>&6
9405 else
9406   cat > conftest.C <<EOF
9407 #ifdef __GNUC__
9408   yes;
9409 #endif
9410 EOF
9411 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9412   ac_cv_prog_gxx=yes
9413 else
9414   ac_cv_prog_gxx=no
9415 fi
9416 fi
9417
9418 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9419
9420 if test $ac_cv_prog_gxx = yes; then
9421   GXX=yes
9422 else
9423   GXX=
9424 fi
9425
9426 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9427 ac_save_CXXFLAGS="$CXXFLAGS"
9428 CXXFLAGS=
9429 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9430 echo "configure:9431: checking whether ${CXX-g++} accepts -g" >&5
9431 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9432   echo $ac_n "(cached) $ac_c" 1>&6
9433 else
9434   echo 'void f(){}' > conftest.cc
9435 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9436   ac_cv_prog_cxx_g=yes
9437 else
9438   ac_cv_prog_cxx_g=no
9439 fi
9440 rm -f conftest*
9441
9442 fi
9443
9444 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9445 if test "$ac_test_CXXFLAGS" = set; then
9446   CXXFLAGS="$ac_save_CXXFLAGS"
9447 elif test $ac_cv_prog_cxx_g = yes; then
9448   if test "$GXX" = yes; then
9449     CXXFLAGS="-g -O2"
9450   else
9451     CXXFLAGS="-g"
9452   fi
9453 else
9454   if test "$GXX" = yes; then
9455     CXXFLAGS="-O2"
9456   else
9457     CXXFLAGS=
9458   fi
9459 fi
9460
9461
9462 ac_ext=c
9463 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9464 ac_cpp='$CPP $CPPFLAGS'
9465 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9466 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9467 cross_compiling=$ac_cv_prog_cc_cross
9468
9469
9470 # Extract the first word of "ranlib", so it can be a program name with args.
9471 set dummy ranlib; ac_word=$2
9472 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9473 echo "configure:9474: checking for $ac_word" >&5
9474 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9475   echo $ac_n "(cached) $ac_c" 1>&6
9476 else
9477   if test -n "$RANLIB"; then
9478   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9479 else
9480   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9481   ac_dummy="$PATH"
9482   for ac_dir in $ac_dummy; do
9483     test -z "$ac_dir" && ac_dir=.
9484     if test -f $ac_dir/$ac_word; then
9485       ac_cv_prog_RANLIB="ranlib"
9486       break
9487     fi
9488   done
9489   IFS="$ac_save_ifs"
9490   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9491 fi
9492 fi
9493 RANLIB="$ac_cv_prog_RANLIB"
9494 if test -n "$RANLIB"; then
9495   echo "$ac_t""$RANLIB" 1>&6
9496 else
9497   echo "$ac_t""no" 1>&6
9498 fi
9499
9500
9501 # Extract the first word of "ar", so it can be a program name with args.
9502 set dummy ar; ac_word=$2
9503 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9504 echo "configure:9505: checking for $ac_word" >&5
9505 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9506   echo $ac_n "(cached) $ac_c" 1>&6
9507 else
9508   if test -n "$AR"; then
9509   ac_cv_prog_AR="$AR" # Let the user override the test.
9510 else
9511   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9512   ac_dummy="$PATH"
9513   for ac_dir in $ac_dummy; do
9514     test -z "$ac_dir" && ac_dir=.
9515     if test -f $ac_dir/$ac_word; then
9516       ac_cv_prog_AR="ar"
9517       break
9518     fi
9519   done
9520   IFS="$ac_save_ifs"
9521   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9522 fi
9523 fi
9524 AR="$ac_cv_prog_AR"
9525 if test -n "$AR"; then
9526   echo "$ac_t""$AR" 1>&6
9527 else
9528   echo "$ac_t""no" 1>&6
9529 fi
9530
9531
9532 # Find a good install program.  We prefer a C program (faster),
9533 # so one script is as good as another.  But avoid the broken or
9534 # incompatible versions:
9535 # SysV /etc/install, /usr/sbin/install
9536 # SunOS /usr/etc/install
9537 # IRIX /sbin/install
9538 # AIX /bin/install
9539 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9540 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9541 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9542 # ./install, which can be erroneously created by make from ./install.sh.
9543 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9544 echo "configure:9545: checking for a BSD compatible install" >&5
9545 if test -z "$INSTALL"; then
9546 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9547   echo $ac_n "(cached) $ac_c" 1>&6
9548 else
9549     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
9550   for ac_dir in $PATH; do
9551     # Account for people who put trailing slashes in PATH elements.
9552     case "$ac_dir/" in
9553     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9554     *)
9555       # OSF1 and SCO ODT 3.0 have their own names for install.
9556       # Don't use installbsd from OSF since it installs stuff as root
9557       # by default.
9558       for ac_prog in ginstall scoinst install; do
9559         if test -f $ac_dir/$ac_prog; then
9560           if test $ac_prog = install &&
9561             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9562             # AIX install.  It has an incompatible calling convention.
9563             :
9564           else
9565             ac_cv_path_install="$ac_dir/$ac_prog -c"
9566             break 2
9567           fi
9568         fi
9569       done
9570       ;;
9571     esac
9572   done
9573   IFS="$ac_save_IFS"
9574
9575 fi
9576   if test "${ac_cv_path_install+set}" = set; then
9577     INSTALL="$ac_cv_path_install"
9578   else
9579     # As a last resort, use the slow shell script.  We don't cache a
9580     # path for INSTALL within a source directory, because that will
9581     # break other packages using the cache if that directory is
9582     # removed, or if the path is relative.
9583     INSTALL="$ac_install_sh"
9584   fi
9585 fi
9586 echo "$ac_t""$INSTALL" 1>&6
9587
9588 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9589 # It thinks the first close brace ends the variable substitution.
9590 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9591
9592 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9593
9594 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9595
9596
9597 case ${INSTALL} in
9598   /* ) # Absolute
9599      ;;
9600   *)
9601      INSTALL=`pwd`/${INSTALL} ;;
9602 esac
9603
9604
9605 case "${host}" in
9606
9607                 powerpc-*-darwin* )
9608         INSTALL_PROGRAM="cp -fp"
9609         INSTALL_DATA="cp -fp"
9610         ;;
9611     *)
9612         ;;
9613 esac
9614
9615 # Extract the first word of "strip", so it can be a program name with args.
9616 set dummy strip; ac_word=$2
9617 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9618 echo "configure:9619: checking for $ac_word" >&5
9619 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9620   echo $ac_n "(cached) $ac_c" 1>&6
9621 else
9622   if test -n "$STRIP"; then
9623   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9624 else
9625   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9626   ac_dummy="$PATH"
9627   for ac_dir in $ac_dummy; do
9628     test -z "$ac_dir" && ac_dir=.
9629     if test -f $ac_dir/$ac_word; then
9630       ac_cv_prog_STRIP="strip"
9631       break
9632     fi
9633   done
9634   IFS="$ac_save_ifs"
9635   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9636 fi
9637 fi
9638 STRIP="$ac_cv_prog_STRIP"
9639 if test -n "$STRIP"; then
9640   echo "$ac_t""$STRIP" 1>&6
9641 else
9642   echo "$ac_t""no" 1>&6
9643 fi
9644
9645
9646 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9647 echo "configure:9648: checking if make is GNU make" >&5
9648 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9649   echo $ac_n "(cached) $ac_c" 1>&6
9650 else
9651   
9652     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9653             egrep -s GNU > /dev/null); then
9654         wx_cv_prog_makeisgnu="yes"
9655     else
9656         wx_cv_prog_makeisgnu="no"
9657     fi
9658
9659 fi
9660
9661 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9662
9663 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9664     IF_GNU_MAKE=""
9665 else
9666     IF_GNU_MAKE="#"
9667 fi
9668
9669
9670
9671 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9672 echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9673 echo "configure:9674: checking if make supports VPATH" >&5
9674 if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9675   echo $ac_n "(cached) $ac_c" 1>&6
9676 else
9677   
9678 cat - << EOF > confMake
9679 check : file
9680         cp \$? \$@
9681         cp \$? final_file
9682 EOF
9683
9684 if test ! -d sub ; then
9685   mkdir sub
9686 fi
9687 echo dummy > sub/file
9688 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9689 RESULT=$?
9690 rm -f sub/file check final_file confMake
9691 rmdir sub
9692 if test "$RESULT" = 0; then
9693   wx_cv_prog_makevpath="yes"
9694 else
9695   wx_cv_prog_makevpath="no"
9696 fi
9697
9698 fi
9699
9700 echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9701
9702 if test "x$wx_cv_prog_makevpath" != "xyes"; then
9703 { echo "configure: error: 
9704 You need a make-utility that is able to use the variable
9705 VPATH correctly.
9706 If your version of make does not support VPATH correctly,
9707 please install GNU-make (possibly as gmake), and start
9708 configure with the following command:
9709 export MAKE=gmake; ./configure  for sh-type shells
9710 setenv MAKE gmake; ./configure  for csh-type shells
9711 Also please do remember to use gmake in this case every time
9712 you are trying to compile.
9713 " 1>&2; exit 1; }
9714 fi fi 
9715 for ac_prog in 'bison -y' byacc
9716 do
9717 # Extract the first word of "$ac_prog", so it can be a program name with args.
9718 set dummy $ac_prog; ac_word=$2
9719 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9720 echo "configure:9721: checking for $ac_word" >&5
9721 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9722   echo $ac_n "(cached) $ac_c" 1>&6
9723 else
9724   if test -n "$YACC"; then
9725   ac_cv_prog_YACC="$YACC" # Let the user override the test.
9726 else
9727   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9728   ac_dummy="$PATH"
9729   for ac_dir in $ac_dummy; do
9730     test -z "$ac_dir" && ac_dir=.
9731     if test -f $ac_dir/$ac_word; then
9732       ac_cv_prog_YACC="$ac_prog"
9733       break
9734     fi
9735   done
9736   IFS="$ac_save_ifs"
9737 fi
9738 fi
9739 YACC="$ac_cv_prog_YACC"
9740 if test -n "$YACC"; then
9741   echo "$ac_t""$YACC" 1>&6
9742 else
9743   echo "$ac_t""no" 1>&6
9744 fi
9745
9746 test -n "$YACC" && break
9747 done
9748 test -n "$YACC" || YACC="yacc"
9749
9750
9751 # Extract the first word of "flex", so it can be a program name with args.
9752 set dummy flex; ac_word=$2
9753 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9754 echo "configure:9755: checking for $ac_word" >&5
9755 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9756   echo $ac_n "(cached) $ac_c" 1>&6
9757 else
9758   if test -n "$LEX"; then
9759   ac_cv_prog_LEX="$LEX" # Let the user override the test.
9760 else
9761   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9762   ac_dummy="$PATH"
9763   for ac_dir in $ac_dummy; do
9764     test -z "$ac_dir" && ac_dir=.
9765     if test -f $ac_dir/$ac_word; then
9766       ac_cv_prog_LEX="flex"
9767       break
9768     fi
9769   done
9770   IFS="$ac_save_ifs"
9771   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9772 fi
9773 fi
9774 LEX="$ac_cv_prog_LEX"
9775 if test -n "$LEX"; then
9776   echo "$ac_t""$LEX" 1>&6
9777 else
9778   echo "$ac_t""no" 1>&6
9779 fi
9780
9781 if test -z "$LEXLIB"
9782 then
9783   case "$LEX" in
9784   flex*) ac_lib=fl ;;
9785   *) ac_lib=l ;;
9786   esac
9787   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9788 echo "configure:9789: checking for yywrap in -l$ac_lib" >&5
9789 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9791   echo $ac_n "(cached) $ac_c" 1>&6
9792 else
9793   ac_save_LIBS="$LIBS"
9794 LIBS="-l$ac_lib  $LIBS"
9795 cat > conftest.$ac_ext <<EOF
9796 #line 9797 "configure"
9797 #include "confdefs.h"
9798 /* Override any gcc2 internal prototype to avoid an error.  */
9799 /* We use char because int might match the return type of a gcc2
9800     builtin and then its argument prototype would still apply.  */
9801 char yywrap();
9802
9803 int main() {
9804 yywrap()
9805 ; return 0; }
9806 EOF
9807 if { (eval echo configure:9808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9808   rm -rf conftest*
9809   eval "ac_cv_lib_$ac_lib_var=yes"
9810 else
9811   echo "configure: failed program was:" >&5
9812   cat conftest.$ac_ext >&5
9813   rm -rf conftest*
9814   eval "ac_cv_lib_$ac_lib_var=no"
9815 fi
9816 rm -f conftest*
9817 LIBS="$ac_save_LIBS"
9818
9819 fi
9820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9821   echo "$ac_t""yes" 1>&6
9822   LEXLIB="-l$ac_lib"
9823 else
9824   echo "$ac_t""no" 1>&6
9825 fi
9826
9827 fi
9828
9829
9830 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9831 echo "configure:9832: checking whether ln -s works" >&5
9832 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9833   echo $ac_n "(cached) $ac_c" 1>&6
9834 else
9835   rm -f conftestdata
9836 if ln -s X conftestdata 2>/dev/null
9837 then
9838   rm -f conftestdata
9839   ac_cv_prog_LN_S="ln -s"
9840 else
9841   ac_cv_prog_LN_S=ln
9842 fi
9843 fi
9844 LN_S="$ac_cv_prog_LN_S"
9845 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9846   echo "$ac_t""yes" 1>&6
9847 else
9848   echo "$ac_t""no" 1>&6
9849 fi
9850
9851
9852 case "${host}" in
9853   *-pc-os2_emx | *-pc-os2-emx )
9854             LIBS="$LIBS -lstdcpp"
9855       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9856                               echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
9857 echo "configure:9858: checking for drand48 in -lcExt" >&5
9858 ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9860   echo $ac_n "(cached) $ac_c" 1>&6
9861 else
9862   ac_save_LIBS="$LIBS"
9863 LIBS="-lcExt  $LIBS"
9864 cat > conftest.$ac_ext <<EOF
9865 #line 9866 "configure"
9866 #include "confdefs.h"
9867 /* Override any gcc2 internal prototype to avoid an error.  */
9868 /* We use char because int might match the return type of a gcc2
9869     builtin and then its argument prototype would still apply.  */
9870 char drand48();
9871
9872 int main() {
9873 drand48()
9874 ; return 0; }
9875 EOF
9876 if { (eval echo configure:9877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9877   rm -rf conftest*
9878   eval "ac_cv_lib_$ac_lib_var=yes"
9879 else
9880   echo "configure: failed program was:" >&5
9881   cat conftest.$ac_ext >&5
9882   rm -rf conftest*
9883   eval "ac_cv_lib_$ac_lib_var=no"
9884 fi
9885 rm -f conftest*
9886 LIBS="$ac_save_LIBS"
9887
9888 fi
9889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9890   echo "$ac_t""yes" 1>&6
9891   LIBS="$LIBS -lcExt"
9892 else
9893   echo "$ac_t""no" 1>&6
9894 fi
9895
9896       else
9897                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9898       fi
9899   ;;
9900 esac
9901
9902
9903 if test "$wxUSE_MAC" != 1; then
9904     for ac_hdr in strings.h
9905 do
9906 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9907 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9908 echo "configure:9909: checking for $ac_hdr" >&5
9909 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9910   echo $ac_n "(cached) $ac_c" 1>&6
9911 else
9912   cat > conftest.$ac_ext <<EOF
9913 #line 9914 "configure"
9914 #include "confdefs.h"
9915 #include <$ac_hdr>
9916 EOF
9917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9918 { (eval echo configure:9919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9920 if test -z "$ac_err"; then
9921   rm -rf conftest*
9922   eval "ac_cv_header_$ac_safe=yes"
9923 else
9924   echo "$ac_err" >&5
9925   echo "configure: failed program was:" >&5
9926   cat conftest.$ac_ext >&5
9927   rm -rf conftest*
9928   eval "ac_cv_header_$ac_safe=no"
9929 fi
9930 rm -f conftest*
9931 fi
9932 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9933   echo "$ac_t""yes" 1>&6
9934     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9935   cat >> confdefs.h <<EOF
9936 #define $ac_tr_hdr 1
9937 EOF
9938  
9939 else
9940   echo "$ac_t""no" 1>&6
9941 fi
9942 done
9943
9944 fi
9945
9946 for ac_hdr in stdlib.h
9947 do
9948 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9949 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9950 echo "configure:9951: checking for $ac_hdr" >&5
9951 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9952   echo $ac_n "(cached) $ac_c" 1>&6
9953 else
9954   cat > conftest.$ac_ext <<EOF
9955 #line 9956 "configure"
9956 #include "confdefs.h"
9957 #include <$ac_hdr>
9958 EOF
9959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9960 { (eval echo configure:9961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9962 if test -z "$ac_err"; then
9963   rm -rf conftest*
9964   eval "ac_cv_header_$ac_safe=yes"
9965 else
9966   echo "$ac_err" >&5
9967   echo "configure: failed program was:" >&5
9968   cat conftest.$ac_ext >&5
9969   rm -rf conftest*
9970   eval "ac_cv_header_$ac_safe=no"
9971 fi
9972 rm -f conftest*
9973 fi
9974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9975   echo "$ac_t""yes" 1>&6
9976     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9977   cat >> confdefs.h <<EOF
9978 #define $ac_tr_hdr 1
9979 EOF
9980  
9981 else
9982   echo "$ac_t""no" 1>&6
9983 fi
9984 done
9985
9986 for ac_hdr in malloc.h
9987 do
9988 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9989 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9990 echo "configure:9991: checking for $ac_hdr" >&5
9991 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9992   echo $ac_n "(cached) $ac_c" 1>&6
9993 else
9994   cat > conftest.$ac_ext <<EOF
9995 #line 9996 "configure"
9996 #include "confdefs.h"
9997 #include <$ac_hdr>
9998 EOF
9999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10000 { (eval echo configure:10001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10002 if test -z "$ac_err"; then
10003   rm -rf conftest*
10004   eval "ac_cv_header_$ac_safe=yes"
10005 else
10006   echo "$ac_err" >&5
10007   echo "configure: failed program was:" >&5
10008   cat conftest.$ac_ext >&5
10009   rm -rf conftest*
10010   eval "ac_cv_header_$ac_safe=no"
10011 fi
10012 rm -f conftest*
10013 fi
10014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10015   echo "$ac_t""yes" 1>&6
10016     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10017   cat >> confdefs.h <<EOF
10018 #define $ac_tr_hdr 1
10019 EOF
10020  
10021 else
10022   echo "$ac_t""no" 1>&6
10023 fi
10024 done
10025
10026 for ac_hdr in unistd.h
10027 do
10028 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10029 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10030 echo "configure:10031: checking for $ac_hdr" >&5
10031 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10032   echo $ac_n "(cached) $ac_c" 1>&6
10033 else
10034   cat > conftest.$ac_ext <<EOF
10035 #line 10036 "configure"
10036 #include "confdefs.h"
10037 #include <$ac_hdr>
10038 EOF
10039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10040 { (eval echo configure:10041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10041 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10042 if test -z "$ac_err"; then
10043   rm -rf conftest*
10044   eval "ac_cv_header_$ac_safe=yes"
10045 else
10046   echo "$ac_err" >&5
10047   echo "configure: failed program was:" >&5
10048   cat conftest.$ac_ext >&5
10049   rm -rf conftest*
10050   eval "ac_cv_header_$ac_safe=no"
10051 fi
10052 rm -f conftest*
10053 fi
10054 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10055   echo "$ac_t""yes" 1>&6
10056     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10057   cat >> confdefs.h <<EOF
10058 #define $ac_tr_hdr 1
10059 EOF
10060  
10061 else
10062   echo "$ac_t""no" 1>&6
10063 fi
10064 done
10065
10066 for ac_hdr in wchar.h
10067 do
10068 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10069 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10070 echo "configure:10071: checking for $ac_hdr" >&5
10071 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10072   echo $ac_n "(cached) $ac_c" 1>&6
10073 else
10074   cat > conftest.$ac_ext <<EOF
10075 #line 10076 "configure"
10076 #include "confdefs.h"
10077 #include <$ac_hdr>
10078 EOF
10079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10080 { (eval echo configure:10081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10082 if test -z "$ac_err"; then
10083   rm -rf conftest*
10084   eval "ac_cv_header_$ac_safe=yes"
10085 else
10086   echo "$ac_err" >&5
10087   echo "configure: failed program was:" >&5
10088   cat conftest.$ac_ext >&5
10089   rm -rf conftest*
10090   eval "ac_cv_header_$ac_safe=no"
10091 fi
10092 rm -f conftest*
10093 fi
10094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10095   echo "$ac_t""yes" 1>&6
10096     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10097   cat >> confdefs.h <<EOF
10098 #define $ac_tr_hdr 1
10099 EOF
10100  
10101 else
10102   echo "$ac_t""no" 1>&6
10103 fi
10104 done
10105
10106
10107 if test "$ac_cv_header_wchar_h" != "yes"; then
10108         for ac_hdr in wcstr.h
10109 do
10110 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10111 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10112 echo "configure:10113: checking for $ac_hdr" >&5
10113 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10114   echo $ac_n "(cached) $ac_c" 1>&6
10115 else
10116   cat > conftest.$ac_ext <<EOF
10117 #line 10118 "configure"
10118 #include "confdefs.h"
10119 #include <$ac_hdr>
10120 EOF
10121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10122 { (eval echo configure:10123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10124 if test -z "$ac_err"; then
10125   rm -rf conftest*
10126   eval "ac_cv_header_$ac_safe=yes"
10127 else
10128   echo "$ac_err" >&5
10129   echo "configure: failed program was:" >&5
10130   cat conftest.$ac_ext >&5
10131   rm -rf conftest*
10132   eval "ac_cv_header_$ac_safe=no"
10133 fi
10134 rm -f conftest*
10135 fi
10136 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10137   echo "$ac_t""yes" 1>&6
10138     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10139   cat >> confdefs.h <<EOF
10140 #define $ac_tr_hdr 1
10141 EOF
10142  
10143 else
10144   echo "$ac_t""no" 1>&6
10145 fi
10146 done
10147
10148 fi
10149
10150 for ac_hdr in fnmatch.h
10151 do
10152 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10153 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10154 echo "configure:10155: checking for $ac_hdr" >&5
10155 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10156   echo $ac_n "(cached) $ac_c" 1>&6
10157 else
10158   cat > conftest.$ac_ext <<EOF
10159 #line 10160 "configure"
10160 #include "confdefs.h"
10161 #include <$ac_hdr>
10162 EOF
10163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10164 { (eval echo configure:10165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10166 if test -z "$ac_err"; then
10167   rm -rf conftest*
10168   eval "ac_cv_header_$ac_safe=yes"
10169 else
10170   echo "$ac_err" >&5
10171   echo "configure: failed program was:" >&5
10172   cat conftest.$ac_ext >&5
10173   rm -rf conftest*
10174   eval "ac_cv_header_$ac_safe=no"
10175 fi
10176 rm -f conftest*
10177 fi
10178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10179   echo "$ac_t""yes" 1>&6
10180     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10181   cat >> confdefs.h <<EOF
10182 #define $ac_tr_hdr 1
10183 EOF
10184  
10185 else
10186   echo "$ac_t""no" 1>&6
10187 fi
10188 done
10189
10190
10191 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10192     for ac_func in fnmatch
10193 do
10194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10195 echo "configure:10196: checking for $ac_func" >&5
10196 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10197   echo $ac_n "(cached) $ac_c" 1>&6
10198 else
10199   cat > conftest.$ac_ext <<EOF
10200 #line 10201 "configure"
10201 #include "confdefs.h"
10202 /* System header to define __stub macros and hopefully few prototypes,
10203     which can conflict with char $ac_func(); below.  */
10204 #include <assert.h>
10205 /* Override any gcc2 internal prototype to avoid an error.  */
10206 /* We use char because int might match the return type of a gcc2
10207     builtin and then its argument prototype would still apply.  */
10208 char $ac_func();
10209
10210 int main() {
10211
10212 /* The GNU C library defines this for functions which it implements
10213     to always fail with ENOSYS.  Some functions are actually named
10214     something starting with __ and the normal name is an alias.  */
10215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10216 choke me
10217 #else
10218 $ac_func();
10219 #endif
10220
10221 ; return 0; }
10222 EOF
10223 if { (eval echo configure:10224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10224   rm -rf conftest*
10225   eval "ac_cv_func_$ac_func=yes"
10226 else
10227   echo "configure: failed program was:" >&5
10228   cat conftest.$ac_ext >&5
10229   rm -rf conftest*
10230   eval "ac_cv_func_$ac_func=no"
10231 fi
10232 rm -f conftest*
10233 fi
10234
10235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10236   echo "$ac_t""yes" 1>&6
10237     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10238   cat >> confdefs.h <<EOF
10239 #define $ac_tr_func 1
10240 EOF
10241  
10242 else
10243   echo "$ac_t""no" 1>&6
10244 fi
10245 done
10246
10247 fi
10248
10249 for ac_hdr in langinfo.h
10250 do
10251 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10252 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10253 echo "configure:10254: checking for $ac_hdr" >&5
10254 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10255   echo $ac_n "(cached) $ac_c" 1>&6
10256 else
10257   cat > conftest.$ac_ext <<EOF
10258 #line 10259 "configure"
10259 #include "confdefs.h"
10260 #include <$ac_hdr>
10261 EOF
10262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10263 { (eval echo configure:10264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10264 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10265 if test -z "$ac_err"; then
10266   rm -rf conftest*
10267   eval "ac_cv_header_$ac_safe=yes"
10268 else
10269   echo "$ac_err" >&5
10270   echo "configure: failed program was:" >&5
10271   cat conftest.$ac_ext >&5
10272   rm -rf conftest*
10273   eval "ac_cv_header_$ac_safe=no"
10274 fi
10275 rm -f conftest*
10276 fi
10277 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10278   echo "$ac_t""yes" 1>&6
10279     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10280   cat >> confdefs.h <<EOF
10281 #define $ac_tr_hdr 1
10282 EOF
10283  
10284 else
10285   echo "$ac_t""no" 1>&6
10286 fi
10287 done
10288
10289
10290 if test "$wxUSE_GUI" = "yes"; then
10291     if test "$wxUSE_UNIX" = "yes"; then
10292                 for ac_hdr in X11/XKBlib.h
10293 do
10294 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10295 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10296 echo "configure:10297: checking for $ac_hdr" >&5
10297 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10298   echo $ac_n "(cached) $ac_c" 1>&6
10299 else
10300   cat > conftest.$ac_ext <<EOF
10301 #line 10302 "configure"
10302 #include "confdefs.h"
10303 #include <$ac_hdr>
10304 EOF
10305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10306 { (eval echo configure:10307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10308 if test -z "$ac_err"; then
10309   rm -rf conftest*
10310   eval "ac_cv_header_$ac_safe=yes"
10311 else
10312   echo "$ac_err" >&5
10313   echo "configure: failed program was:" >&5
10314   cat conftest.$ac_ext >&5
10315   rm -rf conftest*
10316   eval "ac_cv_header_$ac_safe=no"
10317 fi
10318 rm -f conftest*
10319 fi
10320 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10321   echo "$ac_t""yes" 1>&6
10322     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10323   cat >> confdefs.h <<EOF
10324 #define $ac_tr_hdr 1
10325 EOF
10326  
10327 else
10328   echo "$ac_t""no" 1>&6
10329 fi
10330 done
10331
10332     fi
10333 fi
10334
10335
10336 echo $ac_n "checking for working const""... $ac_c" 1>&6
10337 echo "configure:10338: checking for working const" >&5
10338 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10339   echo $ac_n "(cached) $ac_c" 1>&6
10340 else
10341   cat > conftest.$ac_ext <<EOF
10342 #line 10343 "configure"
10343 #include "confdefs.h"
10344
10345 int main() {
10346
10347 /* Ultrix mips cc rejects this.  */
10348 typedef int charset[2]; const charset x;
10349 /* SunOS 4.1.1 cc rejects this.  */
10350 char const *const *ccp;
10351 char **p;
10352 /* NEC SVR4.0.2 mips cc rejects this.  */
10353 struct point {int x, y;};
10354 static struct point const zero = {0,0};
10355 /* AIX XL C 1.02.0.0 rejects this.
10356    It does not let you subtract one const X* pointer from another in an arm
10357    of an if-expression whose if-part is not a constant expression */
10358 const char *g = "string";
10359 ccp = &g + (g ? g-g : 0);
10360 /* HPUX 7.0 cc rejects these. */
10361 ++ccp;
10362 p = (char**) ccp;
10363 ccp = (char const *const *) p;
10364 { /* SCO 3.2v4 cc rejects this.  */
10365   char *t;
10366   char const *s = 0 ? (char *) 0 : (char const *) 0;
10367
10368   *t++ = 0;
10369 }
10370 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10371   int x[] = {25, 17};
10372   const int *foo = &x[0];
10373   ++foo;
10374 }
10375 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10376   typedef const int *iptr;
10377   iptr p = 0;
10378   ++p;
10379 }
10380 { /* AIX XL C 1.02.0.0 rejects this saying
10381      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10382   struct s { int j; const int *ap[3]; };
10383   struct s *b; b->j = 5;
10384 }
10385 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10386   const int foo = 10;
10387 }
10388
10389 ; return 0; }
10390 EOF
10391 if { (eval echo configure:10392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10392   rm -rf conftest*
10393   ac_cv_c_const=yes
10394 else
10395   echo "configure: failed program was:" >&5
10396   cat conftest.$ac_ext >&5
10397   rm -rf conftest*
10398   ac_cv_c_const=no
10399 fi
10400 rm -f conftest*
10401 fi
10402
10403 echo "$ac_t""$ac_cv_c_const" 1>&6
10404 if test $ac_cv_c_const = no; then
10405   cat >> confdefs.h <<\EOF
10406 #define const 
10407 EOF
10408
10409 fi
10410
10411 echo $ac_n "checking for inline""... $ac_c" 1>&6
10412 echo "configure:10413: checking for inline" >&5
10413 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10414   echo $ac_n "(cached) $ac_c" 1>&6
10415 else
10416   ac_cv_c_inline=no
10417 for ac_kw in inline __inline__ __inline; do
10418   cat > conftest.$ac_ext <<EOF
10419 #line 10420 "configure"
10420 #include "confdefs.h"
10421
10422 int main() {
10423 } $ac_kw foo() {
10424 ; return 0; }
10425 EOF
10426 if { (eval echo configure:10427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10427   rm -rf conftest*
10428   ac_cv_c_inline=$ac_kw; break
10429 else
10430   echo "configure: failed program was:" >&5
10431   cat conftest.$ac_ext >&5
10432 fi
10433 rm -f conftest*
10434 done
10435
10436 fi
10437
10438 echo "$ac_t""$ac_cv_c_inline" 1>&6
10439 case "$ac_cv_c_inline" in
10440   inline | yes) ;;
10441   no) cat >> confdefs.h <<\EOF
10442 #define inline 
10443 EOF
10444  ;;
10445   *)  cat >> confdefs.h <<EOF
10446 #define inline $ac_cv_c_inline
10447 EOF
10448  ;;
10449 esac
10450
10451
10452 echo $ac_n "checking size of char""... $ac_c" 1>&6
10453 echo "configure:10454: checking size of char" >&5
10454 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10455   echo $ac_n "(cached) $ac_c" 1>&6
10456 else
10457   if test "$cross_compiling" = yes; then
10458   ac_cv_sizeof_char=1
10459 else
10460   cat > conftest.$ac_ext <<EOF
10461 #line 10462 "configure"
10462 #include "confdefs.h"
10463 #include <stdio.h>
10464 #include <sys/types.h>
10465 main()
10466 {
10467   FILE *f=fopen("conftestval", "w");
10468   if (!f) exit(1);
10469   fprintf(f, "%d\n", sizeof(char));
10470   exit(0);
10471 }
10472 EOF
10473 if { (eval echo configure:10474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10474 then
10475   ac_cv_sizeof_char=`cat conftestval`
10476 else
10477   echo "configure: failed program was:" >&5
10478   cat conftest.$ac_ext >&5
10479   rm -fr conftest*
10480   ac_cv_sizeof_char=0
10481 fi
10482 rm -fr conftest*
10483 fi
10484
10485 fi
10486 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10487 cat >> confdefs.h <<EOF
10488 #define SIZEOF_CHAR $ac_cv_sizeof_char
10489 EOF
10490
10491
10492 echo $ac_n "checking size of short""... $ac_c" 1>&6
10493 echo "configure:10494: checking size of short" >&5
10494 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10495   echo $ac_n "(cached) $ac_c" 1>&6
10496 else
10497   if test "$cross_compiling" = yes; then
10498   ac_cv_sizeof_short=2
10499 else
10500   cat > conftest.$ac_ext <<EOF
10501 #line 10502 "configure"
10502 #include "confdefs.h"
10503 #include <stdio.h>
10504 #include <sys/types.h>
10505 main()
10506 {
10507   FILE *f=fopen("conftestval", "w");
10508   if (!f) exit(1);
10509   fprintf(f, "%d\n", sizeof(short));
10510   exit(0);
10511 }
10512 EOF
10513 if { (eval echo configure:10514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10514 then
10515   ac_cv_sizeof_short=`cat conftestval`
10516 else
10517   echo "configure: failed program was:" >&5
10518   cat conftest.$ac_ext >&5
10519   rm -fr conftest*
10520   ac_cv_sizeof_short=0
10521 fi
10522 rm -fr conftest*
10523 fi
10524
10525 fi
10526 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10527 cat >> confdefs.h <<EOF
10528 #define SIZEOF_SHORT $ac_cv_sizeof_short
10529 EOF
10530
10531
10532 echo $ac_n "checking size of void *""... $ac_c" 1>&6
10533 echo "configure:10534: checking size of void *" >&5
10534 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10535   echo $ac_n "(cached) $ac_c" 1>&6
10536 else
10537   if test "$cross_compiling" = yes; then
10538   ac_cv_sizeof_void_p=4
10539 else
10540   cat > conftest.$ac_ext <<EOF
10541 #line 10542 "configure"
10542 #include "confdefs.h"
10543 #include <stdio.h>
10544 #include <sys/types.h>
10545 main()
10546 {
10547   FILE *f=fopen("conftestval", "w");
10548   if (!f) exit(1);
10549   fprintf(f, "%d\n", sizeof(void *));
10550   exit(0);
10551 }
10552 EOF
10553 if { (eval echo configure:10554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10554 then
10555   ac_cv_sizeof_void_p=`cat conftestval`
10556 else
10557   echo "configure: failed program was:" >&5
10558   cat conftest.$ac_ext >&5
10559   rm -fr conftest*
10560   ac_cv_sizeof_void_p=0
10561 fi
10562 rm -fr conftest*
10563 fi
10564
10565 fi
10566 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10567 cat >> confdefs.h <<EOF
10568 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10569 EOF
10570
10571
10572 echo $ac_n "checking size of int""... $ac_c" 1>&6
10573 echo "configure:10574: checking size of int" >&5
10574 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10575   echo $ac_n "(cached) $ac_c" 1>&6
10576 else
10577   if test "$cross_compiling" = yes; then
10578   ac_cv_sizeof_int=4
10579 else
10580   cat > conftest.$ac_ext <<EOF
10581 #line 10582 "configure"
10582 #include "confdefs.h"
10583 #include <stdio.h>
10584 #include <sys/types.h>
10585 main()
10586 {
10587   FILE *f=fopen("conftestval", "w");
10588   if (!f) exit(1);
10589   fprintf(f, "%d\n", sizeof(int));
10590   exit(0);
10591 }
10592 EOF
10593 if { (eval echo configure:10594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10594 then
10595   ac_cv_sizeof_int=`cat conftestval`
10596 else
10597   echo "configure: failed program was:" >&5
10598   cat conftest.$ac_ext >&5
10599   rm -fr conftest*
10600   ac_cv_sizeof_int=0
10601 fi
10602 rm -fr conftest*
10603 fi
10604
10605 fi
10606 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10607 cat >> confdefs.h <<EOF
10608 #define SIZEOF_INT $ac_cv_sizeof_int
10609 EOF
10610
10611
10612 echo $ac_n "checking size of long""... $ac_c" 1>&6
10613 echo "configure:10614: checking size of long" >&5
10614 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10615   echo $ac_n "(cached) $ac_c" 1>&6
10616 else
10617   if test "$cross_compiling" = yes; then
10618   ac_cv_sizeof_long=4
10619 else
10620   cat > conftest.$ac_ext <<EOF
10621 #line 10622 "configure"
10622 #include "confdefs.h"
10623 #include <stdio.h>
10624 #include <sys/types.h>
10625 main()
10626 {
10627   FILE *f=fopen("conftestval", "w");
10628   if (!f) exit(1);
10629   fprintf(f, "%d\n", sizeof(long));
10630   exit(0);
10631 }
10632 EOF
10633 if { (eval echo configure:10634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10634 then
10635   ac_cv_sizeof_long=`cat conftestval`
10636 else
10637   echo "configure: failed program was:" >&5
10638   cat conftest.$ac_ext >&5
10639   rm -fr conftest*
10640   ac_cv_sizeof_long=0
10641 fi
10642 rm -fr conftest*
10643 fi
10644
10645 fi
10646 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10647 cat >> confdefs.h <<EOF
10648 #define SIZEOF_LONG $ac_cv_sizeof_long
10649 EOF
10650
10651
10652
10653 case "${host}" in
10654     arm-*-linux* )
10655         echo $ac_n "checking size of long long""... $ac_c" 1>&6
10656 echo "configure:10657: checking size of long long" >&5
10657 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10658   echo $ac_n "(cached) $ac_c" 1>&6
10659 else
10660   if test "$cross_compiling" = yes; then
10661   ac_cv_sizeof_long_long=8
10662 else
10663   cat > conftest.$ac_ext <<EOF
10664 #line 10665 "configure"
10665 #include "confdefs.h"
10666 #include <stdio.h>
10667 #include <sys/types.h>
10668 main()
10669 {
10670   FILE *f=fopen("conftestval", "w");
10671   if (!f) exit(1);
10672   fprintf(f, "%d\n", sizeof(long long));
10673   exit(0);
10674 }
10675 EOF
10676 if { (eval echo configure:10677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10677 then
10678   ac_cv_sizeof_long_long=`cat conftestval`
10679 else
10680   echo "configure: failed program was:" >&5
10681   cat conftest.$ac_ext >&5
10682   rm -fr conftest*
10683   ac_cv_sizeof_long_long=0
10684 fi
10685 rm -fr conftest*
10686 fi
10687
10688 fi
10689 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10690 cat >> confdefs.h <<EOF
10691 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10692 EOF
10693
10694
10695     ;;
10696     *-hp-hpux* )
10697         echo $ac_n "checking size of long long""... $ac_c" 1>&6
10698 echo "configure:10699: checking size of long long" >&5
10699 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10700   echo $ac_n "(cached) $ac_c" 1>&6
10701 else
10702   if test "$cross_compiling" = yes; then
10703   ac_cv_sizeof_long_long=0
10704 else
10705   cat > conftest.$ac_ext <<EOF
10706 #line 10707 "configure"
10707 #include "confdefs.h"
10708 #include <stdio.h>
10709 #include <sys/types.h>
10710 main()
10711 {
10712   FILE *f=fopen("conftestval", "w");
10713   if (!f) exit(1);
10714   fprintf(f, "%d\n", sizeof(long long));
10715   exit(0);
10716 }
10717 EOF
10718 if { (eval echo configure:10719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10719 then
10720   ac_cv_sizeof_long_long=`cat conftestval`
10721 else
10722   echo "configure: failed program was:" >&5
10723   cat conftest.$ac_ext >&5
10724   rm -fr conftest*
10725   ac_cv_sizeof_long_long=0
10726 fi
10727 rm -fr conftest*
10728 fi
10729
10730 fi
10731 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10732 cat >> confdefs.h <<EOF
10733 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10734 EOF
10735
10736
10737         if test "$ac_cv_sizeof_long_long" != "0"; then
10738                         CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10739         fi
10740     ;;
10741     * )
10742         echo $ac_n "checking size of long long""... $ac_c" 1>&6
10743 echo "configure:10744: checking size of long long" >&5
10744 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10745   echo $ac_n "(cached) $ac_c" 1>&6
10746 else
10747   if test "$cross_compiling" = yes; then
10748   ac_cv_sizeof_long_long=0
10749 else
10750   cat > conftest.$ac_ext <<EOF
10751 #line 10752 "configure"
10752 #include "confdefs.h"
10753 #include <stdio.h>
10754 #include <sys/types.h>
10755 main()
10756 {
10757   FILE *f=fopen("conftestval", "w");
10758   if (!f) exit(1);
10759   fprintf(f, "%d\n", sizeof(long long));
10760   exit(0);
10761 }
10762 EOF
10763 if { (eval echo configure:10764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10764 then
10765   ac_cv_sizeof_long_long=`cat conftestval`
10766 else
10767   echo "configure: failed program was:" >&5
10768   cat conftest.$ac_ext >&5
10769   rm -fr conftest*
10770   ac_cv_sizeof_long_long=0
10771 fi
10772 rm -fr conftest*
10773 fi
10774
10775 fi
10776 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10777 cat >> confdefs.h <<EOF
10778 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10779 EOF
10780
10781
10782 esac
10783
10784 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10785 echo "configure:10786: checking size of wchar_t" >&5
10786 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10787   echo $ac_n "(cached) $ac_c" 1>&6
10788 else
10789   
10790     if test "$cross_compiling" = yes; then
10791   
10792             case "${host}" in
10793               *-pc-msdosdjgpp )
10794                 wx_cv_sizeof_wchar_t=0
10795                 ;;
10796               * )
10797                 wx_cv_sizeof_wchar_t=4
10798                 ;;
10799             esac
10800         
10801     
10802 else
10803   cat > conftest.$ac_ext <<EOF
10804 #line 10805 "configure"
10805 #include "confdefs.h"
10806
10807             /* DJGPP only has fake wchar_t: */
10808             #ifdef __DJGPP__
10809             #  error "fake wchar_t"
10810             #endif
10811             #ifdef HAVE_WCHAR_H
10812             #  ifdef __CYGWIN__
10813             #    include <stddef.h>
10814             #  endif
10815             #  include <wchar.h>
10816             #endif
10817             #ifdef HAVE_STDLIB_H
10818             #  include <stdlib.h>
10819             #endif
10820             #include <stdio.h>
10821             int main()
10822             {
10823                 FILE *f=fopen("conftestval", "w");
10824                 if (!f) exit(1);
10825                 fprintf(f, "%i", sizeof(wchar_t));
10826                 exit(0);
10827             }
10828         
10829 EOF
10830 if { (eval echo configure:10831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10831 then
10832   wx_cv_sizeof_wchar_t=`cat conftestval`
10833 else
10834   echo "configure: failed program was:" >&5
10835   cat conftest.$ac_ext >&5
10836   rm -fr conftest*
10837   wx_cv_sizeof_wchar_t=0
10838 fi
10839 rm -fr conftest*
10840 fi
10841
10842
10843 fi
10844
10845 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10846
10847 cat >> confdefs.h <<EOF
10848 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10849 EOF
10850
10851
10852 # Check whether --enable-largefile or --disable-largefile was given.
10853 if test "${enable_largefile+set}" = set; then
10854   enableval="$enable_largefile"
10855   :
10856 fi
10857
10858 if test "$enable_largefile" != no; then
10859             wx_largefile=no
10860     
10861     echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10862 echo "configure:10863: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10863 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10864   echo $ac_n "(cached) $ac_c" 1>&6
10865 else
10866   
10867           cat > conftest.$ac_ext <<EOF
10868 #line 10869 "configure"
10869 #include "confdefs.h"
10870 #define _FILE_OFFSET_BITS 64
10871                           #include <sys/types.h>
10872 int main() {
10873 typedef struct {
10874     unsigned int field: sizeof(off_t) == 8;
10875 } wxlf;
10876
10877 ; return 0; }
10878 EOF
10879 if { (eval echo configure:10880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10880   rm -rf conftest*
10881   ac_cv_sys_file_offset_bits=64
10882 else
10883   echo "configure: failed program was:" >&5
10884   cat conftest.$ac_ext >&5
10885   rm -rf conftest*
10886   ac_cv_sys_file_offset_bits=no
10887 fi
10888 rm -f conftest*
10889         
10890     
10891 fi
10892
10893 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10894
10895     if test "$ac_cv_sys_file_offset_bits" != no; then
10896         wx_largefile=yes
10897         cat >> confdefs.h <<EOF
10898 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10899 EOF
10900
10901     fi
10902
10903     if test "x$wx_largefile" != "xyes"; then
10904         
10905     echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10906 echo "configure:10907: checking for _LARGE_FILES value needed for large files" >&5
10907 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10908   echo $ac_n "(cached) $ac_c" 1>&6
10909 else
10910   
10911           cat > conftest.$ac_ext <<EOF
10912 #line 10913 "configure"
10913 #include "confdefs.h"
10914 #define _LARGE_FILES 1
10915                           #include <sys/types.h>
10916 int main() {
10917 typedef struct {
10918     unsigned int field: sizeof(off_t) == 8;
10919 } wxlf;
10920
10921 ; return 0; }
10922 EOF
10923 if { (eval echo configure:10924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10924   rm -rf conftest*
10925   ac_cv_sys_large_files=1
10926 else
10927   echo "configure: failed program was:" >&5
10928   cat conftest.$ac_ext >&5
10929   rm -rf conftest*
10930   ac_cv_sys_large_files=no
10931 fi
10932 rm -f conftest*
10933         
10934     
10935 fi
10936
10937 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10938
10939     if test "$ac_cv_sys_large_files" != no; then
10940         wx_largefile=yes
10941         cat >> confdefs.h <<EOF
10942 #define _LARGE_FILES $ac_cv_sys_large_files
10943 EOF
10944
10945     fi
10946
10947     fi
10948
10949     echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10950 echo "configure:10951: checking if large file support is available" >&5
10951     if test "x$wx_largefile" = "xyes"; then
10952         cat >> confdefs.h <<\EOF
10953 #define HAVE_LARGEFILE_SUPPORT 1
10954 EOF
10955
10956     fi
10957     echo "$ac_t""$wx_largefile" 1>&6
10958 fi
10959
10960
10961 if test "x$wx_largefile" = "xyes"; then
10962     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10963         WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
10964     else
10965         WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
10966     fi
10967     CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
10968 fi
10969
10970 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10971 echo "configure:10972: checking whether byte ordering is bigendian" >&5
10972 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10973   echo $ac_n "(cached) $ac_c" 1>&6
10974 else
10975   ac_cv_c_bigendian=unknown
10976 # See if sys/param.h defines the BYTE_ORDER macro.
10977 cat > conftest.$ac_ext <<EOF
10978 #line 10979 "configure"
10979 #include "confdefs.h"
10980 #include <sys/types.h>
10981 #include <sys/param.h>
10982 int main() {
10983
10984 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10985  bogus endian macros
10986 #endif
10987 ; return 0; }
10988 EOF
10989 if { (eval echo configure:10990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10990   rm -rf conftest*
10991   # It does; now see whether it defined to BIG_ENDIAN or not.
10992 cat > conftest.$ac_ext <<EOF
10993 #line 10994 "configure"
10994 #include "confdefs.h"
10995 #include <sys/types.h>
10996 #include <sys/param.h>
10997 int main() {
10998
10999 #if BYTE_ORDER != BIG_ENDIAN
11000  not big endian
11001 #endif
11002 ; return 0; }
11003 EOF
11004 if { (eval echo configure:11005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11005   rm -rf conftest*
11006   ac_cv_c_bigendian=yes
11007 else
11008   echo "configure: failed program was:" >&5
11009   cat conftest.$ac_ext >&5
11010   rm -rf conftest*
11011   ac_cv_c_bigendian=no
11012 fi
11013 rm -f conftest*
11014 else
11015   echo "configure: failed program was:" >&5
11016   cat conftest.$ac_ext >&5
11017 fi
11018 rm -f conftest*
11019 if test $ac_cv_c_bigendian = unknown; then
11020 if test "$cross_compiling" = yes; then
11021   ac_cv_c_bigendian=unknown
11022 else
11023   cat > conftest.$ac_ext <<EOF
11024 #line 11025 "configure"
11025 #include "confdefs.h"
11026 main () {
11027   /* Are we little or big endian?  From Harbison&Steele.  */
11028   union
11029   {
11030     long l;
11031     char c[sizeof (long)];
11032   } u;
11033   u.l = 1;
11034   exit (u.c[sizeof (long) - 1] == 1);
11035 }
11036 EOF
11037 if { (eval echo configure:11038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11038 then
11039   ac_cv_c_bigendian=no
11040 else
11041   echo "configure: failed program was:" >&5
11042   cat conftest.$ac_ext >&5
11043   rm -fr conftest*
11044   ac_cv_c_bigendian=yes
11045 fi
11046 rm -fr conftest*
11047 fi
11048
11049 fi
11050 fi
11051
11052 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11053 if test $ac_cv_c_bigendian = unknown; then
11054   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
11055 fi
11056 if test $ac_cv_c_bigendian = yes; then
11057   cat >> confdefs.h <<\EOF
11058 #define WORDS_BIGENDIAN 1
11059 EOF
11060
11061 fi
11062
11063
11064 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
11065 echo "configure:11066: checking how to run the C++ preprocessor" >&5
11066 if test -z "$CXXCPP"; then
11067 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
11068   echo $ac_n "(cached) $ac_c" 1>&6
11069 else
11070   ac_ext=C
11071 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11072 ac_cpp='$CXXCPP $CPPFLAGS'
11073 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11074 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11075 cross_compiling=$ac_cv_prog_cxx_cross
11076   CXXCPP="${CXX-g++} -E"
11077   cat > conftest.$ac_ext <<EOF
11078 #line 11079 "configure"
11079 #include "confdefs.h"
11080 #include <stdlib.h>
11081 EOF
11082 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11083 { (eval echo configure:11084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11084 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11085 if test -z "$ac_err"; then
11086   :
11087 else
11088   echo "$ac_err" >&5
11089   echo "configure: failed program was:" >&5
11090   cat conftest.$ac_ext >&5
11091   rm -rf conftest*
11092   CXXCPP=/lib/cpp
11093 fi
11094 rm -f conftest*
11095   ac_cv_prog_CXXCPP="$CXXCPP"
11096 ac_ext=C
11097 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11098 ac_cpp='$CXXCPP $CPPFLAGS'
11099 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11100 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11101 cross_compiling=$ac_cv_prog_cxx_cross
11102 fi
11103 fi
11104 CXXCPP="$ac_cv_prog_CXXCPP"
11105 echo "$ac_t""$CXXCPP" 1>&6
11106
11107
11108   if test "$cross_compiling" = "yes"; then
11109     cat >> confdefs.h <<\EOF
11110 #define wxUSE_IOSTREAMH 1
11111 EOF
11112
11113   else
11114     
11115     ac_ext=C
11116 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11117 ac_cpp='$CXXCPP $CPPFLAGS'
11118 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11119 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11120 cross_compiling=$ac_cv_prog_cxx_cross
11121
11122
11123     for ac_hdr in iostream
11124 do
11125 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11126 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11127 echo "configure:11128: checking for $ac_hdr" >&5
11128 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11129   echo $ac_n "(cached) $ac_c" 1>&6
11130 else
11131   cat > conftest.$ac_ext <<EOF
11132 #line 11133 "configure"
11133 #include "confdefs.h"
11134 #include <$ac_hdr>
11135 EOF
11136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11137 { (eval echo configure:11138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11139 if test -z "$ac_err"; then
11140   rm -rf conftest*
11141   eval "ac_cv_header_$ac_safe=yes"
11142 else
11143   echo "$ac_err" >&5
11144   echo "configure: failed program was:" >&5
11145   cat conftest.$ac_ext >&5
11146   rm -rf conftest*
11147   eval "ac_cv_header_$ac_safe=no"
11148 fi
11149 rm -f conftest*
11150 fi
11151 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11152   echo "$ac_t""yes" 1>&6
11153     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11154   cat >> confdefs.h <<EOF
11155 #define $ac_tr_hdr 1
11156 EOF
11157  
11158 else
11159   echo "$ac_t""no" 1>&6
11160 fi
11161 done
11162
11163
11164     if test "$ac_cv_header_iostream" = "yes" ; then
11165       :
11166     else
11167       cat >> confdefs.h <<\EOF
11168 #define wxUSE_IOSTREAMH 1
11169 EOF
11170
11171     fi
11172
11173     ac_ext=c
11174 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11175 ac_cpp='$CPP $CPPFLAGS'
11176 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11177 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11178 cross_compiling=$ac_cv_prog_cc_cross
11179
11180   fi
11181
11182
11183
11184   echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
11185 echo "configure:11186: checking if C++ compiler supports bool" >&5
11186 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11187   echo $ac_n "(cached) $ac_c" 1>&6
11188 else
11189   
11190     
11191     ac_ext=C
11192 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11193 ac_cpp='$CXXCPP $CPPFLAGS'
11194 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11195 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11196 cross_compiling=$ac_cv_prog_cxx_cross
11197
11198
11199     cat > conftest.$ac_ext <<EOF
11200 #line 11201 "configure"
11201 #include "confdefs.h"
11202
11203       
11204 int main() {
11205
11206         bool b = true;
11207
11208         return 0;
11209       
11210 ; return 0; }
11211 EOF
11212 if { (eval echo configure:11213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11213   rm -rf conftest*
11214   
11215         wx_cv_cpp_bool=yes
11216       
11217 else
11218   echo "configure: failed program was:" >&5
11219   cat conftest.$ac_ext >&5
11220   rm -rf conftest*
11221   
11222         wx_cv_cpp_bool=no
11223       
11224     
11225 fi
11226 rm -f conftest*
11227
11228     ac_ext=c
11229 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11230 ac_cpp='$CPP $CPPFLAGS'
11231 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11232 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11233 cross_compiling=$ac_cv_prog_cc_cross
11234
11235   
11236 fi
11237
11238 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
11239
11240   if test "$wx_cv_cpp_bool" = "yes"; then
11241     cat >> confdefs.h <<\EOF
11242 #define HAVE_BOOL 1
11243 EOF
11244
11245   fi
11246
11247
11248
11249   echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
11250 echo "configure:11251: checking if C++ compiler supports the explicit keyword" >&5
11251 if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11252   echo $ac_n "(cached) $ac_c" 1>&6
11253 else
11254   
11255     
11256     ac_ext=C
11257 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11258 ac_cpp='$CXXCPP $CPPFLAGS'
11259 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11260 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11261 cross_compiling=$ac_cv_prog_cxx_cross
11262
11263
11264             cat > conftest.$ac_ext <<EOF
11265 #line 11266 "configure"
11266 #include "confdefs.h"
11267
11268         class Foo { public: explicit Foo(int) {} };
11269       
11270 int main() {
11271
11272         return 0;
11273       
11274 ; return 0; }
11275 EOF
11276 if { (eval echo configure:11277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11277   rm -rf conftest*
11278   
11279         cat > conftest.$ac_ext <<EOF
11280 #line 11281 "configure"
11281 #include "confdefs.h"
11282
11283                 class Foo { public: explicit Foo(int) {} };
11284                 static void TakeFoo(const Foo& foo) { }
11285             
11286 int main() {
11287
11288                 TakeFoo(17);
11289                 return 0;
11290             
11291 ; return 0; }
11292 EOF
11293 if { (eval echo configure:11294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11294   rm -rf conftest*
11295   wx_cv_explicit=no
11296 else
11297   echo "configure: failed program was:" >&5
11298   cat conftest.$ac_ext >&5
11299   rm -rf conftest*
11300   wx_cv_explicit=yes
11301         
11302 fi
11303 rm -f conftest*
11304       
11305 else
11306   echo "configure: failed program was:" >&5
11307   cat conftest.$ac_ext >&5
11308   rm -rf conftest*
11309   wx_cv_explicit=no
11310     
11311 fi
11312 rm -f conftest*
11313
11314     ac_ext=c
11315 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11316 ac_cpp='$CPP $CPPFLAGS'
11317 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11318 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11319 cross_compiling=$ac_cv_prog_cc_cross
11320
11321   
11322 fi
11323
11324 echo "$ac_t""$wx_cv_explicit" 1>&6
11325
11326   if test "$wx_cv_explicit" = "yes"; then
11327     cat >> confdefs.h <<\EOF
11328 #define HAVE_EXPLICIT 1
11329 EOF
11330
11331   fi
11332
11333
11334
11335 SEARCH_INCLUDE="\
11336     /usr/local/include        \
11337                               \
11338     /usr/Motif-1.2/include    \
11339     /usr/Motif-2.1/include    \
11340                               \
11341     /usr/include/Motif1.2     \
11342     /opt/xpm/include/X11      \
11343     /opt/GBxpm/include/       \
11344     /opt/GBxpm/X11/include/   \
11345                               \
11346     /usr/Motif1.2/include     \
11347     /usr/dt/include           \
11348     /usr/openwin/include      \
11349                               \
11350     /usr/include/Xm           \
11351                               \
11352     /usr/X11R6/include        \
11353     /usr/X11R6.4/include      \
11354     /usr/X11R5/include        \
11355     /usr/X11R4/include        \
11356                               \
11357     /usr/include/X11R6        \
11358     /usr/include/X11R5        \
11359     /usr/include/X11R4        \
11360                               \
11361     /usr/local/X11R6/include  \
11362     /usr/local/X11R5/include  \
11363     /usr/local/X11R4/include  \
11364                               \
11365     /usr/local/include/X11R6  \
11366     /usr/local/include/X11R5  \
11367     /usr/local/include/X11R4  \
11368                               \
11369     /usr/X11/include          \
11370     /usr/include/X11          \
11371     /usr/local/X11/include    \
11372     /usr/local/include/X11    \
11373                               \
11374     /usr/X386/include         \
11375     /usr/x386/include         \
11376     /usr/XFree86/include/X11  \
11377                               \
11378     X:/XFree86/include        \
11379     X:/XFree86/include/X11    \
11380                               \
11381     /usr/include/gtk          \
11382     /usr/local/include/gtk    \
11383     /usr/include/glib         \
11384     /usr/local/include/glib   \
11385                               \
11386     /usr/include/qt           \
11387     /usr/local/include/qt     \
11388                               \
11389     /usr/include/windows      \
11390     /usr/include/wine         \
11391     /usr/local/include/wine   \
11392                               \
11393     /usr/unsupported/include  \
11394     /usr/athena/include       \
11395     /usr/local/x11r5/include  \
11396     /usr/lpp/Xamples/include  \
11397                               \
11398     /usr/openwin/share/include"
11399
11400 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11401
11402
11403 cat > confcache <<\EOF
11404 # This file is a shell script that caches the results of configure
11405 # tests run on this system so they can be shared between configure
11406 # scripts and configure runs.  It is not useful on other systems.
11407 # If it contains results you don't want to keep, you may remove or edit it.
11408 #
11409 # By default, configure uses ./config.cache as the cache file,
11410 # creating it if it does not exist already.  You can give configure
11411 # the --cache-file=FILE option to use a different cache file; that is
11412 # what configure does when it calls configure scripts in
11413 # subdirectories, so they share the cache.
11414 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11415 # config.status only pays attention to the cache file if you give it the
11416 # --recheck option to rerun configure.
11417 #
11418 EOF
11419 # The following way of writing the cache mishandles newlines in values,
11420 # but we know of no workaround that is simple, portable, and efficient.
11421 # So, don't put newlines in cache variables' values.
11422 # Ultrix sh set writes to stderr and can't be redirected directly,
11423 # and sets the high bit in the cache file unless we assign to the vars.
11424 (set) 2>&1 |
11425   case `(ac_space=' '; set | grep ac_space) 2>&1` in
11426   *ac_space=\ *)
11427     # `set' does not quote correctly, so add quotes (double-quote substitution
11428     # turns \\\\ into \\, and sed turns \\ into \).
11429     sed -n \
11430       -e "s/'/'\\\\''/g" \
11431       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11432     ;;
11433   *)
11434     # `set' quotes correctly as required by POSIX, so do not add quotes.
11435     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11436     ;;
11437   esac >> confcache
11438 if cmp -s $cache_file confcache; then
11439   :
11440 else
11441   if test -w $cache_file; then
11442     echo "updating cache $cache_file"
11443     cat confcache > $cache_file
11444   else
11445     echo "not updating unwritable cache $cache_file"
11446   fi
11447 fi
11448 rm -f confcache
11449
11450
11451 if test "$USE_LINUX" = 1; then
11452     echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
11453 echo "configure:11454: checking for glibc 2.1 or later" >&5
11454 if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11455   echo $ac_n "(cached) $ac_c" 1>&6
11456 else
11457   
11458         cat > conftest.$ac_ext <<EOF
11459 #line 11460 "configure"
11460 #include "confdefs.h"
11461 #include <features.h>
11462 int main() {
11463
11464                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11465                     #error not glibc2.1
11466                 #endif
11467             
11468 ; return 0; }
11469 EOF
11470 if { (eval echo configure:11471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11471   rm -rf conftest*
11472   
11473                 wx_cv_lib_glibc21=yes
11474             
11475 else
11476   echo "configure: failed program was:" >&5
11477   cat conftest.$ac_ext >&5
11478   rm -rf conftest*
11479   
11480                 wx_cv_lib_glibc21=no
11481             
11482         
11483 fi
11484 rm -f conftest*
11485     
11486 fi
11487
11488 echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11489     if test "$wx_cv_lib_glibc21" = "yes"; then
11490         cat >> confdefs.h <<\EOF
11491 #define wxHAVE_GLIBC2 1
11492 EOF
11493
11494     fi
11495 fi
11496
11497 if test "x$wx_cv_lib_glibc21" = "xyes"; then
11498     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11499         cat >> confdefs.h <<\EOF
11500 #define _GNU_SOURCE 1
11501 EOF
11502
11503     fi
11504 fi
11505
11506
11507
11508 REGEX_INCLUDE=
11509 if test "$wxUSE_REGEX" != "no"; then
11510     cat >> confdefs.h <<\EOF
11511 #define wxUSE_REGEX 1
11512 EOF
11513
11514
11515     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11516                         ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11517 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11518 echo "configure:11519: checking for regex.h" >&5
11519 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11520   echo $ac_n "(cached) $ac_c" 1>&6
11521 else
11522   cat > conftest.$ac_ext <<EOF
11523 #line 11524 "configure"
11524 #include "confdefs.h"
11525 #include <regex.h>
11526 EOF
11527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11528 { (eval echo configure:11529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11529 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11530 if test -z "$ac_err"; then
11531   rm -rf conftest*
11532   eval "ac_cv_header_$ac_safe=yes"
11533 else
11534   echo "$ac_err" >&5
11535   echo "configure: failed program was:" >&5
11536   cat conftest.$ac_ext >&5
11537   rm -rf conftest*
11538   eval "ac_cv_header_$ac_safe=no"
11539 fi
11540 rm -f conftest*
11541 fi
11542 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11543   echo "$ac_t""yes" 1>&6
11544   for ac_func in regcomp
11545 do
11546 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11547 echo "configure:11548: checking for $ac_func" >&5
11548 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11549   echo $ac_n "(cached) $ac_c" 1>&6
11550 else
11551   cat > conftest.$ac_ext <<EOF
11552 #line 11553 "configure"
11553 #include "confdefs.h"
11554 /* System header to define __stub macros and hopefully few prototypes,
11555     which can conflict with char $ac_func(); below.  */
11556 #include <assert.h>
11557 /* Override any gcc2 internal prototype to avoid an error.  */
11558 /* We use char because int might match the return type of a gcc2
11559     builtin and then its argument prototype would still apply.  */
11560 char $ac_func();
11561
11562 int main() {
11563
11564 /* The GNU C library defines this for functions which it implements
11565     to always fail with ENOSYS.  Some functions are actually named
11566     something starting with __ and the normal name is an alias.  */
11567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11568 choke me
11569 #else
11570 $ac_func();
11571 #endif
11572
11573 ; return 0; }
11574 EOF
11575 if { (eval echo configure:11576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11576   rm -rf conftest*
11577   eval "ac_cv_func_$ac_func=yes"
11578 else
11579   echo "configure: failed program was:" >&5
11580   cat conftest.$ac_ext >&5
11581   rm -rf conftest*
11582   eval "ac_cv_func_$ac_func=no"
11583 fi
11584 rm -f conftest*
11585 fi
11586
11587 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11588   echo "$ac_t""yes" 1>&6
11589     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11590   cat >> confdefs.h <<EOF
11591 #define $ac_tr_func 1
11592 EOF
11593  
11594 else
11595   echo "$ac_t""no" 1>&6
11596 fi
11597 done
11598
11599 else
11600   echo "$ac_t""no" 1>&6
11601 fi
11602
11603
11604         if test "x$ac_cv_func_regcomp" != "xyes"; then
11605             if test "$wxUSE_REGEX" = "sys" ; then
11606                 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11607             else
11608                 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11609                 wxUSE_REGEX=builtin
11610             fi
11611         else
11612                         wxUSE_REGEX=sys
11613         fi
11614     fi
11615
11616     if test "$wxUSE_REGEX" = "builtin" ; then
11617         REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11618     fi
11619 fi
11620
11621
11622 ZLIB_INCLUDE=
11623 ZLIB_LINK=
11624 if test "$wxUSE_ZLIB" != "no" ; then
11625     cat >> confdefs.h <<\EOF
11626 #define wxUSE_ZLIB 1
11627 EOF
11628
11629
11630     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11631                                                 if test "$USE_DARWIN" = 1; then
11632             system_zlib_h_ok="yes"
11633         else
11634                                                                                     echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
11635 echo "configure:11636: checking for zlib.h >= 1.1.4" >&5
11636 if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11637   echo $ac_n "(cached) $ac_c" 1>&6
11638 else
11639   if test "$cross_compiling" = yes; then
11640                       unset ac_cv_header_zlib_h
11641                 
11642 else
11643   cat > conftest.$ac_ext <<EOF
11644 #line 11645 "configure"
11645 #include "confdefs.h"
11646
11647                                                 #include <zlib.h>
11648                         #include <stdio.h>
11649
11650                                                 
11651                         int main()
11652                         {
11653                             FILE *f=fopen("conftestval", "w");
11654                             if (!f) exit(1);
11655                             fprintf(f, "%s",
11656                                     ZLIB_VERSION[0] == '1' &&
11657                                     (ZLIB_VERSION[2] > '1' ||
11658                                     (ZLIB_VERSION[2] == '1' &&
11659                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11660                             exit(0);
11661                         }
11662                         
11663                     
11664 EOF
11665 if { (eval echo configure:11666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11666 then
11667   ac_cv_header_zlib_h=`cat conftestval`
11668 else
11669   echo "configure: failed program was:" >&5
11670   cat conftest.$ac_ext >&5
11671   rm -fr conftest*
11672   ac_cv_header_zlib_h=no
11673 fi
11674 rm -fr conftest*
11675 fi
11676
11677             
11678 fi
11679
11680 echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
11681                                     ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11682 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11683 echo "configure:11684: checking for zlib.h" >&5
11684 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11685   echo $ac_n "(cached) $ac_c" 1>&6
11686 else
11687   cat > conftest.$ac_ext <<EOF
11688 #line 11689 "configure"
11689 #include "confdefs.h"
11690 #include <zlib.h>
11691 EOF
11692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11693 { (eval echo configure:11694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11694 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11695 if test -z "$ac_err"; then
11696   rm -rf conftest*
11697   eval "ac_cv_header_$ac_safe=yes"
11698 else
11699   echo "$ac_err" >&5
11700   echo "configure: failed program was:" >&5
11701   cat conftest.$ac_ext >&5
11702   rm -rf conftest*
11703   eval "ac_cv_header_$ac_safe=no"
11704 fi
11705 rm -f conftest*
11706 fi
11707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11708   echo "$ac_t""yes" 1>&6
11709   :
11710 else
11711   echo "$ac_t""no" 1>&6
11712 fi
11713
11714
11715             system_zlib_h_ok=$ac_cv_header_zlib_h
11716         fi
11717
11718         if test "$system_zlib_h_ok" = "yes"; then
11719             echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11720 echo "configure:11721: checking for deflate in -lz" >&5
11721 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11722 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11723   echo $ac_n "(cached) $ac_c" 1>&6
11724 else
11725   ac_save_LIBS="$LIBS"
11726 LIBS="-lz  $LIBS"
11727 cat > conftest.$ac_ext <<EOF
11728 #line 11729 "configure"
11729 #include "confdefs.h"
11730 /* Override any gcc2 internal prototype to avoid an error.  */
11731 /* We use char because int might match the return type of a gcc2
11732     builtin and then its argument prototype would still apply.  */
11733 char deflate();
11734
11735 int main() {
11736 deflate()
11737 ; return 0; }
11738 EOF
11739 if { (eval echo configure:11740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11740   rm -rf conftest*
11741   eval "ac_cv_lib_$ac_lib_var=yes"
11742 else
11743   echo "configure: failed program was:" >&5
11744   cat conftest.$ac_ext >&5
11745   rm -rf conftest*
11746   eval "ac_cv_lib_$ac_lib_var=no"
11747 fi
11748 rm -f conftest*
11749 LIBS="$ac_save_LIBS"
11750
11751 fi
11752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11753   echo "$ac_t""yes" 1>&6
11754   ZLIB_LINK=" -lz"
11755 else
11756   echo "$ac_t""no" 1>&6
11757 fi
11758
11759         fi
11760
11761         if test "x$ZLIB_LINK" = "x" ; then
11762             if test "$wxUSE_ZLIB" = "sys" ; then
11763                 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11764             else
11765                 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
11766                 wxUSE_ZLIB=builtin
11767             fi
11768         else
11769                         wxUSE_ZLIB=sys
11770         fi
11771     fi
11772
11773     if test "$wxUSE_ZLIB" = "builtin" ; then
11774         ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11775     fi
11776 fi
11777
11778
11779 PNG_INCLUDE=
11780 PNG_LINK=
11781 if test "$wxUSE_LIBPNG" != "no" ; then
11782     cat >> confdefs.h <<\EOF
11783 #define wxUSE_LIBPNG 1
11784 EOF
11785
11786
11787     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11788         echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11789         wxUSE_LIBPNG=sys
11790     fi
11791
11792                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11793         echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11794         wxUSE_LIBPNG=builtin
11795     fi
11796
11797     if test "$wxUSE_MGL" != 1 ; then
11798                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11799                                     echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
11800 echo "configure:11801: checking for png.h > 0.90" >&5
11801 if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11802   echo $ac_n "(cached) $ac_c" 1>&6
11803 else
11804   if test "$cross_compiling" = yes; then
11805                       unset ac_cv_header_png_h
11806                 
11807 else
11808   cat > conftest.$ac_ext <<EOF
11809 #line 11810 "configure"
11810 #include "confdefs.h"
11811
11812                                                 #include <png.h>
11813                         #include <stdio.h>
11814
11815                         int main()
11816                         {
11817                             FILE *f=fopen("conftestval", "w");
11818                             if (!f) exit(1);
11819                             fprintf(f, "%s",
11820                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
11821                             exit(0);
11822                         }
11823                     
11824 EOF
11825 if { (eval echo configure:11826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11826 then
11827   ac_cv_header_png_h=`cat conftestval`
11828 else
11829   echo "configure: failed program was:" >&5
11830   cat conftest.$ac_ext >&5
11831   rm -fr conftest*
11832   ac_cv_header_png_h=no
11833 fi
11834 rm -fr conftest*
11835 fi
11836
11837             
11838 fi
11839
11840 echo "$ac_t""$ac_cv_header_png_h" 1>&6
11841             ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11842 echo $ac_n "checking for png.h""... $ac_c" 1>&6
11843 echo "configure:11844: checking for png.h" >&5
11844 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11845   echo $ac_n "(cached) $ac_c" 1>&6
11846 else
11847   cat > conftest.$ac_ext <<EOF
11848 #line 11849 "configure"
11849 #include "confdefs.h"
11850 #include <png.h>
11851 EOF
11852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11853 { (eval echo configure:11854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11855 if test -z "$ac_err"; then
11856   rm -rf conftest*
11857   eval "ac_cv_header_$ac_safe=yes"
11858 else
11859   echo "$ac_err" >&5
11860   echo "configure: failed program was:" >&5
11861   cat conftest.$ac_ext >&5
11862   rm -rf conftest*
11863   eval "ac_cv_header_$ac_safe=no"
11864 fi
11865 rm -f conftest*
11866 fi
11867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11868   echo "$ac_t""yes" 1>&6
11869   :
11870 else
11871   echo "$ac_t""no" 1>&6
11872 fi
11873
11874
11875             if test "$ac_cv_header_png_h" = "yes"; then
11876                 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11877 echo "configure:11878: checking for png_check_sig in -lpng" >&5
11878 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11880   echo $ac_n "(cached) $ac_c" 1>&6
11881 else
11882   ac_save_LIBS="$LIBS"
11883 LIBS="-lpng -lz -lm $LIBS"
11884 cat > conftest.$ac_ext <<EOF
11885 #line 11886 "configure"
11886 #include "confdefs.h"
11887 /* Override any gcc2 internal prototype to avoid an error.  */
11888 /* We use char because int might match the return type of a gcc2
11889     builtin and then its argument prototype would still apply.  */
11890 char png_check_sig();
11891
11892 int main() {
11893 png_check_sig()
11894 ; return 0; }
11895 EOF
11896 if { (eval echo configure:11897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11897   rm -rf conftest*
11898   eval "ac_cv_lib_$ac_lib_var=yes"
11899 else
11900   echo "configure: failed program was:" >&5
11901   cat conftest.$ac_ext >&5
11902   rm -rf conftest*
11903   eval "ac_cv_lib_$ac_lib_var=no"
11904 fi
11905 rm -f conftest*
11906 LIBS="$ac_save_LIBS"
11907
11908 fi
11909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11910   echo "$ac_t""yes" 1>&6
11911   PNG_LINK=" -lpng"
11912 else
11913   echo "$ac_t""no" 1>&6
11914 fi
11915
11916             fi
11917
11918             if test "x$PNG_LINK" = "x" ; then
11919                 if test "$wxUSE_LIBPNG" = "sys" ; then
11920                     { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11921                 else
11922                     echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
11923                     wxUSE_LIBPNG=builtin
11924                 fi
11925             else
11926                                 wxUSE_LIBPNG=sys
11927             fi
11928         fi
11929     fi
11930
11931     if test "$wxUSE_LIBPNG" = "builtin" ; then
11932         PNG_INCLUDE="-I\${top_srcdir}/src/png"
11933     fi
11934
11935     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11936 fi
11937
11938
11939 JPEG_INCLUDE=
11940 JPEG_LINK=
11941 if test "$wxUSE_LIBJPEG" != "no" ; then
11942     cat >> confdefs.h <<\EOF
11943 #define wxUSE_LIBJPEG 1
11944 EOF
11945
11946
11947     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11948         echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11949         wxUSE_LIBJPEG=sys
11950     fi
11951
11952     if test "$wxUSE_MGL" != 1 ; then
11953                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11954                                                 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11955 echo "configure:11956: checking for jpeglib.h" >&5
11956             if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11957   echo $ac_n "(cached) $ac_c" 1>&6
11958 else
11959   cat > conftest.$ac_ext <<EOF
11960 #line 11961 "configure"
11961 #include "confdefs.h"
11962
11963                         #undef HAVE_STDLIB_H
11964                         #include <stdio.h>
11965                         #include <jpeglib.h>
11966                     
11967 int main() {
11968
11969                     
11970 ; return 0; }
11971 EOF
11972 if { (eval echo configure:11973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11973   rm -rf conftest*
11974   ac_cv_header_jpeglib_h=yes
11975 else
11976   echo "configure: failed program was:" >&5
11977   cat conftest.$ac_ext >&5
11978   rm -rf conftest*
11979   ac_cv_header_jpeglib_h=no
11980                 
11981 fi
11982 rm -f conftest*
11983             
11984 fi
11985
11986             echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11987
11988             if test "$ac_cv_header_jpeglib_h" = "yes"; then
11989                 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11990 echo "configure:11991: checking for jpeg_read_header in -ljpeg" >&5
11991 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11992 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11993   echo $ac_n "(cached) $ac_c" 1>&6
11994 else
11995   ac_save_LIBS="$LIBS"
11996 LIBS="-ljpeg  $LIBS"
11997 cat > conftest.$ac_ext <<EOF
11998 #line 11999 "configure"
11999 #include "confdefs.h"
12000 /* Override any gcc2 internal prototype to avoid an error.  */
12001 /* We use char because int might match the return type of a gcc2
12002     builtin and then its argument prototype would still apply.  */
12003 char jpeg_read_header();
12004
12005 int main() {
12006 jpeg_read_header()
12007 ; return 0; }
12008 EOF
12009 if { (eval echo configure:12010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12010   rm -rf conftest*
12011   eval "ac_cv_lib_$ac_lib_var=yes"
12012 else
12013   echo "configure: failed program was:" >&5
12014   cat conftest.$ac_ext >&5
12015   rm -rf conftest*
12016   eval "ac_cv_lib_$ac_lib_var=no"
12017 fi
12018 rm -f conftest*
12019 LIBS="$ac_save_LIBS"
12020
12021 fi
12022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12023   echo "$ac_t""yes" 1>&6
12024   JPEG_LINK=" -ljpeg"
12025 else
12026   echo "$ac_t""no" 1>&6
12027 fi
12028
12029             fi
12030
12031             if test "x$JPEG_LINK" = "x" ; then
12032                 if test "$wxUSE_LIBJPEG" = "sys" ; then
12033                     { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
12034                 else
12035                     echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
12036                     wxUSE_LIBJPEG=builtin
12037                 fi
12038             else
12039                                 wxUSE_LIBJPEG=sys
12040             fi
12041         fi
12042     fi
12043
12044     if test "$wxUSE_LIBJPEG" = "builtin" ; then
12045         JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12046     fi
12047 fi
12048
12049
12050 TIFF_INCLUDE=
12051 TIFF_LINK=
12052 TIFF_PREREQ_LINKS=-lm
12053 if test "$wxUSE_LIBTIFF" != "no" ; then
12054     cat >> confdefs.h <<\EOF
12055 #define wxUSE_LIBTIFF 1
12056 EOF
12057
12058
12059     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
12060                         if test "$wxUSE_LIBJPEG" = "sys"; then
12061             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12062         fi
12063         if test "$wxUSE_ZLIB" = "sys"; then
12064             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12065         fi
12066         ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12067 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
12068 echo "configure:12069: checking for tiffio.h" >&5
12069 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12070   echo $ac_n "(cached) $ac_c" 1>&6
12071 else
12072   cat > conftest.$ac_ext <<EOF
12073 #line 12074 "configure"
12074 #include "confdefs.h"
12075 #include <tiffio.h>
12076 EOF
12077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12078 { (eval echo configure:12079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12080 if test -z "$ac_err"; then
12081   rm -rf conftest*
12082   eval "ac_cv_header_$ac_safe=yes"
12083 else
12084   echo "$ac_err" >&5
12085   echo "configure: failed program was:" >&5
12086   cat conftest.$ac_ext >&5
12087   rm -rf conftest*
12088   eval "ac_cv_header_$ac_safe=no"
12089 fi
12090 rm -f conftest*
12091 fi
12092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12093   echo "$ac_t""yes" 1>&6
12094   echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
12095 echo "configure:12096: checking for TIFFError in -ltiff" >&5
12096 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12097 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12098   echo $ac_n "(cached) $ac_c" 1>&6
12099 else
12100   ac_save_LIBS="$LIBS"
12101 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
12102 cat > conftest.$ac_ext <<EOF
12103 #line 12104 "configure"
12104 #include "confdefs.h"
12105 /* Override any gcc2 internal prototype to avoid an error.  */
12106 /* We use char because int might match the return type of a gcc2
12107     builtin and then its argument prototype would still apply.  */
12108 char TIFFError();
12109
12110 int main() {
12111 TIFFError()
12112 ; return 0; }
12113 EOF
12114 if { (eval echo configure:12115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12115   rm -rf conftest*
12116   eval "ac_cv_lib_$ac_lib_var=yes"
12117 else
12118   echo "configure: failed program was:" >&5
12119   cat conftest.$ac_ext >&5
12120   rm -rf conftest*
12121   eval "ac_cv_lib_$ac_lib_var=no"
12122 fi
12123 rm -f conftest*
12124 LIBS="$ac_save_LIBS"
12125
12126 fi
12127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12128   echo "$ac_t""yes" 1>&6
12129   TIFF_LINK=" -ltiff"
12130 else
12131   echo "$ac_t""no" 1>&6
12132 fi
12133
12134                        
12135 else
12136   echo "$ac_t""no" 1>&6
12137 fi
12138
12139
12140         if test "x$TIFF_LINK" = "x" ; then
12141             if test "$wxUSE_LIBTIFF" = "sys" ; then
12142                 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
12143             else
12144                 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
12145                 wxUSE_LIBTIFF=builtin
12146             fi
12147         else
12148                         wxUSE_LIBTIFF=sys
12149         fi
12150     fi
12151
12152     if test "$wxUSE_LIBTIFF" = "builtin" ; then
12153         TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
12154     fi
12155 fi
12156
12157
12158 AFMINSTALL=
12159 WIN32INSTALL=
12160
12161 TOOLKIT=
12162 TOOLKIT_INCLUDE=
12163 WIDGET_SET=
12164
12165 if test "$USE_WIN32" = 1 ; then
12166     for ac_hdr in w32api.h
12167 do
12168 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12169 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12170 echo "configure:12171: checking for $ac_hdr" >&5
12171 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12172   echo $ac_n "(cached) $ac_c" 1>&6
12173 else
12174   cat > conftest.$ac_ext <<EOF
12175 #line 12176 "configure"
12176 #include "confdefs.h"
12177 #include <$ac_hdr>
12178 EOF
12179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12180 { (eval echo configure:12181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12182 if test -z "$ac_err"; then
12183   rm -rf conftest*
12184   eval "ac_cv_header_$ac_safe=yes"
12185 else
12186   echo "$ac_err" >&5
12187   echo "configure: failed program was:" >&5
12188   cat conftest.$ac_ext >&5
12189   rm -rf conftest*
12190   eval "ac_cv_header_$ac_safe=no"
12191 fi
12192 rm -f conftest*
12193 fi
12194 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12195   echo "$ac_t""yes" 1>&6
12196     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12197   cat >> confdefs.h <<EOF
12198 #define $ac_tr_hdr 1
12199 EOF
12200  
12201 else
12202   echo "$ac_t""no" 1>&6
12203 fi
12204 done
12205
12206     ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12207 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12208 echo "configure:12209: checking for windows.h" >&5
12209 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12210   echo $ac_n "(cached) $ac_c" 1>&6
12211 else
12212   cat > conftest.$ac_ext <<EOF
12213 #line 12214 "configure"
12214 #include "confdefs.h"
12215 #include <windows.h>
12216 EOF
12217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12218 { (eval echo configure:12219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12220 if test -z "$ac_err"; then
12221   rm -rf conftest*
12222   eval "ac_cv_header_$ac_safe=yes"
12223 else
12224   echo "$ac_err" >&5
12225   echo "configure: failed program was:" >&5
12226   cat conftest.$ac_ext >&5
12227   rm -rf conftest*
12228   eval "ac_cv_header_$ac_safe=no"
12229 fi
12230 rm -f conftest*
12231 fi
12232 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12233   echo "$ac_t""yes" 1>&6
12234   :
12235 else
12236   echo "$ac_t""no" 1>&6
12237
12238         { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12239     
12240 fi
12241
12242
12243         echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
12244 echo "configure:12245: checking if w32api has good enough MSIE support" >&5
12245 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12246   echo $ac_n "(cached) $ac_c" 1>&6
12247 else
12248   
12249       cat > conftest.$ac_ext <<EOF
12250 #line 12251 "configure"
12251 #include "confdefs.h"
12252 #include <w32api.h>
12253 int main() {
12254
12255                        #define wxCHECK_W32API_VERSION( major, minor ) \
12256                        ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12257                        && ( ( __W32API_MAJOR_VERSION > (major) ) \
12258                        || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12259
12260                        #if !wxCHECK_W32API_VERSION(1,1)
12261                        #error You need w32api 1.1 or newer
12262                        #endif
12263                      
12264 ; return 0; }
12265 EOF
12266 if { (eval echo configure:12267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12267   rm -rf conftest*
12268   
12269                         wx_cv_w32api_win32_ie=yes
12270                      
12271 else
12272   echo "configure: failed program was:" >&5
12273   cat conftest.$ac_ext >&5
12274   rm -rf conftest*
12275   
12276                         wx_cv_w32api_win32_ie=no
12277                      
12278 fi
12279 rm -f conftest*
12280     
12281 fi
12282
12283 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
12284     if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12285         CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12286     fi
12287
12288             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12289
12290     case "${host}" in
12291         *-*-cygwin* )
12292                         LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12293             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
12294     esac
12295
12296         if test "$wxUSE_ODBC" = "yes" ; then
12297         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12298     fi
12299
12300     RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12301     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
12302
12303         WIN32INSTALL=win32install
12304 fi
12305
12306 if test "$USE_DARWIN" = 1; then
12307             if test "$wxUSE_PRECOMP" = "yes"; then
12308         CPPFLAGS="$CPPFLAGS -cpp-precomp"
12309     else
12310         CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12311     fi
12312 fi
12313
12314 if test "$wxUSE_GUI" = "yes"; then
12315     USE_GUI=1
12316
12317     GUI_TK_LIBRARY=
12318
12319     WXGTK12=
12320     WXGTK127=
12321     WXGTK20=
12322
12323     if test "$wxUSE_MSW" = 1 ; then
12324         TOOLKIT=MSW
12325         GUIDIST=MSW_DIST
12326
12327                         LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
12328     fi
12329
12330     if test "$wxUSE_GTK" = 1; then
12331         echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
12332 echo "configure:12333: checking for GTK+ version" >&5
12333
12334         gtk_version_cached=1
12335         if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12336   echo $ac_n "(cached) $ac_c" 1>&6
12337 else
12338   
12339                                                 gtk_version_cached=0
12340                 echo "$ac_t""" 1>&6
12341
12342                                                 GTK_MODULES=
12343                 if test "$wxUSE_THREADS" = "yes"; then
12344                     GTK_MODULES=gthread
12345                 fi
12346
12347                                                 wx_cv_lib_gtk=
12348                 if test "x$wxUSE_GTK2" = "xyes"; then
12349                     # Check whether --enable-gtktest or --disable-gtktest was given.
12350 if test "${enable_gtktest+set}" = set; then
12351   enableval="$enable_gtktest"
12352   :
12353 else
12354   enable_gtktest=yes
12355 fi
12356
12357
12358   pkg_config_args=gtk+-2.0
12359   for module in . $GTK_MODULES
12360   do
12361       case "$module" in
12362          gthread) 
12363              pkg_config_args="$pkg_config_args gthread-2.0"
12364          ;;
12365       esac
12366   done
12367
12368   no_gtk=""
12369
12370   # Extract the first word of "pkg-config", so it can be a program name with args.
12371 set dummy pkg-config; ac_word=$2
12372 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12373 echo "configure:12374: checking for $ac_word" >&5
12374 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12375   echo $ac_n "(cached) $ac_c" 1>&6
12376 else
12377   case "$PKG_CONFIG" in
12378   /*)
12379   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12380   ;;
12381   ?:/*)                  
12382   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12383   ;;
12384   *)
12385   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
12386   ac_dummy="$PATH"
12387   for ac_dir in $ac_dummy; do 
12388     test -z "$ac_dir" && ac_dir=.
12389     if test -f $ac_dir/$ac_word; then
12390       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12391       break
12392     fi
12393   done
12394   IFS="$ac_save_ifs"
12395   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12396   ;;
12397 esac
12398 fi
12399 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12400 if test -n "$PKG_CONFIG"; then
12401   echo "$ac_t""$PKG_CONFIG" 1>&6
12402 else
12403   echo "$ac_t""no" 1>&6
12404 fi
12405
12406
12407   if test x$PKG_CONFIG != xno ; then
12408     if pkg-config --atleast-pkgconfig-version 0.7 ; then
12409       :
12410     else
12411       echo *** pkg-config too old; version 0.7 or better required.
12412       no_gtk=yes
12413       PKG_CONFIG=no
12414     fi
12415   else
12416     no_gtk=yes
12417   fi
12418
12419   min_gtk_version=2.0.0
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
12423   if test x$PKG_CONFIG != xno ; then
12424     ## don't try to run the test against uninstalled libtool libs
12425     if $PKG_CONFIG --uninstalled $pkg_config_args; then
12426           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12427           enable_gtktest=no
12428     fi
12429
12430     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12431           :
12432     else
12433           no_gtk=yes
12434     fi
12435   fi
12436
12437   if test x"$no_gtk" = x ; then
12438     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12439     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12440     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12441            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12442     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12443            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12444     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12445            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12446     if test "x$enable_gtktest" = "xyes" ; then
12447       ac_save_CFLAGS="$CFLAGS"
12448       ac_save_LIBS="$LIBS"
12449       CFLAGS="$CFLAGS $GTK_CFLAGS"
12450       LIBS="$GTK_LIBS $LIBS"
12451       rm -f conf.gtktest
12452       if test "$cross_compiling" = yes; then
12453   echo $ac_n "cross compiling; assumed OK... $ac_c"
12454 else
12455   cat > conftest.$ac_ext <<EOF
12456 #line 12457 "configure"
12457 #include "confdefs.h"
12458
12459 #include <gtk/gtk.h>
12460 #include <stdio.h>
12461 #include <stdlib.h>
12462
12463 int 
12464 main ()
12465 {
12466   int major, minor, micro;
12467   char *tmp_version;
12468
12469   system ("touch conf.gtktest");
12470
12471   /* HP/UX 9 (%@#!) writes to sscanf strings */
12472   tmp_version = g_strdup("$min_gtk_version");
12473   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12474      printf("%s, bad version string\n", "$min_gtk_version");
12475      exit(1);
12476    }
12477
12478   if ((gtk_major_version != $gtk_config_major_version) ||
12479       (gtk_minor_version != $gtk_config_minor_version) ||
12480       (gtk_micro_version != $gtk_config_micro_version))
12481     {
12482       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
12483              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12484              gtk_major_version, gtk_minor_version, gtk_micro_version);
12485       printf ("*** was found! If pkg-config was correct, then it is best\n");
12486       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12487       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12488       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12489       printf("*** required on your system.\n");
12490       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12491       printf("*** to point to the correct configuration files\n");
12492     } 
12493   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12494            (gtk_minor_version != GTK_MINOR_VERSION) ||
12495            (gtk_micro_version != GTK_MICRO_VERSION))
12496     {
12497       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12498              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12499       printf("*** library (version %d.%d.%d)\n",
12500              gtk_major_version, gtk_minor_version, gtk_micro_version);
12501     }
12502   else
12503     {
12504       if ((gtk_major_version > major) ||
12505         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12506         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12507       {
12508         return 0;
12509        }
12510      else
12511       {
12512         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12513                gtk_major_version, gtk_minor_version, gtk_micro_version);
12514         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12515                major, minor, micro);
12516         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12517         printf("***\n");
12518         printf("*** If you have already installed a sufficiently new version, this error\n");
12519         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12520         printf("*** being found. The easiest way to fix this is to remove the old version\n");
12521         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12522         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12523         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12524         printf("*** so that the correct libraries are found at run-time))\n");
12525       }
12526     }
12527   return 1;
12528 }
12529
12530 EOF
12531 if { (eval echo configure:12532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12532 then
12533   :
12534 else
12535   echo "configure: failed program was:" >&5
12536   cat conftest.$ac_ext >&5
12537   rm -fr conftest*
12538   no_gtk=yes
12539 fi
12540 rm -fr conftest*
12541 fi
12542
12543        CFLAGS="$ac_save_CFLAGS"
12544        LIBS="$ac_save_LIBS"
12545      fi
12546   fi
12547   if test "x$no_gtk" = x ; then
12548      echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12549      wx_cv_lib_gtk=2.0     
12550   else
12551      echo "$ac_t""no" 1>&6
12552      if test "$PKG_CONFIG" = "no" ; then
12553        echo "*** A new enough version of pkg-config was not found."
12554        echo "*** See http://pkgconfig.sourceforge.net"
12555      else
12556        if test -f conf.gtktest ; then
12557         :
12558        else
12559           echo "*** Could not run GTK+ test program, checking why..."
12560           ac_save_CFLAGS="$CFLAGS"
12561           ac_save_LIBS="$LIBS"
12562           CFLAGS="$CFLAGS $GTK_CFLAGS"
12563           LIBS="$LIBS $GTK_LIBS"
12564           cat > conftest.$ac_ext <<EOF
12565 #line 12566 "configure"
12566 #include "confdefs.h"
12567
12568 #include <gtk/gtk.h>
12569 #include <stdio.h>
12570
12571 int main() {
12572  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
12573 ; return 0; }
12574 EOF
12575 if { (eval echo configure:12576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12576   rm -rf conftest*
12577    echo "*** The test program compiled, but did not run. This usually means"
12578           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12579           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12580           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12581           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12582           echo "*** is required on your system"
12583           echo "***"
12584           echo "*** If you have an old version installed, it is best to remove it, although"
12585           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 
12586 else
12587   echo "configure: failed program was:" >&5
12588   cat conftest.$ac_ext >&5
12589   rm -rf conftest*
12590    echo "*** The test program failed to compile or link. See the file config.log for the"
12591           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12592 fi
12593 rm -f conftest*
12594           CFLAGS="$ac_save_CFLAGS"
12595           LIBS="$ac_save_LIBS"
12596        fi
12597      fi
12598      GTK_CFLAGS=""
12599      GTK_LIBS=""
12600      :
12601   fi
12602   
12603   
12604   rm -f conf.gtktest
12605
12606                 else
12607                     # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12608 if test "${with_gtk_prefix+set}" = set; then
12609   withval="$with_gtk_prefix"
12610   gtk_config_prefix="$withval"
12611 else
12612   gtk_config_prefix=""
12613 fi
12614
12615 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12616 if test "${with_gtk_exec_prefix+set}" = set; then
12617   withval="$with_gtk_exec_prefix"
12618   gtk_config_exec_prefix="$withval"
12619 else
12620   gtk_config_exec_prefix=""
12621 fi
12622
12623 # Check whether --enable-gtktest or --disable-gtktest was given.
12624 if test "${enable_gtktest+set}" = set; then
12625   enableval="$enable_gtktest"
12626   :
12627 else
12628   enable_gtktest=yes
12629 fi
12630
12631
12632   for module in . $GTK_MODULES
12633   do
12634       case "$module" in
12635          gthread) 
12636              gtk_config_args="$gtk_config_args gthread"
12637          ;;
12638       esac
12639   done
12640
12641   if test x$gtk_config_exec_prefix != x ; then
12642      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12643      if test x${GTK_CONFIG+set} != xset ; then
12644         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12645      fi
12646   fi
12647   if test x$gtk_config_prefix != x ; then
12648      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12649      if test x${GTK_CONFIG+set} != xset ; then
12650         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12651      fi
12652   fi
12653
12654   # Extract the first word of "gtk-config", so it can be a program name with args.
12655 set dummy gtk-config; ac_word=$2
12656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12657 echo "configure:12658: checking for $ac_word" >&5
12658 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12659   echo $ac_n "(cached) $ac_c" 1>&6
12660 else
12661   case "$GTK_CONFIG" in
12662   /*)
12663   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12664   ;;
12665   ?:/*)                  
12666   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12667   ;;
12668   *)
12669   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
12670   ac_dummy="$PATH"
12671   for ac_dir in $ac_dummy; do 
12672     test -z "$ac_dir" && ac_dir=.
12673     if test -f $ac_dir/$ac_word; then
12674       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12675       break
12676     fi
12677   done
12678   IFS="$ac_save_ifs"
12679   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12680   ;;
12681 esac
12682 fi
12683 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12684 if test -n "$GTK_CONFIG"; then
12685   echo "$ac_t""$GTK_CONFIG" 1>&6
12686 else
12687   echo "$ac_t""no" 1>&6
12688 fi
12689
12690   min_gtk_version=1.2.7
12691   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12692 echo "configure:12693: checking for GTK - version >= $min_gtk_version" >&5
12693   no_gtk=""
12694   if test "$GTK_CONFIG" = "no" ; then
12695     no_gtk=yes
12696   else
12697     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12698     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12699     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12700            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12701     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12702            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12703     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12704            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12705     if test "x$enable_gtktest" = "xyes" ; then
12706       ac_save_CFLAGS="$CFLAGS"
12707       ac_save_LIBS="$LIBS"
12708       CFLAGS="$CFLAGS $GTK_CFLAGS"
12709       LIBS="$GTK_LIBS $LIBS"
12710       rm -f conf.gtktest
12711       if test "$cross_compiling" = yes; then
12712   echo $ac_n "cross compiling; assumed OK... $ac_c"
12713 else
12714   cat > conftest.$ac_ext <<EOF
12715 #line 12716 "configure"
12716 #include "confdefs.h"
12717
12718 #include <gtk/gtk.h>
12719 #include <stdio.h>
12720 #include <stdlib.h>
12721
12722 int 
12723 main ()
12724 {
12725   int major, minor, micro;
12726   char *tmp_version;
12727
12728   system ("touch conf.gtktest");
12729
12730   /* HP/UX 9 (%@#!) writes to sscanf strings */
12731   tmp_version = g_strdup("$min_gtk_version");
12732   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12733      printf("%s, bad version string\n", "$min_gtk_version");
12734      exit(1);
12735    }
12736
12737   if ((gtk_major_version != $gtk_config_major_version) ||
12738       (gtk_minor_version != $gtk_config_minor_version) ||
12739       (gtk_micro_version != $gtk_config_micro_version))
12740     {
12741       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
12742              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12743              gtk_major_version, gtk_minor_version, gtk_micro_version);
12744       printf ("*** was found! If gtk-config was correct, then it is best\n");
12745       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12746       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12747       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12748       printf("*** required on your system.\n");
12749       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12750       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12751       printf("*** before re-running configure\n");
12752     } 
12753 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12754   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12755            (gtk_minor_version != GTK_MINOR_VERSION) ||
12756            (gtk_micro_version != GTK_MICRO_VERSION))
12757     {
12758       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12759              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12760       printf("*** library (version %d.%d.%d)\n",
12761              gtk_major_version, gtk_minor_version, gtk_micro_version);
12762     }
12763 #endif /* defined (GTK_MAJOR_VERSION) ... */
12764   else
12765     {
12766       if ((gtk_major_version > major) ||
12767         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12768         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12769       {
12770         return 0;
12771        }
12772      else
12773       {
12774         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12775                gtk_major_version, gtk_minor_version, gtk_micro_version);
12776         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12777                major, minor, micro);
12778         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12779         printf("***\n");
12780         printf("*** If you have already installed a sufficiently new version, this error\n");
12781         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12782         printf("*** being found. The easiest way to fix this is to remove the old version\n");
12783         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12784         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12785         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12786         printf("*** so that the correct libraries are found at run-time))\n");
12787       }
12788     }
12789   return 1;
12790 }
12791
12792 EOF
12793 if { (eval echo configure:12794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12794 then
12795   :
12796 else
12797   echo "configure: failed program was:" >&5
12798   cat conftest.$ac_ext >&5
12799   rm -fr conftest*
12800   no_gtk=yes
12801 fi
12802 rm -fr conftest*
12803 fi
12804
12805        CFLAGS="$ac_save_CFLAGS"
12806        LIBS="$ac_save_LIBS"
12807      fi
12808   fi
12809   if test "x$no_gtk" = x ; then
12810      echo "$ac_t""yes" 1>&6
12811      wx_cv_lib_gtk=1.2.7     
12812   else
12813      echo "$ac_t""no" 1>&6
12814      if test "$GTK_CONFIG" = "no" ; then
12815        echo "*** The gtk-config script installed by GTK could not be found"
12816        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12817        echo "*** your path, or set the GTK_CONFIG environment variable to the"
12818        echo "*** full path to gtk-config."
12819      else
12820        if test -f conf.gtktest ; then
12821         :
12822        else
12823           echo "*** Could not run GTK test program, checking why..."
12824           CFLAGS="$CFLAGS $GTK_CFLAGS"
12825           LIBS="$LIBS $GTK_LIBS"
12826           cat > conftest.$ac_ext <<EOF
12827 #line 12828 "configure"
12828 #include "confdefs.h"
12829
12830 #include <gtk/gtk.h>
12831 #include <stdio.h>
12832
12833 int main() {
12834  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
12835 ; return 0; }
12836 EOF
12837 if { (eval echo configure:12838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12838   rm -rf conftest*
12839    echo "*** The test program compiled, but did not run. This usually means"
12840           echo "*** that the run-time linker is not finding GTK or finding the wrong"
12841           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12842           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12843           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12844           echo "*** is required on your system"
12845           echo "***"
12846           echo "*** If you have an old version installed, it is best to remove it, although"
12847           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12848           echo "***"
12849           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12850           echo "*** came with the system with the command"
12851           echo "***"
12852           echo "***    rpm --erase --nodeps gtk gtk-devel" 
12853 else
12854   echo "configure: failed program was:" >&5
12855   cat conftest.$ac_ext >&5
12856   rm -rf conftest*
12857    echo "*** The test program failed to compile or link. See the file config.log for the"
12858           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12859           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12860           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
12861 fi
12862 rm -f conftest*
12863           CFLAGS="$ac_save_CFLAGS"
12864           LIBS="$ac_save_LIBS"
12865        fi
12866      fi
12867      GTK_CFLAGS=""
12868      GTK_LIBS=""
12869      :
12870   fi
12871   
12872   
12873   rm -f conf.gtktest
12874
12875
12876                     if test -z "$wx_cv_lib_gtk"; then
12877                         # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12878 if test "${with_gtk_prefix+set}" = set; then
12879   withval="$with_gtk_prefix"
12880   gtk_config_prefix="$withval"
12881 else
12882   gtk_config_prefix=""
12883 fi
12884
12885 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12886 if test "${with_gtk_exec_prefix+set}" = set; then
12887   withval="$with_gtk_exec_prefix"
12888   gtk_config_exec_prefix="$withval"
12889 else
12890   gtk_config_exec_prefix=""
12891 fi
12892
12893 # Check whether --enable-gtktest or --disable-gtktest was given.
12894 if test "${enable_gtktest+set}" = set; then
12895   enableval="$enable_gtktest"
12896   :
12897 else
12898   enable_gtktest=yes
12899 fi
12900
12901
12902   for module in . $GTK_MODULES
12903   do
12904       case "$module" in
12905          gthread) 
12906              gtk_config_args="$gtk_config_args gthread"
12907          ;;
12908       esac
12909   done
12910
12911   if test x$gtk_config_exec_prefix != x ; then
12912      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12913      if test x${GTK_CONFIG+set} != xset ; then
12914         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12915      fi
12916   fi
12917   if test x$gtk_config_prefix != x ; then
12918      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12919      if test x${GTK_CONFIG+set} != xset ; then
12920         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12921      fi
12922   fi
12923
12924   # Extract the first word of "gtk-config", so it can be a program name with args.
12925 set dummy gtk-config; ac_word=$2
12926 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12927 echo "configure:12928: checking for $ac_word" >&5
12928 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12929   echo $ac_n "(cached) $ac_c" 1>&6
12930 else
12931   case "$GTK_CONFIG" in
12932   /*)
12933   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12934   ;;
12935   ?:/*)                  
12936   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12937   ;;
12938   *)
12939   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
12940   ac_dummy="$PATH"
12941   for ac_dir in $ac_dummy; do 
12942     test -z "$ac_dir" && ac_dir=.
12943     if test -f $ac_dir/$ac_word; then
12944       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12945       break
12946     fi
12947   done
12948   IFS="$ac_save_ifs"
12949   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12950   ;;
12951 esac
12952 fi
12953 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12954 if test -n "$GTK_CONFIG"; then
12955   echo "$ac_t""$GTK_CONFIG" 1>&6
12956 else
12957   echo "$ac_t""no" 1>&6
12958 fi
12959
12960   min_gtk_version=1.2.3
12961   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12962 echo "configure:12963: checking for GTK - version >= $min_gtk_version" >&5
12963   no_gtk=""
12964   if test "$GTK_CONFIG" = "no" ; then
12965     no_gtk=yes
12966   else
12967     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12968     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12969     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12970            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12971     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12972            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12973     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12974            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12975     if test "x$enable_gtktest" = "xyes" ; then
12976       ac_save_CFLAGS="$CFLAGS"
12977       ac_save_LIBS="$LIBS"
12978       CFLAGS="$CFLAGS $GTK_CFLAGS"
12979       LIBS="$GTK_LIBS $LIBS"
12980       rm -f conf.gtktest
12981       if test "$cross_compiling" = yes; then
12982   echo $ac_n "cross compiling; assumed OK... $ac_c"
12983 else
12984   cat > conftest.$ac_ext <<EOF
12985 #line 12986 "configure"
12986 #include "confdefs.h"
12987
12988 #include <gtk/gtk.h>
12989 #include <stdio.h>
12990 #include <stdlib.h>
12991
12992 int 
12993 main ()
12994 {
12995   int major, minor, micro;
12996   char *tmp_version;
12997
12998   system ("touch conf.gtktest");
12999
13000   /* HP/UX 9 (%@#!) writes to sscanf strings */
13001   tmp_version = g_strdup("$min_gtk_version");
13002   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13003      printf("%s, bad version string\n", "$min_gtk_version");
13004      exit(1);
13005    }
13006
13007   if ((gtk_major_version != $gtk_config_major_version) ||
13008       (gtk_minor_version != $gtk_config_minor_version) ||
13009       (gtk_micro_version != $gtk_config_micro_version))
13010     {
13011       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
13012              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
13013              gtk_major_version, gtk_minor_version, gtk_micro_version);
13014       printf ("*** was found! If gtk-config was correct, then it is best\n");
13015       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
13016       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13017       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13018       printf("*** required on your system.\n");
13019       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
13020       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
13021       printf("*** before re-running configure\n");
13022     } 
13023 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
13024   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
13025            (gtk_minor_version != GTK_MINOR_VERSION) ||
13026            (gtk_micro_version != GTK_MICRO_VERSION))
13027     {
13028       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
13029              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
13030       printf("*** library (version %d.%d.%d)\n",
13031              gtk_major_version, gtk_minor_version, gtk_micro_version);
13032     }
13033 #endif /* defined (GTK_MAJOR_VERSION) ... */
13034   else
13035     {
13036       if ((gtk_major_version > major) ||
13037         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
13038         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
13039       {
13040         return 0;
13041        }
13042      else
13043       {
13044         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
13045                gtk_major_version, gtk_minor_version, gtk_micro_version);
13046         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
13047                major, minor, micro);
13048         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
13049         printf("***\n");
13050         printf("*** If you have already installed a sufficiently new version, this error\n");
13051         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
13052         printf("*** being found. The easiest way to fix this is to remove the old version\n");
13053         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
13054         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
13055         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13056         printf("*** so that the correct libraries are found at run-time))\n");
13057       }
13058     }
13059   return 1;
13060 }
13061
13062 EOF
13063 if { (eval echo configure:13064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13064 then
13065   :
13066 else
13067   echo "configure: failed program was:" >&5
13068   cat conftest.$ac_ext >&5
13069   rm -fr conftest*
13070   no_gtk=yes
13071 fi
13072 rm -fr conftest*
13073 fi
13074
13075        CFLAGS="$ac_save_CFLAGS"
13076        LIBS="$ac_save_LIBS"
13077      fi
13078   fi
13079   if test "x$no_gtk" = x ; then
13080      echo "$ac_t""yes" 1>&6
13081      wx_cv_lib_gtk=1.2.3     
13082   else
13083      echo "$ac_t""no" 1>&6
13084      if test "$GTK_CONFIG" = "no" ; then
13085        echo "*** The gtk-config script installed by GTK could not be found"
13086        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13087        echo "*** your path, or set the GTK_CONFIG environment variable to the"
13088        echo "*** full path to gtk-config."
13089      else
13090        if test -f conf.gtktest ; then
13091         :
13092        else
13093           echo "*** Could not run GTK test program, checking why..."
13094           CFLAGS="$CFLAGS $GTK_CFLAGS"
13095           LIBS="$LIBS $GTK_LIBS"
13096           cat > conftest.$ac_ext <<EOF
13097 #line 13098 "configure"
13098 #include "confdefs.h"
13099
13100 #include <gtk/gtk.h>
13101 #include <stdio.h>
13102
13103 int main() {
13104  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
13105 ; return 0; }
13106 EOF
13107 if { (eval echo configure:13108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13108   rm -rf conftest*
13109    echo "*** The test program compiled, but did not run. This usually means"
13110           echo "*** that the run-time linker is not finding GTK or finding the wrong"
13111           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13112           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13113           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13114           echo "*** is required on your system"
13115           echo "***"
13116           echo "*** If you have an old version installed, it is best to remove it, although"
13117           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13118           echo "***"
13119           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13120           echo "*** came with the system with the command"
13121           echo "***"
13122           echo "***    rpm --erase --nodeps gtk gtk-devel" 
13123 else
13124   echo "configure: failed program was:" >&5
13125   cat conftest.$ac_ext >&5
13126   rm -rf conftest*
13127    echo "*** The test program failed to compile or link. See the file config.log for the"
13128           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13129           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
13130           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
13131 fi
13132 rm -f conftest*
13133           CFLAGS="$ac_save_CFLAGS"
13134           LIBS="$ac_save_LIBS"
13135        fi
13136      fi
13137      GTK_CFLAGS=""
13138      GTK_LIBS=""
13139      :
13140   fi
13141   
13142   
13143   rm -f conf.gtktest
13144
13145                     fi
13146                 fi
13147
13148                 if test -z "$wx_cv_lib_gtk"; then
13149                                         wx_cv_lib_gtk=none
13150                 else
13151                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
13152                     wx_cv_libs_gtk=$GTK_LIBS
13153                 fi
13154             
13155         
13156 fi
13157
13158
13159                         if test "$gtk_version_cached" = 1; then
13160             echo "$ac_t""$wx_cv_lib_gtk" 1>&6
13161         fi
13162
13163         case "$wx_cv_lib_gtk" in
13164             2.0)    WXGTK20=1
13165                     TOOLKIT_VERSION=2
13166                     ;;
13167             1.2.7)  WXGTK127=1
13168                     WXGTK12=1
13169                     ;;
13170             1.2.3)  WXGTK12=1
13171                     ;;
13172             *)      { echo "configure: error: 
13173 Please check that gtk-config is in path, the directory
13174 where GTK+ libraries are installed (returned by
13175 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13176 equivalent variable and GTK+ is version 1.2.3 or above.
13177                             " 1>&2; exit 1; }
13178                     ;;
13179         esac
13180
13181         if test "$WXGTK20" = 1; then
13182             if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13183                 
13184   succeeded=no
13185
13186   if test -z "$PKG_CONFIG"; then
13187     # Extract the first word of "pkg-config", so it can be a program name with args.
13188 set dummy pkg-config; ac_word=$2
13189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13190 echo "configure:13191: checking for $ac_word" >&5
13191 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13192   echo $ac_n "(cached) $ac_c" 1>&6
13193 else
13194   case "$PKG_CONFIG" in
13195   /*)
13196   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13197   ;;
13198   ?:/*)                  
13199   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13200   ;;
13201   *)
13202   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
13203   ac_dummy="$PATH"
13204   for ac_dir in $ac_dummy; do 
13205     test -z "$ac_dir" && ac_dir=.
13206     if test -f $ac_dir/$ac_word; then
13207       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13208       break
13209     fi
13210   done
13211   IFS="$ac_save_ifs"
13212   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13213   ;;
13214 esac
13215 fi
13216 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13217 if test -n "$PKG_CONFIG"; then
13218   echo "$ac_t""$PKG_CONFIG" 1>&6
13219 else
13220   echo "$ac_t""no" 1>&6
13221 fi
13222
13223   fi
13224
13225   if test "$PKG_CONFIG" = "no" ; then
13226      echo "*** The pkg-config script could not be found. Make sure it is"
13227      echo "*** in your path, or set the PKG_CONFIG environment variable"
13228      echo "*** to the full path to pkg-config."
13229      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13230   else
13231      PKG_CONFIG_MIN_VERSION=0.9.0
13232      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13233         echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
13234 echo "configure:13235: checking for pangoft2" >&5
13235
13236         if $PKG_CONFIG --exists "pangoft2" ; then
13237             echo "$ac_t""yes" 1>&6
13238             succeeded=yes
13239
13240             echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
13241 echo "configure:13242: checking PANGOFT2_CFLAGS" >&5
13242             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
13243             echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
13244
13245             echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
13246 echo "configure:13247: checking PANGOFT2_LIBS" >&5
13247             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
13248             echo "$ac_t""$PANGOFT2_LIBS" 1>&6
13249         else
13250             PANGOFT2_CFLAGS=""
13251             PANGOFT2_LIBS=""
13252             ## If we have a custom action on failure, don't print errors, but 
13253             ## do set a variable so people can do so.
13254             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
13255             
13256         fi
13257
13258         
13259         
13260      else
13261         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13262         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13263      fi
13264   fi
13265
13266   if test $succeeded = yes; then
13267      
13268                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13269                         LIBS="$LIBS $PANGOFT2_LIBS"
13270                     
13271   else
13272      
13273                         echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
13274                         wxUSE_PRINTING_ARCHITECTURE="no"
13275                     
13276                 
13277   fi
13278
13279             fi
13280         else
13281             if test "$wxUSE_UNICODE" = "yes"; then
13282                 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13283                 wxUSE_UNICODE=no
13284             fi
13285         fi
13286
13287                         if test "$USE_DARWIN" != 1; then
13288             for ac_func in poll
13289 do
13290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13291 echo "configure:13292: checking for $ac_func" >&5
13292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13293   echo $ac_n "(cached) $ac_c" 1>&6
13294 else
13295   cat > conftest.$ac_ext <<EOF
13296 #line 13297 "configure"
13297 #include "confdefs.h"
13298 /* System header to define __stub macros and hopefully few prototypes,
13299     which can conflict with char $ac_func(); below.  */
13300 #include <assert.h>
13301 /* Override any gcc2 internal prototype to avoid an error.  */
13302 /* We use char because int might match the return type of a gcc2
13303     builtin and then its argument prototype would still apply.  */
13304 char $ac_func();
13305
13306 int main() {
13307
13308 /* The GNU C library defines this for functions which it implements
13309     to always fail with ENOSYS.  Some functions are actually named
13310     something starting with __ and the normal name is an alias.  */
13311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13312 choke me
13313 #else
13314 $ac_func();
13315 #endif
13316
13317 ; return 0; }
13318 EOF
13319 if { (eval echo configure:13320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13320   rm -rf conftest*
13321   eval "ac_cv_func_$ac_func=yes"
13322 else
13323   echo "configure: failed program was:" >&5
13324   cat conftest.$ac_ext >&5
13325   rm -rf conftest*
13326   eval "ac_cv_func_$ac_func=no"
13327 fi
13328 rm -f conftest*
13329 fi
13330
13331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13332   echo "$ac_t""yes" 1>&6
13333     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13334   cat >> confdefs.h <<EOF
13335 #define $ac_tr_func 1
13336 EOF
13337  
13338 else
13339   echo "$ac_t""no" 1>&6
13340 fi
13341 done
13342
13343         fi
13344
13345         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13346         GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13347
13348         AFMINSTALL=afminstall
13349         TOOLKIT=GTK
13350         GUIDIST=GTK_DIST
13351
13352                 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
13353 echo "configure:13354: checking for gdk_im_open in -lgdk" >&5
13354 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13355 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13356   echo $ac_n "(cached) $ac_c" 1>&6
13357 else
13358   ac_save_LIBS="$LIBS"
13359 LIBS="-lgdk  $LIBS"
13360 cat > conftest.$ac_ext <<EOF
13361 #line 13362 "configure"
13362 #include "confdefs.h"
13363 /* Override any gcc2 internal prototype to avoid an error.  */
13364 /* We use char because int might match the return type of a gcc2
13365     builtin and then its argument prototype would still apply.  */
13366 char gdk_im_open();
13367
13368 int main() {
13369 gdk_im_open()
13370 ; return 0; }
13371 EOF
13372 if { (eval echo configure:13373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13373   rm -rf conftest*
13374   eval "ac_cv_lib_$ac_lib_var=yes"
13375 else
13376   echo "configure: failed program was:" >&5
13377   cat conftest.$ac_ext >&5
13378   rm -rf conftest*
13379   eval "ac_cv_lib_$ac_lib_var=no"
13380 fi
13381 rm -f conftest*
13382 LIBS="$ac_save_LIBS"
13383
13384 fi
13385 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13386   echo "$ac_t""yes" 1>&6
13387   cat >> confdefs.h <<\EOF
13388 #define HAVE_XIM 1
13389 EOF
13390
13391 else
13392   echo "$ac_t""no" 1>&6
13393 fi
13394
13395     fi
13396
13397     if test "$wxUSE_MGL" = 1; then
13398        echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
13399 echo "configure:13400: checking for SciTech MGL library" >&5
13400         if test "x$MGL_ROOT" = x ; then
13401             echo "$ac_t""not found" 1>&6
13402             { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
13403         else
13404             echo "$ac_t""$MGL_ROOT" 1>&6
13405         fi
13406
13407         echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
13408 echo "configure:13409: checking for libmgl location" >&5
13409                         case "${host}" in
13410             *-*-linux* )
13411               if test "x$wxUSE_SHARED" = xyes ; then
13412                   mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13413               else
13414                   mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13415               fi
13416               ;;
13417             *-pc-msdosdjgpp )
13418               mgl_os_candidates="dos32/dj2"
13419               ;;
13420             *)
13421               { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
13422         esac
13423
13424         mgl_lib_type=""
13425         mgl_os=""
13426
13427         for mgl_os_i in $mgl_os_candidates ; do
13428             if test "x$mgl_os" = x ; then
13429                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13430                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13431                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13432                         mgl_lib_type=debug
13433                         mgl_os=$mgl_os_i
13434                     fi
13435                 fi
13436                 if test "x$mgl_lib_type" = x ; then
13437                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13438                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13439                         mgl_lib_type=release
13440                         mgl_os=$mgl_os_i
13441                     fi
13442                 fi
13443             fi
13444         done
13445
13446         if test "x$mgl_os" = x ; then
13447             echo "$ac_t""not found" 1>&6
13448             { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13449         fi
13450         echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
13451  
13452         wxUSE_UNIVERSAL="yes"
13453
13454         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13455         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13456
13457         AFMINSTALL=afminstall
13458         TOOLKIT=MGL
13459         GUIDIST=MGL_DIST
13460     fi
13461
13462     if test "$wxUSE_MICROWIN" = 1; then
13463         echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
13464 echo "configure:13465: checking for MicroWindows" >&5
13465         if test "x$MICROWINDOWS" = x ; then
13466             echo "$ac_t""not found" 1>&6
13467             { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
13468         else
13469             echo "$ac_t""$MICROWINDOWS" 1>&6
13470         fi
13471
13472         if test -f $MICROWINDOWS/lib/libmwin.a; then
13473             echo "$ac_t""MicroWindows' libraries found." 1>&6
13474         else
13475             { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
13476         fi
13477
13478         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13479         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13480
13481         wxUSE_UNIVERSAL="yes"
13482
13483         AFMINSTALL=afminstall
13484         TOOLKIT=MICROWIN
13485         GUIDIST=MICROWIN_DIST
13486
13487         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
13488     fi
13489
13490     if test "$wxUSE_X11" = 1; then
13491                         # If we find X, set shell vars x_includes and x_libraries to the
13492 # paths, otherwise set no_x=yes.
13493 # Uses ac_ vars as temps to allow command line to override cache and checks.
13494 # --without-x overrides everything else, but does not touch the cache.
13495 echo $ac_n "checking for X""... $ac_c" 1>&6
13496 echo "configure:13497: checking for X" >&5
13497
13498 # Check whether --with-x or --without-x was given.
13499 if test "${with_x+set}" = set; then
13500   withval="$with_x"
13501   :
13502 fi
13503
13504 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13505 if test "x$with_x" = xno; then
13506   # The user explicitly disabled X.
13507   have_x=disabled
13508 else
13509   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13510     # Both variables are already set.
13511     have_x=yes
13512   else
13513 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13514   echo $ac_n "(cached) $ac_c" 1>&6
13515 else
13516   # One or both of the vars are not set, and there is no cached value.
13517 ac_x_includes=NO ac_x_libraries=NO
13518 rm -fr conftestdir
13519 if mkdir conftestdir; then
13520   cd conftestdir
13521   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
13522   cat > Imakefile <<'EOF'
13523 acfindx:
13524         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
13525 EOF
13526   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13527     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13528     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13529     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13530     for ac_extension in a so sl; do
13531       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
13532         test -f $ac_im_libdir/libX11.$ac_extension; then
13533         ac_im_usrlibdir=$ac_im_libdir; break
13534       fi
13535     done
13536     # Screen out bogus values from the imake configuration.  They are
13537     # bogus both because they are the default anyway, and because
13538     # using them would break gcc on systems where it needs fixed includes.
13539     case "$ac_im_incroot" in
13540         /usr/include) ;;
13541         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
13542     esac
13543     case "$ac_im_usrlibdir" in
13544         /usr/lib | /lib) ;;
13545         *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
13546     esac
13547   fi
13548   cd ..
13549   rm -fr conftestdir
13550 fi
13551
13552 if test "$ac_x_includes" = NO; then
13553   # Guess where to find include files, by looking for this one X11 .h file.
13554   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13555
13556   # First, try using that file with no special directory specified.
13557 cat > conftest.$ac_ext <<EOF
13558 #line 13559 "configure"
13559 #include "confdefs.h"
13560 #include <$x_direct_test_include>
13561 EOF
13562 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13563 { (eval echo configure:13564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13564 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13565 if test -z "$ac_err"; then
13566   rm -rf conftest*
13567   # We can compile using X headers with no special include directory.
13568 ac_x_includes=
13569 else
13570   echo "$ac_err" >&5
13571   echo "configure: failed program was:" >&5
13572   cat conftest.$ac_ext >&5
13573   rm -rf conftest*
13574   # Look for the header file in a standard set of common directories.
13575 # Check X11 before X11Rn because it is often a symlink to the current release.
13576   for ac_dir in               \
13577     /usr/X11/include          \
13578     /usr/X11R6/include        \
13579     /usr/X11R5/include        \
13580     /usr/X11R4/include        \
13581                               \
13582     /usr/include/X11          \
13583     /usr/include/X11R6        \
13584     /usr/include/X11R5        \
13585     /usr/include/X11R4        \
13586                               \
13587     /usr/local/X11/include    \
13588     /usr/local/X11R6/include  \
13589     /usr/local/X11R5/include  \
13590     /usr/local/X11R4/include  \
13591                               \
13592     /usr/local/include/X11    \
13593     /usr/local/include/X11R6  \
13594     /usr/local/include/X11R5  \
13595     /usr/local/include/X11R4  \
13596                               \
13597     /usr/X386/include         \
13598     /usr/x386/include         \
13599     /usr/XFree86/include/X11  \
13600                               \
13601     /usr/include              \
13602     /usr/local/include        \
13603     /usr/unsupported/include  \
13604     /usr/athena/include       \
13605     /usr/local/x11r5/include  \
13606     /usr/lpp/Xamples/include  \
13607                               \
13608     /usr/openwin/include      \
13609     /usr/openwin/share/include \
13610     ; \
13611   do
13612     if test -r "$ac_dir/$x_direct_test_include"; then
13613       ac_x_includes=$ac_dir
13614       break
13615     fi
13616   done
13617 fi
13618 rm -f conftest*
13619 fi # $ac_x_includes = NO
13620
13621 if test "$ac_x_libraries" = NO; then
13622   # Check for the libraries.
13623
13624   test -z "$x_direct_test_library" && x_direct_test_library=Xt
13625   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13626
13627   # See if we find them without any special options.
13628   # Don't add to $LIBS permanently.
13629   ac_save_LIBS="$LIBS"
13630   LIBS="-l$x_direct_test_library $LIBS"
13631 cat > conftest.$ac_ext <<EOF
13632 #line 13633 "configure"
13633 #include "confdefs.h"
13634
13635 int main() {
13636 ${x_direct_test_function}()
13637 ; return 0; }
13638 EOF
13639 if { (eval echo configure:13640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13640   rm -rf conftest*
13641   LIBS="$ac_save_LIBS"
13642 # We can link X programs with no special library path.
13643 ac_x_libraries=
13644 else
13645   echo "configure: failed program was:" >&5
13646   cat conftest.$ac_ext >&5
13647   rm -rf conftest*
13648   LIBS="$ac_save_LIBS"
13649 # First see if replacing the include by lib works.
13650 # Check X11 before X11Rn because it is often a symlink to the current release.
13651 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13652     /usr/X11/lib          \
13653     /usr/X11R6/lib        \
13654     /usr/X11R5/lib        \
13655     /usr/X11R4/lib        \
13656                           \
13657     /usr/lib/X11          \
13658     /usr/lib/X11R6        \
13659     /usr/lib/X11R5        \
13660     /usr/lib/X11R4        \
13661                           \
13662     /usr/local/X11/lib    \
13663     /usr/local/X11R6/lib  \
13664     /usr/local/X11R5/lib  \
13665     /usr/local/X11R4/lib  \
13666                           \
13667     /usr/local/lib/X11    \
13668     /usr/local/lib/X11R6  \
13669     /usr/local/lib/X11R5  \
13670     /usr/local/lib/X11R4  \
13671                           \
13672     /usr/X386/lib         \
13673     /usr/x386/lib         \
13674     /usr/XFree86/lib/X11  \
13675                           \
13676     /usr/lib              \
13677     /usr/local/lib        \
13678     /usr/unsupported/lib  \
13679     /usr/athena/lib       \
13680     /usr/local/x11r5/lib  \
13681     /usr/lpp/Xamples/lib  \
13682     /lib/usr/lib/X11      \
13683                           \
13684     /usr/openwin/lib      \
13685     /usr/openwin/share/lib \
13686     ; \
13687 do
13688   for ac_extension in a so sl; do
13689     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13690       ac_x_libraries=$ac_dir
13691       break 2
13692     fi
13693   done
13694 done
13695 fi
13696 rm -f conftest*
13697 fi # $ac_x_libraries = NO
13698
13699 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13700   # Didn't find X anywhere.  Cache the known absence of X.
13701   ac_cv_have_x="have_x=no"
13702 else
13703   # Record where we found X for the cache.
13704   ac_cv_have_x="have_x=yes \
13705                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13706 fi
13707 fi
13708   fi
13709   eval "$ac_cv_have_x"
13710 fi # $with_x != no
13711
13712 if test "$have_x" != yes; then
13713   echo "$ac_t""$have_x" 1>&6
13714   no_x=yes
13715 else
13716   # If each of the values was on the command line, it overrides each guess.
13717   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13718   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13719   # Update the cache value to reflect the command line values.
13720   ac_cv_have_x="have_x=yes \
13721                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13722   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13723 fi
13724
13725 if test "$no_x" = yes; then
13726   # Not all programs may use this symbol, but it does not hurt to define it.
13727   cat >> confdefs.h <<\EOF
13728 #define X_DISPLAY_MISSING 1
13729 EOF
13730
13731   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13732 else
13733   if test -n "$x_includes"; then
13734     X_CFLAGS="$X_CFLAGS -I$x_includes"
13735   fi
13736
13737   # It would also be nice to do this for all -L options, not just this one.
13738   if test -n "$x_libraries"; then
13739     X_LIBS="$X_LIBS -L$x_libraries"
13740     # For Solaris; some versions of Sun CC require a space after -R and
13741     # others require no space.  Words are not sufficient . . . .
13742     case "`(uname -sr) 2>/dev/null`" in
13743     "SunOS 5"*)
13744       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13745 echo "configure:13746: checking whether -R must be followed by a space" >&5
13746       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13747       cat > conftest.$ac_ext <<EOF
13748 #line 13749 "configure"
13749 #include "confdefs.h"
13750
13751 int main() {
13752
13753 ; return 0; }
13754 EOF
13755 if { (eval echo configure:13756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13756   rm -rf conftest*
13757   ac_R_nospace=yes
13758 else
13759   echo "configure: failed program was:" >&5
13760   cat conftest.$ac_ext >&5
13761   rm -rf conftest*
13762   ac_R_nospace=no
13763 fi
13764 rm -f conftest*
13765       if test $ac_R_nospace = yes; then
13766         echo "$ac_t""no" 1>&6
13767         X_LIBS="$X_LIBS -R$x_libraries"
13768       else
13769         LIBS="$ac_xsave_LIBS -R $x_libraries"
13770         cat > conftest.$ac_ext <<EOF
13771 #line 13772 "configure"
13772 #include "confdefs.h"
13773
13774 int main() {
13775
13776 ; return 0; }
13777 EOF
13778 if { (eval echo configure:13779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13779   rm -rf conftest*
13780   ac_R_space=yes
13781 else
13782   echo "configure: failed program was:" >&5
13783   cat conftest.$ac_ext >&5
13784   rm -rf conftest*
13785   ac_R_space=no
13786 fi
13787 rm -f conftest*
13788         if test $ac_R_space = yes; then
13789           echo "$ac_t""yes" 1>&6
13790           X_LIBS="$X_LIBS -R $x_libraries"
13791         else
13792           echo "$ac_t""neither works" 1>&6
13793         fi
13794       fi
13795       LIBS="$ac_xsave_LIBS"
13796     esac
13797   fi
13798
13799   # Check for system-dependent libraries X programs must link with.
13800   # Do this before checking for the system-independent R6 libraries
13801   # (-lICE), since we may need -lsocket or whatever for X linking.
13802
13803   if test "$ISC" = yes; then
13804     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13805   else
13806     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13807     # libraries were built with DECnet support.  And karl@cs.umb.edu says
13808     # the Alpha needs dnet_stub (dnet does not exist).
13809     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13810 echo "configure:13811: checking for dnet_ntoa in -ldnet" >&5
13811 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13812 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13813   echo $ac_n "(cached) $ac_c" 1>&6
13814 else
13815   ac_save_LIBS="$LIBS"
13816 LIBS="-ldnet  $LIBS"
13817 cat > conftest.$ac_ext <<EOF
13818 #line 13819 "configure"
13819 #include "confdefs.h"
13820 /* Override any gcc2 internal prototype to avoid an error.  */
13821 /* We use char because int might match the return type of a gcc2
13822     builtin and then its argument prototype would still apply.  */
13823 char dnet_ntoa();
13824
13825 int main() {
13826 dnet_ntoa()
13827 ; return 0; }
13828 EOF
13829 if { (eval echo configure:13830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13830   rm -rf conftest*
13831   eval "ac_cv_lib_$ac_lib_var=yes"
13832 else
13833   echo "configure: failed program was:" >&5
13834   cat conftest.$ac_ext >&5
13835   rm -rf conftest*
13836   eval "ac_cv_lib_$ac_lib_var=no"
13837 fi
13838 rm -f conftest*
13839 LIBS="$ac_save_LIBS"
13840
13841 fi
13842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13843   echo "$ac_t""yes" 1>&6
13844   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13845 else
13846   echo "$ac_t""no" 1>&6
13847 fi
13848
13849     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13850       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13851 echo "configure:13852: checking for dnet_ntoa in -ldnet_stub" >&5
13852 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13853 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13854   echo $ac_n "(cached) $ac_c" 1>&6
13855 else
13856   ac_save_LIBS="$LIBS"
13857 LIBS="-ldnet_stub  $LIBS"
13858 cat > conftest.$ac_ext <<EOF
13859 #line 13860 "configure"
13860 #include "confdefs.h"
13861 /* Override any gcc2 internal prototype to avoid an error.  */
13862 /* We use char because int might match the return type of a gcc2
13863     builtin and then its argument prototype would still apply.  */
13864 char dnet_ntoa();
13865
13866 int main() {
13867 dnet_ntoa()
13868 ; return 0; }
13869 EOF
13870 if { (eval echo configure:13871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13871   rm -rf conftest*
13872   eval "ac_cv_lib_$ac_lib_var=yes"
13873 else
13874   echo "configure: failed program was:" >&5
13875   cat conftest.$ac_ext >&5
13876   rm -rf conftest*
13877   eval "ac_cv_lib_$ac_lib_var=no"
13878 fi
13879 rm -f conftest*
13880 LIBS="$ac_save_LIBS"
13881
13882 fi
13883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13884   echo "$ac_t""yes" 1>&6
13885   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13886 else
13887   echo "$ac_t""no" 1>&6
13888 fi
13889
13890     fi
13891
13892     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13893     # to get the SysV transport functions.
13894     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13895     # needs -lnsl.
13896     # The nsl library prevents programs from opening the X display
13897     # on Irix 5.2, according to dickey@clark.net.
13898     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13899 echo "configure:13900: checking for gethostbyname" >&5
13900 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13901   echo $ac_n "(cached) $ac_c" 1>&6
13902 else
13903   cat > conftest.$ac_ext <<EOF
13904 #line 13905 "configure"
13905 #include "confdefs.h"
13906 /* System header to define __stub macros and hopefully few prototypes,
13907     which can conflict with char gethostbyname(); below.  */
13908 #include <assert.h>
13909 /* Override any gcc2 internal prototype to avoid an error.  */
13910 /* We use char because int might match the return type of a gcc2
13911     builtin and then its argument prototype would still apply.  */
13912 char gethostbyname();
13913
13914 int main() {
13915
13916 /* The GNU C library defines this for functions which it implements
13917     to always fail with ENOSYS.  Some functions are actually named
13918     something starting with __ and the normal name is an alias.  */
13919 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13920 choke me
13921 #else
13922 gethostbyname();
13923 #endif
13924
13925 ; return 0; }
13926 EOF
13927 if { (eval echo configure:13928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13928   rm -rf conftest*
13929   eval "ac_cv_func_gethostbyname=yes"
13930 else
13931   echo "configure: failed program was:" >&5
13932   cat conftest.$ac_ext >&5
13933   rm -rf conftest*
13934   eval "ac_cv_func_gethostbyname=no"
13935 fi
13936 rm -f conftest*
13937 fi
13938
13939 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13940   echo "$ac_t""yes" 1>&6
13941   :
13942 else
13943   echo "$ac_t""no" 1>&6
13944 fi
13945
13946     if test $ac_cv_func_gethostbyname = no; then
13947       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13948 echo "configure:13949: checking for gethostbyname in -lnsl" >&5
13949 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13950 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13951   echo $ac_n "(cached) $ac_c" 1>&6
13952 else
13953   ac_save_LIBS="$LIBS"
13954 LIBS="-lnsl  $LIBS"
13955 cat > conftest.$ac_ext <<EOF
13956 #line 13957 "configure"
13957 #include "confdefs.h"
13958 /* Override any gcc2 internal prototype to avoid an error.  */
13959 /* We use char because int might match the return type of a gcc2
13960     builtin and then its argument prototype would still apply.  */
13961 char gethostbyname();
13962
13963 int main() {
13964 gethostbyname()
13965 ; return 0; }
13966 EOF
13967 if { (eval echo configure:13968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13968   rm -rf conftest*
13969   eval "ac_cv_lib_$ac_lib_var=yes"
13970 else
13971   echo "configure: failed program was:" >&5
13972   cat conftest.$ac_ext >&5
13973   rm -rf conftest*
13974   eval "ac_cv_lib_$ac_lib_var=no"
13975 fi
13976 rm -f conftest*
13977 LIBS="$ac_save_LIBS"
13978
13979 fi
13980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13981   echo "$ac_t""yes" 1>&6
13982   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13983 else
13984   echo "$ac_t""no" 1>&6
13985 fi
13986
13987     fi
13988
13989     # lieder@skyler.mavd.honeywell.com says without -lsocket,
13990     # socket/setsockopt and other routines are undefined under SCO ODT
13991     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
13992     # on later versions), says simon@lia.di.epfl.ch: it contains
13993     # gethostby* variants that don't use the nameserver (or something).
13994     # -lsocket must be given before -lnsl if both are needed.
13995     # We assume that if connect needs -lnsl, so does gethostbyname.
13996     echo $ac_n "checking for connect""... $ac_c" 1>&6
13997 echo "configure:13998: checking for connect" >&5
13998 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13999   echo $ac_n "(cached) $ac_c" 1>&6
14000 else
14001   cat > conftest.$ac_ext <<EOF
14002 #line 14003 "configure"
14003 #include "confdefs.h"
14004 /* System header to define __stub macros and hopefully few prototypes,
14005     which can conflict with char connect(); below.  */
14006 #include <assert.h>
14007 /* Override any gcc2 internal prototype to avoid an error.  */
14008 /* We use char because int might match the return type of a gcc2
14009     builtin and then its argument prototype would still apply.  */
14010 char connect();
14011
14012 int main() {
14013
14014 /* The GNU C library defines this for functions which it implements
14015     to always fail with ENOSYS.  Some functions are actually named
14016     something starting with __ and the normal name is an alias.  */
14017 #if defined (__stub_connect) || defined (__stub___connect)
14018 choke me
14019 #else
14020 connect();
14021 #endif
14022
14023 ; return 0; }
14024 EOF
14025 if { (eval echo configure:14026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14026   rm -rf conftest*
14027   eval "ac_cv_func_connect=yes"
14028 else
14029   echo "configure: failed program was:" >&5
14030   cat conftest.$ac_ext >&5
14031   rm -rf conftest*
14032   eval "ac_cv_func_connect=no"
14033 fi
14034 rm -f conftest*
14035 fi
14036
14037 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14038   echo "$ac_t""yes" 1>&6
14039   :
14040 else
14041   echo "$ac_t""no" 1>&6
14042 fi
14043
14044     if test $ac_cv_func_connect = no; then
14045       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14046 echo "configure:14047: checking for connect in -lsocket" >&5
14047 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14048 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14049   echo $ac_n "(cached) $ac_c" 1>&6
14050 else
14051   ac_save_LIBS="$LIBS"
14052 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14053 cat > conftest.$ac_ext <<EOF
14054 #line 14055 "configure"
14055 #include "confdefs.h"
14056 /* Override any gcc2 internal prototype to avoid an error.  */
14057 /* We use char because int might match the return type of a gcc2
14058     builtin and then its argument prototype would still apply.  */
14059 char connect();
14060
14061 int main() {
14062 connect()
14063 ; return 0; }
14064 EOF
14065 if { (eval echo configure:14066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14066   rm -rf conftest*
14067   eval "ac_cv_lib_$ac_lib_var=yes"
14068 else
14069   echo "configure: failed program was:" >&5
14070   cat conftest.$ac_ext >&5
14071   rm -rf conftest*
14072   eval "ac_cv_lib_$ac_lib_var=no"
14073 fi
14074 rm -f conftest*
14075 LIBS="$ac_save_LIBS"
14076
14077 fi
14078 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14079   echo "$ac_t""yes" 1>&6
14080   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14081 else
14082   echo "$ac_t""no" 1>&6
14083 fi
14084
14085     fi
14086
14087     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14088     echo $ac_n "checking for remove""... $ac_c" 1>&6
14089 echo "configure:14090: checking for remove" >&5
14090 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14091   echo $ac_n "(cached) $ac_c" 1>&6
14092 else
14093   cat > conftest.$ac_ext <<EOF
14094 #line 14095 "configure"
14095 #include "confdefs.h"
14096 /* System header to define __stub macros and hopefully few prototypes,
14097     which can conflict with char remove(); below.  */
14098 #include <assert.h>
14099 /* Override any gcc2 internal prototype to avoid an error.  */
14100 /* We use char because int might match the return type of a gcc2
14101     builtin and then its argument prototype would still apply.  */
14102 char remove();
14103
14104 int main() {
14105
14106 /* The GNU C library defines this for functions which it implements
14107     to always fail with ENOSYS.  Some functions are actually named
14108     something starting with __ and the normal name is an alias.  */
14109 #if defined (__stub_remove) || defined (__stub___remove)
14110 choke me
14111 #else
14112 remove();
14113 #endif
14114
14115 ; return 0; }
14116 EOF
14117 if { (eval echo configure:14118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14118   rm -rf conftest*
14119   eval "ac_cv_func_remove=yes"
14120 else
14121   echo "configure: failed program was:" >&5
14122   cat conftest.$ac_ext >&5
14123   rm -rf conftest*
14124   eval "ac_cv_func_remove=no"
14125 fi
14126 rm -f conftest*
14127 fi
14128
14129 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14130   echo "$ac_t""yes" 1>&6
14131   :
14132 else
14133   echo "$ac_t""no" 1>&6
14134 fi
14135
14136     if test $ac_cv_func_remove = no; then
14137       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14138 echo "configure:14139: checking for remove in -lposix" >&5
14139 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14141   echo $ac_n "(cached) $ac_c" 1>&6
14142 else
14143   ac_save_LIBS="$LIBS"
14144 LIBS="-lposix  $LIBS"
14145 cat > conftest.$ac_ext <<EOF
14146 #line 14147 "configure"
14147 #include "confdefs.h"
14148 /* Override any gcc2 internal prototype to avoid an error.  */
14149 /* We use char because int might match the return type of a gcc2
14150     builtin and then its argument prototype would still apply.  */
14151 char remove();
14152
14153 int main() {
14154 remove()
14155 ; return 0; }
14156 EOF
14157 if { (eval echo configure:14158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14158   rm -rf conftest*
14159   eval "ac_cv_lib_$ac_lib_var=yes"
14160 else
14161   echo "configure: failed program was:" >&5
14162   cat conftest.$ac_ext >&5
14163   rm -rf conftest*
14164   eval "ac_cv_lib_$ac_lib_var=no"
14165 fi
14166 rm -f conftest*
14167 LIBS="$ac_save_LIBS"
14168
14169 fi
14170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14171   echo "$ac_t""yes" 1>&6
14172   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14173 else
14174   echo "$ac_t""no" 1>&6
14175 fi
14176
14177     fi
14178
14179     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14180     echo $ac_n "checking for shmat""... $ac_c" 1>&6
14181 echo "configure:14182: checking for shmat" >&5
14182 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14183   echo $ac_n "(cached) $ac_c" 1>&6
14184 else
14185   cat > conftest.$ac_ext <<EOF
14186 #line 14187 "configure"
14187 #include "confdefs.h"
14188 /* System header to define __stub macros and hopefully few prototypes,
14189     which can conflict with char shmat(); below.  */
14190 #include <assert.h>
14191 /* Override any gcc2 internal prototype to avoid an error.  */
14192 /* We use char because int might match the return type of a gcc2
14193     builtin and then its argument prototype would still apply.  */
14194 char shmat();
14195
14196 int main() {
14197
14198 /* The GNU C library defines this for functions which it implements
14199     to always fail with ENOSYS.  Some functions are actually named
14200     something starting with __ and the normal name is an alias.  */
14201 #if defined (__stub_shmat) || defined (__stub___shmat)
14202 choke me
14203 #else
14204 shmat();
14205 #endif
14206
14207 ; return 0; }
14208 EOF
14209 if { (eval echo configure:14210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14210   rm -rf conftest*
14211   eval "ac_cv_func_shmat=yes"
14212 else
14213   echo "configure: failed program was:" >&5
14214   cat conftest.$ac_ext >&5
14215   rm -rf conftest*
14216   eval "ac_cv_func_shmat=no"
14217 fi
14218 rm -f conftest*
14219 fi
14220
14221 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14222   echo "$ac_t""yes" 1>&6
14223   :
14224 else
14225   echo "$ac_t""no" 1>&6
14226 fi
14227
14228     if test $ac_cv_func_shmat = no; then
14229       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14230 echo "configure:14231: checking for shmat in -lipc" >&5
14231 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14233   echo $ac_n "(cached) $ac_c" 1>&6
14234 else
14235   ac_save_LIBS="$LIBS"
14236 LIBS="-lipc  $LIBS"
14237 cat > conftest.$ac_ext <<EOF
14238 #line 14239 "configure"
14239 #include "confdefs.h"
14240 /* Override any gcc2 internal prototype to avoid an error.  */
14241 /* We use char because int might match the return type of a gcc2
14242     builtin and then its argument prototype would still apply.  */
14243 char shmat();
14244
14245 int main() {
14246 shmat()
14247 ; return 0; }
14248 EOF
14249 if { (eval echo configure:14250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14250   rm -rf conftest*
14251   eval "ac_cv_lib_$ac_lib_var=yes"
14252 else
14253   echo "configure: failed program was:" >&5
14254   cat conftest.$ac_ext >&5
14255   rm -rf conftest*
14256   eval "ac_cv_lib_$ac_lib_var=no"
14257 fi
14258 rm -f conftest*
14259 LIBS="$ac_save_LIBS"
14260
14261 fi
14262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14263   echo "$ac_t""yes" 1>&6
14264   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14265 else
14266   echo "$ac_t""no" 1>&6
14267 fi
14268
14269     fi
14270   fi
14271
14272   # Check for libraries that X11R6 Xt/Xaw programs need.
14273   ac_save_LDFLAGS="$LDFLAGS"
14274   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14275   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14276   # check for ICE first), but we must link in the order -lSM -lICE or
14277   # we get undefined symbols.  So assume we have SM if we have ICE.
14278   # These have to be linked with before -lX11, unlike the other
14279   # libraries we check for below, so use a different variable.
14280   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14281   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14282 echo "configure:14283: checking for IceConnectionNumber in -lICE" >&5
14283 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14284 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14285   echo $ac_n "(cached) $ac_c" 1>&6
14286 else
14287   ac_save_LIBS="$LIBS"
14288 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14289 cat > conftest.$ac_ext <<EOF
14290 #line 14291 "configure"
14291 #include "confdefs.h"
14292 /* Override any gcc2 internal prototype to avoid an error.  */
14293 /* We use char because int might match the return type of a gcc2
14294     builtin and then its argument prototype would still apply.  */
14295 char IceConnectionNumber();
14296
14297 int main() {
14298 IceConnectionNumber()
14299 ; return 0; }
14300 EOF
14301 if { (eval echo configure:14302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14302   rm -rf conftest*
14303   eval "ac_cv_lib_$ac_lib_var=yes"
14304 else
14305   echo "configure: failed program was:" >&5
14306   cat conftest.$ac_ext >&5
14307   rm -rf conftest*
14308   eval "ac_cv_lib_$ac_lib_var=no"
14309 fi
14310 rm -f conftest*
14311 LIBS="$ac_save_LIBS"
14312
14313 fi
14314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14315   echo "$ac_t""yes" 1>&6
14316   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14317 else
14318   echo "$ac_t""no" 1>&6
14319 fi
14320
14321   LDFLAGS="$ac_save_LDFLAGS"
14322
14323 fi
14324
14325
14326         if test "$no_x" = "yes"; then
14327           { echo "configure: error: X11 not found" 1>&2; exit 1; }
14328         fi
14329
14330         GUI_TK_LIBRARY="$X_LIBS"
14331         TOOLKIT_INCLUDE="$X_CFLAGS"
14332         AFMINSTALL=afminstall
14333         COMPILED_X_PROGRAM=0
14334
14335         if test "$wxUSE_NANOX" = "yes"; then
14336             echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
14337 echo "configure:14338: checking for MicroWindows/NanoX distribution" >&5
14338             if test "x$MICROWIN" = x ; then
14339                 echo "$ac_t""not found" 1>&6
14340                 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
14341             else
14342                 echo "$ac_t""$MICROWIN" 1>&6
14343                 cat >> confdefs.h <<\EOF
14344 #define wxUSE_NANOX 1
14345 EOF
14346
14347             fi
14348         fi
14349
14350         xpm_link=
14351         echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14352 echo "configure:14353: checking for Xpm library" >&5
14353         
14354 ac_find_libraries=
14355 for ac_dir in $SEARCH_LIB /usr/lib;
14356   do
14357     for ac_extension in a so sl dylib; do
14358       if test -f "$ac_dir/libXpm.$ac_extension"; then
14359         ac_find_libraries=$ac_dir
14360         break 2
14361       fi
14362     done
14363   done
14364
14365         if test "$ac_find_libraries" != "" ; then
14366             
14367   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14368   result=$?
14369   if test $result = 0; then
14370     ac_path_to_link=""
14371   else
14372     ac_path_to_link=" -L$ac_find_libraries"
14373   fi
14374
14375             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14376             xpm_link=" -lXpm"
14377             cat >> confdefs.h <<\EOF
14378 #define wxHAVE_LIB_XPM 1
14379 EOF
14380
14381             echo "$ac_t""found at $ac_find_libraries" 1>&6
14382         else
14383             cat > conftest.$ac_ext <<EOF
14384 #line 14385 "configure"
14385 #include "confdefs.h"
14386
14387                     #include <X11/xpm.h>
14388                 
14389 int main() {
14390
14391                     int version;
14392                     version = XpmLibraryVersion();
14393                 
14394 ; return 0; }
14395 EOF
14396 if { (eval echo configure:14397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14397   rm -rf conftest*
14398   
14399                     xpm_link=" -lXpm"
14400                     cat >> confdefs.h <<\EOF
14401 #define wxHAVE_LIB_XPM 1
14402 EOF
14403
14404                     echo "$ac_t""found in default search path" 1>&6
14405                     COMPILED_X_PROGRAM=0
14406                 
14407 else
14408   echo "configure: failed program was:" >&5
14409   cat conftest.$ac_ext >&5
14410   rm -rf conftest*
14411   
14412                     echo "$ac_t""no" 1>&6
14413                     echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14414                 
14415             
14416 fi
14417 rm -f conftest*
14418         fi
14419
14420         if test "$wxUSE_UNICODE" = "yes"; then
14421                 
14422   succeeded=no
14423
14424   if test -z "$PKG_CONFIG"; then
14425     # Extract the first word of "pkg-config", so it can be a program name with args.
14426 set dummy pkg-config; ac_word=$2
14427 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14428 echo "configure:14429: checking for $ac_word" >&5
14429 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14430   echo $ac_n "(cached) $ac_c" 1>&6
14431 else
14432   case "$PKG_CONFIG" in
14433   /*)
14434   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14435   ;;
14436   ?:/*)                  
14437   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14438   ;;
14439   *)
14440   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
14441   ac_dummy="$PATH"
14442   for ac_dir in $ac_dummy; do 
14443     test -z "$ac_dir" && ac_dir=.
14444     if test -f $ac_dir/$ac_word; then
14445       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14446       break
14447     fi
14448   done
14449   IFS="$ac_save_ifs"
14450   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14451   ;;
14452 esac
14453 fi
14454 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14455 if test -n "$PKG_CONFIG"; then
14456   echo "$ac_t""$PKG_CONFIG" 1>&6
14457 else
14458   echo "$ac_t""no" 1>&6
14459 fi
14460
14461   fi
14462
14463   if test "$PKG_CONFIG" = "no" ; then
14464      echo "*** The pkg-config script could not be found. Make sure it is"
14465      echo "*** in your path, or set the PKG_CONFIG environment variable"
14466      echo "*** to the full path to pkg-config."
14467      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14468   else
14469      PKG_CONFIG_MIN_VERSION=0.9.0
14470      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14471         echo $ac_n "checking for pangox""... $ac_c" 1>&6
14472 echo "configure:14473: checking for pangox" >&5
14473
14474         if $PKG_CONFIG --exists "pangox" ; then
14475             echo "$ac_t""yes" 1>&6
14476             succeeded=yes
14477
14478             echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
14479 echo "configure:14480: checking PANGOX_CFLAGS" >&5
14480             PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14481             echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14482
14483             echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
14484 echo "configure:14485: checking PANGOX_LIBS" >&5
14485             PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14486             echo "$ac_t""$PANGOX_LIBS" 1>&6
14487         else
14488             PANGOX_CFLAGS=""
14489             PANGOX_LIBS=""
14490             ## If we have a custom action on failure, don't print errors, but 
14491             ## do set a variable so people can do so.
14492             PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14493             
14494         fi
14495
14496         
14497         
14498      else
14499         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14500         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14501      fi
14502   fi
14503
14504   if test $succeeded = yes; then
14505      
14506                         CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14507                         LIBS="$LIBS $PANGOX_LIBS"
14508                     
14509   else
14510      
14511                         { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14512                     
14513                 
14514   fi
14515
14516                 
14517   succeeded=no
14518
14519   if test -z "$PKG_CONFIG"; then
14520     # Extract the first word of "pkg-config", so it can be a program name with args.
14521 set dummy pkg-config; ac_word=$2
14522 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14523 echo "configure:14524: checking for $ac_word" >&5
14524 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14525   echo $ac_n "(cached) $ac_c" 1>&6
14526 else
14527   case "$PKG_CONFIG" in
14528   /*)
14529   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14530   ;;
14531   ?:/*)                  
14532   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14533   ;;
14534   *)
14535   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
14536   ac_dummy="$PATH"
14537   for ac_dir in $ac_dummy; do 
14538     test -z "$ac_dir" && ac_dir=.
14539     if test -f $ac_dir/$ac_word; then
14540       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14541       break
14542     fi
14543   done
14544   IFS="$ac_save_ifs"
14545   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14546   ;;
14547 esac
14548 fi
14549 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14550 if test -n "$PKG_CONFIG"; then
14551   echo "$ac_t""$PKG_CONFIG" 1>&6
14552 else
14553   echo "$ac_t""no" 1>&6
14554 fi
14555
14556   fi
14557
14558   if test "$PKG_CONFIG" = "no" ; then
14559      echo "*** The pkg-config script could not be found. Make sure it is"
14560      echo "*** in your path, or set the PKG_CONFIG environment variable"
14561      echo "*** to the full path to pkg-config."
14562      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14563   else
14564      PKG_CONFIG_MIN_VERSION=0.9.0
14565      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14566         echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
14567 echo "configure:14568: checking for pangoft2" >&5
14568
14569         if $PKG_CONFIG --exists "pangoft2" ; then
14570             echo "$ac_t""yes" 1>&6
14571             succeeded=yes
14572
14573             echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
14574 echo "configure:14575: checking PANGOFT2_CFLAGS" >&5
14575             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14576             echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14577
14578             echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
14579 echo "configure:14580: checking PANGOFT2_LIBS" >&5
14580             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14581             echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14582         else
14583             PANGOFT2_CFLAGS=""
14584             PANGOFT2_LIBS=""
14585             ## If we have a custom action on failure, don't print errors, but 
14586             ## do set a variable so people can do so.
14587             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14588             
14589         fi
14590
14591         
14592         
14593      else
14594         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14595         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14596      fi
14597   fi
14598
14599   if test $succeeded = yes; then
14600      
14601                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14602                         LIBS="$LIBS $PANGOFT2_LIBS"
14603                     
14604   else
14605      
14606                         echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14607                         wxUSE_PRINTING_ARCHITECTURE="no"
14608                     
14609                 
14610   fi
14611
14612                 
14613   succeeded=no
14614
14615   if test -z "$PKG_CONFIG"; then
14616     # Extract the first word of "pkg-config", so it can be a program name with args.
14617 set dummy pkg-config; ac_word=$2
14618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14619 echo "configure:14620: checking for $ac_word" >&5
14620 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14621   echo $ac_n "(cached) $ac_c" 1>&6
14622 else
14623   case "$PKG_CONFIG" in
14624   /*)
14625   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14626   ;;
14627   ?:/*)                  
14628   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14629   ;;
14630   *)
14631   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
14632   ac_dummy="$PATH"
14633   for ac_dir in $ac_dummy; do 
14634     test -z "$ac_dir" && ac_dir=.
14635     if test -f $ac_dir/$ac_word; then
14636       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14637       break
14638     fi
14639   done
14640   IFS="$ac_save_ifs"
14641   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14642   ;;
14643 esac
14644 fi
14645 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14646 if test -n "$PKG_CONFIG"; then
14647   echo "$ac_t""$PKG_CONFIG" 1>&6
14648 else
14649   echo "$ac_t""no" 1>&6
14650 fi
14651
14652   fi
14653
14654   if test "$PKG_CONFIG" = "no" ; then
14655      echo "*** The pkg-config script could not be found. Make sure it is"
14656      echo "*** in your path, or set the PKG_CONFIG environment variable"
14657      echo "*** to the full path to pkg-config."
14658      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14659   else
14660      PKG_CONFIG_MIN_VERSION=0.9.0
14661      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14662         echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
14663 echo "configure:14664: checking for pangoxft" >&5
14664
14665         if $PKG_CONFIG --exists "pangoxft" ; then
14666             echo "$ac_t""yes" 1>&6
14667             succeeded=yes
14668
14669             echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
14670 echo "configure:14671: checking PANGOXFT_CFLAGS" >&5
14671             PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14672             echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14673
14674             echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
14675 echo "configure:14676: checking PANGOXFT_LIBS" >&5
14676             PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14677             echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14678         else
14679             PANGOXFT_CFLAGS=""
14680             PANGOXFT_LIBS=""
14681             ## If we have a custom action on failure, don't print errors, but 
14682             ## do set a variable so people can do so.
14683             PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14684             
14685         fi
14686
14687         
14688         
14689      else
14690         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14691         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14692      fi
14693   fi
14694
14695   if test $succeeded = yes; then
14696      
14697                         CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14698                         LIBS="$LIBS $PANGOXFT_LIBS"
14699                     
14700   else
14701      
14702                         echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14703                     
14704                 
14705   fi
14706
14707         fi
14708
14709         wxUSE_UNIVERSAL="yes"
14710
14711         if test "$wxUSE_NANOX" = "yes"; then
14712             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14713             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"
14714             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14715         else
14716             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14717         fi
14718
14719         TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14720         TOOLKIT=X11
14721         GUIDIST=X11_DIST
14722     fi
14723
14724     if test "$wxUSE_MOTIF" = 1; then
14725                         if test "$no_x" = yes; then
14726   # Not all programs may use this symbol, but it does not hurt to define it.
14727   cat >> confdefs.h <<\EOF
14728 #define X_DISPLAY_MISSING 1
14729 EOF
14730
14731   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14732 else
14733   if test -n "$x_includes"; then
14734     X_CFLAGS="$X_CFLAGS -I$x_includes"
14735   fi
14736
14737   # It would also be nice to do this for all -L options, not just this one.
14738   if test -n "$x_libraries"; then
14739     X_LIBS="$X_LIBS -L$x_libraries"
14740     # For Solaris; some versions of Sun CC require a space after -R and
14741     # others require no space.  Words are not sufficient . . . .
14742     case "`(uname -sr) 2>/dev/null`" in
14743     "SunOS 5"*)
14744       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
14745 echo "configure:14746: checking whether -R must be followed by a space" >&5
14746       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14747       cat > conftest.$ac_ext <<EOF
14748 #line 14749 "configure"
14749 #include "confdefs.h"
14750
14751 int main() {
14752
14753 ; return 0; }
14754 EOF
14755 if { (eval echo configure:14756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14756   rm -rf conftest*
14757   ac_R_nospace=yes
14758 else
14759   echo "configure: failed program was:" >&5
14760   cat conftest.$ac_ext >&5
14761   rm -rf conftest*
14762   ac_R_nospace=no
14763 fi
14764 rm -f conftest*
14765       if test $ac_R_nospace = yes; then
14766         echo "$ac_t""no" 1>&6
14767         X_LIBS="$X_LIBS -R$x_libraries"
14768       else
14769         LIBS="$ac_xsave_LIBS -R $x_libraries"
14770         cat > conftest.$ac_ext <<EOF
14771 #line 14772 "configure"
14772 #include "confdefs.h"
14773
14774 int main() {
14775
14776 ; return 0; }
14777 EOF
14778 if { (eval echo configure:14779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14779   rm -rf conftest*
14780   ac_R_space=yes
14781 else
14782   echo "configure: failed program was:" >&5
14783   cat conftest.$ac_ext >&5
14784   rm -rf conftest*
14785   ac_R_space=no
14786 fi
14787 rm -f conftest*
14788         if test $ac_R_space = yes; then
14789           echo "$ac_t""yes" 1>&6
14790           X_LIBS="$X_LIBS -R $x_libraries"
14791         else
14792           echo "$ac_t""neither works" 1>&6
14793         fi
14794       fi
14795       LIBS="$ac_xsave_LIBS"
14796     esac
14797   fi
14798
14799   # Check for system-dependent libraries X programs must link with.
14800   # Do this before checking for the system-independent R6 libraries
14801   # (-lICE), since we may need -lsocket or whatever for X linking.
14802
14803   if test "$ISC" = yes; then
14804     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14805   else
14806     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14807     # libraries were built with DECnet support.  And karl@cs.umb.edu says
14808     # the Alpha needs dnet_stub (dnet does not exist).
14809     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
14810 echo "configure:14811: checking for dnet_ntoa in -ldnet" >&5
14811 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14812 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14813   echo $ac_n "(cached) $ac_c" 1>&6
14814 else
14815   ac_save_LIBS="$LIBS"
14816 LIBS="-ldnet  $LIBS"
14817 cat > conftest.$ac_ext <<EOF
14818 #line 14819 "configure"
14819 #include "confdefs.h"
14820 /* Override any gcc2 internal prototype to avoid an error.  */
14821 /* We use char because int might match the return type of a gcc2
14822     builtin and then its argument prototype would still apply.  */
14823 char dnet_ntoa();
14824
14825 int main() {
14826 dnet_ntoa()
14827 ; return 0; }
14828 EOF
14829 if { (eval echo configure:14830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14830   rm -rf conftest*
14831   eval "ac_cv_lib_$ac_lib_var=yes"
14832 else
14833   echo "configure: failed program was:" >&5
14834   cat conftest.$ac_ext >&5
14835   rm -rf conftest*
14836   eval "ac_cv_lib_$ac_lib_var=no"
14837 fi
14838 rm -f conftest*
14839 LIBS="$ac_save_LIBS"
14840
14841 fi
14842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14843   echo "$ac_t""yes" 1>&6
14844   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14845 else
14846   echo "$ac_t""no" 1>&6
14847 fi
14848
14849     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14850       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
14851 echo "configure:14852: checking for dnet_ntoa in -ldnet_stub" >&5
14852 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14853 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14854   echo $ac_n "(cached) $ac_c" 1>&6
14855 else
14856   ac_save_LIBS="$LIBS"
14857 LIBS="-ldnet_stub  $LIBS"
14858 cat > conftest.$ac_ext <<EOF
14859 #line 14860 "configure"
14860 #include "confdefs.h"
14861 /* Override any gcc2 internal prototype to avoid an error.  */
14862 /* We use char because int might match the return type of a gcc2
14863     builtin and then its argument prototype would still apply.  */
14864 char dnet_ntoa();
14865
14866 int main() {
14867 dnet_ntoa()
14868 ; return 0; }
14869 EOF
14870 if { (eval echo configure:14871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14871   rm -rf conftest*
14872   eval "ac_cv_lib_$ac_lib_var=yes"
14873 else
14874   echo "configure: failed program was:" >&5
14875   cat conftest.$ac_ext >&5
14876   rm -rf conftest*
14877   eval "ac_cv_lib_$ac_lib_var=no"
14878 fi
14879 rm -f conftest*
14880 LIBS="$ac_save_LIBS"
14881
14882 fi
14883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14884   echo "$ac_t""yes" 1>&6
14885   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14886 else
14887   echo "$ac_t""no" 1>&6
14888 fi
14889
14890     fi
14891
14892     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14893     # to get the SysV transport functions.
14894     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14895     # needs -lnsl.
14896     # The nsl library prevents programs from opening the X display
14897     # on Irix 5.2, according to dickey@clark.net.
14898     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14899 echo "configure:14900: checking for gethostbyname" >&5
14900 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+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 /* System header to define __stub macros and hopefully few prototypes,
14907     which can conflict with char gethostbyname(); below.  */
14908 #include <assert.h>
14909 /* Override any gcc2 internal prototype to avoid an error.  */
14910 /* We use char because int might match the return type of a gcc2
14911     builtin and then its argument prototype would still apply.  */
14912 char gethostbyname();
14913
14914 int main() {
14915
14916 /* The GNU C library defines this for functions which it implements
14917     to always fail with ENOSYS.  Some functions are actually named
14918     something starting with __ and the normal name is an alias.  */
14919 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14920 choke me
14921 #else
14922 gethostbyname();
14923 #endif
14924
14925 ; return 0; }
14926 EOF
14927 if { (eval echo configure:14928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14928   rm -rf conftest*
14929   eval "ac_cv_func_gethostbyname=yes"
14930 else
14931   echo "configure: failed program was:" >&5
14932   cat conftest.$ac_ext >&5
14933   rm -rf conftest*
14934   eval "ac_cv_func_gethostbyname=no"
14935 fi
14936 rm -f conftest*
14937 fi
14938
14939 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14940   echo "$ac_t""yes" 1>&6
14941   :
14942 else
14943   echo "$ac_t""no" 1>&6
14944 fi
14945
14946     if test $ac_cv_func_gethostbyname = no; then
14947       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
14948 echo "configure:14949: checking for gethostbyname in -lnsl" >&5
14949 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14950 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14951   echo $ac_n "(cached) $ac_c" 1>&6
14952 else
14953   ac_save_LIBS="$LIBS"
14954 LIBS="-lnsl  $LIBS"
14955 cat > conftest.$ac_ext <<EOF
14956 #line 14957 "configure"
14957 #include "confdefs.h"
14958 /* Override any gcc2 internal prototype to avoid an error.  */
14959 /* We use char because int might match the return type of a gcc2
14960     builtin and then its argument prototype would still apply.  */
14961 char gethostbyname();
14962
14963 int main() {
14964 gethostbyname()
14965 ; return 0; }
14966 EOF
14967 if { (eval echo configure:14968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14968   rm -rf conftest*
14969   eval "ac_cv_lib_$ac_lib_var=yes"
14970 else
14971   echo "configure: failed program was:" >&5
14972   cat conftest.$ac_ext >&5
14973   rm -rf conftest*
14974   eval "ac_cv_lib_$ac_lib_var=no"
14975 fi
14976 rm -f conftest*
14977 LIBS="$ac_save_LIBS"
14978
14979 fi
14980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14981   echo "$ac_t""yes" 1>&6
14982   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14983 else
14984   echo "$ac_t""no" 1>&6
14985 fi
14986
14987     fi
14988
14989     # lieder@skyler.mavd.honeywell.com says without -lsocket,
14990     # socket/setsockopt and other routines are undefined under SCO ODT
14991     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
14992     # on later versions), says simon@lia.di.epfl.ch: it contains
14993     # gethostby* variants that don't use the nameserver (or something).
14994     # -lsocket must be given before -lnsl if both are needed.
14995     # We assume that if connect needs -lnsl, so does gethostbyname.
14996     echo $ac_n "checking for connect""... $ac_c" 1>&6
14997 echo "configure:14998: checking for connect" >&5
14998 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14999   echo $ac_n "(cached) $ac_c" 1>&6
15000 else
15001   cat > conftest.$ac_ext <<EOF
15002 #line 15003 "configure"
15003 #include "confdefs.h"
15004 /* System header to define __stub macros and hopefully few prototypes,
15005     which can conflict with char connect(); below.  */
15006 #include <assert.h>
15007 /* Override any gcc2 internal prototype to avoid an error.  */
15008 /* We use char because int might match the return type of a gcc2
15009     builtin and then its argument prototype would still apply.  */
15010 char connect();
15011
15012 int main() {
15013
15014 /* The GNU C library defines this for functions which it implements
15015     to always fail with ENOSYS.  Some functions are actually named
15016     something starting with __ and the normal name is an alias.  */
15017 #if defined (__stub_connect) || defined (__stub___connect)
15018 choke me
15019 #else
15020 connect();
15021 #endif
15022
15023 ; return 0; }
15024 EOF
15025 if { (eval echo configure:15026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15026   rm -rf conftest*
15027   eval "ac_cv_func_connect=yes"
15028 else
15029   echo "configure: failed program was:" >&5
15030   cat conftest.$ac_ext >&5
15031   rm -rf conftest*
15032   eval "ac_cv_func_connect=no"
15033 fi
15034 rm -f conftest*
15035 fi
15036
15037 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
15038   echo "$ac_t""yes" 1>&6
15039   :
15040 else
15041   echo "$ac_t""no" 1>&6
15042 fi
15043
15044     if test $ac_cv_func_connect = no; then
15045       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
15046 echo "configure:15047: checking for connect in -lsocket" >&5
15047 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
15048 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15049   echo $ac_n "(cached) $ac_c" 1>&6
15050 else
15051   ac_save_LIBS="$LIBS"
15052 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
15053 cat > conftest.$ac_ext <<EOF
15054 #line 15055 "configure"
15055 #include "confdefs.h"
15056 /* Override any gcc2 internal prototype to avoid an error.  */
15057 /* We use char because int might match the return type of a gcc2
15058     builtin and then its argument prototype would still apply.  */
15059 char connect();
15060
15061 int main() {
15062 connect()
15063 ; return 0; }
15064 EOF
15065 if { (eval echo configure:15066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15066   rm -rf conftest*
15067   eval "ac_cv_lib_$ac_lib_var=yes"
15068 else
15069   echo "configure: failed program was:" >&5
15070   cat conftest.$ac_ext >&5
15071   rm -rf conftest*
15072   eval "ac_cv_lib_$ac_lib_var=no"
15073 fi
15074 rm -f conftest*
15075 LIBS="$ac_save_LIBS"
15076
15077 fi
15078 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15079   echo "$ac_t""yes" 1>&6
15080   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15081 else
15082   echo "$ac_t""no" 1>&6
15083 fi
15084
15085     fi
15086
15087     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15088     echo $ac_n "checking for remove""... $ac_c" 1>&6
15089 echo "configure:15090: checking for remove" >&5
15090 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15091   echo $ac_n "(cached) $ac_c" 1>&6
15092 else
15093   cat > conftest.$ac_ext <<EOF
15094 #line 15095 "configure"
15095 #include "confdefs.h"
15096 /* System header to define __stub macros and hopefully few prototypes,
15097     which can conflict with char remove(); below.  */
15098 #include <assert.h>
15099 /* Override any gcc2 internal prototype to avoid an error.  */
15100 /* We use char because int might match the return type of a gcc2
15101     builtin and then its argument prototype would still apply.  */
15102 char remove();
15103
15104 int main() {
15105
15106 /* The GNU C library defines this for functions which it implements
15107     to always fail with ENOSYS.  Some functions are actually named
15108     something starting with __ and the normal name is an alias.  */
15109 #if defined (__stub_remove) || defined (__stub___remove)
15110 choke me
15111 #else
15112 remove();
15113 #endif
15114
15115 ; return 0; }
15116 EOF
15117 if { (eval echo configure:15118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15118   rm -rf conftest*
15119   eval "ac_cv_func_remove=yes"
15120 else
15121   echo "configure: failed program was:" >&5
15122   cat conftest.$ac_ext >&5
15123   rm -rf conftest*
15124   eval "ac_cv_func_remove=no"
15125 fi
15126 rm -f conftest*
15127 fi
15128
15129 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15130   echo "$ac_t""yes" 1>&6
15131   :
15132 else
15133   echo "$ac_t""no" 1>&6
15134 fi
15135
15136     if test $ac_cv_func_remove = no; then
15137       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
15138 echo "configure:15139: checking for remove in -lposix" >&5
15139 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15141   echo $ac_n "(cached) $ac_c" 1>&6
15142 else
15143   ac_save_LIBS="$LIBS"
15144 LIBS="-lposix  $LIBS"
15145 cat > conftest.$ac_ext <<EOF
15146 #line 15147 "configure"
15147 #include "confdefs.h"
15148 /* Override any gcc2 internal prototype to avoid an error.  */
15149 /* We use char because int might match the return type of a gcc2
15150     builtin and then its argument prototype would still apply.  */
15151 char remove();
15152
15153 int main() {
15154 remove()
15155 ; return 0; }
15156 EOF
15157 if { (eval echo configure:15158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15158   rm -rf conftest*
15159   eval "ac_cv_lib_$ac_lib_var=yes"
15160 else
15161   echo "configure: failed program was:" >&5
15162   cat conftest.$ac_ext >&5
15163   rm -rf conftest*
15164   eval "ac_cv_lib_$ac_lib_var=no"
15165 fi
15166 rm -f conftest*
15167 LIBS="$ac_save_LIBS"
15168
15169 fi
15170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15171   echo "$ac_t""yes" 1>&6
15172   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15173 else
15174   echo "$ac_t""no" 1>&6
15175 fi
15176
15177     fi
15178
15179     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15180     echo $ac_n "checking for shmat""... $ac_c" 1>&6
15181 echo "configure:15182: checking for shmat" >&5
15182 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15183   echo $ac_n "(cached) $ac_c" 1>&6
15184 else
15185   cat > conftest.$ac_ext <<EOF
15186 #line 15187 "configure"
15187 #include "confdefs.h"
15188 /* System header to define __stub macros and hopefully few prototypes,
15189     which can conflict with char shmat(); below.  */
15190 #include <assert.h>
15191 /* Override any gcc2 internal prototype to avoid an error.  */
15192 /* We use char because int might match the return type of a gcc2
15193     builtin and then its argument prototype would still apply.  */
15194 char shmat();
15195
15196 int main() {
15197
15198 /* The GNU C library defines this for functions which it implements
15199     to always fail with ENOSYS.  Some functions are actually named
15200     something starting with __ and the normal name is an alias.  */
15201 #if defined (__stub_shmat) || defined (__stub___shmat)
15202 choke me
15203 #else
15204 shmat();
15205 #endif
15206
15207 ; return 0; }
15208 EOF
15209 if { (eval echo configure:15210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15210   rm -rf conftest*
15211   eval "ac_cv_func_shmat=yes"
15212 else
15213   echo "configure: failed program was:" >&5
15214   cat conftest.$ac_ext >&5
15215   rm -rf conftest*
15216   eval "ac_cv_func_shmat=no"
15217 fi
15218 rm -f conftest*
15219 fi
15220
15221 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15222   echo "$ac_t""yes" 1>&6
15223   :
15224 else
15225   echo "$ac_t""no" 1>&6
15226 fi
15227
15228     if test $ac_cv_func_shmat = no; then
15229       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
15230 echo "configure:15231: checking for shmat in -lipc" >&5
15231 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15233   echo $ac_n "(cached) $ac_c" 1>&6
15234 else
15235   ac_save_LIBS="$LIBS"
15236 LIBS="-lipc  $LIBS"
15237 cat > conftest.$ac_ext <<EOF
15238 #line 15239 "configure"
15239 #include "confdefs.h"
15240 /* Override any gcc2 internal prototype to avoid an error.  */
15241 /* We use char because int might match the return type of a gcc2
15242     builtin and then its argument prototype would still apply.  */
15243 char shmat();
15244
15245 int main() {
15246 shmat()
15247 ; return 0; }
15248 EOF
15249 if { (eval echo configure:15250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15250   rm -rf conftest*
15251   eval "ac_cv_lib_$ac_lib_var=yes"
15252 else
15253   echo "configure: failed program was:" >&5
15254   cat conftest.$ac_ext >&5
15255   rm -rf conftest*
15256   eval "ac_cv_lib_$ac_lib_var=no"
15257 fi
15258 rm -f conftest*
15259 LIBS="$ac_save_LIBS"
15260
15261 fi
15262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15263   echo "$ac_t""yes" 1>&6
15264   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15265 else
15266   echo "$ac_t""no" 1>&6
15267 fi
15268
15269     fi
15270   fi
15271
15272   # Check for libraries that X11R6 Xt/Xaw programs need.
15273   ac_save_LDFLAGS="$LDFLAGS"
15274   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15275   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15276   # check for ICE first), but we must link in the order -lSM -lICE or
15277   # we get undefined symbols.  So assume we have SM if we have ICE.
15278   # These have to be linked with before -lX11, unlike the other
15279   # libraries we check for below, so use a different variable.
15280   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15281   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
15282 echo "configure:15283: checking for IceConnectionNumber in -lICE" >&5
15283 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15284 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15285   echo $ac_n "(cached) $ac_c" 1>&6
15286 else
15287   ac_save_LIBS="$LIBS"
15288 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15289 cat > conftest.$ac_ext <<EOF
15290 #line 15291 "configure"
15291 #include "confdefs.h"
15292 /* Override any gcc2 internal prototype to avoid an error.  */
15293 /* We use char because int might match the return type of a gcc2
15294     builtin and then its argument prototype would still apply.  */
15295 char IceConnectionNumber();
15296
15297 int main() {
15298 IceConnectionNumber()
15299 ; return 0; }
15300 EOF
15301 if { (eval echo configure:15302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15302   rm -rf conftest*
15303   eval "ac_cv_lib_$ac_lib_var=yes"
15304 else
15305   echo "configure: failed program was:" >&5
15306   cat conftest.$ac_ext >&5
15307   rm -rf conftest*
15308   eval "ac_cv_lib_$ac_lib_var=no"
15309 fi
15310 rm -f conftest*
15311 LIBS="$ac_save_LIBS"
15312
15313 fi
15314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15315   echo "$ac_t""yes" 1>&6
15316   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15317 else
15318   echo "$ac_t""no" 1>&6
15319 fi
15320
15321   LDFLAGS="$ac_save_LDFLAGS"
15322
15323 fi
15324
15325
15326         if test "$no_x" = "yes"; then
15327           { echo "configure: error: X11 not found" 1>&2; exit 1; }
15328         fi
15329
15330                         GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15331         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
15332         AFMINSTALL=afminstall
15333         COMPILED_X_PROGRAM=0
15334
15335         echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
15336 echo "configure:15337: checking for Motif/Lesstif headers" >&5
15337         
15338 ac_find_includes=
15339 for ac_dir in $SEARCH_INCLUDE /usr/include;
15340   do
15341     if test -f "$ac_dir/Xm/Xm.h"; then
15342       ac_find_includes=$ac_dir
15343       break
15344     fi
15345   done
15346
15347         if test "$ac_find_includes" != "" ; then
15348             echo "$ac_t""found in $ac_find_includes" 1>&6
15349             
15350     if test "x$ac_find_includes" = "x/usr/include"; then
15351     ac_path_to_include=""
15352   else
15353     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15354     result=$?
15355     if test $result = 0; then
15356       ac_path_to_include=""
15357     else
15358       ac_path_to_include=" -I$ac_find_includes"
15359     fi
15360   fi
15361
15362             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
15363         else
15364             cat > conftest.$ac_ext <<EOF
15365 #line 15366 "configure"
15366 #include "confdefs.h"
15367
15368                     #include <Xm/Xm.h>
15369                 
15370 int main() {
15371
15372                     int version;
15373                     version = xmUseVersion;
15374                 
15375 ; return 0; }
15376 EOF
15377 if { (eval echo configure:15378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15378   rm -rf conftest*
15379   
15380                     echo "$ac_t""found in default search path" 1>&6
15381                     COMPILED_X_PROGRAM=1
15382                 
15383 else
15384   echo "configure: failed program was:" >&5
15385   cat conftest.$ac_ext >&5
15386   rm -rf conftest*
15387   
15388                     echo "$ac_t""no" 1>&6
15389                     { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15390                 
15391             
15392 fi
15393 rm -f conftest*
15394         fi
15395
15396         if test "$COMPILED_X_PROGRAM" = 0; then
15397             echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
15398 echo "configure:15399: checking for Motif/Lesstif library" >&5
15399             
15400 ac_find_libraries=
15401 for ac_dir in $SEARCH_LIB /usr/lib;
15402   do
15403     for ac_extension in a so sl dylib; do
15404       if test -f "$ac_dir/libXm.$ac_extension"; then
15405         ac_find_libraries=$ac_dir
15406         break 2
15407       fi
15408     done
15409   done
15410
15411             if test "$ac_find_libraries" != "" ; then
15412                 echo "$ac_t""found at $ac_find_libraries" 1>&6
15413
15414                 
15415   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15416   result=$?
15417   if test $result = 0; then
15418     ac_path_to_link=""
15419   else
15420     ac_path_to_link=" -L$ac_find_libraries"
15421   fi
15422
15423                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15424             else
15425                                                                 save_CFLAGS=$CFLAGS
15426                 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15427
15428                 cat > conftest.$ac_ext <<EOF
15429 #line 15430 "configure"
15430 #include "confdefs.h"
15431
15432                         #include <Xm/Xm.h>
15433                     
15434 int main() {
15435
15436                         int version;
15437                         version = xmUseVersion;
15438                     
15439 ; return 0; }
15440 EOF
15441 if { (eval echo configure:15442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15442   rm -rf conftest*
15443   
15444                         echo "$ac_t""found in default search path" 1>&6
15445                         COMPILED_X_PROGRAM=1
15446                     
15447 else
15448   echo "configure: failed program was:" >&5
15449   cat conftest.$ac_ext >&5
15450   rm -rf conftest*
15451   
15452                         echo "$ac_t""no" 1>&6
15453                         { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15454                     
15455                 
15456 fi
15457 rm -f conftest*
15458
15459                 CFLAGS=$save_CFLAGS
15460             fi
15461         fi
15462
15463         xpm_link=
15464         echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
15465 echo "configure:15466: checking for Xpm library" >&5
15466         
15467 ac_find_libraries=
15468 for ac_dir in $SEARCH_LIB /usr/lib;
15469   do
15470     for ac_extension in a so sl dylib; do
15471       if test -f "$ac_dir/libXpm.$ac_extension"; then
15472         ac_find_libraries=$ac_dir
15473         break 2
15474       fi
15475     done
15476   done
15477
15478         if test "$ac_find_libraries" != "" ; then
15479             
15480   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15481   result=$?
15482   if test $result = 0; then
15483     ac_path_to_link=""
15484   else
15485     ac_path_to_link=" -L$ac_find_libraries"
15486   fi
15487
15488             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15489
15490             xpm_link=" -lXpm"
15491             cat >> confdefs.h <<\EOF
15492 #define wxHAVE_LIB_XPM 1
15493 EOF
15494
15495             echo "$ac_t""found at $ac_find_libraries" 1>&6
15496         else
15497             save_CFLAGS=$CFLAGS
15498             CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15499
15500             cat > conftest.$ac_ext <<EOF
15501 #line 15502 "configure"
15502 #include "confdefs.h"
15503
15504                     #include <X11/xpm.h>
15505                 
15506 int main() {
15507
15508                     int version;
15509                     version = XpmLibraryVersion();
15510                 
15511 ; return 0; }
15512 EOF
15513 if { (eval echo configure:15514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15514   rm -rf conftest*
15515   
15516                     xpm_link=" -lXpm"
15517                     cat >> confdefs.h <<\EOF
15518 #define wxHAVE_LIB_XPM 1
15519 EOF
15520
15521                     echo "$ac_t""found in default search path" 1>&6
15522                     COMPILED_X_PROGRAM=0
15523                 
15524 else
15525   echo "configure: failed program was:" >&5
15526   cat conftest.$ac_ext >&5
15527   rm -rf conftest*
15528   
15529                     echo "$ac_t""no" 1>&6
15530                     echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15531                 
15532             
15533 fi
15534 rm -f conftest*
15535
15536             CFLAGS=$save_CFLAGS
15537         fi
15538
15539         echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
15540 echo "configure:15541: checking if we need -lXp and/or -lSM -lICE" >&5
15541         libp_link=""
15542         libsm_ice_link=""
15543         libs_found=0
15544         for libp in "" " -lXp"; do
15545             if test "$libs_found" = "0"; then
15546                 for libsm_ice in " -lSM -lICE"; do
15547                     if test "$libs_found" = "0"; then
15548                         save_LIBS="$LIBS"
15549                         LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
15550                         save_CFLAGS=$CFLAGS
15551                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15552
15553                         cat > conftest.$ac_ext <<EOF
15554 #line 15555 "configure"
15555 #include "confdefs.h"
15556
15557                                 #include <Xm/Xm.h>
15558                                 #include <Xm/List.h>
15559                             
15560 int main() {
15561
15562                                 XmString string = NULL;
15563                                 Widget w = NULL;
15564                                 int position = 0;
15565                                 XmListAddItem(w, string, position);
15566                             
15567 ; return 0; }
15568 EOF
15569 if { (eval echo configure:15570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15570   rm -rf conftest*
15571   
15572                                 libp_link="$libp"
15573                                 libsm_ice_link="$libsm_ice"
15574                                 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
15575                                 libs_found=1
15576                             
15577 else
15578   echo "configure: failed program was:" >&5
15579   cat conftest.$ac_ext >&5
15580   rm -rf conftest*
15581   
15582                         
15583 fi
15584 rm -f conftest*
15585
15586                         LIBS="$save_LIBS"
15587                         CFLAGS=$save_CFLAGS
15588                     fi
15589                 done
15590             fi
15591         done
15592
15593         if test "$libs_found" = "0"; then
15594             echo "$ac_t""can't find the right libraries" 1>&6
15595             { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
15596         fi
15597
15598         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
15599         TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
15600         TOOLKIT=MOTIF
15601         GUIDIST=MOTIF_DIST
15602     fi
15603
15604     if test "$wxUSE_MAC" = 1; then
15605         CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
15606
15607         TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
15608         TOOLKIT=MAC
15609                 GUIDIST=MACX_DIST
15610     fi
15611
15612     if test "$wxUSE_PM" = 1; then
15613         TOOLKIT=PM
15614         GUIDIST=GTK_DIST
15615         echo "configure: warning: OS/2 PM requires old resource format, re-enabled" 1>&2
15616         wxUSE_PROLOGIO="yes"
15617         wxUSE_RESOURCES="yes"
15618         echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
15619         wxUSE_THREADS="no"
15620     fi
15621
15622         if test "$TOOLKIT" = "PM" ; then
15623         TOOLKIT_DIR="os2"
15624     else
15625         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15626     fi
15627
15628         PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15629
15630     if test "$wxUSE_UNIVERSAL" = "yes"; then
15631         ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15632
15633                                 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15634         ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15635
15636         PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15637         if test "$wxUSE_X11" = 1; then
15638             TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15639         else
15640             TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15641         fi
15642         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15643         WIDGET_SET=univ
15644     else
15645         ALL_OBJECTS="\$(GUIOBJS)"
15646         ALL_SOURCES="\$(ALL_SOURCES)"
15647         ALL_HEADERS="\$(ALL_HEADERS)"
15648     fi
15649
15650     ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15651
15652     if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15653         ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15654     fi
15655
15656     if test "$wxUSE_HTML" = "yes"; then
15657         ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15658     fi
15659
15660     if test "$wxUSE_LIBJPEG" = "builtin" ; then
15661         ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15662     fi
15663     if test "$wxUSE_LIBTIFF" = "builtin" ; then
15664         ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15665     fi
15666     if test "$wxUSE_LIBPNG" = "builtin" ; then
15667         ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15668     fi
15669
15670         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15671     DISTDIR="wx\$(TOOLKIT)"
15672 else
15673     USE_GUI=0
15674
15675             TOOLKIT_DIR="base"
15676
15677         if test "$USE_WIN32" = 1 ; then
15678         ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15679         TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15680
15681                         TOOLKIT="MSW"
15682     else
15683         ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15684         TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15685     fi
15686
15687     ALL_SOURCES="\$(ALL_SOURCES)"
15688     ALL_HEADERS="\$(ALL_HEADERS)"
15689
15690     PORT_FILES="\${top_srcdir}/src/files.lst"
15691
15692         GUIDIST="BASE_DIST"
15693     DISTDIR="wxBase"
15694 fi
15695
15696
15697 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15698     ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
15699 fi
15700
15701 if test "$wxUSE_REGEX" = "builtin" ; then
15702     ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
15703 fi
15704 if test "$wxUSE_ZLIB" = "builtin" ; then
15705     ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
15706 fi
15707
15708
15709 if test "$wxUSE_OPENGL" = "yes"; then
15710     if test "$wxUSE_MAC" = 1; then
15711         OPENGL_LIBS="-framework OpenGL -framework AGL"
15712     elif test "$wxUSE_MSW" = 1; then
15713         OPENGL_LIBS="-lopengl32 -lglu32"
15714     else
15715         ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15716 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15717 echo "configure:15718: checking for GL/gl.h" >&5
15718 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15719   echo $ac_n "(cached) $ac_c" 1>&6
15720 else
15721   cat > conftest.$ac_ext <<EOF
15722 #line 15723 "configure"
15723 #include "confdefs.h"
15724 #include <GL/gl.h>
15725 EOF
15726 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15727 { (eval echo configure:15728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15728 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15729 if test -z "$ac_err"; then
15730   rm -rf conftest*
15731   eval "ac_cv_header_$ac_safe=yes"
15732 else
15733   echo "$ac_err" >&5
15734   echo "configure: failed program was:" >&5
15735   cat conftest.$ac_ext >&5
15736   rm -rf conftest*
15737   eval "ac_cv_header_$ac_safe=no"
15738 fi
15739 rm -f conftest*
15740 fi
15741 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15742   echo "$ac_t""yes" 1>&6
15743   
15744                 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
15745 echo "configure:15746: checking for -lGL" >&5
15746                 
15747 ac_find_libraries=
15748 for ac_dir in $SEARCH_LIB /usr/lib;
15749   do
15750     for ac_extension in a so sl dylib; do
15751       if test -f "$ac_dir/libGL.$ac_extension"; then
15752         ac_find_libraries=$ac_dir
15753         break 2
15754       fi
15755     done
15756   done
15757
15758                 if test "$ac_find_libraries" != "" ; then
15759                     
15760   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15761   result=$?
15762   if test $result = 0; then
15763     ac_path_to_link=""
15764   else
15765     ac_path_to_link=" -L$ac_find_libraries"
15766   fi
15767
15768                     if test "$ac_path_to_link" = " -L/usr/lib" ; then
15769                         LDFLAGS_GL="$LDFLAGS"
15770                     else
15771                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15772                     fi
15773                     OPENGL_LIBS="-lGL -lGLU"
15774                     echo "$ac_t""yes" 1>&6
15775                 else
15776                     echo "$ac_t""no" 1>&6
15777                     echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
15778 echo "configure:15779: checking for -lMesaGL" >&5
15779                     
15780 ac_find_libraries=
15781 for ac_dir in $SEARCH_LIB /usr/lib;
15782   do
15783     for ac_extension in a so sl dylib; do
15784       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15785         ac_find_libraries=$ac_dir
15786         break 2
15787       fi
15788     done
15789   done
15790
15791                     if test "$ac_find_libraries" != "" ; then
15792                         
15793   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15794   result=$?
15795   if test $result = 0; then
15796     ac_path_to_link=""
15797   else
15798     ac_path_to_link=" -L$ac_find_libraries"
15799   fi
15800
15801                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15802                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
15803                         echo "$ac_t""yes" 1>&6
15804                     else
15805                         echo "$ac_t""no" 1>&6
15806                     fi
15807                 fi
15808             
15809 else
15810   echo "$ac_t""no" 1>&6
15811 fi
15812
15813
15814         if test "x$OPENGL_LIBS" = "x"; then
15815                                                 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
15816         fi
15817     fi
15818
15819     if test "$wxUSE_OPENGL" = "yes"; then
15820         cat >> confdefs.h <<\EOF
15821 #define wxUSE_OPENGL 1
15822 EOF
15823
15824         cat >> confdefs.h <<\EOF
15825 #define wxUSE_GLCANVAS 1
15826 EOF
15827
15828         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15829     fi
15830 fi
15831
15832 if test -z "$TOOLKIT_VPATH" ; then
15833     TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
15834 fi
15835
15836 if test -n "$TOOLKIT" ; then
15837     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15838 fi
15839
15840 lib_unicode_suffix=
15841 if test "$wxUSE_UNICODE" = "yes"; then
15842     lib_unicode_suffix=u
15843 fi
15844
15845 lib_debug_suffix=
15846 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
15847     lib_debug_suffix=d
15848 fi
15849
15850 WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
15851
15852 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
15853 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
15854
15855 if test "$cross_compiling" = "yes"; then
15856     TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
15857     TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
15858 fi
15859
15860 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
15861 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
15862 WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
15863
15864 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15865 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15866
15867 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15868 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15869 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15870 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15871
15872 case "${host}" in
15873     *-*-cygwin* | *-*-mingw32* )
15874
15875                         
15876         
15877         if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
15878             WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15879             WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15880             WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15881             WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15882         else
15883             WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15884             WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15885         fi
15886         ;;
15887
15888     *-*-darwin* )
15889                         
15890         WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
15891         WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
15892
15893         WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
15894         WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15895         WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
15896         WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15897
15898                         if test "$wxUSE_MAC" = 1; then
15899                                     WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
15900             WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
15901         fi
15902         ;;
15903 esac
15904
15905 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
15906 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
15907
15908 WXCONFIG_LIBS="-l${WX_LIBRARY}"
15909 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
15910
15911 if test "$wxUSE_OPENGL" = "yes"; then
15912     WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
15913     WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
15914 fi
15915
15916
15917
15918 if test "$wxUSE_SHARED" = "yes"; then
15919     case "${host}" in
15920       *-pc-os2_emx | *-pc-os2-emx | \
15921       *-pc-msdosdjgpp )
15922                 wxUSE_SHARED=no
15923         echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
15924       ;;
15925     esac
15926 fi
15927
15928 if test "$wxUSE_SHARED" = "yes"; then
15929
15930         if test "$wxUSE_OPENGL" = "yes"; then
15931         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
15932         WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
15933     else
15934         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
15935         WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
15936     fi
15937
15938         if test "$GCC" = "yes"; then
15939                 PIC_FLAG="-fPIC"
15940     fi
15941
15942
15943         
15944   found_versioning=no
15945
15946                         
15947     if test $found_versioning = no ; then
15948       echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
15949 echo "configure:15950: checking if the linker accepts --version-script" >&5
15950 if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
15951   echo $ac_n "(cached) $ac_c" 1>&6
15952 else
15953   
15954         echo "VER_1 { *; };" >conftest.sym
15955         echo "int main() { return 0; }" >conftest.cpp
15956   
15957         if { ac_try='
15958                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
15959                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:15960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
15960           if test -s conftest.stderr ; then
15961               wx_cv_version_script=no
15962           else
15963               wx_cv_version_script=yes
15964           fi
15965         else
15966           wx_cv_version_script=no
15967         fi
15968         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
15969       
15970 fi
15971
15972 echo "$ac_t""$wx_cv_version_script" 1>&6
15973       if test $wx_cv_version_script = yes ; then
15974         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
15975       fi
15976   fi
15977
15978
15979         SHARED_LD="${CXX} -shared -o"
15980
15981     case "${host}" in
15982       *-hp-hpux* )
15983                 if test "$GCC" = "yes"; then
15984                         SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
15985         else
15986                         LDFLAGS="$LDFLAGS -L/usr/lib"
15987
15988             SHARED_LD="${CXX} -b -o"
15989             PIC_FLAG="+Z"
15990         fi
15991
15992                 if test "$wxUSE_OPENGL" = "yes"; then
15993             WX_ALL_INSTALLED="preinstall_gl"
15994             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15995         else
15996             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15997         fi
15998       ;;
15999
16000       *-*-linux* )
16001         if test "$GCC" != "yes"; then
16002             echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
16003 echo "configure:16004: checking for Intel compiler" >&5
16004 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
16005   echo $ac_n "(cached) $ac_c" 1>&6
16006 else
16007   
16008                 cat > conftest.$ac_ext <<EOF
16009 #line 16010 "configure"
16010 #include "confdefs.h"
16011
16012 int main() {
16013
16014                         #ifndef __INTEL_COMPILER
16015                         #error Not icc
16016                         #endif
16017                     
16018 ; return 0; }
16019 EOF
16020 if { (eval echo configure:16021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16021   rm -rf conftest*
16022   wx_cv_prog_icc=yes
16023 else
16024   echo "configure: failed program was:" >&5
16025   cat conftest.$ac_ext >&5
16026   rm -rf conftest*
16027   wx_cv_prog_icc=no
16028                 
16029 fi
16030 rm -f conftest*
16031             
16032 fi
16033
16034 echo "$ac_t""$wx_cv_prog_icc" 1>&6
16035             if test "$wx_cv_prog_icc" = "yes"; then
16036                 PIC_FLAG="-KPIC"
16037             fi
16038         fi
16039
16040         if test "$wxUSE_SONAME" = "yes" ; then
16041             SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16042             SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16043                         WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16044         fi
16045       ;;
16046
16047       *-*-solaris2* )
16048         if test "$GCC" = yes ; then
16049                                     CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16050         else
16051             SHARED_LD="${CXX} -G -o"
16052             PIC_FLAG="-KPIC"
16053             SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16054             SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16055         fi
16056       ;;
16057
16058       *-*-darwin* )
16059                         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16060         CFLAGS="$CFLAGS -fno-common"
16061         CXXFLAGS="$CXXFLAGS -fno-common"
16062                                         SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16063         PIC_FLAG="-dynamic -fPIC"
16064                                 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
16065         SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
16066       ;;
16067
16068       *-*-aix* )
16069                 if test "$GCC" != "yes"; then
16070                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
16071 set dummy makeC++SharedLib; ac_word=$2
16072 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16073 echo "configure:16074: checking for $ac_word" >&5
16074 if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16075   echo $ac_n "(cached) $ac_c" 1>&6
16076 else
16077   if test -n "$AIX_CXX_LD"; then
16078   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16079 else
16080   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
16081   ac_dummy="$PATH"
16082   for ac_dir in $ac_dummy; do
16083     test -z "$ac_dir" && ac_dir=.
16084     if test -f $ac_dir/$ac_word; then
16085       ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16086       break
16087     fi
16088   done
16089   IFS="$ac_save_ifs"
16090   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16091 fi
16092 fi
16093 AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
16094 if test -n "$AIX_CXX_LD"; then
16095   echo "$ac_t""$AIX_CXX_LD" 1>&6
16096 else
16097   echo "$ac_t""no" 1>&6
16098 fi
16099
16100
16101             SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16102         fi
16103       ;;
16104
16105       *-*-cygwin* | *-*-mingw32* )
16106         WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16107
16108         SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16109         TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16110
16111         PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16112
16113                 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16114         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16115
16116         if test "$wxUSE_OPENGL" = "yes"; then
16117             LIBS="${LIBS} ${OPENGL_LIBS}"
16118         fi
16119       ;;
16120
16121       *-*-beos* )
16122                         SHARED_LD="${LD} -shared -o"
16123       ;;
16124
16125       *-*-irix* )
16126                 if test "$GCC" != "yes"; then
16127             PIC_FLAG="-KPIC"
16128         fi
16129       ;;
16130
16131       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16132       *-*-sunos4* | \
16133       *-*-osf* | \
16134       *-*-dgux5* | \
16135       *-*-sysv5* )
16136               ;;
16137
16138       *)
16139         { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
16140     esac
16141
16142         if test "x$WX_TARGET_LIBRARY" = "x"; then
16143         WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16144         WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16145     fi
16146
16147         WX_TARGET_LIBRARY_TYPE="so"
16148     INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
16149 fi
16150
16151 if test "$wxUSE_SHARED" = "no"; then
16152
16153         if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16154                 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16155     fi
16156
16157     if test "$wxUSE_MAC" = 1; then
16158         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16159     fi
16160
16161     if test "$wxUSE_OPENGL" = "yes"; then
16162         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16163         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16164     else
16165         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16166     fi
16167
16168     WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16169     WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16170
16171     WX_TARGET_LIBRARY_TYPE="a"
16172     INSTALL_LIBRARY='$(INSTALL_DATA)'
16173
16174             STATIC_FLAG="yes"
16175 else
16176     STATIC_FLAG="no"
16177 fi
16178
16179 MACRESCOMP="@#"
16180 MACSETFILE="@#"
16181 MACRESWXCONFIG="#"
16182 if test "$wxUSE_MAC" = 1; then
16183         LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16184     WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16185     WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16186     # Extract the first word of "Rez", so it can be a program name with args.
16187 set dummy Rez; ac_word=$2
16188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16189 echo "configure:16190: checking for $ac_word" >&5
16190 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16191   echo $ac_n "(cached) $ac_c" 1>&6
16192 else
16193   if test -n "$RESCOMP"; then
16194   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16195 else
16196   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
16197   ac_dummy="$PATH"
16198   for ac_dir in $ac_dummy; do
16199     test -z "$ac_dir" && ac_dir=.
16200     if test -f $ac_dir/$ac_word; then
16201       ac_cv_prog_RESCOMP="Rez"
16202       break
16203     fi
16204   done
16205   IFS="$ac_save_ifs"
16206   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16207 fi
16208 fi
16209 RESCOMP="$ac_cv_prog_RESCOMP"
16210 if test -n "$RESCOMP"; then
16211   echo "$ac_t""$RESCOMP" 1>&6
16212 else
16213   echo "$ac_t""no" 1>&6
16214 fi
16215
16216     # Extract the first word of "DeRez", so it can be a program name with args.
16217 set dummy DeRez; ac_word=$2
16218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16219 echo "configure:16220: checking for $ac_word" >&5
16220 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16221   echo $ac_n "(cached) $ac_c" 1>&6
16222 else
16223   if test -n "$DEREZ"; then
16224   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16225 else
16226   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
16227   ac_dummy="$PATH"
16228   for ac_dir in $ac_dummy; do
16229     test -z "$ac_dir" && ac_dir=.
16230     if test -f $ac_dir/$ac_word; then
16231       ac_cv_prog_DEREZ="DeRez"
16232       break
16233     fi
16234   done
16235   IFS="$ac_save_ifs"
16236   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16237 fi
16238 fi
16239 DEREZ="$ac_cv_prog_DEREZ"
16240 if test -n "$DEREZ"; then
16241   echo "$ac_t""$DEREZ" 1>&6
16242 else
16243   echo "$ac_t""no" 1>&6
16244 fi
16245
16246     # Extract the first word of "SetFile", so it can be a program name with args.
16247 set dummy SetFile; ac_word=$2
16248 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16249 echo "configure:16250: checking for $ac_word" >&5
16250 if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16251   echo $ac_n "(cached) $ac_c" 1>&6
16252 else
16253   if test -n "$SETFILE"; then
16254   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16255 else
16256   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
16257   ac_dummy="$PATH"
16258   for ac_dir in $ac_dummy; do
16259     test -z "$ac_dir" && ac_dir=.
16260     if test -f $ac_dir/$ac_word; then
16261       ac_cv_prog_SETFILE="SetFile"
16262       break
16263     fi
16264   done
16265   IFS="$ac_save_ifs"
16266   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16267 fi
16268 fi
16269 SETFILE="$ac_cv_prog_SETFILE"
16270 if test -n "$SETFILE"; then
16271   echo "$ac_t""$SETFILE" 1>&6
16272 else
16273   echo "$ac_t""no" 1>&6
16274 fi
16275
16276     MACOSX_BUNDLE="bundle"
16277             MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16278     MACSETFILE="\$(SETFILE)"
16279     MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
16280 else
16281     if test "$wxUSE_PM" = 1; then
16282         MACRESCOMP="emxbind -ep"
16283     fi
16284 fi
16285
16286
16287 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
16288 echo "configure:16289: checking for ANSI C header files" >&5
16289 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16290   echo $ac_n "(cached) $ac_c" 1>&6
16291 else
16292   cat > conftest.$ac_ext <<EOF
16293 #line 16294 "configure"
16294 #include "confdefs.h"
16295 #include <stdlib.h>
16296 #include <stdarg.h>
16297 #include <string.h>
16298 #include <float.h>
16299 EOF
16300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16301 { (eval echo configure:16302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16303 if test -z "$ac_err"; then
16304   rm -rf conftest*
16305   ac_cv_header_stdc=yes
16306 else
16307   echo "$ac_err" >&5
16308   echo "configure: failed program was:" >&5
16309   cat conftest.$ac_ext >&5
16310   rm -rf conftest*
16311   ac_cv_header_stdc=no
16312 fi
16313 rm -f conftest*
16314
16315 if test $ac_cv_header_stdc = yes; then
16316   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16317 cat > conftest.$ac_ext <<EOF
16318 #line 16319 "configure"
16319 #include "confdefs.h"
16320 #include <string.h>
16321 EOF
16322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16323   egrep "memchr" >/dev/null 2>&1; then
16324   :
16325 else
16326   rm -rf conftest*
16327   ac_cv_header_stdc=no
16328 fi
16329 rm -f conftest*
16330
16331 fi
16332
16333 if test $ac_cv_header_stdc = yes; then
16334   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16335 cat > conftest.$ac_ext <<EOF
16336 #line 16337 "configure"
16337 #include "confdefs.h"
16338 #include <stdlib.h>
16339 EOF
16340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16341   egrep "free" >/dev/null 2>&1; then
16342   :
16343 else
16344   rm -rf conftest*
16345   ac_cv_header_stdc=no
16346 fi
16347 rm -f conftest*
16348
16349 fi
16350
16351 if test $ac_cv_header_stdc = yes; then
16352   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16353 if test "$cross_compiling" = yes; then
16354   :
16355 else
16356   cat > conftest.$ac_ext <<EOF
16357 #line 16358 "configure"
16358 #include "confdefs.h"
16359 #include <ctype.h>
16360 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16361 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16362 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16363 int main () { int i; for (i = 0; i < 256; i++)
16364 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16365 exit (0); }
16366
16367 EOF
16368 if { (eval echo configure:16369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16369 then
16370   :
16371 else
16372   echo "configure: failed program was:" >&5
16373   cat conftest.$ac_ext >&5
16374   rm -fr conftest*
16375   ac_cv_header_stdc=no
16376 fi
16377 rm -fr conftest*
16378 fi
16379
16380 fi
16381 fi
16382
16383 echo "$ac_t""$ac_cv_header_stdc" 1>&6
16384 if test $ac_cv_header_stdc = yes; then
16385   cat >> confdefs.h <<\EOF
16386 #define STDC_HEADERS 1
16387 EOF
16388
16389 fi
16390
16391 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
16392 echo "configure:16393: checking for mode_t" >&5
16393 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16394   echo $ac_n "(cached) $ac_c" 1>&6
16395 else
16396   cat > conftest.$ac_ext <<EOF
16397 #line 16398 "configure"
16398 #include "confdefs.h"
16399 #include <sys/types.h>
16400 #if STDC_HEADERS
16401 #include <stdlib.h>
16402 #include <stddef.h>
16403 #endif
16404 EOF
16405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16406   egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16407   rm -rf conftest*
16408   ac_cv_type_mode_t=yes
16409 else
16410   rm -rf conftest*
16411   ac_cv_type_mode_t=no
16412 fi
16413 rm -f conftest*
16414
16415 fi
16416 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16417 if test $ac_cv_type_mode_t = no; then
16418   cat >> confdefs.h <<\EOF
16419 #define mode_t int
16420 EOF
16421
16422 fi
16423
16424 echo $ac_n "checking for off_t""... $ac_c" 1>&6
16425 echo "configure:16426: checking for off_t" >&5
16426 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16427   echo $ac_n "(cached) $ac_c" 1>&6
16428 else
16429   cat > conftest.$ac_ext <<EOF
16430 #line 16431 "configure"
16431 #include "confdefs.h"
16432 #include <sys/types.h>
16433 #if STDC_HEADERS
16434 #include <stdlib.h>
16435 #include <stddef.h>
16436 #endif
16437 EOF
16438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16439   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16440   rm -rf conftest*
16441   ac_cv_type_off_t=yes
16442 else
16443   rm -rf conftest*
16444   ac_cv_type_off_t=no
16445 fi
16446 rm -f conftest*
16447
16448 fi
16449 echo "$ac_t""$ac_cv_type_off_t" 1>&6
16450 if test $ac_cv_type_off_t = no; then
16451   cat >> confdefs.h <<\EOF
16452 #define off_t long
16453 EOF
16454
16455 fi
16456
16457 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
16458 echo "configure:16459: checking for pid_t" >&5
16459 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16460   echo $ac_n "(cached) $ac_c" 1>&6
16461 else
16462   cat > conftest.$ac_ext <<EOF
16463 #line 16464 "configure"
16464 #include "confdefs.h"
16465 #include <sys/types.h>
16466 #if STDC_HEADERS
16467 #include <stdlib.h>
16468 #include <stddef.h>
16469 #endif
16470 EOF
16471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16472   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16473   rm -rf conftest*
16474   ac_cv_type_pid_t=yes
16475 else
16476   rm -rf conftest*
16477   ac_cv_type_pid_t=no
16478 fi
16479 rm -f conftest*
16480
16481 fi
16482 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16483 if test $ac_cv_type_pid_t = no; then
16484   cat >> confdefs.h <<\EOF
16485 #define pid_t int
16486 EOF
16487
16488 fi
16489
16490 echo $ac_n "checking for size_t""... $ac_c" 1>&6
16491 echo "configure:16492: checking for size_t" >&5
16492 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16493   echo $ac_n "(cached) $ac_c" 1>&6
16494 else
16495   cat > conftest.$ac_ext <<EOF
16496 #line 16497 "configure"
16497 #include "confdefs.h"
16498 #include <sys/types.h>
16499 #if STDC_HEADERS
16500 #include <stdlib.h>
16501 #include <stddef.h>
16502 #endif
16503 EOF
16504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16505   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16506   rm -rf conftest*
16507   ac_cv_type_size_t=yes
16508 else
16509   rm -rf conftest*
16510   ac_cv_type_size_t=no
16511 fi
16512 rm -f conftest*
16513
16514 fi
16515 echo "$ac_t""$ac_cv_type_size_t" 1>&6
16516 if test $ac_cv_type_size_t = no; then
16517   cat >> confdefs.h <<\EOF
16518 #define size_t unsigned
16519 EOF
16520
16521 fi
16522
16523 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16524 echo "configure:16525: checking for uid_t in sys/types.h" >&5
16525 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16526   echo $ac_n "(cached) $ac_c" 1>&6
16527 else
16528   cat > conftest.$ac_ext <<EOF
16529 #line 16530 "configure"
16530 #include "confdefs.h"
16531 #include <sys/types.h>
16532 EOF
16533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16534   egrep "uid_t" >/dev/null 2>&1; then
16535   rm -rf conftest*
16536   ac_cv_type_uid_t=yes
16537 else
16538   rm -rf conftest*
16539   ac_cv_type_uid_t=no
16540 fi
16541 rm -f conftest*
16542
16543 fi
16544
16545 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16546 if test $ac_cv_type_uid_t = no; then
16547   cat >> confdefs.h <<\EOF
16548 #define uid_t int
16549 EOF
16550
16551   cat >> confdefs.h <<\EOF
16552 #define gid_t int
16553 EOF
16554
16555 fi
16556
16557
16558
16559 ac_ext=C
16560 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16561 ac_cpp='$CXXCPP $CPPFLAGS'
16562 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16563 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16564 cross_compiling=$ac_cv_prog_cxx_cross
16565
16566 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
16567 echo "configure:16568: checking if size_t is unsigned int" >&5
16568 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16569   echo $ac_n "(cached) $ac_c" 1>&6
16570 else
16571                           cat > conftest.$ac_ext <<EOF
16572 #line 16573 "configure"
16573 #include "confdefs.h"
16574 #include <stddef.h>
16575 int main() {
16576
16577             return 0; }
16578
16579             struct Foo { void foo(size_t); void foo(unsigned int); };
16580
16581             int bar() {
16582         
16583 ; return 0; }
16584 EOF
16585 if { (eval echo configure:16586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16586   rm -rf conftest*
16587   wx_cv_size_t_is_uint=no
16588 else
16589   echo "configure: failed program was:" >&5
16590   cat conftest.$ac_ext >&5
16591   rm -rf conftest*
16592   wx_cv_size_t_is_uint=yes
16593     
16594 fi
16595 rm -f conftest*
16596
16597 fi
16598
16599 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
16600
16601 if test "$wx_cv_size_t_is_uint" = "yes"; then
16602     cat >> confdefs.h <<\EOF
16603 #define wxSIZE_T_IS_UINT 1
16604 EOF
16605
16606 else
16607     echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
16608 echo "configure:16609: checking if size_t is unsigned long" >&5
16609 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16610   echo $ac_n "(cached) $ac_c" 1>&6
16611 else
16612   cat > conftest.$ac_ext <<EOF
16613 #line 16614 "configure"
16614 #include "confdefs.h"
16615 #include <stddef.h>
16616 int main() {
16617
16618                 return 0; }
16619
16620                 struct Foo { void foo(size_t); void foo(unsigned long); };
16621
16622                 int bar() {
16623             
16624 ; return 0; }
16625 EOF
16626 if { (eval echo configure:16627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16627   rm -rf conftest*
16628   wx_cv_size_t_is_ulong=no
16629 else
16630   echo "configure: failed program was:" >&5
16631   cat conftest.$ac_ext >&5
16632   rm -rf conftest*
16633   wx_cv_size_t_is_ulong=yes
16634         
16635 fi
16636 rm -f conftest*
16637     
16638 fi
16639
16640 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
16641
16642     if test "$wx_cv_size_t_is_ulong" = "yes"; then
16643         cat >> confdefs.h <<\EOF
16644 #define wxSIZE_T_IS_ULONG 1
16645 EOF
16646
16647     fi
16648 fi
16649
16650 ac_ext=c
16651 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16652 ac_cpp='$CPP $CPPFLAGS'
16653 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16654 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16655 cross_compiling=$ac_cv_prog_cc_cross
16656
16657
16658
16659 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
16660 echo "configure:16661: checking for pw_gecos in struct passwd" >&5
16661 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
16662   echo $ac_n "(cached) $ac_c" 1>&6
16663 else
16664   
16665         cat > conftest.$ac_ext <<EOF
16666 #line 16667 "configure"
16667 #include "confdefs.h"
16668 #include <pwd.h>
16669 int main() {
16670
16671                 char *p;
16672                 struct passwd *pw;
16673                 p = pw->pw_gecos;
16674              
16675 ; return 0; }
16676 EOF
16677 if { (eval echo configure:16678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16678   rm -rf conftest*
16679   
16680                 wx_cv_struct_pw_gecos=yes
16681              
16682 else
16683   echo "configure: failed program was:" >&5
16684   cat conftest.$ac_ext >&5
16685   rm -rf conftest*
16686   
16687                 wx_cv_struct_pw_gecos=no
16688              
16689         
16690 fi
16691 rm -f conftest*
16692     
16693
16694 fi
16695
16696 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
16697
16698 if test "$wx_cv_struct_pw_gecos" = "yes"; then
16699     cat >> confdefs.h <<\EOF
16700 #define HAVE_PW_GECOS 1
16701 EOF
16702
16703 fi
16704
16705
16706 if test "$wx_cv_sizeof_wchar_t" != "0"; then
16707     cat >> confdefs.h <<\EOF
16708 #define wxUSE_WCHAR_T 1
16709 EOF
16710
16711
16712         WCSLEN_FOUND=0
16713     WCHAR_LINK=
16714     for ac_func in wcslen
16715 do
16716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16717 echo "configure:16718: checking for $ac_func" >&5
16718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16719   echo $ac_n "(cached) $ac_c" 1>&6
16720 else
16721   cat > conftest.$ac_ext <<EOF
16722 #line 16723 "configure"
16723 #include "confdefs.h"
16724 /* System header to define __stub macros and hopefully few prototypes,
16725     which can conflict with char $ac_func(); below.  */
16726 #include <assert.h>
16727 /* Override any gcc2 internal prototype to avoid an error.  */
16728 /* We use char because int might match the return type of a gcc2
16729     builtin and then its argument prototype would still apply.  */
16730 char $ac_func();
16731
16732 int main() {
16733
16734 /* The GNU C library defines this for functions which it implements
16735     to always fail with ENOSYS.  Some functions are actually named
16736     something starting with __ and the normal name is an alias.  */
16737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16738 choke me
16739 #else
16740 $ac_func();
16741 #endif
16742
16743 ; return 0; }
16744 EOF
16745 if { (eval echo configure:16746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16746   rm -rf conftest*
16747   eval "ac_cv_func_$ac_func=yes"
16748 else
16749   echo "configure: failed program was:" >&5
16750   cat conftest.$ac_ext >&5
16751   rm -rf conftest*
16752   eval "ac_cv_func_$ac_func=no"
16753 fi
16754 rm -f conftest*
16755 fi
16756
16757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16758   echo "$ac_t""yes" 1>&6
16759     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16760   cat >> confdefs.h <<EOF
16761 #define $ac_tr_func 1
16762 EOF
16763  WCSLEN_FOUND=1
16764 else
16765   echo "$ac_t""no" 1>&6
16766 fi
16767 done
16768
16769
16770     if test "$WCSLEN_FOUND" = 0; then
16771         if test "$TOOLKIT" = "MSW"; then
16772             echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
16773 echo "configure:16774: checking for wcslen in -lmsvcrt" >&5
16774 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
16775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16776   echo $ac_n "(cached) $ac_c" 1>&6
16777 else
16778   ac_save_LIBS="$LIBS"
16779 LIBS="-lmsvcrt  $LIBS"
16780 cat > conftest.$ac_ext <<EOF
16781 #line 16782 "configure"
16782 #include "confdefs.h"
16783 /* Override any gcc2 internal prototype to avoid an error.  */
16784 /* We use char because int might match the return type of a gcc2
16785     builtin and then its argument prototype would still apply.  */
16786 char wcslen();
16787
16788 int main() {
16789 wcslen()
16790 ; return 0; }
16791 EOF
16792 if { (eval echo configure:16793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16793   rm -rf conftest*
16794   eval "ac_cv_lib_$ac_lib_var=yes"
16795 else
16796   echo "configure: failed program was:" >&5
16797   cat conftest.$ac_ext >&5
16798   rm -rf conftest*
16799   eval "ac_cv_lib_$ac_lib_var=no"
16800 fi
16801 rm -f conftest*
16802 LIBS="$ac_save_LIBS"
16803
16804 fi
16805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16806   echo "$ac_t""yes" 1>&6
16807   WCHAR_OK=1
16808 else
16809   echo "$ac_t""no" 1>&6
16810 fi
16811
16812         else
16813             echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
16814 echo "configure:16815: checking for wcslen in -lw" >&5
16815 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
16816 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16817   echo $ac_n "(cached) $ac_c" 1>&6
16818 else
16819   ac_save_LIBS="$LIBS"
16820 LIBS="-lw  $LIBS"
16821 cat > conftest.$ac_ext <<EOF
16822 #line 16823 "configure"
16823 #include "confdefs.h"
16824 /* Override any gcc2 internal prototype to avoid an error.  */
16825 /* We use char because int might match the return type of a gcc2
16826     builtin and then its argument prototype would still apply.  */
16827 char wcslen();
16828
16829 int main() {
16830 wcslen()
16831 ; return 0; }
16832 EOF
16833 if { (eval echo configure:16834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16834   rm -rf conftest*
16835   eval "ac_cv_lib_$ac_lib_var=yes"
16836 else
16837   echo "configure: failed program was:" >&5
16838   cat conftest.$ac_ext >&5
16839   rm -rf conftest*
16840   eval "ac_cv_lib_$ac_lib_var=no"
16841 fi
16842 rm -f conftest*
16843 LIBS="$ac_save_LIBS"
16844
16845 fi
16846 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16847   echo "$ac_t""yes" 1>&6
16848   
16849                             WCHAR_LINK=" -lw"
16850                             WCSLEN_FOUND=1
16851                         
16852 else
16853   echo "$ac_t""no" 1>&6
16854 fi
16855
16856         fi
16857     fi
16858
16859     if test "$WCSLEN_FOUND" = 1; then
16860         cat >> confdefs.h <<\EOF
16861 #define HAVE_WCSLEN 1
16862 EOF
16863
16864     fi
16865
16866             for ac_func in wcsrtombs
16867 do
16868 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16869 echo "configure:16870: checking for $ac_func" >&5
16870 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16871   echo $ac_n "(cached) $ac_c" 1>&6
16872 else
16873   cat > conftest.$ac_ext <<EOF
16874 #line 16875 "configure"
16875 #include "confdefs.h"
16876 /* System header to define __stub macros and hopefully few prototypes,
16877     which can conflict with char $ac_func(); below.  */
16878 #include <assert.h>
16879 /* Override any gcc2 internal prototype to avoid an error.  */
16880 /* We use char because int might match the return type of a gcc2
16881     builtin and then its argument prototype would still apply.  */
16882 char $ac_func();
16883
16884 int main() {
16885
16886 /* The GNU C library defines this for functions which it implements
16887     to always fail with ENOSYS.  Some functions are actually named
16888     something starting with __ and the normal name is an alias.  */
16889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16890 choke me
16891 #else
16892 $ac_func();
16893 #endif
16894
16895 ; return 0; }
16896 EOF
16897 if { (eval echo configure:16898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16898   rm -rf conftest*
16899   eval "ac_cv_func_$ac_func=yes"
16900 else
16901   echo "configure: failed program was:" >&5
16902   cat conftest.$ac_ext >&5
16903   rm -rf conftest*
16904   eval "ac_cv_func_$ac_func=no"
16905 fi
16906 rm -f conftest*
16907 fi
16908
16909 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16910   echo "$ac_t""yes" 1>&6
16911     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16912   cat >> confdefs.h <<EOF
16913 #define $ac_tr_func 1
16914 EOF
16915  
16916 else
16917   echo "$ac_t""no" 1>&6
16918 fi
16919 done
16920
16921 else
16922     echo "configure: warning: Wide character support is unavailable" 1>&2
16923 fi
16924
16925
16926 ac_ext=C
16927 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16928 ac_cpp='$CXXCPP $CPPFLAGS'
16929 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16930 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16931 cross_compiling=$ac_cv_prog_cxx_cross
16932
16933
16934 for ac_func in vsnprintf
16935 do
16936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16937 echo "configure:16938: checking for $ac_func" >&5
16938 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16939   echo $ac_n "(cached) $ac_c" 1>&6
16940 else
16941   cat > conftest.$ac_ext <<EOF
16942 #line 16943 "configure"
16943 #include "confdefs.h"
16944 /* System header to define __stub macros and hopefully few prototypes,
16945     which can conflict with char $ac_func(); below.  */
16946 #include <assert.h>
16947 /* Override any gcc2 internal prototype to avoid an error.  */
16948 #ifdef __cplusplus
16949 extern "C"
16950 #endif
16951 /* We use char because int might match the return type of a gcc2
16952     builtin and then its argument prototype would still apply.  */
16953 char $ac_func();
16954
16955 int main() {
16956
16957 /* The GNU C library defines this for functions which it implements
16958     to always fail with ENOSYS.  Some functions are actually named
16959     something starting with __ and the normal name is an alias.  */
16960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16961 choke me
16962 #else
16963 $ac_func();
16964 #endif
16965
16966 ; return 0; }
16967 EOF
16968 if { (eval echo configure:16969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16969   rm -rf conftest*
16970   eval "ac_cv_func_$ac_func=yes"
16971 else
16972   echo "configure: failed program was:" >&5
16973   cat conftest.$ac_ext >&5
16974   rm -rf conftest*
16975   eval "ac_cv_func_$ac_func=no"
16976 fi
16977 rm -f conftest*
16978 fi
16979
16980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16981   echo "$ac_t""yes" 1>&6
16982     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16983   cat >> confdefs.h <<EOF
16984 #define $ac_tr_func 1
16985 EOF
16986  
16987 else
16988   echo "$ac_t""no" 1>&6
16989 fi
16990 done
16991
16992
16993 if test "$ac_cv_func_vsnprintf" = "yes"; then
16994         echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
16995 echo "configure:16996: checking for vsnprintf declaration" >&5
16996 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
16997   echo $ac_n "(cached) $ac_c" 1>&6
16998 else
16999   
17000             cat > conftest.$ac_ext <<EOF
17001 #line 17002 "configure"
17002 #include "confdefs.h"
17003
17004                     #include <stdio.h>
17005                     #include <stdarg.h>
17006                 
17007 int main() {
17008
17009                     char *buf;
17010                     va_list ap;
17011                     vsnprintf(buf, 10u, "%s", ap);
17012                 
17013 ; return 0; }
17014 EOF
17015 if { (eval echo configure:17016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17016   rm -rf conftest*
17017   wx_cv_func_vsnprintf_decl=yes
17018 else
17019   echo "configure: failed program was:" >&5
17020   cat conftest.$ac_ext >&5
17021   rm -rf conftest*
17022   wx_cv_func_vsnprintf_decl=no
17023             
17024 fi
17025 rm -f conftest*
17026         
17027     
17028 fi
17029
17030 echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17031
17032     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17033         cat >> confdefs.h <<\EOF
17034 #define HAVE_VSNPRINTF_DECL 1
17035 EOF
17036
17037     fi
17038 fi
17039
17040 if test "$wxUSE_UNICODE" = yes; then
17041         for ac_func in fputwc wprintf vswprintf
17042 do
17043 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17044 echo "configure:17045: checking for $ac_func" >&5
17045 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17046   echo $ac_n "(cached) $ac_c" 1>&6
17047 else
17048   cat > conftest.$ac_ext <<EOF
17049 #line 17050 "configure"
17050 #include "confdefs.h"
17051 /* System header to define __stub macros and hopefully few prototypes,
17052     which can conflict with char $ac_func(); below.  */
17053 #include <assert.h>
17054 /* Override any gcc2 internal prototype to avoid an error.  */
17055 #ifdef __cplusplus
17056 extern "C"
17057 #endif
17058 /* We use char because int might match the return type of a gcc2
17059     builtin and then its argument prototype would still apply.  */
17060 char $ac_func();
17061
17062 int main() {
17063
17064 /* The GNU C library defines this for functions which it implements
17065     to always fail with ENOSYS.  Some functions are actually named
17066     something starting with __ and the normal name is an alias.  */
17067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17068 choke me
17069 #else
17070 $ac_func();
17071 #endif
17072
17073 ; return 0; }
17074 EOF
17075 if { (eval echo configure:17076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17076   rm -rf conftest*
17077   eval "ac_cv_func_$ac_func=yes"
17078 else
17079   echo "configure: failed program was:" >&5
17080   cat conftest.$ac_ext >&5
17081   rm -rf conftest*
17082   eval "ac_cv_func_$ac_func=no"
17083 fi
17084 rm -f conftest*
17085 fi
17086
17087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17088   echo "$ac_t""yes" 1>&6
17089     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17090   cat >> confdefs.h <<EOF
17091 #define $ac_tr_func 1
17092 EOF
17093  
17094 else
17095   echo "$ac_t""no" 1>&6
17096 fi
17097 done
17098
17099
17100                 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
17101 echo "configure:17102: checking for _vsnwprintf" >&5
17102     cat > conftest.$ac_ext <<EOF
17103 #line 17104 "configure"
17104 #include "confdefs.h"
17105 #include <wchar.h>
17106 int main() {
17107 &_vsnwprintf;
17108 ; return 0; }
17109 EOF
17110 if { (eval echo configure:17111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17111   rm -rf conftest*
17112   echo "$ac_t""yes" 1>&6
17113                     cat >> confdefs.h <<\EOF
17114 #define HAVE__VSNWPRINTF 1
17115 EOF
17116
17117 else
17118   echo "configure: failed program was:" >&5
17119   cat conftest.$ac_ext >&5
17120   rm -rf conftest*
17121   echo "$ac_t""no" 1>&6
17122 fi
17123 rm -f conftest*;
17124 fi
17125
17126 ac_ext=c
17127 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17128 ac_cpp='$CPP $CPPFLAGS'
17129 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17130 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17131 cross_compiling=$ac_cv_prog_cc_cross
17132
17133
17134
17135
17136 if test "$TOOLKIT" != "MSW"; then
17137
17138
17139
17140 ac_ext=C
17141 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17142 ac_cpp='$CXXCPP $CPPFLAGS'
17143 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17144 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17145 cross_compiling=$ac_cv_prog_cxx_cross
17146
17147
17148     
17149   # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
17150 if test "${with_libiconv_prefix+set}" = set; then
17151   withval="$with_libiconv_prefix"
17152   
17153     for dir in `echo "$withval" | tr : ' '`; do
17154       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17155       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17156     done
17157    
17158 fi
17159
17160
17161   echo $ac_n "checking for iconv""... $ac_c" 1>&6
17162 echo "configure:17163: checking for iconv" >&5
17163 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17164   echo $ac_n "(cached) $ac_c" 1>&6
17165 else
17166   
17167     am_cv_func_iconv="no, consider installing GNU libiconv"
17168     am_cv_lib_iconv=no
17169     cat > conftest.$ac_ext <<EOF
17170 #line 17171 "configure"
17171 #include "confdefs.h"
17172 #include <stdlib.h>
17173 #include <iconv.h>
17174 int main() {
17175 iconv_t cd = iconv_open("","");
17176        iconv(cd,NULL,NULL,NULL,NULL);
17177        iconv_close(cd);
17178 ; return 0; }
17179 EOF
17180 if { (eval echo configure:17181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17181   rm -rf conftest*
17182   am_cv_func_iconv=yes
17183 else
17184   echo "configure: failed program was:" >&5
17185   cat conftest.$ac_ext >&5
17186 fi
17187 rm -f conftest*
17188     if test "$am_cv_func_iconv" != yes; then
17189       am_save_LIBS="$LIBS"
17190       LIBS="$LIBS -liconv"
17191       cat > conftest.$ac_ext <<EOF
17192 #line 17193 "configure"
17193 #include "confdefs.h"
17194 #include <stdlib.h>
17195 #include <iconv.h>
17196 int main() {
17197 iconv_t cd = iconv_open("","");
17198          iconv(cd,NULL,NULL,NULL,NULL);
17199          iconv_close(cd);
17200 ; return 0; }
17201 EOF
17202 if { (eval echo configure:17203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17203   rm -rf conftest*
17204   am_cv_lib_iconv=yes
17205         am_cv_func_iconv=yes
17206 else
17207   echo "configure: failed program was:" >&5
17208   cat conftest.$ac_ext >&5
17209 fi
17210 rm -f conftest*
17211       LIBS="$am_save_LIBS"
17212     fi
17213   
17214 fi
17215
17216 echo "$ac_t""$am_cv_func_iconv" 1>&6
17217   if test "$am_cv_func_iconv" = yes; then
17218     cat >> confdefs.h <<\EOF
17219 #define HAVE_ICONV 1
17220 EOF
17221
17222     echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
17223 echo "configure:17224: checking if iconv needs const" >&5
17224 if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17225   echo $ac_n "(cached) $ac_c" 1>&6
17226 else
17227   cat > conftest.$ac_ext <<EOF
17228 #line 17229 "configure"
17229 #include "confdefs.h"
17230
17231 #include <stdlib.h>
17232 #include <iconv.h>
17233 extern
17234 #ifdef __cplusplus
17235 "C"
17236 #endif
17237 #if defined(__STDC__) || defined(__cplusplus)
17238 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17239 #else
17240 size_t iconv();
17241 #endif
17242         
17243 int main() {
17244
17245 ; return 0; }
17246 EOF
17247 if { (eval echo configure:17248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17248   rm -rf conftest*
17249   wx_cv_func_iconv_const="no"
17250 else
17251   echo "configure: failed program was:" >&5
17252   cat conftest.$ac_ext >&5
17253   rm -rf conftest*
17254   wx_cv_func_iconv_const="yes"
17255       
17256 fi
17257 rm -f conftest*
17258     
17259 fi
17260
17261 echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
17262
17263     iconv_const=
17264     if test "x$wx_cv_func_iconv_const" = "xyes"; then
17265         iconv_const="const"
17266     fi
17267
17268     cat >> confdefs.h <<EOF
17269 #define ICONV_CONST $iconv_const
17270 EOF
17271
17272   fi
17273   LIBICONV=
17274   if test "$am_cv_lib_iconv" = yes; then
17275     LIBICONV="-liconv"
17276   fi
17277   
17278
17279 LIBS="$LIBICONV $LIBS"
17280 ac_ext=c
17281 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17282 ac_cpp='$CPP $CPPFLAGS'
17283 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17284 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17285 cross_compiling=$ac_cv_prog_cc_cross
17286
17287
17288 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
17289     for ac_func in sigaction
17290 do
17291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17292 echo "configure:17293: checking for $ac_func" >&5
17293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17294   echo $ac_n "(cached) $ac_c" 1>&6
17295 else
17296   cat > conftest.$ac_ext <<EOF
17297 #line 17298 "configure"
17298 #include "confdefs.h"
17299 /* System header to define __stub macros and hopefully few prototypes,
17300     which can conflict with char $ac_func(); below.  */
17301 #include <assert.h>
17302 /* Override any gcc2 internal prototype to avoid an error.  */
17303 /* We use char because int might match the return type of a gcc2
17304     builtin and then its argument prototype would still apply.  */
17305 char $ac_func();
17306
17307 int main() {
17308
17309 /* The GNU C library defines this for functions which it implements
17310     to always fail with ENOSYS.  Some functions are actually named
17311     something starting with __ and the normal name is an alias.  */
17312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17313 choke me
17314 #else
17315 $ac_func();
17316 #endif
17317
17318 ; return 0; }
17319 EOF
17320 if { (eval echo configure:17321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17321   rm -rf conftest*
17322   eval "ac_cv_func_$ac_func=yes"
17323 else
17324   echo "configure: failed program was:" >&5
17325   cat conftest.$ac_ext >&5
17326   rm -rf conftest*
17327   eval "ac_cv_func_$ac_func=no"
17328 fi
17329 rm -f conftest*
17330 fi
17331
17332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17333   echo "$ac_t""yes" 1>&6
17334     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17335   cat >> confdefs.h <<EOF
17336 #define $ac_tr_func 1
17337 EOF
17338  
17339 else
17340   echo "$ac_t""no" 1>&6
17341 fi
17342 done
17343
17344
17345     if test "$ac_cv_func_sigaction" = "no"; then
17346         echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
17347         wxUSE_ON_FATAL_EXCEPTION=no
17348     fi
17349
17350     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17351       
17352       ac_ext=C
17353 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17354 ac_cpp='$CXXCPP $CPPFLAGS'
17355 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17356 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17357 cross_compiling=$ac_cv_prog_cxx_cross
17358
17359
17360       echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
17361 echo "configure:17362: checking for sa_handler type" >&5
17362 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17363   echo $ac_n "(cached) $ac_c" 1>&6
17364 else
17365   
17366         cat > conftest.$ac_ext <<EOF
17367 #line 17368 "configure"
17368 #include "confdefs.h"
17369 #include <signal.h>
17370 int main() {
17371
17372                         extern void testSigHandler(int);
17373
17374                         struct sigaction sa;
17375                         sa.sa_handler = testSigHandler;
17376                      
17377 ; return 0; }
17378 EOF
17379 if { (eval echo configure:17380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17380   rm -rf conftest*
17381   
17382                         wx_cv_type_sa_handler=int
17383                      
17384 else
17385   echo "configure: failed program was:" >&5
17386   cat conftest.$ac_ext >&5
17387   rm -rf conftest*
17388   
17389                         wx_cv_type_sa_handler=void
17390                      
17391 fi
17392 rm -f conftest*
17393       
17394 fi
17395
17396 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
17397
17398       ac_ext=c
17399 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17400 ac_cpp='$CPP $CPPFLAGS'
17401 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17402 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17403 cross_compiling=$ac_cv_prog_cc_cross
17404
17405
17406       cat >> confdefs.h <<EOF
17407 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
17408 EOF
17409
17410     fi
17411 fi
17412
17413 for ac_func in mkstemp mktemp
17414 do
17415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17416 echo "configure:17417: checking for $ac_func" >&5
17417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17418   echo $ac_n "(cached) $ac_c" 1>&6
17419 else
17420   cat > conftest.$ac_ext <<EOF
17421 #line 17422 "configure"
17422 #include "confdefs.h"
17423 /* System header to define __stub macros and hopefully few prototypes,
17424     which can conflict with char $ac_func(); below.  */
17425 #include <assert.h>
17426 /* Override any gcc2 internal prototype to avoid an error.  */
17427 /* We use char because int might match the return type of a gcc2
17428     builtin and then its argument prototype would still apply.  */
17429 char $ac_func();
17430
17431 int main() {
17432
17433 /* The GNU C library defines this for functions which it implements
17434     to always fail with ENOSYS.  Some functions are actually named
17435     something starting with __ and the normal name is an alias.  */
17436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17437 choke me
17438 #else
17439 $ac_func();
17440 #endif
17441
17442 ; return 0; }
17443 EOF
17444 if { (eval echo configure:17445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17445   rm -rf conftest*
17446   eval "ac_cv_func_$ac_func=yes"
17447 else
17448   echo "configure: failed program was:" >&5
17449   cat conftest.$ac_ext >&5
17450   rm -rf conftest*
17451   eval "ac_cv_func_$ac_func=no"
17452 fi
17453 rm -f conftest*
17454 fi
17455
17456 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17457   echo "$ac_t""yes" 1>&6
17458     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17459   cat >> confdefs.h <<EOF
17460 #define $ac_tr_func 1
17461 EOF
17462  break
17463 else
17464   echo "$ac_t""no" 1>&6
17465 fi
17466 done
17467
17468
17469 echo $ac_n "checking for statfs""... $ac_c" 1>&6
17470 echo "configure:17471: checking for statfs" >&5
17471 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17472   echo $ac_n "(cached) $ac_c" 1>&6
17473 else
17474   cat > conftest.$ac_ext <<EOF
17475 #line 17476 "configure"
17476 #include "confdefs.h"
17477
17478              #if defined(__BSD__)
17479                #include <sys/param.h>
17480                #include <sys/mount.h>
17481              #else
17482                #include <sys/vfs.h>
17483              #endif
17484         
17485 int main() {
17486
17487              long l;
17488              struct statfs fs;
17489              statfs("/", &fs);
17490              l = fs.f_bsize;
17491              l += fs.f_blocks;
17492              l += fs.f_bavail;
17493         
17494 ; return 0; }
17495 EOF
17496 if { (eval echo configure:17497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17497   rm -rf conftest*
17498   
17499              wx_cv_func_statfs=yes
17500         
17501 else
17502   echo "configure: failed program was:" >&5
17503   cat conftest.$ac_ext >&5
17504   rm -rf conftest*
17505   
17506              wx_cv_func_statfs=no
17507         
17508     
17509 fi
17510 rm -f conftest*
17511
17512 fi
17513
17514 echo "$ac_t""$wx_cv_func_statfs" 1>&6
17515
17516 if test "$wx_cv_func_statfs" = "yes"; then
17517     wx_cv_type_statvfs_t="struct statfs"
17518     cat >> confdefs.h <<\EOF
17519 #define HAVE_STATFS 1
17520 EOF
17521
17522 else
17523     echo $ac_n "checking for statvfs""... $ac_c" 1>&6
17524 echo "configure:17525: checking for statvfs" >&5
17525 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17526   echo $ac_n "(cached) $ac_c" 1>&6
17527 else
17528   cat > conftest.$ac_ext <<EOF
17529 #line 17530 "configure"
17530 #include "confdefs.h"
17531
17532                 #include <stddef.h>
17533                 #include <sys/statvfs.h>
17534             
17535 int main() {
17536
17537                 statvfs("/", NULL);
17538             
17539 ; return 0; }
17540 EOF
17541 if { (eval echo configure:17542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17542   rm -rf conftest*
17543   wx_cv_func_statvfs=yes
17544 else
17545   echo "configure: failed program was:" >&5
17546   cat conftest.$ac_ext >&5
17547   rm -rf conftest*
17548   wx_cv_func_statvfs=no
17549         
17550 fi
17551 rm -f conftest*
17552     
17553 fi
17554
17555 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
17556
17557     if test "$wx_cv_func_statvfs" = "yes"; then
17558                                                                 
17559         ac_ext=C
17560 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17561 ac_cpp='$CXXCPP $CPPFLAGS'
17562 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17563 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17564 cross_compiling=$ac_cv_prog_cxx_cross
17565
17566
17567         echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
17568 echo "configure:17569: checking for statvfs argument type" >&5
17569 if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17570   echo $ac_n "(cached) $ac_c" 1>&6
17571 else
17572   cat > conftest.$ac_ext <<EOF
17573 #line 17574 "configure"
17574 #include "confdefs.h"
17575
17576                     #include <sys/statvfs.h>
17577                 
17578 int main() {
17579
17580                     long l;
17581                     statvfs_t fs;
17582                     statvfs("/", &fs);
17583                     l = fs.f_bsize;
17584                     l += fs.f_blocks;
17585                     l += fs.f_bavail;
17586                 
17587 ; return 0; }
17588 EOF
17589 if { (eval echo configure:17590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17590   rm -rf conftest*
17591   wx_cv_type_statvfs_t=statvfs_t
17592 else
17593   echo "configure: failed program was:" >&5
17594   cat conftest.$ac_ext >&5
17595   rm -rf conftest*
17596   
17597                     cat > conftest.$ac_ext <<EOF
17598 #line 17599 "configure"
17599 #include "confdefs.h"
17600
17601                             #include <sys/statvfs.h>
17602                         
17603 int main() {
17604
17605                             long l;
17606                             struct statvfs fs;
17607                             statvfs("/", &fs);
17608                             l = fs.f_bsize;
17609                             l += fs.f_blocks;
17610                             l += fs.f_bavail;
17611                         
17612 ; return 0; }
17613 EOF
17614 if { (eval echo configure:17615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17615   rm -rf conftest*
17616   wx_cv_type_statvfs_t="struct statvfs"
17617 else
17618   echo "configure: failed program was:" >&5
17619   cat conftest.$ac_ext >&5
17620   rm -rf conftest*
17621   wx_cv_type_statvfs_t="unknown"
17622                     
17623 fi
17624 rm -f conftest*
17625                 
17626             
17627 fi
17628 rm -f conftest*
17629         
17630 fi
17631
17632 echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
17633
17634         ac_ext=c
17635 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17636 ac_cpp='$CPP $CPPFLAGS'
17637 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17638 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17639 cross_compiling=$ac_cv_prog_cc_cross
17640
17641
17642         if test "$wx_cv_type_statvfs_t" != "unknown"; then
17643             cat >> confdefs.h <<\EOF
17644 #define HAVE_STATVFS 1
17645 EOF
17646
17647         fi
17648     else
17649                 wx_cv_type_statvfs_t="unknown"
17650     fi
17651 fi
17652
17653 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17654     cat >> confdefs.h <<EOF
17655 #define WX_STATFS_T $wx_cv_type_statvfs_t
17656 EOF
17657
17658 else
17659     echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
17660 fi
17661
17662 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
17663     for ac_func in fcntl flock
17664 do
17665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17666 echo "configure:17667: checking for $ac_func" >&5
17667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17668   echo $ac_n "(cached) $ac_c" 1>&6
17669 else
17670   cat > conftest.$ac_ext <<EOF
17671 #line 17672 "configure"
17672 #include "confdefs.h"
17673 /* System header to define __stub macros and hopefully few prototypes,
17674     which can conflict with char $ac_func(); below.  */
17675 #include <assert.h>
17676 /* Override any gcc2 internal prototype to avoid an error.  */
17677 /* We use char because int might match the return type of a gcc2
17678     builtin and then its argument prototype would still apply.  */
17679 char $ac_func();
17680
17681 int main() {
17682
17683 /* The GNU C library defines this for functions which it implements
17684     to always fail with ENOSYS.  Some functions are actually named
17685     something starting with __ and the normal name is an alias.  */
17686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17687 choke me
17688 #else
17689 $ac_func();
17690 #endif
17691
17692 ; return 0; }
17693 EOF
17694 if { (eval echo configure:17695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17695   rm -rf conftest*
17696   eval "ac_cv_func_$ac_func=yes"
17697 else
17698   echo "configure: failed program was:" >&5
17699   cat conftest.$ac_ext >&5
17700   rm -rf conftest*
17701   eval "ac_cv_func_$ac_func=no"
17702 fi
17703 rm -f conftest*
17704 fi
17705
17706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17707   echo "$ac_t""yes" 1>&6
17708     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17709   cat >> confdefs.h <<EOF
17710 #define $ac_tr_func 1
17711 EOF
17712  break
17713 else
17714   echo "$ac_t""no" 1>&6
17715 fi
17716 done
17717
17718
17719     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
17720         echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
17721         wxUSE_SNGLINST_CHECKER=no
17722     fi
17723 fi
17724
17725 for ac_func in timegm
17726 do
17727 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17728 echo "configure:17729: checking for $ac_func" >&5
17729 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17730   echo $ac_n "(cached) $ac_c" 1>&6
17731 else
17732   cat > conftest.$ac_ext <<EOF
17733 #line 17734 "configure"
17734 #include "confdefs.h"
17735 /* System header to define __stub macros and hopefully few prototypes,
17736     which can conflict with char $ac_func(); below.  */
17737 #include <assert.h>
17738 /* Override any gcc2 internal prototype to avoid an error.  */
17739 /* We use char because int might match the return type of a gcc2
17740     builtin and then its argument prototype would still apply.  */
17741 char $ac_func();
17742
17743 int main() {
17744
17745 /* The GNU C library defines this for functions which it implements
17746     to always fail with ENOSYS.  Some functions are actually named
17747     something starting with __ and the normal name is an alias.  */
17748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17749 choke me
17750 #else
17751 $ac_func();
17752 #endif
17753
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   eval "ac_cv_func_$ac_func=yes"
17759 else
17760   echo "configure: failed program was:" >&5
17761   cat conftest.$ac_ext >&5
17762   rm -rf conftest*
17763   eval "ac_cv_func_$ac_func=no"
17764 fi
17765 rm -f conftest*
17766 fi
17767
17768 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17769   echo "$ac_t""yes" 1>&6
17770     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17771   cat >> confdefs.h <<EOF
17772 #define $ac_tr_func 1
17773 EOF
17774  
17775 else
17776   echo "$ac_t""no" 1>&6
17777 fi
17778 done
17779
17780
17781 for ac_func in putenv setenv
17782 do
17783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17784 echo "configure:17785: checking for $ac_func" >&5
17785 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17786   echo $ac_n "(cached) $ac_c" 1>&6
17787 else
17788   cat > conftest.$ac_ext <<EOF
17789 #line 17790 "configure"
17790 #include "confdefs.h"
17791 /* System header to define __stub macros and hopefully few prototypes,
17792     which can conflict with char $ac_func(); below.  */
17793 #include <assert.h>
17794 /* Override any gcc2 internal prototype to avoid an error.  */
17795 /* We use char because int might match the return type of a gcc2
17796     builtin and then its argument prototype would still apply.  */
17797 char $ac_func();
17798
17799 int main() {
17800
17801 /* The GNU C library defines this for functions which it implements
17802     to always fail with ENOSYS.  Some functions are actually named
17803     something starting with __ and the normal name is an alias.  */
17804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17805 choke me
17806 #else
17807 $ac_func();
17808 #endif
17809
17810 ; return 0; }
17811 EOF
17812 if { (eval echo configure:17813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17813   rm -rf conftest*
17814   eval "ac_cv_func_$ac_func=yes"
17815 else
17816   echo "configure: failed program was:" >&5
17817   cat conftest.$ac_ext >&5
17818   rm -rf conftest*
17819   eval "ac_cv_func_$ac_func=no"
17820 fi
17821 rm -f conftest*
17822 fi
17823
17824 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17825   echo "$ac_t""yes" 1>&6
17826     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17827   cat >> confdefs.h <<EOF
17828 #define $ac_tr_func 1
17829 EOF
17830  break
17831 else
17832   echo "$ac_t""no" 1>&6
17833 fi
17834 done
17835
17836
17837 HAVE_SOME_SLEEP_FUNC=0
17838 if test "$USE_BEOS" = 1; then
17839             cat >> confdefs.h <<\EOF
17840 #define HAVE_SLEEP 1
17841 EOF
17842
17843     HAVE_SOME_SLEEP_FUNC=1
17844 fi
17845
17846 if test "$USE_DARWIN" = 1; then
17847             cat >> confdefs.h <<\EOF
17848 #define HAVE_USLEEP 1
17849 EOF
17850
17851     HAVE_SOME_SLEEP_FUNC=1
17852 fi
17853
17854 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
17855         POSIX4_LINK=
17856     for ac_func in nanosleep
17857 do
17858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17859 echo "configure:17860: checking for $ac_func" >&5
17860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17861   echo $ac_n "(cached) $ac_c" 1>&6
17862 else
17863   cat > conftest.$ac_ext <<EOF
17864 #line 17865 "configure"
17865 #include "confdefs.h"
17866 /* System header to define __stub macros and hopefully few prototypes,
17867     which can conflict with char $ac_func(); below.  */
17868 #include <assert.h>
17869 /* Override any gcc2 internal prototype to avoid an error.  */
17870 /* We use char because int might match the return type of a gcc2
17871     builtin and then its argument prototype would still apply.  */
17872 char $ac_func();
17873
17874 int main() {
17875
17876 /* The GNU C library defines this for functions which it implements
17877     to always fail with ENOSYS.  Some functions are actually named
17878     something starting with __ and the normal name is an alias.  */
17879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17880 choke me
17881 #else
17882 $ac_func();
17883 #endif
17884
17885 ; return 0; }
17886 EOF
17887 if { (eval echo configure:17888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17888   rm -rf conftest*
17889   eval "ac_cv_func_$ac_func=yes"
17890 else
17891   echo "configure: failed program was:" >&5
17892   cat conftest.$ac_ext >&5
17893   rm -rf conftest*
17894   eval "ac_cv_func_$ac_func=no"
17895 fi
17896 rm -f conftest*
17897 fi
17898
17899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17900   echo "$ac_t""yes" 1>&6
17901     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17902   cat >> confdefs.h <<EOF
17903 #define $ac_tr_func 1
17904 EOF
17905  cat >> confdefs.h <<\EOF
17906 #define HAVE_NANOSLEEP 1
17907 EOF
17908
17909 else
17910   echo "$ac_t""no" 1>&6
17911 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
17912 echo "configure:17913: checking for nanosleep in -lposix4" >&5
17913 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
17914 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17915   echo $ac_n "(cached) $ac_c" 1>&6
17916 else
17917   ac_save_LIBS="$LIBS"
17918 LIBS="-lposix4  $LIBS"
17919 cat > conftest.$ac_ext <<EOF
17920 #line 17921 "configure"
17921 #include "confdefs.h"
17922 /* Override any gcc2 internal prototype to avoid an error.  */
17923 /* We use char because int might match the return type of a gcc2
17924     builtin and then its argument prototype would still apply.  */
17925 char nanosleep();
17926
17927 int main() {
17928 nanosleep()
17929 ; return 0; }
17930 EOF
17931 if { (eval echo configure:17932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17932   rm -rf conftest*
17933   eval "ac_cv_lib_$ac_lib_var=yes"
17934 else
17935   echo "configure: failed program was:" >&5
17936   cat conftest.$ac_ext >&5
17937   rm -rf conftest*
17938   eval "ac_cv_lib_$ac_lib_var=no"
17939 fi
17940 rm -f conftest*
17941 LIBS="$ac_save_LIBS"
17942
17943 fi
17944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17945   echo "$ac_t""yes" 1>&6
17946   
17947                     cat >> confdefs.h <<\EOF
17948 #define HAVE_NANOSLEEP 1
17949 EOF
17950
17951                     POSIX4_LINK=" -lposix4"
17952                 
17953 else
17954   echo "$ac_t""no" 1>&6
17955
17956                     for ac_func in usleep
17957 do
17958 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17959 echo "configure:17960: checking for $ac_func" >&5
17960 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17961   echo $ac_n "(cached) $ac_c" 1>&6
17962 else
17963   cat > conftest.$ac_ext <<EOF
17964 #line 17965 "configure"
17965 #include "confdefs.h"
17966 /* System header to define __stub macros and hopefully few prototypes,
17967     which can conflict with char $ac_func(); below.  */
17968 #include <assert.h>
17969 /* Override any gcc2 internal prototype to avoid an error.  */
17970 /* We use char because int might match the return type of a gcc2
17971     builtin and then its argument prototype would still apply.  */
17972 char $ac_func();
17973
17974 int main() {
17975
17976 /* The GNU C library defines this for functions which it implements
17977     to always fail with ENOSYS.  Some functions are actually named
17978     something starting with __ and the normal name is an alias.  */
17979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17980 choke me
17981 #else
17982 $ac_func();
17983 #endif
17984
17985 ; return 0; }
17986 EOF
17987 if { (eval echo configure:17988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17988   rm -rf conftest*
17989   eval "ac_cv_func_$ac_func=yes"
17990 else
17991   echo "configure: failed program was:" >&5
17992   cat conftest.$ac_ext >&5
17993   rm -rf conftest*
17994   eval "ac_cv_func_$ac_func=no"
17995 fi
17996 rm -f conftest*
17997 fi
17998
17999 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18000   echo "$ac_t""yes" 1>&6
18001     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18002   cat >> confdefs.h <<EOF
18003 #define $ac_tr_func 1
18004 EOF
18005  cat >> confdefs.h <<\EOF
18006 #define HAVE_USLEEP 1
18007 EOF
18008
18009 else
18010   echo "$ac_t""no" 1>&6
18011 echo "configure: warning: wxSleep() function will not work" 1>&2
18012                     
18013 fi
18014 done
18015
18016                 
18017             
18018 fi
18019
18020         
18021     
18022 fi
18023 done
18024
18025 fi
18026
18027 for ac_func in uname gethostname
18028 do
18029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18030 echo "configure:18031: checking for $ac_func" >&5
18031 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18032   echo $ac_n "(cached) $ac_c" 1>&6
18033 else
18034   cat > conftest.$ac_ext <<EOF
18035 #line 18036 "configure"
18036 #include "confdefs.h"
18037 /* System header to define __stub macros and hopefully few prototypes,
18038     which can conflict with char $ac_func(); below.  */
18039 #include <assert.h>
18040 /* Override any gcc2 internal prototype to avoid an error.  */
18041 /* We use char because int might match the return type of a gcc2
18042     builtin and then its argument prototype would still apply.  */
18043 char $ac_func();
18044
18045 int main() {
18046
18047 /* The GNU C library defines this for functions which it implements
18048     to always fail with ENOSYS.  Some functions are actually named
18049     something starting with __ and the normal name is an alias.  */
18050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18051 choke me
18052 #else
18053 $ac_func();
18054 #endif
18055
18056 ; return 0; }
18057 EOF
18058 if { (eval echo configure:18059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18059   rm -rf conftest*
18060   eval "ac_cv_func_$ac_func=yes"
18061 else
18062   echo "configure: failed program was:" >&5
18063   cat conftest.$ac_ext >&5
18064   rm -rf conftest*
18065   eval "ac_cv_func_$ac_func=no"
18066 fi
18067 rm -f conftest*
18068 fi
18069
18070 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18071   echo "$ac_t""yes" 1>&6
18072     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18073   cat >> confdefs.h <<EOF
18074 #define $ac_tr_func 1
18075 EOF
18076  break
18077 else
18078   echo "$ac_t""no" 1>&6
18079 fi
18080 done
18081
18082
18083
18084 ac_ext=C
18085 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18086 ac_cpp='$CXXCPP $CPPFLAGS'
18087 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18088 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18089 cross_compiling=$ac_cv_prog_cxx_cross
18090
18091
18092 for ac_func in strtok_r
18093 do
18094 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18095 echo "configure:18096: checking for $ac_func" >&5
18096 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18097   echo $ac_n "(cached) $ac_c" 1>&6
18098 else
18099   cat > conftest.$ac_ext <<EOF
18100 #line 18101 "configure"
18101 #include "confdefs.h"
18102 /* System header to define __stub macros and hopefully few prototypes,
18103     which can conflict with char $ac_func(); below.  */
18104 #include <assert.h>
18105 /* Override any gcc2 internal prototype to avoid an error.  */
18106 #ifdef __cplusplus
18107 extern "C"
18108 #endif
18109 /* We use char because int might match the return type of a gcc2
18110     builtin and then its argument prototype would still apply.  */
18111 char $ac_func();
18112
18113 int main() {
18114
18115 /* The GNU C library defines this for functions which it implements
18116     to always fail with ENOSYS.  Some functions are actually named
18117     something starting with __ and the normal name is an alias.  */
18118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18119 choke me
18120 #else
18121 $ac_func();
18122 #endif
18123
18124 ; return 0; }
18125 EOF
18126 if { (eval echo configure:18127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18127   rm -rf conftest*
18128   eval "ac_cv_func_$ac_func=yes"
18129 else
18130   echo "configure: failed program was:" >&5
18131   cat conftest.$ac_ext >&5
18132   rm -rf conftest*
18133   eval "ac_cv_func_$ac_func=no"
18134 fi
18135 rm -f conftest*
18136 fi
18137
18138 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18139   echo "$ac_t""yes" 1>&6
18140     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18141   cat >> confdefs.h <<EOF
18142 #define $ac_tr_func 1
18143 EOF
18144  
18145 else
18146   echo "$ac_t""no" 1>&6
18147 fi
18148 done
18149
18150
18151 ac_ext=c
18152 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18153 ac_cpp='$CPP $CPPFLAGS'
18154 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18155 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18156 cross_compiling=$ac_cv_prog_cc_cross
18157
18158
18159 INET_LINK=
18160 for ac_func in inet_addr
18161 do
18162 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18163 echo "configure:18164: checking for $ac_func" >&5
18164 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18165   echo $ac_n "(cached) $ac_c" 1>&6
18166 else
18167   cat > conftest.$ac_ext <<EOF
18168 #line 18169 "configure"
18169 #include "confdefs.h"
18170 /* System header to define __stub macros and hopefully few prototypes,
18171     which can conflict with char $ac_func(); below.  */
18172 #include <assert.h>
18173 /* Override any gcc2 internal prototype to avoid an error.  */
18174 /* We use char because int might match the return type of a gcc2
18175     builtin and then its argument prototype would still apply.  */
18176 char $ac_func();
18177
18178 int main() {
18179
18180 /* The GNU C library defines this for functions which it implements
18181     to always fail with ENOSYS.  Some functions are actually named
18182     something starting with __ and the normal name is an alias.  */
18183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18184 choke me
18185 #else
18186 $ac_func();
18187 #endif
18188
18189 ; return 0; }
18190 EOF
18191 if { (eval echo configure:18192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18192   rm -rf conftest*
18193   eval "ac_cv_func_$ac_func=yes"
18194 else
18195   echo "configure: failed program was:" >&5
18196   cat conftest.$ac_ext >&5
18197   rm -rf conftest*
18198   eval "ac_cv_func_$ac_func=no"
18199 fi
18200 rm -f conftest*
18201 fi
18202
18203 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18204   echo "$ac_t""yes" 1>&6
18205     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18206   cat >> confdefs.h <<EOF
18207 #define $ac_tr_func 1
18208 EOF
18209  cat >> confdefs.h <<\EOF
18210 #define HAVE_INET_ADDR 1
18211 EOF
18212
18213 else
18214   echo "$ac_t""no" 1>&6
18215 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
18216 echo "configure:18217: checking for inet_addr in -lnsl" >&5
18217 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18218 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18219   echo $ac_n "(cached) $ac_c" 1>&6
18220 else
18221   ac_save_LIBS="$LIBS"
18222 LIBS="-lnsl  $LIBS"
18223 cat > conftest.$ac_ext <<EOF
18224 #line 18225 "configure"
18225 #include "confdefs.h"
18226 /* Override any gcc2 internal prototype to avoid an error.  */
18227 /* We use char because int might match the return type of a gcc2
18228     builtin and then its argument prototype would still apply.  */
18229 char inet_addr();
18230
18231 int main() {
18232 inet_addr()
18233 ; return 0; }
18234 EOF
18235 if { (eval echo configure:18236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18236   rm -rf conftest*
18237   eval "ac_cv_lib_$ac_lib_var=yes"
18238 else
18239   echo "configure: failed program was:" >&5
18240   cat conftest.$ac_ext >&5
18241   rm -rf conftest*
18242   eval "ac_cv_lib_$ac_lib_var=no"
18243 fi
18244 rm -f conftest*
18245 LIBS="$ac_save_LIBS"
18246
18247 fi
18248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18249   echo "$ac_t""yes" 1>&6
18250   INET_LINK="nsl"
18251 else
18252   echo "$ac_t""no" 1>&6
18253 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
18254 echo "configure:18255: checking for inet_addr in -lresolv" >&5
18255 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18257   echo $ac_n "(cached) $ac_c" 1>&6
18258 else
18259   ac_save_LIBS="$LIBS"
18260 LIBS="-lresolv  $LIBS"
18261 cat > conftest.$ac_ext <<EOF
18262 #line 18263 "configure"
18263 #include "confdefs.h"
18264 /* Override any gcc2 internal prototype to avoid an error.  */
18265 /* We use char because int might match the return type of a gcc2
18266     builtin and then its argument prototype would still apply.  */
18267 char inet_addr();
18268
18269 int main() {
18270 inet_addr()
18271 ; return 0; }
18272 EOF
18273 if { (eval echo configure:18274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18274   rm -rf conftest*
18275   eval "ac_cv_lib_$ac_lib_var=yes"
18276 else
18277   echo "configure: failed program was:" >&5
18278   cat conftest.$ac_ext >&5
18279   rm -rf conftest*
18280   eval "ac_cv_lib_$ac_lib_var=no"
18281 fi
18282 rm -f conftest*
18283 LIBS="$ac_save_LIBS"
18284
18285 fi
18286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18287   echo "$ac_t""yes" 1>&6
18288   INET_LINK="resolv"
18289 else
18290   echo "$ac_t""no" 1>&6
18291 echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
18292 echo "configure:18293: checking for inet_addr in -lsocket" >&5
18293 ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18295   echo $ac_n "(cached) $ac_c" 1>&6
18296 else
18297   ac_save_LIBS="$LIBS"
18298 LIBS="-lsocket  $LIBS"
18299 cat > conftest.$ac_ext <<EOF
18300 #line 18301 "configure"
18301 #include "confdefs.h"
18302 /* Override any gcc2 internal prototype to avoid an error.  */
18303 /* We use char because int might match the return type of a gcc2
18304     builtin and then its argument prototype would still apply.  */
18305 char inet_addr();
18306
18307 int main() {
18308 inet_addr()
18309 ; return 0; }
18310 EOF
18311 if { (eval echo configure:18312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18312   rm -rf conftest*
18313   eval "ac_cv_lib_$ac_lib_var=yes"
18314 else
18315   echo "configure: failed program was:" >&5
18316   cat conftest.$ac_ext >&5
18317   rm -rf conftest*
18318   eval "ac_cv_lib_$ac_lib_var=no"
18319 fi
18320 rm -f conftest*
18321 LIBS="$ac_save_LIBS"
18322
18323 fi
18324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18325   echo "$ac_t""yes" 1>&6
18326   INET_LINK="socket"
18327                 
18328 else
18329   echo "$ac_t""no" 1>&6
18330 fi
18331
18332             
18333 fi
18334
18335         
18336 fi
18337
18338     
18339
18340 fi
18341 done
18342
18343
18344 for ac_func in inet_aton
18345 do
18346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18347 echo "configure:18348: checking for $ac_func" >&5
18348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18349   echo $ac_n "(cached) $ac_c" 1>&6
18350 else
18351   cat > conftest.$ac_ext <<EOF
18352 #line 18353 "configure"
18353 #include "confdefs.h"
18354 /* System header to define __stub macros and hopefully few prototypes,
18355     which can conflict with char $ac_func(); below.  */
18356 #include <assert.h>
18357 /* Override any gcc2 internal prototype to avoid an error.  */
18358 /* We use char because int might match the return type of a gcc2
18359     builtin and then its argument prototype would still apply.  */
18360 char $ac_func();
18361
18362 int main() {
18363
18364 /* The GNU C library defines this for functions which it implements
18365     to always fail with ENOSYS.  Some functions are actually named
18366     something starting with __ and the normal name is an alias.  */
18367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18368 choke me
18369 #else
18370 $ac_func();
18371 #endif
18372
18373 ; return 0; }
18374 EOF
18375 if { (eval echo configure:18376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18376   rm -rf conftest*
18377   eval "ac_cv_func_$ac_func=yes"
18378 else
18379   echo "configure: failed program was:" >&5
18380   cat conftest.$ac_ext >&5
18381   rm -rf conftest*
18382   eval "ac_cv_func_$ac_func=no"
18383 fi
18384 rm -f conftest*
18385 fi
18386
18387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18388   echo "$ac_t""yes" 1>&6
18389     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18390   cat >> confdefs.h <<EOF
18391 #define $ac_tr_func 1
18392 EOF
18393  cat >> confdefs.h <<\EOF
18394 #define HAVE_INET_ATON 1
18395 EOF
18396
18397 else
18398   echo "$ac_t""no" 1>&6
18399             echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
18400 echo "configure:18401: checking for inet_aton in -l$INET_LINK" >&5
18401 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18402 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18403   echo $ac_n "(cached) $ac_c" 1>&6
18404 else
18405   ac_save_LIBS="$LIBS"
18406 LIBS="-l$INET_LINK  $LIBS"
18407 cat > conftest.$ac_ext <<EOF
18408 #line 18409 "configure"
18409 #include "confdefs.h"
18410 /* Override any gcc2 internal prototype to avoid an error.  */
18411 /* We use char because int might match the return type of a gcc2
18412     builtin and then its argument prototype would still apply.  */
18413 char inet_aton();
18414
18415 int main() {
18416 inet_aton()
18417 ; return 0; }
18418 EOF
18419 if { (eval echo configure:18420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18420   rm -rf conftest*
18421   eval "ac_cv_lib_$ac_lib_var=yes"
18422 else
18423   echo "configure: failed program was:" >&5
18424   cat conftest.$ac_ext >&5
18425   rm -rf conftest*
18426   eval "ac_cv_lib_$ac_lib_var=no"
18427 fi
18428 rm -f conftest*
18429 LIBS="$ac_save_LIBS"
18430
18431 fi
18432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18433   echo "$ac_t""yes" 1>&6
18434   cat >> confdefs.h <<\EOF
18435 #define HAVE_INET_ATON 1
18436 EOF
18437
18438 else
18439   echo "$ac_t""no" 1>&6
18440 fi
18441
18442         
18443 fi
18444 done
18445
18446
18447 if test "x$INET_LINK" != "x"; then
18448     cat >> confdefs.h <<\EOF
18449 #define HAVE_INET_ADDR 1
18450 EOF
18451
18452     INET_LINK=" -l$INET_LINK"
18453 fi
18454
18455 fi
18456
18457
18458 cat > confcache <<\EOF
18459 # This file is a shell script that caches the results of configure
18460 # tests run on this system so they can be shared between configure
18461 # scripts and configure runs.  It is not useful on other systems.
18462 # If it contains results you don't want to keep, you may remove or edit it.
18463 #
18464 # By default, configure uses ./config.cache as the cache file,
18465 # creating it if it does not exist already.  You can give configure
18466 # the --cache-file=FILE option to use a different cache file; that is
18467 # what configure does when it calls configure scripts in
18468 # subdirectories, so they share the cache.
18469 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18470 # config.status only pays attention to the cache file if you give it the
18471 # --recheck option to rerun configure.
18472 #
18473 EOF
18474 # The following way of writing the cache mishandles newlines in values,
18475 # but we know of no workaround that is simple, portable, and efficient.
18476 # So, don't put newlines in cache variables' values.
18477 # Ultrix sh set writes to stderr and can't be redirected directly,
18478 # and sets the high bit in the cache file unless we assign to the vars.
18479 (set) 2>&1 |
18480   case `(ac_space=' '; set | grep ac_space) 2>&1` in
18481   *ac_space=\ *)
18482     # `set' does not quote correctly, so add quotes (double-quote substitution
18483     # turns \\\\ into \\, and sed turns \\ into \).
18484     sed -n \
18485       -e "s/'/'\\\\''/g" \
18486       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18487     ;;
18488   *)
18489     # `set' quotes correctly as required by POSIX, so do not add quotes.
18490     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18491     ;;
18492   esac >> confcache
18493 if cmp -s $cache_file confcache; then
18494   :
18495 else
18496   if test -w $cache_file; then
18497     echo "updating cache $cache_file"
18498     cat confcache > $cache_file
18499   else
18500     echo "not updating unwritable cache $cache_file"
18501   fi
18502 fi
18503 rm -f confcache
18504
18505
18506
18507 CPP_MT_FLAG=
18508 if test "$TOOLKIT" != "MSW"; then
18509
18510                             
18511     THREADS_LINK=
18512     THREADS_CFLAGS=
18513
18514     if test "$wxUSE_THREADS" = "yes" ; then
18515         if test "$USE_BEOS" = 1; then
18516             echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
18517             wxUSE_THREADS="no"
18518         fi
18519     fi
18520
18521     if test "$wxUSE_THREADS" = "yes" ; then
18522                                                         
18523         
18524                                 THREAD_OPTS="-pthread"
18525         case "${host}" in
18526           *-*-solaris2* | *-*-sunos4* )
18527                 if test "x$GCC" = "xyes"; then
18528                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
18529                 else
18530                     THREAD_OPTS="-mt $THREAD_OPTS"
18531                 fi
18532                 ;;
18533           *-*-freebsd*)
18534                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18535                 ;;
18536           *-*-darwin* | *-*-cygwin* )
18537                                                 THREAD_OPTS=""
18538                 ;;
18539           *-*-aix*)
18540                                 THREAD_OPTS="pthreads"
18541                 ;;
18542         esac
18543
18544                                 THREAD_OPTS="$THREAD_OPTS pthread none"
18545
18546                 THREADS_OK=no
18547         for flag in $THREAD_OPTS; do
18548             case $flag in
18549                 none)
18550                     echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
18551 echo "configure:18552: checking whether pthreads work without any flags" >&5
18552                     ;;
18553
18554                 -*)
18555                     echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
18556 echo "configure:18557: checking whether pthreads work with $flag" >&5
18557                     THREADS_CFLAGS="$flag"
18558                     ;;
18559
18560                 *)
18561                     echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
18562 echo "configure:18563: checking for the pthreads library -l$flag" >&5
18563                     THREADS_LINK="-l$flag"
18564                     ;;
18565               esac
18566
18567               save_LIBS="$LIBS"
18568               save_CFLAGS="$CFLAGS"
18569               LIBS="$THREADS_LINK $LIBS"
18570               CFLAGS="$THREADS_CFLAGS $CFLAGS"
18571
18572               cat > conftest.$ac_ext <<EOF
18573 #line 18574 "configure"
18574 #include "confdefs.h"
18575 #include <pthread.h>
18576 int main() {
18577 pthread_create(0,0,0,0);
18578 ; return 0; }
18579 EOF
18580 if { (eval echo configure:18581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18581   rm -rf conftest*
18582   THREADS_OK=yes
18583 else
18584   echo "configure: failed program was:" >&5
18585   cat conftest.$ac_ext >&5
18586 fi
18587 rm -f conftest*
18588
18589               LIBS="$save_LIBS"
18590               CFLAGS="$save_CFLAGS"
18591
18592               echo "$ac_t""$THREADS_OK" 1>&6
18593               if test "x$THREADS_OK" = "xyes"; then
18594                       break;
18595               fi
18596
18597               THREADS_LINK=""
18598               THREADS_CFLAGS=""
18599       done
18600
18601       if test "x$THREADS_OK" != "xyes"; then
18602           wxUSE_THREADS=no
18603           echo "configure: warning: No thread support on this system... disabled" 1>&2
18604       else
18605                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
18606           LIBS="$THREADS_LINK $LIBS"
18607
18608           echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
18609 echo "configure:18610: checking if more special flags are required for pthreads" >&5
18610           flag=no
18611           case "${host}" in
18612             *-aix*)
18613                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
18614                 flag="-D_THREAD_SAFE"
18615                 ;;
18616             *-freebsd*)
18617                 flag="-D_THREAD_SAFE"
18618                 ;;
18619             *-hp-hpux* )
18620                 flag="-D_REENTRANT"
18621                 ;;
18622             *solaris* | alpha*-osf*)
18623                 flag="-D_REENTRANT"
18624                 ;;
18625           esac
18626           echo "$ac_t""${flag}" 1>&6
18627           if test "x$flag" != xno; then
18628               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
18629           fi
18630
18631           if test "x$THREADS_CFLAGS" != "x"; then
18632                         CFLAGS="$CFLAGS $THREADS_CFLAGS"
18633             CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
18634           fi
18635       fi
18636     fi
18637
18638         if test "$wxUSE_THREADS" = "yes" ; then
18639       for ac_func in thr_setconcurrency
18640 do
18641 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18642 echo "configure:18643: checking for $ac_func" >&5
18643 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18644   echo $ac_n "(cached) $ac_c" 1>&6
18645 else
18646   cat > conftest.$ac_ext <<EOF
18647 #line 18648 "configure"
18648 #include "confdefs.h"
18649 /* System header to define __stub macros and hopefully few prototypes,
18650     which can conflict with char $ac_func(); below.  */
18651 #include <assert.h>
18652 /* Override any gcc2 internal prototype to avoid an error.  */
18653 /* We use char because int might match the return type of a gcc2
18654     builtin and then its argument prototype would still apply.  */
18655 char $ac_func();
18656
18657 int main() {
18658
18659 /* The GNU C library defines this for functions which it implements
18660     to always fail with ENOSYS.  Some functions are actually named
18661     something starting with __ and the normal name is an alias.  */
18662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18663 choke me
18664 #else
18665 $ac_func();
18666 #endif
18667
18668 ; return 0; }
18669 EOF
18670 if { (eval echo configure:18671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18671   rm -rf conftest*
18672   eval "ac_cv_func_$ac_func=yes"
18673 else
18674   echo "configure: failed program was:" >&5
18675   cat conftest.$ac_ext >&5
18676   rm -rf conftest*
18677   eval "ac_cv_func_$ac_func=no"
18678 fi
18679 rm -f conftest*
18680 fi
18681
18682 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18683   echo "$ac_t""yes" 1>&6
18684     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18685   cat >> confdefs.h <<EOF
18686 #define $ac_tr_func 1
18687 EOF
18688  
18689 else
18690   echo "$ac_t""no" 1>&6
18691 fi
18692 done
18693
18694
18695       for ac_hdr in sched.h
18696 do
18697 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18699 echo "configure:18700: checking for $ac_hdr" >&5
18700 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18701   echo $ac_n "(cached) $ac_c" 1>&6
18702 else
18703   cat > conftest.$ac_ext <<EOF
18704 #line 18705 "configure"
18705 #include "confdefs.h"
18706 #include <$ac_hdr>
18707 EOF
18708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18709 { (eval echo configure:18710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18711 if test -z "$ac_err"; then
18712   rm -rf conftest*
18713   eval "ac_cv_header_$ac_safe=yes"
18714 else
18715   echo "$ac_err" >&5
18716   echo "configure: failed program was:" >&5
18717   cat conftest.$ac_ext >&5
18718   rm -rf conftest*
18719   eval "ac_cv_header_$ac_safe=no"
18720 fi
18721 rm -f conftest*
18722 fi
18723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18724   echo "$ac_t""yes" 1>&6
18725     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18726   cat >> confdefs.h <<EOF
18727 #define $ac_tr_hdr 1
18728 EOF
18729  
18730 else
18731   echo "$ac_t""no" 1>&6
18732 fi
18733 done
18734
18735       if test "$ac_cv_header_sched_h" = "yes"; then
18736           echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
18737 echo "configure:18738: checking for sched_yield" >&5
18738 if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
18739   echo $ac_n "(cached) $ac_c" 1>&6
18740 else
18741   cat > conftest.$ac_ext <<EOF
18742 #line 18743 "configure"
18743 #include "confdefs.h"
18744 /* System header to define __stub macros and hopefully few prototypes,
18745     which can conflict with char sched_yield(); below.  */
18746 #include <assert.h>
18747 /* Override any gcc2 internal prototype to avoid an error.  */
18748 /* We use char because int might match the return type of a gcc2
18749     builtin and then its argument prototype would still apply.  */
18750 char sched_yield();
18751
18752 int main() {
18753
18754 /* The GNU C library defines this for functions which it implements
18755     to always fail with ENOSYS.  Some functions are actually named
18756     something starting with __ and the normal name is an alias.  */
18757 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
18758 choke me
18759 #else
18760 sched_yield();
18761 #endif
18762
18763 ; return 0; }
18764 EOF
18765 if { (eval echo configure:18766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18766   rm -rf conftest*
18767   eval "ac_cv_func_sched_yield=yes"
18768 else
18769   echo "configure: failed program was:" >&5
18770   cat conftest.$ac_ext >&5
18771   rm -rf conftest*
18772   eval "ac_cv_func_sched_yield=no"
18773 fi
18774 rm -f conftest*
18775 fi
18776
18777 if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
18778   echo "$ac_t""yes" 1>&6
18779   cat >> confdefs.h <<\EOF
18780 #define HAVE_SCHED_YIELD 1
18781 EOF
18782
18783 else
18784   echo "$ac_t""no" 1>&6
18785
18786                 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
18787 echo "configure:18788: checking for sched_yield in -lposix4" >&5
18788 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
18789 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18790   echo $ac_n "(cached) $ac_c" 1>&6
18791 else
18792   ac_save_LIBS="$LIBS"
18793 LIBS="-lposix4  $LIBS"
18794 cat > conftest.$ac_ext <<EOF
18795 #line 18796 "configure"
18796 #include "confdefs.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 sched_yield();
18801
18802 int main() {
18803 sched_yield()
18804 ; return 0; }
18805 EOF
18806 if { (eval echo configure:18807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18807   rm -rf conftest*
18808   eval "ac_cv_lib_$ac_lib_var=yes"
18809 else
18810   echo "configure: failed program was:" >&5
18811   cat conftest.$ac_ext >&5
18812   rm -rf conftest*
18813   eval "ac_cv_lib_$ac_lib_var=no"
18814 fi
18815 rm -f conftest*
18816 LIBS="$ac_save_LIBS"
18817
18818 fi
18819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18820   echo "$ac_t""yes" 1>&6
18821   cat >> confdefs.h <<\EOF
18822 #define HAVE_SCHED_YIELD 1
18823 EOF
18824  POSIX4_LINK=" -lposix4"
18825 else
18826   echo "$ac_t""no" 1>&6
18827 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
18828                 
18829 fi
18830
18831             
18832           
18833 fi
18834
18835       fi
18836
18837                                           HAVE_PRIOR_FUNCS=0
18838       echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
18839 echo "configure:18840: checking for pthread_attr_getschedpolicy" >&5
18840 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
18841   echo $ac_n "(cached) $ac_c" 1>&6
18842 else
18843   cat > conftest.$ac_ext <<EOF
18844 #line 18845 "configure"
18845 #include "confdefs.h"
18846 /* System header to define __stub macros and hopefully few prototypes,
18847     which can conflict with char pthread_attr_getschedpolicy(); below.  */
18848 #include <assert.h>
18849 /* Override any gcc2 internal prototype to avoid an error.  */
18850 /* We use char because int might match the return type of a gcc2
18851     builtin and then its argument prototype would still apply.  */
18852 char pthread_attr_getschedpolicy();
18853
18854 int main() {
18855
18856 /* The GNU C library defines this for functions which it implements
18857     to always fail with ENOSYS.  Some functions are actually named
18858     something starting with __ and the normal name is an alias.  */
18859 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
18860 choke me
18861 #else
18862 pthread_attr_getschedpolicy();
18863 #endif
18864
18865 ; return 0; }
18866 EOF
18867 if { (eval echo configure:18868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18868   rm -rf conftest*
18869   eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
18870 else
18871   echo "configure: failed program was:" >&5
18872   cat conftest.$ac_ext >&5
18873   rm -rf conftest*
18874   eval "ac_cv_func_pthread_attr_getschedpolicy=no"
18875 fi
18876 rm -f conftest*
18877 fi
18878
18879 if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
18880   echo "$ac_t""yes" 1>&6
18881   echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
18882 echo "configure:18883: checking for pthread_attr_setschedparam" >&5
18883 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
18884   echo $ac_n "(cached) $ac_c" 1>&6
18885 else
18886   cat > conftest.$ac_ext <<EOF
18887 #line 18888 "configure"
18888 #include "confdefs.h"
18889 /* System header to define __stub macros and hopefully few prototypes,
18890     which can conflict with char pthread_attr_setschedparam(); below.  */
18891 #include <assert.h>
18892 /* Override any gcc2 internal prototype to avoid an error.  */
18893 /* We use char because int might match the return type of a gcc2
18894     builtin and then its argument prototype would still apply.  */
18895 char pthread_attr_setschedparam();
18896
18897 int main() {
18898
18899 /* The GNU C library defines this for functions which it implements
18900     to always fail with ENOSYS.  Some functions are actually named
18901     something starting with __ and the normal name is an alias.  */
18902 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
18903 choke me
18904 #else
18905 pthread_attr_setschedparam();
18906 #endif
18907
18908 ; return 0; }
18909 EOF
18910 if { (eval echo configure:18911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18911   rm -rf conftest*
18912   eval "ac_cv_func_pthread_attr_setschedparam=yes"
18913 else
18914   echo "configure: failed program was:" >&5
18915   cat conftest.$ac_ext >&5
18916   rm -rf conftest*
18917   eval "ac_cv_func_pthread_attr_setschedparam=no"
18918 fi
18919 rm -f conftest*
18920 fi
18921
18922 if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
18923   echo "$ac_t""yes" 1>&6
18924   echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
18925 echo "configure:18926: checking for sched_get_priority_max" >&5
18926 if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
18927   echo $ac_n "(cached) $ac_c" 1>&6
18928 else
18929   cat > conftest.$ac_ext <<EOF
18930 #line 18931 "configure"
18931 #include "confdefs.h"
18932 /* System header to define __stub macros and hopefully few prototypes
18933 else
18934   echo "$ac_t""no" 1>&6
18935 which can conflict with char sched_get_priority_max(); below.  */
18936 #include <assert.h>
18937 /* Override any gcc2 internal prototype to avoid an error.  */
18938 /* We use char because int might match the return type of a gcc2
18939     builtin and then its argument prototype would still apply.  */
18940 char sched_get_priority_max();
18941
18942 int main() {
18943
18944 /* The GNU C library defines this for functions which it implements
18945     to always fail with ENOSYS.  Some functions are actually named
18946     something starting with __ and the normal name is an alias.  */
18947 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
18948 choke me
18949 #else
18950 sched_get_priority_max();
18951 #endif
18952
18953 ; return 0; }
18954 EOF
18955 if { (eval echo configure:18956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18956   rm -rf conftest*
18957   eval "ac_cv_func_sched_get_priority_max=yes"
18958 else
18959   echo "configure: failed program was:" >&5
18960   cat conftest.$ac_ext >&5
18961   rm -rf conftest*
18962   eval "ac_cv_func_sched_get_priority_max=no"
18963 fi
18964 rm -f conftest*
18965 fi
18966
18967 if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
18968   echo "$ac_t""yes" 1>&6
18969   HAVE_PRIOR_FUNCS=1
18970 else
18971   echo "$ac_t""no" 1>&6
18972 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
18973 echo "configure:18974: checking for sched_get_priority_max in -lposix4" >&5
18974 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
18975 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18976   echo $ac_n "(cached) $ac_c" 1>&6
18977 else
18978   ac_save_LIBS="$LIBS"
18979 LIBS="-lposix4  $LIBS"
18980 cat > conftest.$ac_ext <<EOF
18981 #line 18982 "configure"
18982 #include "confdefs.h"
18983 /* Override any gcc2 internal prototype to avoid an error.  */
18984 /* We use char because int might match the return type of a gcc2
18985     builtin and then its argument prototype would still apply.  */
18986 char sched_get_priority_max();
18987
18988 int main() {
18989 sched_get_priority_max()
18990 ; return 0; }
18991 EOF
18992 if { (eval echo configure:18993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18993   rm -rf conftest*
18994   eval "ac_cv_lib_$ac_lib_var=yes"
18995 else
18996   echo "configure: failed program was:" >&5
18997   cat conftest.$ac_ext >&5
18998   rm -rf conftest*
18999   eval "ac_cv_lib_$ac_lib_var=no"
19000 fi
19001 rm -f conftest*
19002 LIBS="$ac_save_LIBS"
19003
19004 fi
19005 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19006   echo "$ac_t""yes" 1>&6
19007   
19008                                 HAVE_PRIOR_FUNCS=1
19009                                 POSIX4_LINK=" -lposix4"
19010                              
19011 else
19012   echo "$ac_t""no" 1>&6
19013 fi
19014
19015                        
19016 fi
19017
19018                      
19019 else
19020   echo "$ac_t""no" 1>&6
19021 fi
19022
19023                    
19024 fi
19025
19026
19027       if test "$HAVE_PRIOR_FUNCS" = 1; then
19028         cat >> confdefs.h <<\EOF
19029 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
19030 EOF
19031
19032       else
19033         echo "configure: warning: Setting thread priority will not work" 1>&2
19034       fi
19035
19036       echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
19037 echo "configure:19038: checking for pthread_cancel" >&5
19038 if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19039   echo $ac_n "(cached) $ac_c" 1>&6
19040 else
19041   cat > conftest.$ac_ext <<EOF
19042 #line 19043 "configure"
19043 #include "confdefs.h"
19044 /* System header to define __stub macros and hopefully few prototypes,
19045     which can conflict with char pthread_cancel(); below.  */
19046 #include <assert.h>
19047 /* Override any gcc2 internal prototype to avoid an error.  */
19048 /* We use char because int might match the return type of a gcc2
19049     builtin and then its argument prototype would still apply.  */
19050 char pthread_cancel();
19051
19052 int main() {
19053
19054 /* The GNU C library defines this for functions which it implements
19055     to always fail with ENOSYS.  Some functions are actually named
19056     something starting with __ and the normal name is an alias.  */
19057 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19058 choke me
19059 #else
19060 pthread_cancel();
19061 #endif
19062
19063 ; return 0; }
19064 EOF
19065 if { (eval echo configure:19066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19066   rm -rf conftest*
19067   eval "ac_cv_func_pthread_cancel=yes"
19068 else
19069   echo "configure: failed program was:" >&5
19070   cat conftest.$ac_ext >&5
19071   rm -rf conftest*
19072   eval "ac_cv_func_pthread_cancel=no"
19073 fi
19074 rm -f conftest*
19075 fi
19076
19077 if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19078   echo "$ac_t""yes" 1>&6
19079   cat >> confdefs.h <<\EOF
19080 #define HAVE_PTHREAD_CANCEL 1
19081 EOF
19082
19083 else
19084   echo "$ac_t""no" 1>&6
19085 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
19086 fi
19087
19088
19089       echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
19090 echo "configure:19091: checking for pthread_cleanup_push/pop" >&5
19091 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19092   echo $ac_n "(cached) $ac_c" 1>&6
19093 else
19094   
19095         cat > conftest.$ac_ext <<EOF
19096 #line 19097 "configure"
19097 #include "confdefs.h"
19098 #include <pthread.h>
19099 int main() {
19100
19101                         pthread_cleanup_push(NULL, NULL);
19102                         pthread_cleanup_pop(0);
19103                      
19104 ; return 0; }
19105 EOF
19106 if { (eval echo configure:19107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19107   rm -rf conftest*
19108   
19109                         wx_cv_func_pthread_cleanup_push=yes
19110                      
19111 else
19112   echo "configure: failed program was:" >&5
19113   cat conftest.$ac_ext >&5
19114   rm -rf conftest*
19115   
19116                         wx_cv_func_pthread_cleanup_push=no
19117                      
19118 fi
19119 rm -f conftest*
19120       
19121 fi
19122
19123 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
19124
19125       if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
19126           cat >> confdefs.h <<\EOF
19127 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
19128 EOF
19129
19130       fi
19131
19132                                                 
19133       echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
19134 echo "configure:19135: checking for pthread_mutexattr_t" >&5
19135 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19136   echo $ac_n "(cached) $ac_c" 1>&6
19137 else
19138   
19139         cat > conftest.$ac_ext <<EOF
19140 #line 19141 "configure"
19141 #include "confdefs.h"
19142 #include <pthread.h>
19143 int main() {
19144
19145                pthread_mutexattr_t attr;
19146                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
19147             
19148 ; return 0; }
19149 EOF
19150 if { (eval echo configure:19151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19151   rm -rf conftest*
19152   
19153                wx_cv_type_pthread_mutexattr_t=yes
19154             
19155 else
19156   echo "configure: failed program was:" >&5
19157   cat conftest.$ac_ext >&5
19158   rm -rf conftest*
19159   
19160                wx_cv_type_pthread_mutexattr_t=no
19161             
19162         
19163 fi
19164 rm -f conftest*
19165       
19166 fi
19167
19168 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
19169
19170       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
19171         cat >> confdefs.h <<\EOF
19172 #define HAVE_PTHREAD_MUTEXATTR_T 1
19173 EOF
19174
19175       else
19176                 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
19177 echo "configure:19178: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
19178 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19179   echo $ac_n "(cached) $ac_c" 1>&6
19180 else
19181   
19182             cat > conftest.$ac_ext <<EOF
19183 #line 19184 "configure"
19184 #include "confdefs.h"
19185 #include <pthread.h>
19186 int main() {
19187
19188                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
19189                 
19190 ; return 0; }
19191 EOF
19192 if { (eval echo configure:19193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19193   rm -rf conftest*
19194   
19195                     wx_cv_type_pthread_rec_mutex_init=yes
19196                 
19197 else
19198   echo "configure: failed program was:" >&5
19199   cat conftest.$ac_ext >&5
19200   rm -rf conftest*
19201   
19202                     wx_cv_type_pthread_rec_mutex_init=no
19203                 
19204             
19205 fi
19206 rm -f conftest*
19207         
19208 fi
19209
19210 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
19211         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
19212           cat >> confdefs.h <<\EOF
19213 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
19214 EOF
19215
19216         else
19217                     echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
19218         fi
19219       fi
19220     fi
19221
19222 else
19223     if test "$wxUSE_THREADS" = "yes" ; then
19224       case "${host}" in
19225         *-*-mingw32* )
19226                         echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
19227 echo "configure:19228: checking if compiler supports -mthreads" >&5
19228 if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19229   echo $ac_n "(cached) $ac_c" 1>&6
19230 else
19231   
19232                     CFLAGS_OLD="$CFLAGS"
19233                     CFLAGS="$CFLAGS -mthreads"
19234                     cat > conftest.$ac_ext <<EOF
19235 #line 19236 "configure"
19236 #include "confdefs.h"
19237
19238 int main() {
19239
19240 ; return 0; }
19241 EOF
19242 if { (eval echo configure:19243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19243   rm -rf conftest*
19244   wx_cv_cflags_mthread=yes
19245 else
19246   echo "configure: failed program was:" >&5
19247   cat conftest.$ac_ext >&5
19248   rm -rf conftest*
19249   wx_cv_cflags_mthread=no
19250                     
19251 fi
19252 rm -f conftest*
19253                 
19254             
19255 fi
19256
19257 echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19258
19259             if test "$wx_cv_cflags_mthread" = "yes"; then
19260                                 CXXFLAGS="$CXXFLAGS -mthreads"
19261                 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19262                 LDFLAGS="$LDFLAGS -mthreads"
19263             else
19264                                 CFLAGS="$CFLAGS_OLD"
19265             fi
19266         ;;
19267       esac
19268     fi
19269 fi
19270
19271 if test "$wxUSE_THREADS" = "yes"; then
19272   cat >> confdefs.h <<\EOF
19273 #define wxUSE_THREADS 1
19274 EOF
19275
19276
19277   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
19278 else
19279       if test "$ac_cv_func_strtok_r" = "yes"; then
19280     echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
19281 echo "configure:19282: checking if -D_REENTRANT is needed" >&5
19282     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19283         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
19284         echo "$ac_t""yes" 1>&6
19285     else
19286         echo "$ac_t""no" 1>&6
19287     fi
19288   fi
19289 fi
19290
19291 if test "$WXGTK20" = 1 ; then
19292   cat >> confdefs.h <<EOF
19293 #define __WXGTK20__ $WXGTK20
19294 EOF
19295
19296   WXGTK12=1
19297 fi
19298
19299 if test "$WXGTK12" = 1 ; then
19300   cat >> confdefs.h <<EOF
19301 #define __WXGTK12__ $WXGTK12
19302 EOF
19303
19304 fi
19305
19306 if test "$WXGTK127" = 1 ; then
19307   cat >> confdefs.h <<EOF
19308 #define __WXGTK127__ $WXGTK127
19309 EOF
19310
19311 fi
19312
19313 WXDEBUG=
19314
19315 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19316     WXDEBUG="-g"
19317     wxUSE_OPTIMISE=no
19318 fi
19319
19320 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19321     wxUSE_DEBUG_INFO=yes
19322     WXDEBUG="-ggdb"
19323 fi
19324
19325 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
19326     cat >> confdefs.h <<\EOF
19327 #define WXDEBUG 1
19328 EOF
19329
19330     WXDEBUG_DEFINE="-D__WXDEBUG__"
19331 else
19332     if test "$wxUSE_GTK" = 1 ; then
19333         WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19334     fi
19335 fi
19336
19337 if test "$wxUSE_MEM_TRACING" = "yes" ; then
19338     cat >> confdefs.h <<\EOF
19339 #define wxUSE_MEMORY_TRACING 1
19340 EOF
19341
19342     cat >> confdefs.h <<\EOF
19343 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
19344 EOF
19345
19346     cat >> confdefs.h <<\EOF
19347 #define wxUSE_DEBUG_NEW_ALWAYS 1
19348 EOF
19349
19350     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19351 fi
19352
19353 if test "$wxUSE_DMALLOC" = "yes" ; then
19354     DMALLOC_LIBS="-ldmalloc"
19355 fi
19356
19357 PROFILE=
19358 if test "$wxUSE_PROFILE" = "yes" ; then
19359     PROFILE=" -pg"
19360 fi
19361
19362 CODE_GEN_FLAGS=
19363 CODE_GEN_FLAGS_CXX=
19364 if test "$GCC" = "yes" ; then
19365     if test "$wxUSE_NO_RTTI" = "yes" ; then
19366         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
19367     fi
19368     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19369         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19370     fi
19371     if test "$wxUSE_PERMISSIVE" = "yes" ; then
19372         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19373     fi
19374     if test "$USE_WIN32" = 1 ; then
19375         # I'm not even really sure what this was ever added to solve,
19376         # but someone added it for mingw native builds, so I guess
19377         # they had a reason, right??
19378         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19379     fi
19380
19381                                                 case "${host}" in
19382       powerpc*-*-aix* )
19383         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19384         ;;
19385       *-hppa* )
19386         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19387         ;;
19388     esac
19389 fi
19390
19391 if test "$wxUSE_OPTIMISE" = "no" ; then
19392     OPTIMISE=
19393 else
19394     if test "$GCC" = yes ; then
19395         OPTIMISE="-O2"
19396         case "${host}" in
19397             i586-*-*|i686-*-* )
19398             OPTIMISE="${OPTIMISE} "
19399         ;;
19400         esac
19401     else
19402         OPTIMISE="-O"
19403     fi
19404 fi
19405
19406
19407 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
19408     cat >> confdefs.h <<\EOF
19409 #define WXWIN_COMPATIBILITY_2 1
19410 EOF
19411
19412
19413     WXWIN_COMPATIBILITY_2_2="yes"
19414 fi
19415
19416 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
19417     cat >> confdefs.h <<\EOF
19418 #define WXWIN_COMPATIBILITY_2_2 1
19419 EOF
19420
19421
19422     WXWIN_COMPATIBILITY_2_4="yes"
19423 fi
19424
19425 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19426     cat >> confdefs.h <<\EOF
19427 #define WXWIN_COMPATIBILITY_2_4 1
19428 EOF
19429
19430 fi
19431
19432
19433 if test "$wxUSE_GUI" = "yes"; then
19434   cat >> confdefs.h <<\EOF
19435 #define wxUSE_GUI 1
19436 EOF
19437
19438
19439                       else
19440   cat >> confdefs.h <<\EOF
19441 #define wxUSE_NOGUI 1
19442 EOF
19443
19444 fi
19445
19446
19447 if test "$wxUSE_UNIX" = "yes"; then
19448   cat >> confdefs.h <<\EOF
19449 #define wxUSE_UNIX 1
19450 EOF
19451
19452 fi
19453
19454
19455 if test "$wxUSE_APPLE_IEEE" = "yes"; then
19456   cat >> confdefs.h <<\EOF
19457 #define wxUSE_APPLE_IEEE 1
19458 EOF
19459
19460 fi
19461
19462 if test "$wxUSE_TIMER" = "yes"; then
19463   cat >> confdefs.h <<\EOF
19464 #define wxUSE_TIMER 1
19465 EOF
19466
19467 fi
19468
19469 if test "$wxUSE_WAVE" = "yes"; then
19470   cat >> confdefs.h <<\EOF
19471 #define wxUSE_WAVE 1
19472 EOF
19473
19474 fi
19475
19476 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
19477   cat >> confdefs.h <<\EOF
19478 #define wxUSE_CMDLINE_PARSER 1
19479 EOF
19480
19481 fi
19482
19483 if test "$wxUSE_STOPWATCH" = "yes"; then
19484   cat >> confdefs.h <<\EOF
19485 #define wxUSE_STOPWATCH 1
19486 EOF
19487
19488 fi
19489
19490 if test "$wxUSE_DATETIME" = "yes"; then
19491   cat >> confdefs.h <<\EOF
19492 #define wxUSE_DATETIME 1
19493 EOF
19494
19495 fi
19496
19497 if test "$wxUSE_TIMEDATE" = "yes"; then
19498   cat >> confdefs.h <<\EOF
19499 #define wxUSE_TIMEDATE 1
19500 EOF
19501
19502 fi
19503
19504 if test "$wxUSE_FILE" = "yes"; then
19505   cat >> confdefs.h <<\EOF
19506 #define wxUSE_FILE 1
19507 EOF
19508
19509 fi
19510
19511 if test "$wxUSE_FFILE" = "yes"; then
19512   cat >> confdefs.h <<\EOF
19513 #define wxUSE_FFILE 1
19514 EOF
19515
19516 fi
19517
19518 if test "$wxUSE_FILESYSTEM" = "yes"; then
19519   cat >> confdefs.h <<\EOF
19520 #define wxUSE_FILESYSTEM 1
19521 EOF
19522
19523 fi
19524
19525 if test "$wxUSE_FS_INET" = "yes"; then
19526   cat >> confdefs.h <<\EOF
19527 #define wxUSE_FS_INET 1
19528 EOF
19529
19530 fi
19531
19532 if test "$wxUSE_FS_ZIP" = "yes"; then
19533   cat >> confdefs.h <<\EOF
19534 #define wxUSE_FS_ZIP 1
19535 EOF
19536
19537 fi
19538
19539 if test "$wxUSE_ZIPSTREAM" = "yes"; then
19540   cat >> confdefs.h <<\EOF
19541 #define wxUSE_ZIPSTREAM 1
19542 EOF
19543
19544 fi
19545
19546 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
19547   cat >> confdefs.h <<\EOF
19548 #define wxUSE_ON_FATAL_EXCEPTION 1
19549 EOF
19550
19551 fi
19552
19553 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
19554   cat >> confdefs.h <<\EOF
19555 #define wxUSE_SNGLINST_CHECKER 1
19556 EOF
19557
19558 fi
19559
19560 if test "$wxUSE_BUSYINFO" = "yes"; then
19561   cat >> confdefs.h <<\EOF
19562 #define wxUSE_BUSYINFO 1
19563 EOF
19564
19565 fi
19566
19567 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
19568   cat >> confdefs.h <<\EOF
19569 #define wxUSE_STD_IOSTREAM 1
19570 EOF
19571
19572 fi
19573
19574 if test "$wxUSE_TEXTBUFFER" = "yes"; then
19575     cat >> confdefs.h <<\EOF
19576 #define wxUSE_TEXTBUFFER 1
19577 EOF
19578
19579 fi
19580
19581 if test "$wxUSE_TEXTFILE" = "yes"; then
19582   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
19583     echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
19584   else
19585     cat >> confdefs.h <<\EOF
19586 #define wxUSE_TEXTFILE 1
19587 EOF
19588
19589   fi
19590 fi
19591
19592 if test "$wxUSE_CONFIG" = "yes" ; then
19593   if test "$wxUSE_TEXTFILE" != "yes"; then
19594     echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
19595   else
19596     cat >> confdefs.h <<\EOF
19597 #define wxUSE_CONFIG 1
19598 EOF
19599
19600     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
19601   fi
19602 fi
19603
19604 if test "$wxUSE_INTL" = "yes" ; then
19605   if test "$wxUSE_FILE" != "yes"; then
19606     echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
19607   else
19608     cat >> confdefs.h <<\EOF
19609 #define wxUSE_INTL 1
19610 EOF
19611
19612     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
19613     GUIDIST="$GUIDIST INTL_DIST"
19614   fi
19615 fi
19616
19617 if test "$wxUSE_LOG" = "yes"; then
19618   cat >> confdefs.h <<\EOF
19619 #define wxUSE_LOG 1
19620 EOF
19621
19622
19623     if test "$wxUSE_LOGGUI" = "yes"; then
19624       cat >> confdefs.h <<\EOF
19625 #define wxUSE_LOGGUI 1
19626 EOF
19627
19628     fi
19629
19630     if test "$wxUSE_LOGWINDOW" = "yes"; then
19631       cat >> confdefs.h <<\EOF
19632 #define wxUSE_LOGWINDOW 1
19633 EOF
19634
19635     fi
19636
19637     if test "$wxUSE_LOGDIALOG" = "yes"; then
19638       cat >> confdefs.h <<\EOF
19639 #define wxUSE_LOG_DIALOG 1
19640 EOF
19641
19642     fi
19643 fi
19644
19645 if test "$wxUSE_LONGLONG" = "yes"; then
19646   cat >> confdefs.h <<\EOF
19647 #define wxUSE_LONGLONG 1
19648 EOF
19649
19650 fi
19651
19652 if test "$wxUSE_GEOMETRY" = "yes"; then
19653   cat >> confdefs.h <<\EOF
19654 #define wxUSE_GEOMETRY 1
19655 EOF
19656
19657 fi
19658
19659 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
19660   cat >> confdefs.h <<\EOF
19661 #define wxUSE_DIALUP_MANAGER 1
19662 EOF
19663
19664   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
19665 fi
19666
19667 if test "$wxUSE_STREAMS" = "yes" ; then
19668   cat >> confdefs.h <<\EOF
19669 #define wxUSE_STREAMS 1
19670 EOF
19671
19672 fi
19673
19674
19675 if test "$wxUSE_DATETIME" = "yes"; then
19676         for ac_func in strptime
19677 do
19678 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19679 echo "configure:19680: checking for $ac_func" >&5
19680 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19681   echo $ac_n "(cached) $ac_c" 1>&6
19682 else
19683   cat > conftest.$ac_ext <<EOF
19684 #line 19685 "configure"
19685 #include "confdefs.h"
19686 /* System header to define __stub macros and hopefully few prototypes,
19687     which can conflict with char $ac_func(); below.  */
19688 #include <assert.h>
19689 /* Override any gcc2 internal prototype to avoid an error.  */
19690 /* We use char because int might match the return type of a gcc2
19691     builtin and then its argument prototype would still apply.  */
19692 char $ac_func();
19693
19694 int main() {
19695
19696 /* The GNU C library defines this for functions which it implements
19697     to always fail with ENOSYS.  Some functions are actually named
19698     something starting with __ and the normal name is an alias.  */
19699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19700 choke me
19701 #else
19702 $ac_func();
19703 #endif
19704
19705 ; return 0; }
19706 EOF
19707 if { (eval echo configure:19708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19708   rm -rf conftest*
19709   eval "ac_cv_func_$ac_func=yes"
19710 else
19711   echo "configure: failed program was:" >&5
19712   cat conftest.$ac_ext >&5
19713   rm -rf conftest*
19714   eval "ac_cv_func_$ac_func=no"
19715 fi
19716 rm -f conftest*
19717 fi
19718
19719 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19720   echo "$ac_t""yes" 1>&6
19721     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19722   cat >> confdefs.h <<EOF
19723 #define $ac_tr_func 1
19724 EOF
19725  
19726 else
19727   echo "$ac_t""no" 1>&6
19728 fi
19729 done
19730
19731
19732             echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
19733 echo "configure:19734: checking for timezone variable in <time.h>" >&5
19734 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
19735   echo $ac_n "(cached) $ac_c" 1>&6
19736 else
19737   
19738                         cat > conftest.$ac_ext <<EOF
19739 #line 19740 "configure"
19740 #include "confdefs.h"
19741
19742                                 #include <time.h>
19743                             
19744 int main() {
19745
19746                                 int tz;
19747                                 tz = timezone;
19748                             
19749 ; return 0; }
19750 EOF
19751 if { (eval echo configure:19752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19752   rm -rf conftest*
19753   
19754                                 wx_cv_var_timezone=timezone
19755                             
19756 else
19757   echo "configure: failed program was:" >&5
19758   cat conftest.$ac_ext >&5
19759   rm -rf conftest*
19760   
19761                                 cat > conftest.$ac_ext <<EOF
19762 #line 19763 "configure"
19763 #include "confdefs.h"
19764
19765                                         #include <time.h>
19766                                     
19767 int main() {
19768
19769                                         int tz;
19770                                         tz = _timezone;
19771                                     
19772 ; return 0; }
19773 EOF
19774 if { (eval echo configure:19775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19775   rm -rf conftest*
19776   
19777                                         wx_cv_var_timezone=_timezone
19778                                     
19779 else
19780   echo "configure: failed program was:" >&5
19781   cat conftest.$ac_ext >&5
19782   rm -rf conftest*
19783   
19784                                         cat > conftest.$ac_ext <<EOF
19785 #line 19786 "configure"
19786 #include "confdefs.h"
19787
19788                                                 #include <time.h>
19789                                             
19790 int main() {
19791
19792                                                 int tz;
19793                                                 tz = __timezone;
19794                                             
19795 ; return 0; }
19796 EOF
19797 if { (eval echo configure:19798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19798   rm -rf conftest*
19799   
19800                                                 wx_cv_var_timezone=__timezone
19801                                             
19802 else
19803   echo "configure: failed program was:" >&5
19804   cat conftest.$ac_ext >&5
19805   rm -rf conftest*
19806   
19807                                                 if test "$USE_DOS" = 0 ; then
19808                                                     echo "configure: warning: no timezone variable" 1>&2
19809                                                 fi
19810                                             
19811                                         
19812 fi
19813 rm -f conftest*
19814                                     
19815                                 
19816 fi
19817 rm -f conftest*
19818                             
19819                         
19820 fi
19821 rm -f conftest*
19822                    
19823     
19824 fi
19825
19826 echo "$ac_t""$wx_cv_var_timezone" 1>&6
19827
19828         if test "x$wx_cv_var_timezone" != x ; then
19829         cat >> confdefs.h <<EOF
19830 #define WX_TIMEZONE $wx_cv_var_timezone
19831 EOF
19832
19833     fi
19834
19835         for ac_func in localtime
19836 do
19837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19838 echo "configure:19839: checking for $ac_func" >&5
19839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19840   echo $ac_n "(cached) $ac_c" 1>&6
19841 else
19842   cat > conftest.$ac_ext <<EOF
19843 #line 19844 "configure"
19844 #include "confdefs.h"
19845 /* System header to define __stub macros and hopefully few prototypes,
19846     which can conflict with char $ac_func(); below.  */
19847 #include <assert.h>
19848 /* Override any gcc2 internal prototype to avoid an error.  */
19849 /* We use char because int might match the return type of a gcc2
19850     builtin and then its argument prototype would still apply.  */
19851 char $ac_func();
19852
19853 int main() {
19854
19855 /* The GNU C library defines this for functions which it implements
19856     to always fail with ENOSYS.  Some functions are actually named
19857     something starting with __ and the normal name is an alias.  */
19858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19859 choke me
19860 #else
19861 $ac_func();
19862 #endif
19863
19864 ; return 0; }
19865 EOF
19866 if { (eval echo configure:19867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19867   rm -rf conftest*
19868   eval "ac_cv_func_$ac_func=yes"
19869 else
19870   echo "configure: failed program was:" >&5
19871   cat conftest.$ac_ext >&5
19872   rm -rf conftest*
19873   eval "ac_cv_func_$ac_func=no"
19874 fi
19875 rm -f conftest*
19876 fi
19877
19878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19879   echo "$ac_t""yes" 1>&6
19880     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19881   cat >> confdefs.h <<EOF
19882 #define $ac_tr_func 1
19883 EOF
19884  
19885 else
19886   echo "$ac_t""no" 1>&6
19887 fi
19888 done
19889
19890
19891     if test "$ac_cv_func_localtime" = "yes"; then
19892         echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
19893 echo "configure:19894: checking for tm_gmtoff in struct tm" >&5
19894 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
19895   echo $ac_n "(cached) $ac_c" 1>&6
19896 else
19897   
19898             cat > conftest.$ac_ext <<EOF
19899 #line 19900 "configure"
19900 #include "confdefs.h"
19901
19902                     #include <time.h>
19903                 
19904 int main() {
19905
19906                     struct tm tm;
19907                     tm.tm_gmtoff++;
19908                 
19909 ; return 0; }
19910 EOF
19911 if { (eval echo configure:19912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19912   rm -rf conftest*
19913   
19914                     wx_cv_struct_tm_has_gmtoff=yes
19915                 
19916 else
19917   echo "configure: failed program was:" >&5
19918   cat conftest.$ac_ext >&5
19919   rm -rf conftest*
19920   wx_cv_struct_tm_has_gmtoff=no
19921             
19922 fi
19923 rm -f conftest*
19924         
19925 fi
19926
19927 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
19928     fi
19929
19930     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
19931         cat >> confdefs.h <<\EOF
19932 #define WX_GMTOFF_IN_TM 1
19933 EOF
19934
19935     fi
19936
19937             for ac_func in gettimeofday ftime
19938 do
19939 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19940 echo "configure:19941: checking for $ac_func" >&5
19941 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19942   echo $ac_n "(cached) $ac_c" 1>&6
19943 else
19944   cat > conftest.$ac_ext <<EOF
19945 #line 19946 "configure"
19946 #include "confdefs.h"
19947 /* System header to define __stub macros and hopefully few prototypes,
19948     which can conflict with char $ac_func(); below.  */
19949 #include <assert.h>
19950 /* Override any gcc2 internal prototype to avoid an error.  */
19951 /* We use char because int might match the return type of a gcc2
19952     builtin and then its argument prototype would still apply.  */
19953 char $ac_func();
19954
19955 int main() {
19956
19957 /* The GNU C library defines this for functions which it implements
19958     to always fail with ENOSYS.  Some functions are actually named
19959     something starting with __ and the normal name is an alias.  */
19960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19961 choke me
19962 #else
19963 $ac_func();
19964 #endif
19965
19966 ; return 0; }
19967 EOF
19968 if { (eval echo configure:19969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19969   rm -rf conftest*
19970   eval "ac_cv_func_$ac_func=yes"
19971 else
19972   echo "configure: failed program was:" >&5
19973   cat conftest.$ac_ext >&5
19974   rm -rf conftest*
19975   eval "ac_cv_func_$ac_func=no"
19976 fi
19977 rm -f conftest*
19978 fi
19979
19980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19981   echo "$ac_t""yes" 1>&6
19982     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19983   cat >> confdefs.h <<EOF
19984 #define $ac_tr_func 1
19985 EOF
19986  break
19987 else
19988   echo "$ac_t""no" 1>&6
19989 fi
19990 done
19991
19992
19993     if test "$ac_cv_func_gettimeofday" = "yes"; then
19994         echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
19995 echo "configure:19996: checking whether gettimeofday takes two arguments" >&5
19996 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
19997   echo $ac_n "(cached) $ac_c" 1>&6
19998 else
19999   
20000                         
20001             ac_ext=C
20002 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20003 ac_cpp='$CXXCPP $CPPFLAGS'
20004 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20005 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20006 cross_compiling=$ac_cv_prog_cxx_cross
20007
20008
20009             cat > conftest.$ac_ext <<EOF
20010 #line 20011 "configure"
20011 #include "confdefs.h"
20012
20013                     #include <sys/time.h>
20014                     #include <unistd.h>
20015                 
20016 int main() {
20017
20018                     struct timeval tv;
20019                     gettimeofday(&tv, NULL);
20020                 
20021 ; return 0; }
20022 EOF
20023 if { (eval echo configure:20024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20024   rm -rf conftest*
20025   wx_cv_func_gettimeofday_has_2_args=yes
20026 else
20027   echo "configure: failed program was:" >&5
20028   cat conftest.$ac_ext >&5
20029   rm -rf conftest*
20030   cat > conftest.$ac_ext <<EOF
20031 #line 20032 "configure"
20032 #include "confdefs.h"
20033
20034                         #include <sys/time.h>
20035                         #include <unistd.h>
20036                     
20037 int main() {
20038
20039                         struct timeval tv;
20040                         gettimeofday(&tv);
20041                     
20042 ; return 0; }
20043 EOF
20044 if { (eval echo configure:20045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20045   rm -rf conftest*
20046   wx_cv_func_gettimeofday_has_2_args=no
20047 else
20048   echo "configure: failed program was:" >&5
20049   cat conftest.$ac_ext >&5
20050   rm -rf conftest*
20051   
20052                         echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
20053                         wx_cv_func_gettimeofday_has_2_args=unknown
20054                     
20055                 
20056 fi
20057 rm -f conftest*
20058             
20059 fi
20060 rm -f conftest*
20061             ac_ext=c
20062 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20063 ac_cpp='$CPP $CPPFLAGS'
20064 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20065 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20066 cross_compiling=$ac_cv_prog_cc_cross
20067
20068         
20069 fi
20070
20071 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
20072
20073         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
20074             cat >> confdefs.h <<\EOF
20075 #define WX_GETTIMEOFDAY_NO_TZ 1
20076 EOF
20077
20078         fi
20079     fi
20080
20081     cat >> confdefs.h <<\EOF
20082 #define wxUSE_TIMEDATE 1
20083 EOF
20084
20085     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20086 fi
20087
20088
20089 if test "$wxUSE_SOCKETS" = "yes"; then
20090     if test "$wxUSE_MGL" = "1"; then
20091         echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
20092         wxUSE_SOCKETS="no"
20093     fi
20094 fi
20095
20096 if test "$wxUSE_SOCKETS" = "yes"; then
20097         if test "$TOOLKIT" != "MSW"; then
20098                 echo $ac_n "checking for socket""... $ac_c" 1>&6
20099 echo "configure:20100: checking for socket" >&5
20100 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20101   echo $ac_n "(cached) $ac_c" 1>&6
20102 else
20103   cat > conftest.$ac_ext <<EOF
20104 #line 20105 "configure"
20105 #include "confdefs.h"
20106 /* System header to define __stub macros and hopefully few prototypes,
20107     which can conflict with char socket(); below.  */
20108 #include <assert.h>
20109 /* Override any gcc2 internal prototype to avoid an error.  */
20110 /* We use char because int might match the return type of a gcc2
20111     builtin and then its argument prototype would still apply.  */
20112 char socket();
20113
20114 int main() {
20115
20116 /* The GNU C library defines this for functions which it implements
20117     to always fail with ENOSYS.  Some functions are actually named
20118     something starting with __ and the normal name is an alias.  */
20119 #if defined (__stub_socket) || defined (__stub___socket)
20120 choke me
20121 #else
20122 socket();
20123 #endif
20124
20125 ; return 0; }
20126 EOF
20127 if { (eval echo configure:20128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20128   rm -rf conftest*
20129   eval "ac_cv_func_socket=yes"
20130 else
20131   echo "configure: failed program was:" >&5
20132   cat conftest.$ac_ext >&5
20133   rm -rf conftest*
20134   eval "ac_cv_func_socket=no"
20135 fi
20136 rm -f conftest*
20137 fi
20138
20139 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20140   echo "$ac_t""yes" 1>&6
20141   :
20142 else
20143   echo "$ac_t""no" 1>&6
20144 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
20145 echo "configure:20146: checking for socket in -lsocket" >&5
20146 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20147 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20148   echo $ac_n "(cached) $ac_c" 1>&6
20149 else
20150   ac_save_LIBS="$LIBS"
20151 LIBS="-lsocket  $LIBS"
20152 cat > conftest.$ac_ext <<EOF
20153 #line 20154 "configure"
20154 #include "confdefs.h"
20155 /* Override any gcc2 internal prototype to avoid an error.  */
20156 /* We use char because int might match the return type of a gcc2
20157     builtin and then its argument prototype would still apply.  */
20158 char socket();
20159
20160 int main() {
20161 socket()
20162 ; return 0; }
20163 EOF
20164 if { (eval echo configure:20165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20165   rm -rf conftest*
20166   eval "ac_cv_lib_$ac_lib_var=yes"
20167 else
20168   echo "configure: failed program was:" >&5
20169   cat conftest.$ac_ext >&5
20170   rm -rf conftest*
20171   eval "ac_cv_lib_$ac_lib_var=no"
20172 fi
20173 rm -f conftest*
20174 LIBS="$ac_save_LIBS"
20175
20176 fi
20177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20178   echo "$ac_t""yes" 1>&6
20179   if test "$INET_LINK" != " -lsocket"; then
20180                     INET_LINK="$INET_LINK -lsocket"
20181                 fi
20182 else
20183   echo "$ac_t""no" 1>&6
20184
20185                     echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
20186                     wxUSE_SOCKETS=no
20187                 
20188             
20189 fi
20190
20191         
20192 fi
20193
20194     fi
20195 fi
20196
20197 if test "$wxUSE_SOCKETS" = "yes" ; then
20198                 if test "$TOOLKIT" != "MSW"; then
20199                 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
20200 echo "configure:20201: checking what is the type of the third argument of getsockname" >&5
20201 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20202   echo $ac_n "(cached) $ac_c" 1>&6
20203 else
20204   
20205                 
20206                 ac_ext=C
20207 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20208 ac_cpp='$CXXCPP $CPPFLAGS'
20209 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20210 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20211 cross_compiling=$ac_cv_prog_cxx_cross
20212
20213
20214                 cat > conftest.$ac_ext <<EOF
20215 #line 20216 "configure"
20216 #include "confdefs.h"
20217
20218                         #include <sys/types.h>
20219                         #include <sys/socket.h>
20220                     
20221 int main() {
20222
20223                         socklen_t len;
20224                         getsockname(0, 0, &len);
20225                     
20226 ; return 0; }
20227 EOF
20228 if { (eval echo configure:20229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20229   rm -rf conftest*
20230   wx_cv_type_getsockname3=socklen_t
20231 else
20232   echo "configure: failed program was:" >&5
20233   cat conftest.$ac_ext >&5
20234   rm -rf conftest*
20235   cat > conftest.$ac_ext <<EOF
20236 #line 20237 "configure"
20237 #include "confdefs.h"
20238
20239                             #include <sys/types.h>
20240                             #include <sys/socket.h>
20241                         
20242 int main() {
20243
20244                             size_t len;
20245                             getsockname(0, 0, &len);
20246                         
20247 ; return 0; }
20248 EOF
20249 if { (eval echo configure:20250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20250   rm -rf conftest*
20251   wx_cv_type_getsockname3=size_t
20252 else
20253   echo "configure: failed program was:" >&5
20254   cat conftest.$ac_ext >&5
20255   rm -rf conftest*
20256   cat > conftest.$ac_ext <<EOF
20257 #line 20258 "configure"
20258 #include "confdefs.h"
20259
20260                                 #include <sys/types.h>
20261                                 #include <sys/socket.h>
20262                             
20263 int main() {
20264
20265                                 int len;
20266                                 getsockname(0, 0, &len);
20267                             
20268 ; return 0; }
20269 EOF
20270 if { (eval echo configure:20271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20271   rm -rf conftest*
20272   wx_cv_type_getsockname3=int
20273 else
20274   echo "configure: failed program was:" >&5
20275   cat conftest.$ac_ext >&5
20276   rm -rf conftest*
20277   wx_cv_type_getsockname3=unknown
20278                         
20279 fi
20280 rm -f conftest*
20281                     
20282 fi
20283 rm -f conftest*
20284                 
20285 fi
20286 rm -f conftest*
20287
20288                 ac_ext=c
20289 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20290 ac_cpp='$CPP $CPPFLAGS'
20291 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20292 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20293 cross_compiling=$ac_cv_prog_cc_cross
20294
20295             
20296 fi
20297
20298 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
20299
20300         if test "$wx_cv_type_getsockname3" = "unknown"; then
20301             wxUSE_SOCKETS=no
20302             echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
20303         else
20304             cat >> confdefs.h <<EOF
20305 #define SOCKLEN_T $wx_cv_type_getsockname3
20306 EOF
20307
20308         fi
20309     fi
20310 fi
20311
20312 if test "$wxUSE_SOCKETS" = "yes" ; then
20313     cat >> confdefs.h <<\EOF
20314 #define wxUSE_SOCKETS 1
20315 EOF
20316
20317     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
20318 fi
20319
20320
20321 if test "$wxUSE_GUI" = "yes"; then
20322
20323     if test "$TOOLKIT" = "MAC"; then
20324         echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
20325         wxUSE_JOYSTICK=no
20326      fi
20327     if test "$TOOLKIT" = "MOTIF"; then
20328         echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
20329         wxUSE_JOYSTICK=no
20330      fi
20331     if test "$TOOLKIT" = "X11"; then
20332         echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
20333         wxUSE_JOYSTICK=no
20334      fi
20335
20336         if test "$TOOLKIT" != "MSW"; then
20337         if test "$wxUSE_JOYSTICK" = "yes"; then
20338                         for ac_hdr in linux/joystick.h
20339 do
20340 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20341 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20342 echo "configure:20343: checking for $ac_hdr" >&5
20343 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20344   echo $ac_n "(cached) $ac_c" 1>&6
20345 else
20346   cat > conftest.$ac_ext <<EOF
20347 #line 20348 "configure"
20348 #include "confdefs.h"
20349 #include <$ac_hdr>
20350 EOF
20351 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20352 { (eval echo configure:20353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20353 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20354 if test -z "$ac_err"; then
20355   rm -rf conftest*
20356   eval "ac_cv_header_$ac_safe=yes"
20357 else
20358   echo "$ac_err" >&5
20359   echo "configure: failed program was:" >&5
20360   cat conftest.$ac_ext >&5
20361   rm -rf conftest*
20362   eval "ac_cv_header_$ac_safe=no"
20363 fi
20364 rm -f conftest*
20365 fi
20366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20367   echo "$ac_t""yes" 1>&6
20368     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20369   cat >> confdefs.h <<EOF
20370 #define $ac_tr_hdr 1
20371 EOF
20372  
20373 else
20374   echo "$ac_t""no" 1>&6
20375 fi
20376 done
20377
20378             if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20379                 wxUSE_JOYSTICK=no
20380                 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
20381             fi
20382         fi
20383     fi
20384
20385     if test "$wxUSE_JOYSTICK" = "yes"; then
20386         cat >> confdefs.h <<\EOF
20387 #define wxUSE_JOYSTICK 1
20388 EOF
20389
20390         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20391     fi
20392 fi
20393
20394
20395 if test "$TOOLKIT" != "MSW"; then
20396
20397     HAVE_DL_FUNCS=0
20398     HAVE_SHL_FUNCS=0
20399     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20400         if test "$USE_DARWIN" = 1; then
20401                         HAVE_DL_FUNCS=1
20402         else
20403                                                 for ac_func in dlopen
20404 do
20405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20406 echo "configure:20407: checking for $ac_func" >&5
20407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20408   echo $ac_n "(cached) $ac_c" 1>&6
20409 else
20410   cat > conftest.$ac_ext <<EOF
20411 #line 20412 "configure"
20412 #include "confdefs.h"
20413 /* System header to define __stub macros and hopefully few prototypes,
20414     which can conflict with char $ac_func(); below.  */
20415 #include <assert.h>
20416 /* Override any gcc2 internal prototype to avoid an error.  */
20417 /* We use char because int might match the return type of a gcc2
20418     builtin and then its argument prototype would still apply.  */
20419 char $ac_func();
20420
20421 int main() {
20422
20423 /* The GNU C library defines this for functions which it implements
20424     to always fail with ENOSYS.  Some functions are actually named
20425     something starting with __ and the normal name is an alias.  */
20426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20427 choke me
20428 #else
20429 $ac_func();
20430 #endif
20431
20432 ; return 0; }
20433 EOF
20434 if { (eval echo configure:20435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20435   rm -rf conftest*
20436   eval "ac_cv_func_$ac_func=yes"
20437 else
20438   echo "configure: failed program was:" >&5
20439   cat conftest.$ac_ext >&5
20440   rm -rf conftest*
20441   eval "ac_cv_func_$ac_func=no"
20442 fi
20443 rm -f conftest*
20444 fi
20445
20446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20447   echo "$ac_t""yes" 1>&6
20448     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20449   cat >> confdefs.h <<EOF
20450 #define $ac_tr_func 1
20451 EOF
20452  
20453                 cat >> confdefs.h <<\EOF
20454 #define HAVE_DLOPEN 1
20455 EOF
20456
20457                 HAVE_DL_FUNCS=1
20458             
20459 else
20460   echo "$ac_t""no" 1>&6
20461 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
20462 echo "configure:20463: checking for dlopen in -ldl" >&5
20463 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20464 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20465   echo $ac_n "(cached) $ac_c" 1>&6
20466 else
20467   ac_save_LIBS="$LIBS"
20468 LIBS="-ldl  $LIBS"
20469 cat > conftest.$ac_ext <<EOF
20470 #line 20471 "configure"
20471 #include "confdefs.h"
20472 /* Override any gcc2 internal prototype to avoid an error.  */
20473 /* We use char because int might match the return type of a gcc2
20474     builtin and then its argument prototype would still apply.  */
20475 char dlopen();
20476
20477 int main() {
20478 dlopen()
20479 ; return 0; }
20480 EOF
20481 if { (eval echo configure:20482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20482   rm -rf conftest*
20483   eval "ac_cv_lib_$ac_lib_var=yes"
20484 else
20485   echo "configure: failed program was:" >&5
20486   cat conftest.$ac_ext >&5
20487   rm -rf conftest*
20488   eval "ac_cv_lib_$ac_lib_var=no"
20489 fi
20490 rm -f conftest*
20491 LIBS="$ac_save_LIBS"
20492
20493 fi
20494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20495   echo "$ac_t""yes" 1>&6
20496   
20497                                 cat >> confdefs.h <<\EOF
20498 #define HAVE_DLOPEN 1
20499 EOF
20500
20501                                 HAVE_DL_FUNCS=1
20502                                 DL_LINK=" -ldl$DL_LINK"
20503                             
20504 else
20505   echo "$ac_t""no" 1>&6
20506
20507                                 for ac_func in shl_load
20508 do
20509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20510 echo "configure:20511: checking for $ac_func" >&5
20511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20512   echo $ac_n "(cached) $ac_c" 1>&6
20513 else
20514   cat > conftest.$ac_ext <<EOF
20515 #line 20516 "configure"
20516 #include "confdefs.h"
20517 /* System header to define __stub macros and hopefully few prototypes,
20518     which can conflict with char $ac_func(); below.  */
20519 #include <assert.h>
20520 /* Override any gcc2 internal prototype to avoid an error.  */
20521 /* We use char because int might match the return type of a gcc2
20522     builtin and then its argument prototype would still apply.  */
20523 char $ac_func();
20524
20525 int main() {
20526
20527 /* The GNU C library defines this for functions which it implements
20528     to always fail with ENOSYS.  Some functions are actually named
20529     something starting with __ and the normal name is an alias.  */
20530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20531 choke me
20532 #else
20533 $ac_func();
20534 #endif
20535
20536 ; return 0; }
20537 EOF
20538 if { (eval echo configure:20539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20539   rm -rf conftest*
20540   eval "ac_cv_func_$ac_func=yes"
20541 else
20542   echo "configure: failed program was:" >&5
20543   cat conftest.$ac_ext >&5
20544   rm -rf conftest*
20545   eval "ac_cv_func_$ac_func=no"
20546 fi
20547 rm -f conftest*
20548 fi
20549
20550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20551   echo "$ac_t""yes" 1>&6
20552     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20553   cat >> confdefs.h <<EOF
20554 #define $ac_tr_func 1
20555 EOF
20556  
20557                                                 cat >> confdefs.h <<\EOF
20558 #define HAVE_SHL_LOAD 1
20559 EOF
20560
20561                                                 HAVE_SHL_FUNCS=1
20562                                               
20563 else
20564   echo "$ac_t""no" 1>&6
20565 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
20566 echo "configure:20567: checking for dld in -lshl_load" >&5
20567 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20568 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20569   echo $ac_n "(cached) $ac_c" 1>&6
20570 else
20571   ac_save_LIBS="$LIBS"
20572 LIBS="-lshl_load  $LIBS"
20573 cat > conftest.$ac_ext <<EOF
20574 #line 20575 "configure"
20575 #include "confdefs.h"
20576 /* Override any gcc2 internal prototype to avoid an error.  */
20577 /* We use char because int might match the return type of a gcc2
20578     builtin and then its argument prototype would still apply.  */
20579 char dld();
20580
20581 int main() {
20582 dld()
20583 ; return 0; }
20584 EOF
20585 if { (eval echo configure:20586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20586   rm -rf conftest*
20587   eval "ac_cv_lib_$ac_lib_var=yes"
20588 else
20589   echo "configure: failed program was:" >&5
20590   cat conftest.$ac_ext >&5
20591   rm -rf conftest*
20592   eval "ac_cv_lib_$ac_lib_var=no"
20593 fi
20594 rm -f conftest*
20595 LIBS="$ac_save_LIBS"
20596
20597 fi
20598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20599   echo "$ac_t""yes" 1>&6
20600   
20601                                                                 HAVE_SHL_FUNCS=1
20602                                                                 DL_LINK=" -ldld$DL_LINK"
20603                                                              
20604 else
20605   echo "$ac_t""no" 1>&6
20606 fi
20607
20608                                               
20609 fi
20610 done
20611
20612                             
20613 fi
20614
20615             
20616 fi
20617 done
20618
20619
20620                 if test "$HAVE_DL_FUNCS" = 1; then
20621             for ac_func in dlerror
20622 do
20623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20624 echo "configure:20625: checking for $ac_func" >&5
20625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20626   echo $ac_n "(cached) $ac_c" 1>&6
20627 else
20628   cat > conftest.$ac_ext <<EOF
20629 #line 20630 "configure"
20630 #include "confdefs.h"
20631 /* System header to define __stub macros and hopefully few prototypes,
20632     which can conflict with char $ac_func(); below.  */
20633 #include <assert.h>
20634 /* Override any gcc2 internal prototype to avoid an error.  */
20635 /* We use char because int might match the return type of a gcc2
20636     builtin and then its argument prototype would still apply.  */
20637 char $ac_func();
20638
20639 int main() {
20640
20641 /* The GNU C library defines this for functions which it implements
20642     to always fail with ENOSYS.  Some functions are actually named
20643     something starting with __ and the normal name is an alias.  */
20644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20645 choke me
20646 #else
20647 $ac_func();
20648 #endif
20649
20650 ; return 0; }
20651 EOF
20652 if { (eval echo configure:20653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20653   rm -rf conftest*
20654   eval "ac_cv_func_$ac_func=yes"
20655 else
20656   echo "configure: failed program was:" >&5
20657   cat conftest.$ac_ext >&5
20658   rm -rf conftest*
20659   eval "ac_cv_func_$ac_func=no"
20660 fi
20661 rm -f conftest*
20662 fi
20663
20664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20665   echo "$ac_t""yes" 1>&6
20666     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20667   cat >> confdefs.h <<EOF
20668 #define $ac_tr_func 1
20669 EOF
20670  cat >> confdefs.h <<\EOF
20671 #define HAVE_DLERROR 1
20672 EOF
20673
20674 else
20675   echo "$ac_t""no" 1>&6
20676 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
20677 echo "configure:20678: checking for dlerror in -ldl" >&5
20678 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
20679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20680   echo $ac_n "(cached) $ac_c" 1>&6
20681 else
20682   ac_save_LIBS="$LIBS"
20683 LIBS="-ldl  $LIBS"
20684 cat > conftest.$ac_ext <<EOF
20685 #line 20686 "configure"
20686 #include "confdefs.h"
20687 /* Override any gcc2 internal prototype to avoid an error.  */
20688 /* We use char because int might match the return type of a gcc2
20689     builtin and then its argument prototype would still apply.  */
20690 char dlerror();
20691
20692 int main() {
20693 dlerror()
20694 ; return 0; }
20695 EOF
20696 if { (eval echo configure:20697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20697   rm -rf conftest*
20698   eval "ac_cv_lib_$ac_lib_var=yes"
20699 else
20700   echo "configure: failed program was:" >&5
20701   cat conftest.$ac_ext >&5
20702   rm -rf conftest*
20703   eval "ac_cv_lib_$ac_lib_var=no"
20704 fi
20705 rm -f conftest*
20706 LIBS="$ac_save_LIBS"
20707
20708 fi
20709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20710   echo "$ac_t""yes" 1>&6
20711   cat >> confdefs.h <<\EOF
20712 #define HAVE_DLERROR 1
20713 EOF
20714
20715 else
20716   echo "$ac_t""no" 1>&6
20717 fi
20718
20719 fi
20720 done
20721
20722         fi
20723         fi
20724
20725         if test "$HAVE_DL_FUNCS" = 0; then
20726             if test "$HAVE_SHL_FUNCS" = 0; then
20727               if test "$USE_UNIX" = 1; then
20728                   echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
20729                   wxUSE_DYNAMIC_LOADER=no
20730                   wxUSE_DYNLIB_CLASS=no
20731               else
20732                   echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
20733               fi
20734             fi
20735         fi
20736     fi
20737 fi
20738
20739 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
20740     cat >> confdefs.h <<\EOF
20741 #define wxUSE_DYNAMIC_LOADER 1
20742 EOF
20743
20744 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20745     cat >> confdefs.h <<\EOF
20746 #define wxUSE_DYNLIB_CLASS 1
20747 EOF
20748
20749 fi
20750
20751
20752 if test "$wxUSE_FONTMAP" = "yes" ; then
20753   cat >> confdefs.h <<\EOF
20754 #define wxUSE_FONTMAP 1
20755 EOF
20756
20757 fi
20758
20759 if test "$wxUSE_UNICODE" = "yes" ; then
20760   cat >> confdefs.h <<\EOF
20761 #define wxUSE_UNICODE 1
20762 EOF
20763
20764
20765   if test "$wxUSE_MSW" != 1; then
20766       wxUSE_UNICODE_MSLU=no
20767   fi
20768
20769   if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
20770         echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
20771 echo "configure:20772: checking for main in -lunicows" >&5
20772 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
20773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20774   echo $ac_n "(cached) $ac_c" 1>&6
20775 else
20776   ac_save_LIBS="$LIBS"
20777 LIBS="-lunicows  $LIBS"
20778 cat > conftest.$ac_ext <<EOF
20779 #line 20780 "configure"
20780 #include "confdefs.h"
20781
20782 int main() {
20783 main()
20784 ; return 0; }
20785 EOF
20786 if { (eval echo configure:20787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20787   rm -rf conftest*
20788   eval "ac_cv_lib_$ac_lib_var=yes"
20789 else
20790   echo "configure: failed program was:" >&5
20791   cat conftest.$ac_ext >&5
20792   rm -rf conftest*
20793   eval "ac_cv_lib_$ac_lib_var=no"
20794 fi
20795 rm -f conftest*
20796 LIBS="$ac_save_LIBS"
20797
20798 fi
20799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20800   echo "$ac_t""yes" 1>&6
20801   
20802                 cat >> confdefs.h <<\EOF
20803 #define wxUSE_UNICODE_MSLU 1
20804 EOF
20805
20806             
20807 else
20808   echo "$ac_t""no" 1>&6
20809
20810                 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
20811                              Applications will only run on Windows NT/2000/XP!" 1>&2
20812                 wxUSE_UNICODE_MSLU=no
20813             
20814 fi
20815
20816     fi
20817 fi
20818
20819 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
20820   cat >> confdefs.h <<\EOF
20821 #define wxUSE_EXPERIMENTAL_PRINTF 1
20822 EOF
20823
20824 fi
20825
20826
20827
20828 IODBC_C_SRC=""
20829 if test "$wxUSE_ODBC" = "yes" ; then
20830     cat >> confdefs.h <<\EOF
20831 #define wxUSE_ODBC 1
20832 EOF
20833
20834     WXODBCFLAG="-D_IODBC_"
20835     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
20836 fi
20837
20838
20839 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
20840   cat >> confdefs.h <<\EOF
20841 #define wxUSE_POSTSCRIPT 1
20842 EOF
20843
20844 fi
20845
20846 cat >> confdefs.h <<\EOF
20847 #define wxUSE_AFM_FOR_POSTSCRIPT 1
20848 EOF
20849
20850
20851 cat >> confdefs.h <<\EOF
20852 #define wxUSE_NORMALIZED_PS_FONTS 1
20853 EOF
20854
20855
20856
20857 if test "$wxUSE_CONSTRAINTS" = "yes"; then
20858     cat >> confdefs.h <<\EOF
20859 #define wxUSE_CONSTRAINTS 1
20860 EOF
20861
20862     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
20863 fi
20864
20865 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20866
20867
20868    if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20869        cat >> confdefs.h <<\EOF
20870 #define wxUSE_MDI_ARCHITECTURE 1
20871 EOF
20872
20873        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
20874    fi
20875 fi
20876
20877 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
20878     cat >> confdefs.h <<\EOF
20879 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
20880 EOF
20881
20882     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
20883     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20884         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
20885     fi
20886 fi
20887
20888 if test "$wxUSE_HELP" = "yes"; then
20889     cat >> confdefs.h <<\EOF
20890 #define wxUSE_HELP 1
20891 EOF
20892
20893     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
20894
20895     if test "$wxUSE_MSW" = 1; then
20896       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
20897         cat >> confdefs.h <<\EOF
20898 #define wxUSE_MS_HTML_HELP 1
20899 EOF
20900
20901       fi
20902     fi
20903
20904     if test "$wxUSE_WXHTML_HELP" = "yes"; then
20905       if test "$wxUSE_HTML" = "yes"; then
20906         cat >> confdefs.h <<\EOF
20907 #define wxUSE_WXHTML_HELP 1
20908 EOF
20909
20910       else
20911         echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
20912         wxUSE_WXHTML_HELP=no
20913       fi
20914     fi
20915 fi
20916
20917 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
20918     if test "$wxUSE_CONSTRAINTS" != "yes"; then
20919         echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
20920     else
20921         cat >> confdefs.h <<\EOF
20922 #define wxUSE_PRINTING_ARCHITECTURE 1
20923 EOF
20924
20925     fi
20926     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
20927 fi
20928
20929 if test "$wxUSE_PROLOGIO" = "yes" ; then
20930     cat >> confdefs.h <<\EOF
20931 #define wxUSE_PROLOGIO 1
20932 EOF
20933
20934     ALL_OBJECTS="$ALL_OBJECTS parser.o"
20935 fi
20936
20937 if test "$wxUSE_RESOURCES" = "yes" ; then
20938     if test "$wxUSE_NANOX" = "yes"; then
20939         echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
20940     else
20941         cat >> confdefs.h <<\EOF
20942 #define wxUSE_RESOURCES 1
20943 EOF
20944
20945         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
20946     fi
20947     if test "$wxUSE_PROLOGIO" != "yes" ; then
20948         ALL_OBJECTS="$ALL_OBJECTS parser.o"
20949     fi
20950 fi
20951
20952 if test "$wxUSE_X_RESOURCES" = "yes"; then
20953     cat >> confdefs.h <<\EOF
20954 #define wxUSE_X_RESOURCES 1
20955 EOF
20956
20957 fi
20958
20959
20960 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
20961                           -o "$wxUSE_CLIPBOARD"     = "yes" \
20962                           -o "$wxUSE_OLE"     = "yes" \
20963                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
20964     for ac_hdr in ole2.h
20965 do
20966 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20967 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20968 echo "configure:20969: checking for $ac_hdr" >&5
20969 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20970   echo $ac_n "(cached) $ac_c" 1>&6
20971 else
20972   cat > conftest.$ac_ext <<EOF
20973 #line 20974 "configure"
20974 #include "confdefs.h"
20975 #include <$ac_hdr>
20976 EOF
20977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20978 { (eval echo configure:20979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20979 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20980 if test -z "$ac_err"; then
20981   rm -rf conftest*
20982   eval "ac_cv_header_$ac_safe=yes"
20983 else
20984   echo "$ac_err" >&5
20985   echo "configure: failed program was:" >&5
20986   cat conftest.$ac_ext >&5
20987   rm -rf conftest*
20988   eval "ac_cv_header_$ac_safe=no"
20989 fi
20990 rm -f conftest*
20991 fi
20992 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20993   echo "$ac_t""yes" 1>&6
20994     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20995   cat >> confdefs.h <<EOF
20996 #define $ac_tr_hdr 1
20997 EOF
20998  
20999 else
21000   echo "$ac_t""no" 1>&6
21001 fi
21002 done
21003
21004
21005     if test "$ac_cv_header_ole2_h" = "yes" ; then
21006         if test "$GCC" = yes ; then
21007             
21008             ac_ext=C
21009 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21010 ac_cpp='$CXXCPP $CPPFLAGS'
21011 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21012 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21013 cross_compiling=$ac_cv_prog_cxx_cross
21014
21015
21016             echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
21017 echo "configure:21018: checking if g++ requires -fvtable-thunks" >&5
21018             cat > conftest.$ac_ext <<EOF
21019 #line 21020 "configure"
21020 #include "confdefs.h"
21021 #include <windows.h>
21022                             #include <ole2.h>
21023 int main() {
21024
21025 ; return 0; }
21026 EOF
21027 if { (eval echo configure:21028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21028   rm -rf conftest*
21029   echo "$ac_t""no" 1>&6
21030 else
21031   echo "configure: failed program was:" >&5
21032   cat conftest.$ac_ext >&5
21033   rm -rf conftest*
21034   echo "$ac_t""yes" 1>&6
21035                             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
21036 fi
21037 rm -f conftest*
21038             ac_ext=c
21039 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21040 ac_cpp='$CPP $CPPFLAGS'
21041 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21042 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21043 cross_compiling=$ac_cv_prog_cc_cross
21044
21045             ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
21046             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
21047             cat >> confdefs.h <<\EOF
21048 #define wxUSE_OLE 1
21049 EOF
21050
21051
21052         fi
21053
21054                 cat >> confdefs.h <<\EOF
21055 #define wxUSE_DATAOBJ 1
21056 EOF
21057
21058     else
21059         echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
21060
21061         wxUSE_CLIPBOARD=no
21062         wxUSE_DRAG_AND_DROP=no
21063         wxUSE_DATAOBJ=no
21064         wxUSE_OLE=no
21065     fi
21066
21067     if test "$wxUSE_METAFILE" = "yes"; then
21068         cat >> confdefs.h <<\EOF
21069 #define wxUSE_METAFILE 1
21070 EOF
21071
21072
21073                 cat >> confdefs.h <<\EOF
21074 #define wxUSE_ENH_METAFILE 1
21075 EOF
21076
21077     fi
21078 fi
21079
21080 if test "$wxUSE_IPC" = "yes"; then
21081     if test "$wxUSE_SOCKETS" != "yes"; then
21082         echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
21083     fi
21084
21085     cat >> confdefs.h <<\EOF
21086 #define wxUSE_IPC 1
21087 EOF
21088
21089 fi
21090
21091 if test "$wxUSE_CLIPBOARD" = "yes"; then
21092     if test "$wxUSE_MGL" = 1; then
21093         echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
21094         wxUSE_CLIPBOARD=no
21095     fi
21096
21097     if test "$wxUSE_CLIPBOARD" = "yes"; then
21098         cat >> confdefs.h <<\EOF
21099 #define wxUSE_CLIPBOARD 1
21100 EOF
21101
21102
21103                 cat >> confdefs.h <<\EOF
21104 #define wxUSE_DATAOBJ 1
21105 EOF
21106
21107     fi
21108 fi
21109
21110 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21111     if test "$wxUSE_GTK" = 1; then
21112         if test "$WXGTK12" != 1; then
21113             echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
21114             wxUSE_DRAG_AND_DROP=no
21115         fi
21116     fi
21117
21118     if test "$wxUSE_MOTIF" = 1; then
21119         echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
21120         wxUSE_DRAG_AND_DROP=no
21121     fi
21122
21123     if test "$wxUSE_X11" = 1; then
21124         echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
21125         wxUSE_DRAG_AND_DROP=no
21126     fi
21127
21128     if test "$wxUSE_MGL" = 1; then
21129         echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
21130         wxUSE_DRAG_AND_DROP=no
21131     fi
21132
21133     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
21134         cat >> confdefs.h <<\EOF
21135 #define wxUSE_DRAG_AND_DROP 1
21136 EOF
21137
21138         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21139     fi
21140
21141 fi
21142
21143 if test "$wxUSE_SPLINES" = "yes" ; then
21144   cat >> confdefs.h <<\EOF
21145 #define wxUSE_SPLINES 1
21146 EOF
21147
21148 fi
21149
21150
21151 USES_CONTROLS=0
21152 if test "$wxUSE_CONTROLS" = "yes"; then
21153   USES_CONTROLS=1
21154 fi
21155
21156 if test "$wxUSE_ACCEL" = "yes"; then
21157   cat >> confdefs.h <<\EOF
21158 #define wxUSE_ACCEL 1
21159 EOF
21160
21161   USES_CONTROLS=1
21162 fi
21163
21164 if test "$wxUSE_BUTTON" = "yes"; then
21165   cat >> confdefs.h <<\EOF
21166 #define wxUSE_BUTTON 1
21167 EOF
21168
21169   USES_CONTROLS=1
21170 fi
21171
21172 if test "$wxUSE_BMPBUTTON" = "yes"; then
21173   cat >> confdefs.h <<\EOF
21174 #define wxUSE_BMPBUTTON 1
21175 EOF
21176
21177   USES_CONTROLS=1
21178 fi
21179
21180 if test "$wxUSE_CALCTRL" = "yes"; then
21181   cat >> confdefs.h <<\EOF
21182 #define wxUSE_CALENDARCTRL 1
21183 EOF
21184
21185   USES_CONTROLS=1
21186   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
21187 fi
21188
21189 if test "$wxUSE_CARET" = "yes"; then
21190   cat >> confdefs.h <<\EOF
21191 #define wxUSE_CARET 1
21192 EOF
21193
21194   USES_CONTROLS=1
21195   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21196 fi
21197
21198 if test "$wxUSE_COMBOBOX" = "yes"; then
21199   cat >> confdefs.h <<\EOF
21200 #define wxUSE_COMBOBOX 1
21201 EOF
21202
21203   USES_CONTROLS=1
21204 fi
21205
21206 if test "$wxUSE_CHOICE" = "yes"; then
21207   cat >> confdefs.h <<\EOF
21208 #define wxUSE_CHOICE 1
21209 EOF
21210
21211   USES_CONTROLS=1
21212 fi
21213
21214 if test "$wxUSE_CHECKBOX" = "yes"; then
21215   cat >> confdefs.h <<\EOF
21216 #define wxUSE_CHECKBOX 1
21217 EOF
21218
21219   USES_CONTROLS=1
21220 fi
21221
21222 if test "$wxUSE_CHECKLST" = "yes"; then
21223   cat >> confdefs.h <<\EOF
21224 #define wxUSE_CHECKLISTBOX 1
21225 EOF
21226
21227   USES_CONTROLS=1
21228   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21229 fi
21230
21231 if test "$wxUSE_GAUGE" = "yes"; then
21232   cat >> confdefs.h <<\EOF
21233 #define wxUSE_GAUGE 1
21234 EOF
21235
21236   USES_CONTROLS=1
21237 fi
21238
21239 if test "$wxUSE_NEW_GRID" = "yes"; then
21240   wxUSE_GRID="yes"
21241   cat >> confdefs.h <<\EOF
21242 #define wxUSE_NEW_GRID 1
21243 EOF
21244
21245   USES_CONTROLS=1
21246   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
21247 fi
21248
21249 if test "$wxUSE_GRID" = "yes"; then
21250   cat >> confdefs.h <<\EOF
21251 #define wxUSE_GRID 1
21252 EOF
21253
21254   USES_CONTROLS=1
21255   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
21256 fi
21257
21258 if test "$wxUSE_IMAGLIST" = "yes"; then
21259     cat >> confdefs.h <<\EOF
21260 #define wxUSE_IMAGLIST 1
21261 EOF
21262
21263 fi
21264
21265 if test "$wxUSE_LISTBOX" = "yes"; then
21266     cat >> confdefs.h <<\EOF
21267 #define wxUSE_LISTBOX 1
21268 EOF
21269
21270     USES_CONTROLS=1
21271 fi
21272
21273 if test "$wxUSE_LISTCTRL" = "yes"; then
21274     if test "$wxUSE_IMAGLIST" = "yes"; then
21275         cat >> confdefs.h <<\EOF
21276 #define wxUSE_LISTCTRL 1
21277 EOF
21278
21279         USES_CONTROLS=1
21280         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21281     else
21282         echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
21283     fi
21284 fi
21285
21286 if test "$wxUSE_NOTEBOOK" = "yes"; then
21287     cat >> confdefs.h <<\EOF
21288 #define wxUSE_NOTEBOOK 1
21289 EOF
21290
21291     USES_CONTROLS=1
21292     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21293 fi
21294
21295 if test "$wxUSE_PROPSHEET" = "yes"; then
21296     cat >> confdefs.h <<\EOF
21297 #define wxUSE_PROPSHEET 1
21298 EOF
21299
21300     USES_CONTROLS=1
21301     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
21302 fi
21303
21304 if test "$wxUSE_RADIOBOX" = "yes"; then
21305     cat >> confdefs.h <<\EOF
21306 #define wxUSE_RADIOBOX 1
21307 EOF
21308
21309     USES_CONTROLS=1
21310 fi
21311
21312 if test "$wxUSE_RADIOBTN" = "yes"; then
21313     cat >> confdefs.h <<\EOF
21314 #define wxUSE_RADIOBTN 1
21315 EOF
21316
21317     USES_CONTROLS=1
21318 fi
21319
21320 if test "$wxUSE_SASH" = "yes"; then
21321     cat >> confdefs.h <<\EOF
21322 #define wxUSE_SASH 1
21323 EOF
21324
21325     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21326 fi
21327
21328 if test "$wxUSE_SCROLLBAR" = "yes"; then
21329     cat >> confdefs.h <<\EOF
21330 #define wxUSE_SCROLLBAR 1
21331 EOF
21332
21333     USES_CONTROLS=1
21334     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
21335 fi
21336
21337 if test "$wxUSE_SLIDER" = "yes"; then
21338     cat >> confdefs.h <<\EOF
21339 #define wxUSE_SLIDER 1
21340 EOF
21341
21342     USES_CONTROLS=1
21343 fi
21344
21345 if test "$wxUSE_SPINBTN" = "yes"; then
21346     cat >> confdefs.h <<\EOF
21347 #define wxUSE_SPINBTN 1
21348 EOF
21349
21350     USES_CONTROLS=1
21351 fi
21352
21353 if test "$wxUSE_SPINCTRL" = "yes"; then
21354     cat >> confdefs.h <<\EOF
21355 #define wxUSE_SPINCTRL 1
21356 EOF
21357
21358     USES_CONTROLS=1
21359 fi
21360
21361 if test "$wxUSE_SPLITTER" = "yes"; then
21362     cat >> confdefs.h <<\EOF
21363 #define wxUSE_SPLITTER 1
21364 EOF
21365
21366     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21367 fi
21368
21369 if test "$wxUSE_STATBMP" = "yes"; then
21370     cat >> confdefs.h <<\EOF
21371 #define wxUSE_STATBMP 1
21372 EOF
21373
21374     USES_CONTROLS=1
21375 fi
21376
21377 if test "$wxUSE_STATBOX" = "yes"; then
21378     cat >> confdefs.h <<\EOF
21379 #define wxUSE_STATBOX 1
21380 EOF
21381
21382     USES_CONTROLS=1
21383 fi
21384
21385 if test "$wxUSE_STATTEXT" = "yes"; then
21386     cat >> confdefs.h <<\EOF
21387 #define wxUSE_STATTEXT 1
21388 EOF
21389
21390     USES_CONTROLS=1
21391 fi
21392
21393 if test "$wxUSE_STATLINE" = "yes"; then
21394     cat >> confdefs.h <<\EOF
21395 #define wxUSE_STATLINE 1
21396 EOF
21397
21398     USES_CONTROLS=1
21399 fi
21400
21401 if test "$wxUSE_STATUSBAR" = "yes"; then
21402     cat >> confdefs.h <<\EOF
21403 #define wxUSE_STATUSBAR 1
21404 EOF
21405
21406     USES_CONTROLS=1
21407
21408     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
21409 fi
21410
21411 if test "$wxUSE_TABDIALOG" = "yes"; then
21412     cat >> confdefs.h <<\EOF
21413 #define wxUSE_TAB_DIALOG 1
21414 EOF
21415
21416     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21417 fi
21418
21419 if test "$wxUSE_TEXTCTRL" = "yes"; then
21420     cat >> confdefs.h <<\EOF
21421 #define wxUSE_TEXTCTRL 1
21422 EOF
21423
21424     USES_CONTROLS=1
21425     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21426 fi
21427
21428 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21429     if test "$wxUSE_MAC" = 1; then
21430         echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
21431         wxUSE_TOGGLEBTN=no
21432     fi
21433     if test "$wxUSE_UNIVERSAL" = "yes"; then
21434         echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
21435         wxUSE_TOGGLEBTN=no
21436     fi
21437
21438     if test "$wxUSE_TOGGLEBTN" = "yes"; then
21439         cat >> confdefs.h <<\EOF
21440 #define wxUSE_TOGGLEBTN 1
21441 EOF
21442
21443         USES_CONTROLS=1
21444     fi
21445 fi
21446
21447 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
21448     cat >> confdefs.h <<\EOF
21449 #define wxUSE_TOOLBAR_SIMPLE 1
21450 EOF
21451
21452     wxUSE_TOOLBAR="yes"
21453     USES_CONTROLS=1
21454 fi
21455
21456 if test "$wxUSE_TOOLBAR" = "yes"; then
21457     cat >> confdefs.h <<\EOF
21458 #define wxUSE_TOOLBAR 1
21459 EOF
21460
21461     USES_CONTROLS=1
21462
21463         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21464         wxUSE_TOOLBAR_NATIVE="yes"
21465     fi
21466
21467     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
21468         cat >> confdefs.h <<\EOF
21469 #define wxUSE_TOOLBAR_NATIVE 1
21470 EOF
21471
21472         USES_CONTROLS=1
21473     fi
21474
21475     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
21476 fi
21477
21478 if test "$wxUSE_TOOLTIPS" = "yes"; then
21479     if test "$wxUSE_MOTIF" = 1; then
21480         echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
21481     else
21482         if test "$wxUSE_UNIVERSAL" = "yes"; then
21483             echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
21484         else
21485             cat >> confdefs.h <<\EOF
21486 #define wxUSE_TOOLTIPS 1
21487 EOF
21488
21489         fi
21490     fi
21491 fi
21492
21493 if test "$wxUSE_TREECTRL" = "yes"; then
21494     if test "$wxUSE_IMAGLIST" = "yes"; then
21495         cat >> confdefs.h <<\EOF
21496 #define wxUSE_TREECTRL 1
21497 EOF
21498
21499         USES_CONTROLS=1
21500         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21501     else
21502         echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
21503     fi
21504 fi
21505
21506 if test "$wxUSE_POPUPWIN" = "yes"; then
21507     if test "$wxUSE_MAC" = 1; then
21508         echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
21509     else
21510         if test "$wxUSE_MOTIF" = 1; then
21511             echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
21512         else
21513             if test "$wxUSE_PM" = 1; then
21514                 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
21515             else
21516                 cat >> confdefs.h <<\EOF
21517 #define wxUSE_POPUPWIN 1
21518 EOF
21519
21520
21521                 USES_CONTROLS=1
21522             fi
21523         fi
21524     fi
21525 fi
21526
21527 if test "$wxUSE_TIPWINDOW" = "yes"; then
21528     if test "$wxUSE_PM" = 1; then
21529         echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
21530     else
21531         cat >> confdefs.h <<\EOF
21532 #define wxUSE_TIPWINDOW 1
21533 EOF
21534
21535     fi
21536 fi
21537
21538 if test "$USES_CONTROLS" = 1; then
21539     cat >> confdefs.h <<\EOF
21540 #define wxUSE_CONTROLS 1
21541 EOF
21542
21543 fi
21544
21545
21546 if test "$wxUSE_TREELAYOUT" = "yes"; then
21547     cat >> confdefs.h <<\EOF
21548 #define wxUSE_TREELAYOUT 1
21549 EOF
21550
21551     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
21552 fi
21553
21554 if test "$wxUSE_DRAGIMAGE" = "yes"; then
21555     cat >> confdefs.h <<\EOF
21556 #define wxUSE_DRAGIMAGE 1
21557 EOF
21558
21559     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21560 fi
21561
21562 if test "$wxUSE_MENUS" = "yes"; then
21563     cat >> confdefs.h <<\EOF
21564 #define wxUSE_MENUS 1
21565 EOF
21566
21567     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
21568 fi
21569
21570 if test "$wxUSE_METAFILE" = "yes"; then
21571     cat >> confdefs.h <<\EOF
21572 #define wxUSE_METAFILE 1
21573 EOF
21574
21575 fi
21576
21577 if test "$wxUSE_MIMETYPE" = "yes"; then
21578     cat >> confdefs.h <<\EOF
21579 #define wxUSE_MIMETYPE 1
21580 EOF
21581
21582 fi
21583
21584 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
21585     cat >> confdefs.h <<\EOF
21586 #define wxUSE_SYSTEM_OPTIONS 1
21587 EOF
21588
21589 if test "$TOOLKIT" = "MSW"; then
21590     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21591 fi
21592
21593 fi
21594
21595 if test "$wxUSE_PROTOCOL" = "yes"; then
21596     if test "$wxUSE_SOCKETS" != "yes"; then
21597         echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
21598         wxUSE_PROTOCOL=no
21599     fi
21600
21601     if test "$wxUSE_PROTOCOL" = "yes"; then
21602         cat >> confdefs.h <<\EOF
21603 #define wxUSE_PROTOCOL 1
21604 EOF
21605
21606
21607         if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
21608             cat >> confdefs.h <<\EOF
21609 #define wxUSE_PROTOCOL_HTTP 1
21610 EOF
21611
21612         fi
21613         if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
21614             cat >> confdefs.h <<\EOF
21615 #define wxUSE_PROTOCOL_FTP 1
21616 EOF
21617
21618         fi
21619         if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
21620             cat >> confdefs.h <<\EOF
21621 #define wxUSE_PROTOCOL_FILE 1
21622 EOF
21623
21624         fi
21625     fi
21626 fi
21627
21628 if test "$wxUSE_URL" = "yes"; then
21629     if test "$wxUSE_PROTOCOL" != "yes"; then
21630         echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
21631         wxUSE_URL=no
21632     fi
21633     if test "$wxUSE_URL" = "yes"; then
21634         cat >> confdefs.h <<\EOF
21635 #define wxUSE_URL 1
21636 EOF
21637
21638     fi
21639 fi
21640
21641 if test "$wxUSE_MINIFRAME" = "yes"; then
21642     cat >> confdefs.h <<\EOF
21643 #define wxUSE_MINIFRAME 1
21644 EOF
21645
21646     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21647 fi
21648
21649 if test "$wxUSE_HTML" = "yes"; then
21650     cat >> confdefs.h <<\EOF
21651 #define wxUSE_HTML 1
21652 EOF
21653
21654     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
21655 fi
21656
21657 if test "$wxUSE_VALIDATORS" = "yes"; then
21658     cat >> confdefs.h <<\EOF
21659 #define wxUSE_VALIDATORS 1
21660 EOF
21661
21662     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
21663 fi
21664
21665 if test "$wxUSE_PALETTE" = "yes" ; then
21666   cat >> confdefs.h <<\EOF
21667 #define wxUSE_PALETTE 1
21668 EOF
21669
21670 fi
21671
21672 if test "$wxUSE_IMAGE" = "yes" ; then
21673   cat >> confdefs.h <<\EOF
21674 #define wxUSE_IMAGE 1
21675 EOF
21676
21677 fi
21678
21679 if test "$wxUSE_GIF" = "yes" ; then
21680   cat >> confdefs.h <<\EOF
21681 #define wxUSE_GIF 1
21682 EOF
21683
21684 fi
21685
21686 if test "$wxUSE_PCX" = "yes" ; then
21687   cat >> confdefs.h <<\EOF
21688 #define wxUSE_PCX 1
21689 EOF
21690
21691 fi
21692
21693 if test "$wxUSE_IFF" = "yes" ; then
21694   cat >> confdefs.h <<\EOF
21695 #define wxUSE_IFF 1
21696 EOF
21697
21698 fi
21699
21700 if test "$wxUSE_PNM" = "yes" ; then
21701   cat >> confdefs.h <<\EOF
21702 #define wxUSE_PNM 1
21703 EOF
21704
21705 fi
21706
21707 if test "$wxUSE_XPM" = "yes" ; then
21708   cat >> confdefs.h <<\EOF
21709 #define wxUSE_XPM 1
21710 EOF
21711
21712 fi
21713
21714 if test "$wxUSE_ICO_CUR" = "yes" ; then
21715   cat >> confdefs.h <<\EOF
21716 #define wxUSE_ICO_CUR 1
21717 EOF
21718
21719 fi
21720
21721 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
21722     LIBS=" -lunicows $LIBS"
21723 fi
21724
21725
21726 if test "$wxUSE_CHOICEDLG" = "yes"; then
21727     cat >> confdefs.h <<\EOF
21728 #define wxUSE_CHOICEDLG 1
21729 EOF
21730
21731 fi
21732
21733 if test "$wxUSE_COLOURDLG" = "yes"; then
21734     cat >> confdefs.h <<\EOF
21735 #define wxUSE_COLOURDLG 1
21736 EOF
21737
21738 fi
21739
21740 if test "$wxUSE_FILEDLG" = "yes"; then
21741     cat >> confdefs.h <<\EOF
21742 #define wxUSE_FILEDLG 1
21743 EOF
21744
21745 fi
21746
21747 if test "$wxUSE_FINDREPLDLG" = "yes"; then
21748     cat >> confdefs.h <<\EOF
21749 #define wxUSE_FINDREPLDLG 1
21750 EOF
21751
21752 fi
21753
21754 if test "$wxUSE_FONTDLG" = "yes"; then
21755     cat >> confdefs.h <<\EOF
21756 #define wxUSE_FONTDLG 1
21757 EOF
21758
21759 fi
21760
21761 if test "$wxUSE_DIRDLG" = "yes"; then
21762     if test "$wxUSE_TREECTRL" != "yes"; then
21763         echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
21764     else
21765         cat >> confdefs.h <<\EOF
21766 #define wxUSE_DIRDLG 1
21767 EOF
21768
21769     fi
21770 fi
21771
21772 if test "$wxUSE_MSGDLG" = "yes"; then
21773     cat >> confdefs.h <<\EOF
21774 #define wxUSE_MSGDLG 1
21775 EOF
21776
21777 fi
21778
21779 if test "$wxUSE_NUMBERDLG" = "yes"; then
21780     cat >> confdefs.h <<\EOF
21781 #define wxUSE_NUMBERDLG 1
21782 EOF
21783
21784 fi
21785
21786 if test "$wxUSE_PROGRESSDLG" = "yes"; then
21787     if test "$wxUSE_CONSTRAINTS" != "yes"; then
21788        echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
21789     else
21790         cat >> confdefs.h <<\EOF
21791 #define wxUSE_PROGRESSDLG 1
21792 EOF
21793
21794     fi
21795 fi
21796
21797 if test "$wxUSE_SPLASH" = "yes"; then
21798     cat >> confdefs.h <<\EOF
21799 #define wxUSE_SPLASH 1
21800 EOF
21801
21802 fi
21803
21804 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
21805     if test "$wxUSE_CONSTRAINTS" != "yes"; then
21806        echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
21807     else
21808         cat >> confdefs.h <<\EOF
21809 #define wxUSE_STARTUP_TIPS 1
21810 EOF
21811
21812     fi
21813 fi
21814
21815 if test "$wxUSE_TEXTDLG" = "yes"; then
21816     cat >> confdefs.h <<\EOF
21817 #define wxUSE_TEXTDLG 1
21818 EOF
21819
21820 fi
21821
21822 if test "$wxUSE_WIZARDDLG" = "yes"; then
21823     cat >> confdefs.h <<\EOF
21824 #define wxUSE_WIZARDDLG 1
21825 EOF
21826
21827     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
21828 fi
21829
21830
21831 if test "$cross_compiling" = "yes"; then
21832         OSINFO="\"$host\""
21833 else
21834         OSINFO=`uname -s -r -m`
21835     OSINFO="\"$OSINFO\""
21836 fi
21837
21838 cat >> confdefs.h <<EOF
21839 #define WXWIN_OS_DESCRIPTION $OSINFO
21840 EOF
21841
21842
21843
21844 if test "x$prefix" != "xNONE"; then
21845     wxPREFIX=$prefix
21846 else
21847     wxPREFIX=$ac_default_prefix
21848 fi
21849
21850 cat >> confdefs.h <<EOF
21851 #define wxINSTALL_PREFIX "$wxPREFIX"
21852 EOF
21853
21854
21855 top_builddir=`pwd`
21856
21857
21858
21859
21860 if test "$wxUSE_MAC" = 1 ; then
21861     LDFLAGS="$LDFLAGS -framework Carbon -framework System"
21862 fi
21863
21864
21865 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
21866
21867 have_cos=0
21868 have_floor=0
21869 for ac_func in cos
21870 do
21871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21872 echo "configure:21873: checking for $ac_func" >&5
21873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21874   echo $ac_n "(cached) $ac_c" 1>&6
21875 else
21876   cat > conftest.$ac_ext <<EOF
21877 #line 21878 "configure"
21878 #include "confdefs.h"
21879 /* System header to define __stub macros and hopefully few prototypes,
21880     which can conflict with char $ac_func(); below.  */
21881 #include <assert.h>
21882 /* Override any gcc2 internal prototype to avoid an error.  */
21883 /* We use char because int might match the return type of a gcc2
21884     builtin and then its argument prototype would still apply.  */
21885 char $ac_func();
21886
21887 int main() {
21888
21889 /* The GNU C library defines this for functions which it implements
21890     to always fail with ENOSYS.  Some functions are actually named
21891     something starting with __ and the normal name is an alias.  */
21892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21893 choke me
21894 #else
21895 $ac_func();
21896 #endif
21897
21898 ; return 0; }
21899 EOF
21900 if { (eval echo configure:21901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21901   rm -rf conftest*
21902   eval "ac_cv_func_$ac_func=yes"
21903 else
21904   echo "configure: failed program was:" >&5
21905   cat conftest.$ac_ext >&5
21906   rm -rf conftest*
21907   eval "ac_cv_func_$ac_func=no"
21908 fi
21909 rm -f conftest*
21910 fi
21911
21912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21913   echo "$ac_t""yes" 1>&6
21914     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21915   cat >> confdefs.h <<EOF
21916 #define $ac_tr_func 1
21917 EOF
21918  have_cos=1
21919 else
21920   echo "$ac_t""no" 1>&6
21921 fi
21922 done
21923
21924 for ac_func in floor
21925 do
21926 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21927 echo "configure:21928: checking for $ac_func" >&5
21928 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21929   echo $ac_n "(cached) $ac_c" 1>&6
21930 else
21931   cat > conftest.$ac_ext <<EOF
21932 #line 21933 "configure"
21933 #include "confdefs.h"
21934 /* System header to define __stub macros and hopefully few prototypes,
21935     which can conflict with char $ac_func(); below.  */
21936 #include <assert.h>
21937 /* Override any gcc2 internal prototype to avoid an error.  */
21938 /* We use char because int might match the return type of a gcc2
21939     builtin and then its argument prototype would still apply.  */
21940 char $ac_func();
21941
21942 int main() {
21943
21944 /* The GNU C library defines this for functions which it implements
21945     to always fail with ENOSYS.  Some functions are actually named
21946     something starting with __ and the normal name is an alias.  */
21947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21948 choke me
21949 #else
21950 $ac_func();
21951 #endif
21952
21953 ; return 0; }
21954 EOF
21955 if { (eval echo configure:21956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21956   rm -rf conftest*
21957   eval "ac_cv_func_$ac_func=yes"
21958 else
21959   echo "configure: failed program was:" >&5
21960   cat conftest.$ac_ext >&5
21961   rm -rf conftest*
21962   eval "ac_cv_func_$ac_func=no"
21963 fi
21964 rm -f conftest*
21965 fi
21966
21967 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21968   echo "$ac_t""yes" 1>&6
21969     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21970   cat >> confdefs.h <<EOF
21971 #define $ac_tr_func 1
21972 EOF
21973  have_floor=1
21974 else
21975   echo "$ac_t""no" 1>&6
21976 fi
21977 done
21978
21979 echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
21980 echo "configure:21981: checking if floating point functions link without -lm" >&5
21981 if test "$have_cos" = 1 -a "$have_floor" = 1; then
21982     echo "$ac_t""yes" 1>&6
21983 else
21984     echo "$ac_t""no" 1>&6
21985     LIBS="$LIBS -lm"
21986     # use different functions to avoid configure caching
21987     have_sin=0
21988     have_ceil=0
21989     for ac_func in sin
21990 do
21991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21992 echo "configure:21993: checking for $ac_func" >&5
21993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21994   echo $ac_n "(cached) $ac_c" 1>&6
21995 else
21996   cat > conftest.$ac_ext <<EOF
21997 #line 21998 "configure"
21998 #include "confdefs.h"
21999 /* System header to define __stub macros and hopefully few prototypes,
22000     which can conflict with char $ac_func(); below.  */
22001 #include <assert.h>
22002 /* Override any gcc2 internal prototype to avoid an error.  */
22003 /* We use char because int might match the return type of a gcc2
22004     builtin and then its argument prototype would still apply.  */
22005 char $ac_func();
22006
22007 int main() {
22008
22009 /* The GNU C library defines this for functions which it implements
22010     to always fail with ENOSYS.  Some functions are actually named
22011     something starting with __ and the normal name is an alias.  */
22012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22013 choke me
22014 #else
22015 $ac_func();
22016 #endif
22017
22018 ; return 0; }
22019 EOF
22020 if { (eval echo configure:22021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22021   rm -rf conftest*
22022   eval "ac_cv_func_$ac_func=yes"
22023 else
22024   echo "configure: failed program was:" >&5
22025   cat conftest.$ac_ext >&5
22026   rm -rf conftest*
22027   eval "ac_cv_func_$ac_func=no"
22028 fi
22029 rm -f conftest*
22030 fi
22031
22032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22033   echo "$ac_t""yes" 1>&6
22034     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22035   cat >> confdefs.h <<EOF
22036 #define $ac_tr_func 1
22037 EOF
22038  have_sin=1
22039 else
22040   echo "$ac_t""no" 1>&6
22041 fi
22042 done
22043
22044     for ac_func in ceil
22045 do
22046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22047 echo "configure:22048: checking for $ac_func" >&5
22048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22049   echo $ac_n "(cached) $ac_c" 1>&6
22050 else
22051   cat > conftest.$ac_ext <<EOF
22052 #line 22053 "configure"
22053 #include "confdefs.h"
22054 /* System header to define __stub macros and hopefully few prototypes,
22055     which can conflict with char $ac_func(); below.  */
22056 #include <assert.h>
22057 /* Override any gcc2 internal prototype to avoid an error.  */
22058 /* We use char because int might match the return type of a gcc2
22059     builtin and then its argument prototype would still apply.  */
22060 char $ac_func();
22061
22062 int main() {
22063
22064 /* The GNU C library defines this for functions which it implements
22065     to always fail with ENOSYS.  Some functions are actually named
22066     something starting with __ and the normal name is an alias.  */
22067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22068 choke me
22069 #else
22070 $ac_func();
22071 #endif
22072
22073 ; return 0; }
22074 EOF
22075 if { (eval echo configure:22076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22076   rm -rf conftest*
22077   eval "ac_cv_func_$ac_func=yes"
22078 else
22079   echo "configure: failed program was:" >&5
22080   cat conftest.$ac_ext >&5
22081   rm -rf conftest*
22082   eval "ac_cv_func_$ac_func=no"
22083 fi
22084 rm -f conftest*
22085 fi
22086
22087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22088   echo "$ac_t""yes" 1>&6
22089     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22090   cat >> confdefs.h <<EOF
22091 #define $ac_tr_func 1
22092 EOF
22093  have_ceil=1
22094 else
22095   echo "$ac_t""no" 1>&6
22096 fi
22097 done
22098
22099     echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
22100 echo "configure:22101: checking if floating point functions link with -lm" >&5
22101     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22102         echo "$ac_t""yes" 1>&6
22103     else
22104         echo "$ac_t""no" 1>&6
22105         # not sure we should warn the user, crash, etc.
22106     fi
22107 fi
22108
22109 if test "$wxUSE_GUI" = "yes"; then
22110
22111     LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22112
22113         
22114             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22115                      drawing dynamic erase event exec font image \
22116                      minimal propsize rotate widgets"
22117
22118         CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22119 else
22120     SAMPLES_SUBDIRS="console"
22121 fi
22122
22123
22124 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22125 -I\${top_srcdir}/include \
22126 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22127 $TOOLKIT_INCLUDE"
22128
22129 if test "$wxUSE_GTK" = 1; then
22130     WXCONFIG_INCLUDE=
22131 else
22132     WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22133 fi
22134
22135 if test "$GXX" = yes ; then
22136         CXXWARNINGS="-Wall"
22137         
22138             if test "$wxUSE_NO_DEPS" = "no" ; then
22139         CFLAGS="-MMD $CFLAGS"
22140         CXXFLAGS="-MMD $CXXFLAGS"
22141     fi
22142 fi
22143
22144 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
22145
22146 CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
22147 CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22148 CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22149 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22150
22151 LDFLAGS="$LDFLAGS $PROFILE"
22152
22153 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
22255 echo "configure:22256: checking whether ${MAKE-make} sets \${MAKE}" >&5
22256 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22257 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22258   echo $ac_n "(cached) $ac_c" 1>&6
22259 else
22260   cat > conftestmake <<\EOF
22261 all:
22262         @echo 'ac_maketemp="${MAKE}"'
22263 EOF
22264 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22265 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
22266 if test -n "$ac_maketemp"; then
22267   eval ac_cv_prog_make_${ac_make}_set=yes
22268 else
22269   eval ac_cv_prog_make_${ac_make}_set=no
22270 fi
22271 rm -f conftestmake
22272 fi
22273 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
22274   echo "$ac_t""yes" 1>&6
22275   SET_MAKE=
22276 else
22277   echo "$ac_t""no" 1>&6
22278   SET_MAKE="MAKE=${MAKE-make}"
22279 fi
22280
22281
22282 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22283     mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
22284 fi
22285
22286
22287
22288 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22289 wx_cv_if_gnu_make=$IF_GNU_MAKE
22290 wx_cv_path_ifs=$PATH_IFS
22291 wx_cv_program_ext=$PROGRAM_EXT
22292 wx_cv_target_library=$WX_TARGET_LIBRARY
22293 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22294 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
22295 wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22296 wx_cv_release=${WX_RELEASE}
22297 wx_cv_current=${WX_CURRENT}
22298 wx_cv_revision=${WX_REVISION}
22299 wx_cv_age=${WX_AGE}
22300 wx_cv_use_gui=${USE_GUI}
22301 wx_cv_use_resources=${wxUSE_RESOURCES}
22302 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22303        wx_cv_path_ifs wx_cv_program_ext \
22304        wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
22305        wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
22306        wx_cv_use_gui wx_cv_use_resources
22307
22308 subdirs="demos samples utils contrib"
22309
22310
22311 trap '' 1 2 15
22312 cat > confcache <<\EOF
22313 # This file is a shell script that caches the results of configure
22314 # tests run on this system so they can be shared between configure
22315 # scripts and configure runs.  It is not useful on other systems.
22316 # If it contains results you don't want to keep, you may remove or edit it.
22317 #
22318 # By default, configure uses ./config.cache as the cache file,
22319 # creating it if it does not exist already.  You can give configure
22320 # the --cache-file=FILE option to use a different cache file; that is
22321 # what configure does when it calls configure scripts in
22322 # subdirectories, so they share the cache.
22323 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22324 # config.status only pays attention to the cache file if you give it the
22325 # --recheck option to rerun configure.
22326 #
22327 EOF
22328 # The following way of writing the cache mishandles newlines in values,
22329 # but we know of no workaround that is simple, portable, and efficient.
22330 # So, don't put newlines in cache variables' values.
22331 # Ultrix sh set writes to stderr and can't be redirected directly,
22332 # and sets the high bit in the cache file unless we assign to the vars.
22333 (set) 2>&1 |
22334   case `(ac_space=' '; set | grep ac_space) 2>&1` in
22335   *ac_space=\ *)
22336     # `set' does not quote correctly, so add quotes (double-quote substitution
22337     # turns \\\\ into \\, and sed turns \\ into \).
22338     sed -n \
22339       -e "s/'/'\\\\''/g" \
22340       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22341     ;;
22342   *)
22343     # `set' quotes correctly as required by POSIX, so do not add quotes.
22344     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22345     ;;
22346   esac >> confcache
22347 if cmp -s $cache_file confcache; then
22348   :
22349 else
22350   if test -w $cache_file; then
22351     echo "updating cache $cache_file"
22352     cat confcache > $cache_file
22353   else
22354     echo "not updating unwritable cache $cache_file"
22355   fi
22356 fi
22357 rm -f confcache
22358
22359 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22360
22361 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22362 # Let make expand exec_prefix.
22363 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22364
22365 # Any assignment to VPATH causes Sun make to only execute
22366 # the first set of double-colon rules, so remove it if not needed.
22367 # If there is a colon in the path, we need to keep it.
22368 if test "x$srcdir" = x.; then
22369   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
22370 fi
22371
22372 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22373
22374 DEFS=-DHAVE_CONFIG_H
22375
22376 # Without the "./", some shells look in PATH for config.status.
22377 : ${CONFIG_STATUS=./config.status}
22378
22379 echo creating $CONFIG_STATUS
22380 rm -f $CONFIG_STATUS
22381 cat > $CONFIG_STATUS <<EOF
22382 #! /bin/sh
22383 # Generated automatically by configure.
22384 # Run this file to recreate the current configuration.
22385 # This directory was configured as follows,
22386 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22387 #
22388 # $0 $ac_configure_args
22389 #
22390 # Compiler output produced by configure, useful for debugging
22391 # configure, is in ./config.log if it exists.
22392
22393 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22394 for ac_option
22395 do
22396   case "\$ac_option" in
22397   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22398     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22399     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22400   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22401     echo "$CONFIG_STATUS generated by autoconf version 2.13"
22402     exit 0 ;;
22403   -help | --help | --hel | --he | --h)
22404     echo "\$ac_cs_usage"; exit 0 ;;
22405   *) echo "\$ac_cs_usage"; exit 1 ;;
22406   esac
22407 done
22408
22409 ac_given_srcdir=$srcdir
22410 ac_given_INSTALL="$INSTALL"
22411
22412 trap 'rm -fr `echo "
22413             wx-config
22414             version-script
22415             src/make.env
22416             src/makeprog.env
22417             src/makelib.env
22418             Makefile
22419            setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22420 EOF
22421 cat >> $CONFIG_STATUS <<EOF
22422
22423 # Protect against being on the right side of a sed subst in config.status.
22424 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22425  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22426 $ac_vpsub
22427 $extrasub
22428 s%@SHELL@%$SHELL%g
22429 s%@CFLAGS@%$CFLAGS%g
22430 s%@CPPFLAGS@%$CPPFLAGS%g
22431 s%@CXXFLAGS@%$CXXFLAGS%g
22432 s%@FFLAGS@%$FFLAGS%g
22433 s%@DEFS@%$DEFS%g
22434 s%@LDFLAGS@%$LDFLAGS%g
22435 s%@LIBS@%$LIBS%g
22436 s%@exec_prefix@%$exec_prefix%g
22437 s%@prefix@%$prefix%g
22438 s%@program_transform_name@%$program_transform_name%g
22439 s%@bindir@%$bindir%g
22440 s%@sbindir@%$sbindir%g
22441 s%@libexecdir@%$libexecdir%g
22442 s%@datadir@%$datadir%g
22443 s%@sysconfdir@%$sysconfdir%g
22444 s%@sharedstatedir@%$sharedstatedir%g
22445 s%@localstatedir@%$localstatedir%g
22446 s%@libdir@%$libdir%g
22447 s%@includedir@%$includedir%g
22448 s%@oldincludedir@%$oldincludedir%g
22449 s%@infodir@%$infodir%g
22450 s%@mandir@%$mandir%g
22451 s%@host@%$host%g
22452 s%@host_alias@%$host_alias%g
22453 s%@host_cpu@%$host_cpu%g
22454 s%@host_vendor@%$host_vendor%g
22455 s%@host_os@%$host_os%g
22456 s%@target@%$target%g
22457 s%@target_alias@%$target_alias%g
22458 s%@target_cpu@%$target_cpu%g
22459 s%@target_vendor@%$target_vendor%g
22460 s%@target_os@%$target_os%g
22461 s%@build@%$build%g
22462 s%@build_alias@%$build_alias%g
22463 s%@build_cpu@%$build_cpu%g
22464 s%@build_vendor@%$build_vendor%g
22465 s%@build_os@%$build_os%g
22466 s%@CC@%$CC%g
22467 s%@CPP@%$CPP%g
22468 s%@CXX@%$CXX%g
22469 s%@RANLIB@%$RANLIB%g
22470 s%@AR@%$AR%g
22471 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22472 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22473 s%@INSTALL_DATA@%$INSTALL_DATA%g
22474 s%@STRIP@%$STRIP%g
22475 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22476 s%@YACC@%$YACC%g
22477 s%@LEX@%$LEX%g
22478 s%@LEXLIB@%$LEXLIB%g
22479 s%@LN_S@%$LN_S%g
22480 s%@CXXCPP@%$CXXCPP%g
22481 s%@PKG_CONFIG@%$PKG_CONFIG%g
22482 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22483 s%@GTK_LIBS@%$GTK_LIBS%g
22484 s%@GTK_CONFIG@%$GTK_CONFIG%g
22485 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22486 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22487 s%@X_CFLAGS@%$X_CFLAGS%g
22488 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22489 s%@X_LIBS@%$X_LIBS%g
22490 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
22491 s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22492 s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22493 s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22494 s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
22495 s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22496 s%@RESCOMP@%$RESCOMP%g
22497 s%@DEREZ@%$DEREZ%g
22498 s%@SETFILE@%$SETFILE%g
22499 s%@LIBICONV@%$LIBICONV%g
22500 s%@LEX_STEM@%$LEX_STEM%g
22501 s%@PATH_IFS@%$PATH_IFS%g
22502 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22503 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22504 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22505 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22506 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
22507 s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
22508 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22509 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22510 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22511 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22512 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22513 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22514 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22515 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22516 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22517 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22518 s%@WX_ALL@%$WX_ALL%g
22519 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22520 s%@SHARED_LD@%$SHARED_LD%g
22521 s%@PIC_FLAG@%$PIC_FLAG%g
22522 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22523 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22524 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22525 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22526 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22527 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
22528 s%@STATIC_FLAG@%$STATIC_FLAG%g
22529 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22530 s%@USE_GUI@%$USE_GUI%g
22531 s%@AFMINSTALL@%$AFMINSTALL%g
22532 s%@WIN32INSTALL@%$WIN32INSTALL%g
22533 s%@TOOLKIT@%$TOOLKIT%g
22534 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22535 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22536 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22537 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22538 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
22539 s%@top_builddir@%$top_builddir%g
22540 s%@cross_compiling@%$cross_compiling%g
22541 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22542 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22543 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22544 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22545 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22546 s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
22547 s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
22548 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22549 s%@ALL_HEADERS@%$ALL_HEADERS%g
22550 s%@ALL_SOURCES@%$ALL_SOURCES%g
22551 s%@GUIDIST@%$GUIDIST%g
22552 s%@PORT_FILES@%$PORT_FILES%g
22553 s%@DISTDIR@%$DISTDIR%g
22554 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22555 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
22556 s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
22557 s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22558 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22559 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22560 s%@EXTRADEFS@%$EXTRADEFS%g
22561 s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
22562 s%@RESFLAGS@%$RESFLAGS%g
22563 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22564 s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22565 s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22566 s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22567 s%@LIBWXMACRES@%$LIBWXMACRES%g
22568 s%@MACRESCOMP@%$MACRESCOMP%g
22569 s%@MACSETFILE@%$MACSETFILE%g
22570 s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
22571 s%@GCC@%$GCC%g
22572 s%@DLLTOOL@%$DLLTOOL%g
22573 s%@AS@%$AS%g
22574 s%@NM@%$NM%g
22575 s%@LD@%$LD%g
22576 s%@MAKEINFO@%$MAKEINFO%g
22577 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
22578 s%@SET_MAKE@%$SET_MAKE%g
22579 s%@subdirs@%$subdirs%g
22580
22581 CEOF
22582 EOF
22583
22584 cat >> $CONFIG_STATUS <<\EOF
22585
22586 # Split the substitutions into bite-sized pieces for seds with
22587 # small command number limits, like on Digital OSF/1 and HP-UX.
22588 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22589 ac_file=1 # Number of current file.
22590 ac_beg=1 # First line for current file.
22591 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22592 ac_more_lines=:
22593 ac_sed_cmds=""
22594 while $ac_more_lines; do
22595   if test $ac_beg -gt 1; then
22596     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22597   else
22598     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22599   fi
22600   if test ! -s conftest.s$ac_file; then
22601     ac_more_lines=false
22602     rm -f conftest.s$ac_file
22603   else
22604     if test -z "$ac_sed_cmds"; then
22605       ac_sed_cmds="sed -f conftest.s$ac_file"
22606     else
22607       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22608     fi
22609     ac_file=`expr $ac_file + 1`
22610     ac_beg=$ac_end
22611     ac_end=`expr $ac_end + $ac_max_sed_cmds`
22612   fi
22613 done
22614 if test -z "$ac_sed_cmds"; then
22615   ac_sed_cmds=cat
22616 fi
22617 EOF
22618
22619 cat >> $CONFIG_STATUS <<EOF
22620
22621 CONFIG_FILES=\${CONFIG_FILES-"wx-config
22622             version-script
22623             src/make.env
22624             src/makeprog.env
22625             src/makelib.env
22626             Makefile
22627           "}
22628 EOF
22629 cat >> $CONFIG_STATUS <<\EOF
22630 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22631   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22632   case "$ac_file" in
22633   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22634        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22635   *) ac_file_in="${ac_file}.in" ;;
22636   esac
22637
22638   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22639
22640   # Remove last slash and all that follows it.  Not all systems have dirname.
22641   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22642   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22643     # The file is in a subdirectory.
22644     test ! -d "$ac_dir" && mkdir "$ac_dir"
22645     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22646     # A "../" for each directory in $ac_dir_suffix.
22647     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22648   else
22649     ac_dir_suffix= ac_dots=
22650   fi
22651
22652   case "$ac_given_srcdir" in
22653   .)  srcdir=.
22654       if test -z "$ac_dots"; then top_srcdir=.
22655       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22656   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22657   *) # Relative path.
22658     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22659     top_srcdir="$ac_dots$ac_given_srcdir" ;;
22660   esac
22661
22662   case "$ac_given_INSTALL" in
22663   [/$]*) INSTALL="$ac_given_INSTALL" ;;
22664   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22665   esac
22666
22667   echo creating "$ac_file"
22668   rm -f "$ac_file"
22669   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22670   case "$ac_file" in
22671   *Makefile*) ac_comsub="1i\\
22672 # $configure_input" ;;
22673   *) ac_comsub= ;;
22674   esac
22675
22676   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22677   sed -e "$ac_comsub
22678 s%@configure_input@%$configure_input%g
22679 s%@srcdir@%$srcdir%g
22680 s%@top_srcdir@%$top_srcdir%g
22681 s%@INSTALL@%$INSTALL%g
22682 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22683 fi; done
22684 rm -f conftest.s*
22685
22686 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22687 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22688 #
22689 # ac_d sets the value in "#define NAME VALUE" lines.
22690 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
22691 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
22692 ac_dC='\3'
22693 ac_dD='%g'
22694 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22695 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22696 ac_uB='\([      ]\)%\1#\2define\3'
22697 ac_uC=' '
22698 ac_uD='\4%g'
22699 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22700 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22701 ac_eB='$%\1#\2define\3'
22702 ac_eC=' '
22703 ac_eD='%g'
22704
22705 if test "${CONFIG_HEADERS+set}" != set; then
22706 EOF
22707 cat >> $CONFIG_STATUS <<EOF
22708   CONFIG_HEADERS="setup.h:setup.h.in"
22709 EOF
22710 cat >> $CONFIG_STATUS <<\EOF
22711 fi
22712 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22713   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22714   case "$ac_file" in
22715   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22716        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22717   *) ac_file_in="${ac_file}.in" ;;
22718   esac
22719
22720   echo creating $ac_file
22721
22722   rm -f conftest.frag conftest.in conftest.out
22723   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22724   cat $ac_file_inputs > conftest.in
22725
22726 EOF
22727
22728 # Transform confdefs.h into a sed script conftest.vals that substitutes
22729 # the proper values into config.h.in to produce config.h.  And first:
22730 # Protect against being on the right side of a sed subst in config.status.
22731 # Protect against being in an unquoted here document in config.status.
22732 rm -f conftest.vals
22733 cat > conftest.hdr <<\EOF
22734 s/[\\&%]/\\&/g
22735 s%[\\$`]%\\&%g
22736 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22737 s%ac_d%ac_u%gp
22738 s%ac_u%ac_e%gp
22739 EOF
22740 sed -n -f conftest.hdr confdefs.h > conftest.vals
22741 rm -f conftest.hdr
22742
22743 # This sed command replaces #undef with comments.  This is necessary, for
22744 # example, in the case of _POSIX_SOURCE, which is predefined and required
22745 # on some systems where configure will not decide to define it.
22746 cat >> conftest.vals <<\EOF
22747 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22748 EOF
22749
22750 # Break up conftest.vals because some shells have a limit on
22751 # the size of here documents, and old seds have small limits too.
22752
22753 rm -f conftest.tail
22754 while :
22755 do
22756   ac_lines=`grep -c . conftest.vals`
22757   # grep -c gives empty output for an empty file on some AIX systems.
22758   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22759   # Write a limited-size here document to conftest.frag.
22760   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22761   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22762   echo 'CEOF
22763   sed -f conftest.frag conftest.in > conftest.out
22764   rm -f conftest.in
22765   mv conftest.out conftest.in
22766 ' >> $CONFIG_STATUS
22767   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22768   rm -f conftest.vals
22769   mv conftest.tail conftest.vals
22770 done
22771 rm -f conftest.vals
22772
22773 cat >> $CONFIG_STATUS <<\EOF
22774   rm -f conftest.frag conftest.h
22775   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
22776   cat conftest.in >> conftest.h
22777   rm -f conftest.in
22778   if cmp -s $ac_file conftest.h 2>/dev/null; then
22779     echo "$ac_file is unchanged"
22780     rm -f conftest.h
22781   else
22782     # Remove last slash and all that follows it.  Not all systems have dirname.
22783       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22784       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22785       # The file is in a subdirectory.
22786       test ! -d "$ac_dir" && mkdir "$ac_dir"
22787     fi
22788     rm -f $ac_file
22789     mv conftest.h $ac_file
22790   fi
22791 fi; done
22792
22793 EOF
22794 cat >> $CONFIG_STATUS <<EOF
22795
22796             TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
22797             LN_S="${LN_S}"
22798           
22799          
22800 EOF
22801 cat >> $CONFIG_STATUS <<\EOF
22802
22803                                                                                                 if test ! -h wx-config; then
22804                 chmod +x wx-config
22805                 mv wx-config wx${TOOLCHAIN_NAME}-config
22806                 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
22807             fi
22808
22809             if test ! -d lib; then
22810               mkdir lib
22811             fi
22812             if test ! -d lib/wx; then
22813               mkdir lib/wx
22814             fi
22815             if test ! -d lib/wx/include; then
22816               mkdir lib/wx/include
22817             fi
22818             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
22819               mkdir lib/wx/include/${TOOLCHAIN_NAME}
22820             fi
22821             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
22822               mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
22823             fi
22824             if test -f setup.h; then
22825               mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
22826             fi
22827           
22828 exit 0
22829 EOF
22830 chmod +x $CONFIG_STATUS
22831 rm -fr confdefs* $ac_clean_files
22832 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22833
22834 if test "$no_recursion" != yes; then
22835
22836   # Remove --cache-file and --srcdir arguments so they do not pile up.
22837   ac_sub_configure_args=
22838   ac_prev=
22839   for ac_arg in $ac_configure_args; do
22840     if test -n "$ac_prev"; then
22841       ac_prev=
22842       continue
22843     fi
22844     case "$ac_arg" in
22845     -cache-file | --cache-file | --cache-fil | --cache-fi \
22846     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22847       ac_prev=cache_file ;;
22848     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22849     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
22850       ;;
22851     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22852       ac_prev=srcdir ;;
22853     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22854       ;;
22855     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
22856     esac
22857   done
22858
22859   for ac_config_dir in demos samples utils contrib; do
22860
22861     # Do not complain, so a configure script can configure whichever
22862     # parts of a large source tree are present.
22863     if test ! -d $srcdir/$ac_config_dir; then
22864       continue
22865     fi
22866
22867     echo configuring in $ac_config_dir
22868
22869     case "$srcdir" in
22870     .) ;;
22871     *)
22872       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
22873       else
22874         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
22875       fi
22876       ;;
22877     esac
22878
22879     ac_popdir=`pwd`
22880     cd $ac_config_dir
22881
22882       # A "../" for each directory in /$ac_config_dir.
22883       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
22884
22885     case "$srcdir" in
22886     .) # No --srcdir option.  We are building in place.
22887       ac_sub_srcdir=$srcdir ;;
22888     /*) # Absolute path.
22889       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
22890     *) # Relative path.
22891       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
22892     esac
22893
22894     # Check for guested configure; otherwise get Cygnus style configure.
22895     if test -f $ac_sub_srcdir/configure; then
22896       ac_sub_configure=$ac_sub_srcdir/configure
22897     elif test -f $ac_sub_srcdir/configure.in; then
22898       ac_sub_configure=$ac_configure
22899     else
22900       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
22901       ac_sub_configure=
22902     fi
22903
22904     # The recursion is here.
22905     if test -n "$ac_sub_configure"; then
22906
22907       # Make the cache file name correct relative to the subdirectory.
22908       case "$cache_file" in
22909       /*) ac_sub_cache_file=$cache_file ;;
22910       *) # Relative path.
22911         ac_sub_cache_file="$ac_dots$cache_file" ;;
22912       esac
22913   case "$ac_given_INSTALL" in
22914         [/$]*) INSTALL="$ac_given_INSTALL" ;;
22915         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22916         esac
22917
22918       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
22919       # The eval makes quoting arguments work.
22920       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
22921       then :
22922       else
22923         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
22924       fi
22925     fi
22926
22927     cd $ac_popdir
22928   done
22929 fi
22930
22931
22932 echo
22933 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
22934 echo ""
22935 echo "  Which GUI toolkit should wxWindows use?                 ${TOOLKIT:-base only}"
22936
22937 echo "  Should wxWindows be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
22938 echo "  Should wxWindows be linked as a shared library?         ${wxUSE_SHARED:-no}"
22939 echo "  Should wxWindows be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
22940
22941 echo "  What level of wxWindows compatibility should be enabled?"
22942 echo "                                       wxWindows 2.0      ${WXWIN_COMPATIBILITY_2:-no}"
22943 echo "                                       wxWindows 2.2      ${WXWIN_COMPATIBILITY_2_2:-no}"
22944 echo "                                       wxWindows 2.4      ${WXWIN_COMPATIBILITY_2_4:-yes}"
22945
22946 echo "  Which libraries should wxWindows use?"
22947 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
22948 echo "                                       png                ${wxUSE_LIBPNG-none}"
22949 echo "                                       regex              ${wxUSE_REGEX}"
22950 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
22951 echo "                                       zlib               ${wxUSE_ZLIB}"
22952
22953 echo ""
22954