Allow compiling wxMotif/GTK/X11 for Cygwin/XFree
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59 # Configure paths for GTK+
60 # Owen Taylor     1997-2001
61
62
63
64 # Configure paths for GTK+
65 # Owen Taylor     97-11-3
66
67
68
69 # Guess values for system-dependent variables and create Makefiles.
70 # Generated automatically using autoconf version 2.13 
71 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
72 #
73 # This configure script is free software; the Free Software Foundation
74 # gives unlimited permission to copy, distribute and modify it.
75
76 # Defaults:
77 ac_help=
78 ac_default_prefix=/usr/local
79 # Any additions from configure.in:
80 ac_help="$ac_help
81   --enable-gui            use GUI classes"
82 ac_help="$ac_help
83   --enable-universal      use wxWindows GUI controls instead of native ones"
84 ac_help="$ac_help
85   --with-gtk              use GTK+"
86 ac_help="$ac_help
87   --with-motif            use Motif/Lesstif"
88 ac_help="$ac_help
89   --with-mac              use Mac OS X"
90 ac_help="$ac_help
91   --with-wine             use WINE"
92 ac_help="$ac_help
93   --with-msw              use MS-Windows"
94 ac_help="$ac_help
95   --with-pm               use OS/2 Presentation Manager"
96 ac_help="$ac_help
97   --with-mgl              use SciTech MGL"
98 ac_help="$ac_help
99   --with-microwin         use MicroWindows"
100 ac_help="$ac_help
101   --with-x11              use X11"
102 ac_help="$ac_help
103   --enable-nanox          use NanoX"
104 ac_help="$ac_help
105   --enable-gtk2           use GTK+ 2.0 if available (EXPERIMENTAL)"
106 ac_help="$ac_help
107   --with-libpng           use libpng (PNG image format)"
108 ac_help="$ac_help
109   --with-libjpeg          use libjpeg (JPEG file format)"
110 ac_help="$ac_help
111   --with-libtiff          use libtiff (TIFF file format)"
112 ac_help="$ac_help
113   --with-opengl           use OpenGL (or Mesa)"
114 ac_help="$ac_help
115   --with-dmalloc          use dmalloc library (http://dmalloc.com/)"
116 ac_help="$ac_help
117   --with-regex            enable support for wxRegEx class"
118 ac_help="$ac_help
119   --with-zlib             use zlib for LZW compression"
120 ac_help="$ac_help
121   --with-odbc             use the IODBC and wxODBC classes"
122 ac_help="$ac_help
123   --enable-shared         create shared library code"
124 ac_help="$ac_help
125   --enable-soname         set the DT_SONAME field in ELF shared libraries"
126 ac_help="$ac_help
127   --enable-optimise       create optimised code"
128 ac_help="$ac_help
129   --enable-debug          same as debug_flag and debug_info"
130 ac_help="$ac_help
131   --enable-precomp        enable use of precompiled headers (Mac OS X)"
132 ac_help="$ac_help
133   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)"
134 ac_help="$ac_help
135   --enable-debug_info     create code with debugging information"
136 ac_help="$ac_help
137   --enable-debug_gdb      create code with extra GDB debugging information"
138 ac_help="$ac_help
139   --enable-debug_cntxt    use wxDebugContext"
140 ac_help="$ac_help
141   --enable-mem_tracing    create code with memory tracing"
142 ac_help="$ac_help
143   --enable-profile        create code with profiling information"
144 ac_help="$ac_help
145   --enable-no_rtti        create code without RTTI information"
146 ac_help="$ac_help
147   --enable-no_exceptions  create code without C++ exceptions handling"
148 ac_help="$ac_help
149   --enable-permissive     compile code disregarding strict ANSI"
150 ac_help="$ac_help
151   --enable-no_deps        create code without dependency information"
152 ac_help="$ac_help
153   --enable-compat20       enable wxWindows 2.0 compatibility"
154 ac_help="$ac_help
155   --disable-compat22      disable wxWindows 2.2 compatibility"
156 ac_help="$ac_help
157   --enable-intl           use internationalization system"
158 ac_help="$ac_help
159   --enable-config         use wxConfig (and derived) classes"
160 ac_help="$ac_help
161   --enable-protocols      use wxProtocol and derived classes"
162 ac_help="$ac_help
163   --enable-ftp            use wxFTP (requires wxProtocol"
164 ac_help="$ac_help
165   --enable-http           use wxHTTP (requires wxProtocol"
166 ac_help="$ac_help
167   --enable-fileproto      use wxFileProto class (requires wxProtocol"
168 ac_help="$ac_help
169   --enable-sockets        use socket/network classes"
170 ac_help="$ac_help
171   --enable-ipc            use interprocess communication (wxSocket etc.)"
172 ac_help="$ac_help
173   --enable-cmdline        use wxCmdLineParser class"
174 ac_help="$ac_help
175   --enable-datetime       use wxDateTime class"
176 ac_help="$ac_help
177   --enable-timedate       use obsolete wxDate/wxTime classes"
178 ac_help="$ac_help
179   --enable-stopwatch      use wxStopWatch class"
180 ac_help="$ac_help
181   --enable-dialupman      use dialup network classes"
182 ac_help="$ac_help
183   --enable-apple_ieee     use the Apple IEEE codec"
184 ac_help="$ac_help
185   --enable-timer          use wxTimer class"
186 ac_help="$ac_help
187   --enable-wave           use wxWave class"
188 ac_help="$ac_help
189   --enable-fraction       use wxFraction class"
190 ac_help="$ac_help
191   --enable-dynlib         use wxLibrary class for DLL loading"
192 ac_help="$ac_help
193   --enable-dynamicloader  use (new) wxDynamicLibrary class"
194 ac_help="$ac_help
195   --enable-longlong       use wxLongLong class"
196 ac_help="$ac_help
197   --enable-geometry       use geometry class"
198 ac_help="$ac_help
199   --enable-log            use logging system"
200 ac_help="$ac_help
201   --enable-streams        use wxStream etc classes"
202 ac_help="$ac_help
203   --enable-file           use wxFile classes"
204 ac_help="$ac_help
205   --enable-ffile          use wxFFile classes"
206 ac_help="$ac_help
207   --enable-textbuf        use wxTextBuffer class"
208 ac_help="$ac_help
209   --enable-textfile       use wxTextFile class"
210 ac_help="$ac_help
211   --enable-fontmap        use font encodings conversion classes"
212 ac_help="$ac_help
213   --enable-unicode        compile wxString with Unicode support"
214 ac_help="$ac_help
215   --enable-mslu           use MS Layer for Unicode on Windows 9x (win32 only)"
216 ac_help="$ac_help
217   --enable-wxprintfv      use wxWindows implementation of vprintf()"
218 ac_help="$ac_help
219   --enable-std_iostreams  use standard C++ stream classes"
220 ac_help="$ac_help
221   --enable-filesystem     use virtual file systems classes"
222 ac_help="$ac_help
223   --enable-fs_inet        use virtual HTTP/FTP filesystems"
224 ac_help="$ac_help
225   --enable-fs_zip         use virtual ZIP filesystems"
226 ac_help="$ac_help
227   --enable-zipstream      use wxZipInputStream"
228 ac_help="$ac_help
229   --enable-catch_segvs    catch signals and pass them to wxApp::OnFatalException"
230 ac_help="$ac_help
231   --enable-snglinst       use wxSingleInstanceChecker class"
232 ac_help="$ac_help
233   --enable-mimetype       use wxMimeTypesManager"
234 ac_help="$ac_help
235   --enable-sysoptions     use wxSystemOptions"
236 ac_help="$ac_help
237   --enable-url            use wxURL class"
238 ac_help="$ac_help
239   --enable-protocol       use wxProtocol class"
240 ac_help="$ac_help
241   --enable-protocol-http  HTTP support in wxProtocol"
242 ac_help="$ac_help
243   --enable-protocol-ftp   FTP support in wxProtocol"
244 ac_help="$ac_help
245   --enable-protocol-file  FILE support in wxProtocol"
246 ac_help="$ac_help
247   --enable-threads        use threads"
248 ac_help="$ac_help
249   --enable-docview        use document view architecture"
250 ac_help="$ac_help
251   --enable-help           use help subsystem"
252 ac_help="$ac_help
253   --enable-mshtmlhelp     use MS HTML Help (win32)"
254 ac_help="$ac_help
255   --enable-html           use wxHTML sub-library"
256 ac_help="$ac_help
257   --enable-htmlhelp       use wxHTML-based help"
258 ac_help="$ac_help
259   --enable-constraints    use layout-constraints system"
260 ac_help="$ac_help
261   --enable-printarch      use printing architecture"
262 ac_help="$ac_help
263   --enable-mdi            use multiple document interface architecture"
264 ac_help="$ac_help
265   --enable-loggui         use standard GUI logger"
266 ac_help="$ac_help
267   --enable-logwin         use wxLogWindow"
268 ac_help="$ac_help
269   --enable-logdialog      use wxLogDialog"
270 ac_help="$ac_help
271   --enable-postscript     use wxPostscriptDC device context (default for gtk+)"
272 ac_help="$ac_help
273   --enable-prologio       use Prolog IO library"
274 ac_help="$ac_help
275   --enable-resources      use wxWindows resources"
276 ac_help="$ac_help
277   --enable-xresources     use X resources for save (default for gtk+)"
278 ac_help="$ac_help
279   --enable-clipboard      use wxClipboard classes"
280 ac_help="$ac_help
281   --enable-dnd            use Drag'n'Drop classes"
282 ac_help="$ac_help
283   --enable-metafile       use win32 metafiles"
284 ac_help="$ac_help
285   --enable-treelayout     use wxTreeLayout classes"
286 ac_help="$ac_help
287   --enable-controls       use all usual controls"
288 ac_help="$ac_help
289   --enable-accel          use accelerators"
290 ac_help="$ac_help
291   --enable-button         use wxButton class"
292 ac_help="$ac_help
293   --enable-bmpbutton      use wxBitmapButton class"
294 ac_help="$ac_help
295   --enable-calendar       use wxCalendarCtrl class"
296 ac_help="$ac_help
297   --enable-caret          use wxCaret class"
298 ac_help="$ac_help
299   --enable-checkbox       use wxCheckBox class"
300 ac_help="$ac_help
301   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class"
302 ac_help="$ac_help
303   --enable-choice         use wxChoice class"
304 ac_help="$ac_help
305   --enable-combobox       use wxComboBox classes"
306 ac_help="$ac_help
307   --enable-gauge          use wxGauge class"
308 ac_help="$ac_help
309   --enable-grid           use wxGrid class"
310 ac_help="$ac_help
311   --enable-newgrid        use new wxGrid class"
312 ac_help="$ac_help
313   --enable-imaglist       use wxImageList class"
314 ac_help="$ac_help
315   --enable-listbox        use wxListBox class"
316 ac_help="$ac_help
317   --enable-listctrl       use wxListCtrl class"
318 ac_help="$ac_help
319   --enable-notebook       use wxNotebook class"
320 ac_help="$ac_help
321   --enable-propsheet      use wxPropertySheet class"
322 ac_help="$ac_help
323   --enable-radiobox       use wxRadioBox class"
324 ac_help="$ac_help
325   --enable-radiobtn       use wxRadioButton class"
326 ac_help="$ac_help
327   --enable-sash           use wxSashWindow class"
328 ac_help="$ac_help
329   --enable-scrollbar      use wxScrollBar class and scrollable windows"
330 ac_help="$ac_help
331   --enable-slider         use wxSlider class"
332 ac_help="$ac_help
333   --enable-spinbtn        use wxSpinButton class"
334 ac_help="$ac_help
335   --enable-spinctrl       use wxSpinCtrl class"
336 ac_help="$ac_help
337   --enable-splitter       use wxSplitterWindow class"
338 ac_help="$ac_help
339   --enable-statbmp        use wxStaticBitmap class"
340 ac_help="$ac_help
341   --enable-statbox        use wxStaticBox class"
342 ac_help="$ac_help
343   --enable-statline       use wxStaticLine class"
344 ac_help="$ac_help
345   --enable-stattext       use wxStaticText class"
346 ac_help="$ac_help
347   --enable-statusbar      use wxStatusBar class"
348 ac_help="$ac_help
349   --enable-tabdialog      use wxTabControl class"
350 ac_help="$ac_help
351   --enable-textctrl       use wxTextCtrl class"
352 ac_help="$ac_help
353   --enable-togglebtn      use wxToggleButton class"
354 ac_help="$ac_help
355   --enable-toolbar        use wxToolBar class"
356 ac_help="$ac_help
357   --enable-tbarnative     use native wxToolBar class"
358 ac_help="$ac_help
359   --enable-tbarsmpl       use wxToolBarSimple class"
360 ac_help="$ac_help
361   --enable-treectrl       use wxTreeCtrl class"
362 ac_help="$ac_help
363   --enable-tipwindow      use wxTipWindow class"
364 ac_help="$ac_help
365   --enable-popupwin       use wxPopUpWindow class"
366 ac_help="$ac_help
367   --enable-commondlg      use all common dialogs"
368 ac_help="$ac_help
369   --enable-choicedlg      use wxChoiceDialog"
370 ac_help="$ac_help
371   --enable-coldlg         use wxColourDialog"
372 ac_help="$ac_help
373   --enable-filedlg        use wxFileDialog"
374 ac_help="$ac_help
375   --enable-finddlg        use wxFindReplaceDialog"
376 ac_help="$ac_help
377   --enable-fontdlg        use wxFontDialog"
378 ac_help="$ac_help
379   --enable-dirdlg         use wxDirDialog"
380 ac_help="$ac_help
381   --enable-msgdlg         use wxMessageDialog"
382 ac_help="$ac_help
383   --enable-numberdlg      use wxNumberEntryDialog"
384 ac_help="$ac_help
385   --enable-splash         use wxSplashScreen"
386 ac_help="$ac_help
387   --enable-textdlg        use wxTextDialog"
388 ac_help="$ac_help
389   --enable-tipdlg         use startup tips"
390 ac_help="$ac_help
391   --enable-progressdlg    use wxProgressDialog"
392 ac_help="$ac_help
393   --enable-wizarddlg      use wxWizard"
394 ac_help="$ac_help
395   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes"
396 ac_help="$ac_help
397   --enable-miniframe      use wxMiniFrame class"
398 ac_help="$ac_help
399   --enable-tooltips       use wxToolTip class"
400 ac_help="$ac_help
401   --enable-splines        use spline drawing code"
402 ac_help="$ac_help
403   --enable-validators     use wxValidator and derived classes"
404 ac_help="$ac_help
405   --enable-busyinfo       use wxBusyInfo"
406 ac_help="$ac_help
407   --enable-joystick       use wxJoystick (Linux only)"
408 ac_help="$ac_help
409   --enable-metafiles      use wxMetaFile (Windows only)"
410 ac_help="$ac_help
411   --enable-dragimage      use wxDragImage"
412 ac_help="$ac_help
413   --enable-palette        use wxPalette class"
414 ac_help="$ac_help
415   --enable-image          use wxImage class"
416 ac_help="$ac_help
417   --enable-gif            use gif images (GIF file format)"
418 ac_help="$ac_help
419   --enable-pcx            use pcx images (PCX file format)"
420 ac_help="$ac_help
421   --enable-iff            use iff images (IFF file format)"
422 ac_help="$ac_help
423   --enable-pnm            use pnm images (PNM file format)"
424 ac_help="$ac_help
425   --enable-xpm            use xpm images (XPM file format)"
426 ac_help="$ac_help
427   --enable-icocur         use Windows ICO and CUR formats"
428 ac_help="$ac_help
429   --disable-largefile     omit support for large files"
430 ac_help="$ac_help
431   --disable-gtktest       do not try to compile and run a test GTK+ program"
432 ac_help="$ac_help
433   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
434 ac_help="$ac_help
435   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
436 ac_help="$ac_help
437   --disable-gtktest       Do not try to compile and run a test GTK program"
438 ac_help="$ac_help
439   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
440 ac_help="$ac_help
441   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
442 ac_help="$ac_help
443   --disable-gtktest       Do not try to compile and run a test GTK program"
444 ac_help="$ac_help
445   --with-x                use the X Window System"
446 ac_help="$ac_help
447   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib"
448
449 # Initialize some variables set by options.
450 # The variables have the same names as the options, with
451 # dashes changed to underlines.
452 build=NONE
453 cache_file=./config.cache
454 exec_prefix=NONE
455 host=NONE
456 no_create=
457 nonopt=NONE
458 no_recursion=
459 prefix=NONE
460 program_prefix=NONE
461 program_suffix=NONE
462 program_transform_name=s,x,x,
463 silent=
464 site=
465 srcdir=
466 target=NONE
467 verbose=
468 x_includes=NONE
469 x_libraries=NONE
470 bindir='${exec_prefix}/bin'
471 sbindir='${exec_prefix}/sbin'
472 libexecdir='${exec_prefix}/libexec'
473 datadir='${prefix}/share'
474 sysconfdir='${prefix}/etc'
475 sharedstatedir='${prefix}/com'
476 localstatedir='${prefix}/var'
477 libdir='${exec_prefix}/lib'
478 includedir='${prefix}/include'
479 oldincludedir='/usr/include'
480 infodir='${prefix}/info'
481 mandir='${prefix}/man'
482
483 # Initialize some other variables.
484 subdirs=
485 MFLAGS= MAKEFLAGS=
486 SHELL=${CONFIG_SHELL-/bin/sh}
487 # Maximum number of lines to put in a shell here document.
488 ac_max_here_lines=12
489
490 ac_prev=
491 for ac_option
492 do
493
494   # If the previous option needs an argument, assign it.
495   if test -n "$ac_prev"; then
496     eval "$ac_prev=\$ac_option"
497     ac_prev=
498     continue
499   fi
500
501   case "$ac_option" in
502   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
503   *) ac_optarg= ;;
504   esac
505
506   # Accept the important Cygnus configure options, so we can diagnose typos.
507
508   case "$ac_option" in
509
510   -bindir | --bindir | --bindi | --bind | --bin | --bi)
511     ac_prev=bindir ;;
512   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
513     bindir="$ac_optarg" ;;
514
515   -build | --build | --buil | --bui | --bu)
516     ac_prev=build ;;
517   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
518     build="$ac_optarg" ;;
519
520   -cache-file | --cache-file | --cache-fil | --cache-fi \
521   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
522     ac_prev=cache_file ;;
523   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
524   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
525     cache_file="$ac_optarg" ;;
526
527   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
528     ac_prev=datadir ;;
529   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
530   | --da=*)
531     datadir="$ac_optarg" ;;
532
533   -disable-* | --disable-*)
534     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
535     # Reject names that are not valid shell variable names.
536     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
537       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
538     fi
539     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
540     eval "enable_${ac_feature}=no" ;;
541
542   -enable-* | --enable-*)
543     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
544     # Reject names that are not valid shell variable names.
545     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
546       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
547     fi
548     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
549     case "$ac_option" in
550       *=*) ;;
551       *) ac_optarg=yes ;;
552     esac
553     eval "enable_${ac_feature}='$ac_optarg'" ;;
554
555   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
556   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
557   | --exec | --exe | --ex)
558     ac_prev=exec_prefix ;;
559   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
560   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
561   | --exec=* | --exe=* | --ex=*)
562     exec_prefix="$ac_optarg" ;;
563
564   -gas | --gas | --ga | --g)
565     # Obsolete; use --with-gas.
566     with_gas=yes ;;
567
568   -help | --help | --hel | --he)
569     # Omit some internal or obsolete options to make the list less imposing.
570     # This message is too long to be a string in the A/UX 3.1 sh.
571     cat << EOF
572 Usage: configure [options] [host]
573 Options: [defaults in brackets after descriptions]
574 Configuration:
575   --cache-file=FILE       cache test results in FILE
576   --help                  print this message
577   --no-create             do not create output files
578   --quiet, --silent       do not print \`checking...' messages
579   --version               print the version of autoconf that created configure
580 Directory and file names:
581   --prefix=PREFIX         install architecture-independent files in PREFIX
582                           [$ac_default_prefix]
583   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
584                           [same as prefix]
585   --bindir=DIR            user executables in DIR [EPREFIX/bin]
586   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
587   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
588   --datadir=DIR           read-only architecture-independent data in DIR
589                           [PREFIX/share]
590   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
591   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
592                           [PREFIX/com]
593   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
594   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
595   --includedir=DIR        C header files in DIR [PREFIX/include]
596   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
597   --infodir=DIR           info documentation in DIR [PREFIX/info]
598   --mandir=DIR            man documentation in DIR [PREFIX/man]
599   --srcdir=DIR            find the sources in DIR [configure dir or ..]
600   --program-prefix=PREFIX prepend PREFIX to installed program names
601   --program-suffix=SUFFIX append SUFFIX to installed program names
602   --program-transform-name=PROGRAM
603                           run sed PROGRAM on installed program names
604 EOF
605     cat << EOF
606 Host type:
607   --build=BUILD           configure for building on BUILD [BUILD=HOST]
608   --host=HOST             configure for HOST [guessed]
609   --target=TARGET         configure for TARGET [TARGET=HOST]
610 Features and packages:
611   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
612   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
613   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
614   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
615   --x-includes=DIR        X include files are in DIR
616   --x-libraries=DIR       X library files are in DIR
617 EOF
618     if test -n "$ac_help"; then
619       echo "--enable and --with options recognized:$ac_help"
620     fi
621     exit 0 ;;
622
623   -host | --host | --hos | --ho)
624     ac_prev=host ;;
625   -host=* | --host=* | --hos=* | --ho=*)
626     host="$ac_optarg" ;;
627
628   -includedir | --includedir | --includedi | --included | --include \
629   | --includ | --inclu | --incl | --inc)
630     ac_prev=includedir ;;
631   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
632   | --includ=* | --inclu=* | --incl=* | --inc=*)
633     includedir="$ac_optarg" ;;
634
635   -infodir | --infodir | --infodi | --infod | --info | --inf)
636     ac_prev=infodir ;;
637   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
638     infodir="$ac_optarg" ;;
639
640   -libdir | --libdir | --libdi | --libd)
641     ac_prev=libdir ;;
642   -libdir=* | --libdir=* | --libdi=* | --libd=*)
643     libdir="$ac_optarg" ;;
644
645   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
646   | --libexe | --libex | --libe)
647     ac_prev=libexecdir ;;
648   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
649   | --libexe=* | --libex=* | --libe=*)
650     libexecdir="$ac_optarg" ;;
651
652   -localstatedir | --localstatedir | --localstatedi | --localstated \
653   | --localstate | --localstat | --localsta | --localst \
654   | --locals | --local | --loca | --loc | --lo)
655     ac_prev=localstatedir ;;
656   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
657   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
658   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
659     localstatedir="$ac_optarg" ;;
660
661   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
662     ac_prev=mandir ;;
663   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
664     mandir="$ac_optarg" ;;
665
666   -nfp | --nfp | --nf)
667     # Obsolete; use --without-fp.
668     with_fp=no ;;
669
670   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
671   | --no-cr | --no-c)
672     no_create=yes ;;
673
674   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
675   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
676     no_recursion=yes ;;
677
678   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
679   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
680   | --oldin | --oldi | --old | --ol | --o)
681     ac_prev=oldincludedir ;;
682   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
683   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
684   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
685     oldincludedir="$ac_optarg" ;;
686
687   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
688     ac_prev=prefix ;;
689   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
690     prefix="$ac_optarg" ;;
691
692   -program-prefix | --program-prefix | --program-prefi | --program-pref \
693   | --program-pre | --program-pr | --program-p)
694     ac_prev=program_prefix ;;
695   -program-prefix=* | --program-prefix=* | --program-prefi=* \
696   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
697     program_prefix="$ac_optarg" ;;
698
699   -program-suffix | --program-suffix | --program-suffi | --program-suff \
700   | --program-suf | --program-su | --program-s)
701     ac_prev=program_suffix ;;
702   -program-suffix=* | --program-suffix=* | --program-suffi=* \
703   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
704     program_suffix="$ac_optarg" ;;
705
706   -program-transform-name | --program-transform-name \
707   | --program-transform-nam | --program-transform-na \
708   | --program-transform-n | --program-transform- \
709   | --program-transform | --program-transfor \
710   | --program-transfo | --program-transf \
711   | --program-trans | --program-tran \
712   | --progr-tra | --program-tr | --program-t)
713     ac_prev=program_transform_name ;;
714   -program-transform-name=* | --program-transform-name=* \
715   | --program-transform-nam=* | --program-transform-na=* \
716   | --program-transform-n=* | --program-transform-=* \
717   | --program-transform=* | --program-transfor=* \
718   | --program-transfo=* | --program-transf=* \
719   | --program-trans=* | --program-tran=* \
720   | --progr-tra=* | --program-tr=* | --program-t=*)
721     program_transform_name="$ac_optarg" ;;
722
723   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
724   | -silent | --silent | --silen | --sile | --sil)
725     silent=yes ;;
726
727   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
728     ac_prev=sbindir ;;
729   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
730   | --sbi=* | --sb=*)
731     sbindir="$ac_optarg" ;;
732
733   -sharedstatedir | --sharedstatedir | --sharedstatedi \
734   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
735   | --sharedst | --shareds | --shared | --share | --shar \
736   | --sha | --sh)
737     ac_prev=sharedstatedir ;;
738   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
739   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
740   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
741   | --sha=* | --sh=*)
742     sharedstatedir="$ac_optarg" ;;
743
744   -site | --site | --sit)
745     ac_prev=site ;;
746   -site=* | --site=* | --sit=*)
747     site="$ac_optarg" ;;
748
749   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
750     ac_prev=srcdir ;;
751   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
752     srcdir="$ac_optarg" ;;
753
754   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
755   | --syscon | --sysco | --sysc | --sys | --sy)
756     ac_prev=sysconfdir ;;
757   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
758   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
759     sysconfdir="$ac_optarg" ;;
760
761   -target | --target | --targe | --targ | --tar | --ta | --t)
762     ac_prev=target ;;
763   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
764     target="$ac_optarg" ;;
765
766   -v | -verbose | --verbose | --verbos | --verbo | --verb)
767     verbose=yes ;;
768
769   -version | --version | --versio | --versi | --vers)
770     echo "configure generated by autoconf version 2.13"
771     exit 0 ;;
772
773   -with-* | --with-*)
774     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
775     # Reject names that are not valid shell variable names.
776     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
777       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
778     fi
779     ac_package=`echo $ac_package| sed 's/-/_/g'`
780     case "$ac_option" in
781       *=*) ;;
782       *) ac_optarg=yes ;;
783     esac
784     eval "with_${ac_package}='$ac_optarg'" ;;
785
786   -without-* | --without-*)
787     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
788     # Reject names that are not valid shell variable names.
789     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
790       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
791     fi
792     ac_package=`echo $ac_package| sed 's/-/_/g'`
793     eval "with_${ac_package}=no" ;;
794
795   --x)
796     # Obsolete; use --with-x.
797     with_x=yes ;;
798
799   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
800   | --x-incl | --x-inc | --x-in | --x-i)
801     ac_prev=x_includes ;;
802   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
803   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
804     x_includes="$ac_optarg" ;;
805
806   -x-libraries | --x-libraries | --x-librarie | --x-librari \
807   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
808     ac_prev=x_libraries ;;
809   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
810   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
811     x_libraries="$ac_optarg" ;;
812
813   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
814     ;;
815
816   *)
817     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
818       echo "configure: warning: $ac_option: invalid host type" 1>&2
819     fi
820     if test "x$nonopt" != xNONE; then
821       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
822     fi
823     nonopt="$ac_option"
824     ;;
825
826   esac
827 done
828
829 if test -n "$ac_prev"; then
830   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
831 fi
832
833 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
834
835 # File descriptor usage:
836 # 0 standard input
837 # 1 file creation
838 # 2 errors and warnings
839 # 3 some systems may open it to /dev/tty
840 # 4 used on the Kubota Titan
841 # 6 checking for... messages and results
842 # 5 compiler messages saved in config.log
843 if test "$silent" = yes; then
844   exec 6>/dev/null
845 else
846   exec 6>&1
847 fi
848 exec 5>./config.log
849
850 echo "\
851 This file contains any messages produced by compilers while
852 running configure, to aid debugging if configure makes a mistake.
853 " 1>&5
854
855 # Strip out --no-create and --no-recursion so they do not pile up.
856 # Also quote any args containing shell metacharacters.
857 ac_configure_args=
858 for ac_arg
859 do
860   case "$ac_arg" in
861   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
862   | --no-cr | --no-c) ;;
863   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
864   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
865   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
866   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
867   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
868   esac
869 done
870
871 # NLS nuisances.
872 # Only set these to C if already set.  These must not be set unconditionally
873 # because not all systems understand e.g. LANG=C (notably SCO).
874 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
875 # Non-C LC_CTYPE values break the ctype check.
876 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
877 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
878 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
879 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
880
881 # confdefs.h avoids OS command line length limits that DEFS can exceed.
882 rm -rf conftest* confdefs.h
883 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
884 echo > confdefs.h
885
886 # A filename unique to this package, relative to the directory that
887 # configure is in, which we can look for to find out if srcdir is correct.
888 ac_unique_file=wx-config.in
889
890 # Find the source files, if location was not specified.
891 if test -z "$srcdir"; then
892   ac_srcdir_defaulted=yes
893   # Try the directory containing this script, then its parent.
894   ac_prog=$0
895   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
896   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
897   srcdir=$ac_confdir
898   if test ! -r $srcdir/$ac_unique_file; then
899     srcdir=..
900   fi
901 else
902   ac_srcdir_defaulted=no
903 fi
904 if test ! -r $srcdir/$ac_unique_file; then
905   if test "$ac_srcdir_defaulted" = yes; then
906     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
907   else
908     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
909   fi
910 fi
911 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
912
913 # Prefer explicitly selected file to automatically selected ones.
914 if test -z "$CONFIG_SITE"; then
915   if test "x$prefix" != xNONE; then
916     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
917   else
918     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
919   fi
920 fi
921 for ac_site_file in $CONFIG_SITE; do
922   if test -r "$ac_site_file"; then
923     echo "loading site script $ac_site_file"
924     . "$ac_site_file"
925   fi
926 done
927
928 if test -r "$cache_file"; then
929   echo "loading cache $cache_file"
930   . $cache_file
931 else
932   echo "creating cache $cache_file"
933   > $cache_file
934 fi
935
936 ac_ext=c
937 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
938 ac_cpp='$CPP $CPPFLAGS'
939 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
940 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
941 cross_compiling=$ac_cv_prog_cc_cross
942
943 ac_exeext=
944 ac_objext=o
945 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
946   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
947   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
948     ac_n= ac_c='
949 ' ac_t='        '
950   else
951     ac_n=-n ac_c= ac_t=
952   fi
953 else
954   ac_n= ac_c='\c' ac_t=
955 fi
956
957
958
959 ac_aux_dir=
960 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
961   if test -f $ac_dir/install-sh; then
962     ac_aux_dir=$ac_dir
963     ac_install_sh="$ac_aux_dir/install-sh -c"
964     break
965   elif test -f $ac_dir/install.sh; then
966     ac_aux_dir=$ac_dir
967     ac_install_sh="$ac_aux_dir/install.sh -c"
968     break
969   fi
970 done
971 if test -z "$ac_aux_dir"; then
972   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
973 fi
974 ac_config_guess=$ac_aux_dir/config.guess
975 ac_config_sub=$ac_aux_dir/config.sub
976 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
977
978
979 # Do some error checking and defaulting for the host and target type.
980 # The inputs are:
981 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
982 #
983 # The rules are:
984 # 1. You are not allowed to specify --host, --target, and nonopt at the
985 #    same time.
986 # 2. Host defaults to nonopt.
987 # 3. If nonopt is not specified, then host defaults to the current host,
988 #    as determined by config.guess.
989 # 4. Target and build default to nonopt.
990 # 5. If nonopt is not specified, then target and build default to host.
991
992 # The aliases save the names the user supplied, while $host etc.
993 # will get canonicalized.
994 case $host---$target---$nonopt in
995 NONE---*---* | *---NONE---* | *---*---NONE) ;;
996 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
997 esac
998
999
1000 # Make sure we can run config.sub.
1001 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1002 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1003 fi
1004
1005 echo $ac_n "checking host system type""... $ac_c" 1>&6
1006 echo "configure:1007: checking host system type" >&5
1007
1008 host_alias=$host
1009 case "$host_alias" in
1010 NONE)
1011   case $nonopt in
1012   NONE)
1013     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1014     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1015     fi ;;
1016   *) host_alias=$nonopt ;;
1017   esac ;;
1018 esac
1019
1020 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1021 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1022 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1023 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1024 echo "$ac_t""$host" 1>&6
1025
1026 echo $ac_n "checking target system type""... $ac_c" 1>&6
1027 echo "configure:1028: checking target system type" >&5
1028
1029 target_alias=$target
1030 case "$target_alias" in
1031 NONE)
1032   case $nonopt in
1033   NONE) target_alias=$host_alias ;;
1034   *) target_alias=$nonopt ;;
1035   esac ;;
1036 esac
1037
1038 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1039 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1040 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1041 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1042 echo "$ac_t""$target" 1>&6
1043
1044 echo $ac_n "checking build system type""... $ac_c" 1>&6
1045 echo "configure:1046: checking build system type" >&5
1046
1047 build_alias=$build
1048 case "$build_alias" in
1049 NONE)
1050   case $nonopt in
1051   NONE) build_alias=$host_alias ;;
1052   *) build_alias=$nonopt ;;
1053   esac ;;
1054 esac
1055
1056 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1057 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1058 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1059 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1060 echo "$ac_t""$build" 1>&6
1061
1062 test "$host_alias" != "$target_alias" &&
1063   test "$program_prefix$program_suffix$program_transform_name" = \
1064     NONENONEs,x,x, &&
1065   program_prefix=${target_alias}-
1066
1067
1068
1069 WX_MAJOR_VERSION_NUMBER=2
1070 WX_MINOR_VERSION_NUMBER=3
1071 WX_RELEASE_NUMBER=3
1072
1073 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1074 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1075
1076 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1077
1078 WX_CURRENT=2
1079 WX_REVISION=0
1080 WX_AGE=0
1081
1082
1083
1084 USE_UNIX=1
1085 USE_WIN32=0
1086 USE_DOS=0
1087 USE_BEOS=0
1088 USE_MAC=0
1089
1090 USE_LINUX=
1091 USE_SGI=
1092 USE_HPUX=
1093 USE_SYSV=
1094 USE_SVR4=
1095 USE_AIX=
1096 USE_SUN=
1097 USE_SOLARIS=
1098 USE_SUNOS=
1099 USE_ALPHA=
1100 USE_OSF=
1101 USE_BSD=
1102 USE_DARWIN=
1103 USE_FREEBSD=
1104 USE_OPENBSD=
1105 USE_NETBSD=
1106 USE_VMS=
1107 USE_ULTRIX=
1108 USE_DATA_GENERAL=
1109
1110 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1111
1112 ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
1113
1114 DEFAULT_wxUSE_GTK=0
1115 DEFAULT_wxUSE_MAC=0
1116 DEFAULT_wxUSE_MGL=0
1117 DEFAULT_wxUSE_MICROWIN=0
1118 DEFAULT_wxUSE_MOTIF=0
1119 DEFAULT_wxUSE_MSW=0
1120 DEFAULT_wxUSE_PM=0
1121 DEFAULT_wxUSE_WINE=0
1122 DEFAULT_wxUSE_X11=0
1123
1124 DEFAULT_DEFAULT_wxUSE_GTK=0
1125 DEFAULT_DEFAULT_wxUSE_MAC=0
1126 DEFAULT_DEFAULT_wxUSE_MGL=0
1127 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1128 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1129 DEFAULT_DEFAULT_wxUSE_MSW=0
1130 DEFAULT_DEFAULT_wxUSE_PM=0
1131 DEFAULT_DEFAULT_wxUSE_WINE=0
1132 DEFAULT_DEFAULT_wxUSE_X11=0
1133
1134 PROGRAM_EXT=
1135 SO_SUFFIX=so
1136
1137 case "${host}" in
1138   *-hp-hpux* )
1139     USE_HPUX=1
1140     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1141     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1142     SO_SUFFIX=sl
1143     cat >> confdefs.h <<\EOF
1144 #define __HPUX__ 1
1145 EOF
1146
1147   ;;
1148   *-*-linux* )
1149     USE_LINUX=1
1150     cat >> confdefs.h <<\EOF
1151 #define __LINUX__ 1
1152 EOF
1153
1154     TMP=`uname -m`
1155     if test "x$TMP" = "xalpha"; then
1156       USE_ALPHA=1
1157       cat >> confdefs.h <<\EOF
1158 #define __ALPHA__ 1
1159 EOF
1160
1161     fi
1162     DEFAULT_DEFAULT_wxUSE_GTK=1
1163   ;;
1164   *-*-irix5* | *-*-irix6* )
1165     USE_SGI=1
1166     USE_SVR4=1
1167     cat >> confdefs.h <<\EOF
1168 #define __SGI__ 1
1169 EOF
1170
1171     cat >> confdefs.h <<\EOF
1172 #define __SVR4__ 1
1173 EOF
1174
1175     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1176   ;;
1177   *-*-solaris2* )
1178     USE_SUN=1
1179     USE_SOLARIS=1
1180     USE_SVR4=1
1181     cat >> confdefs.h <<\EOF
1182 #define __SUN__ 1
1183 EOF
1184
1185     cat >> confdefs.h <<\EOF
1186 #define __SOLARIS__ 1
1187 EOF
1188
1189     cat >> confdefs.h <<\EOF
1190 #define __SVR4__ 1
1191 EOF
1192
1193     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1194     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1195   ;;
1196   *-*-sunos4* )
1197     USE_SUN=1
1198     USE_SUNOS=1
1199     USE_BSD=1
1200     cat >> confdefs.h <<\EOF
1201 #define __SUN__ 1
1202 EOF
1203
1204     cat >> confdefs.h <<\EOF
1205 #define __SUNOS__ 1
1206 EOF
1207
1208     cat >> confdefs.h <<\EOF
1209 #define __BSD__ 1
1210 EOF
1211
1212     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1213   ;;
1214   *-*-freebsd*)
1215     USE_BSD=1
1216     USE_FREEBSD=1
1217     cat >> confdefs.h <<\EOF
1218 #define __FREEBSD__ 1
1219 EOF
1220
1221     cat >> confdefs.h <<\EOF
1222 #define __BSD__ 1
1223 EOF
1224
1225     DEFAULT_DEFAULT_wxUSE_GTK=1
1226   ;;
1227   *-*-openbsd*)
1228     USE_BSD=1
1229     USE_OPENBSD=1
1230     cat >> confdefs.h <<\EOF
1231 #define __FREEBSD__ 1
1232 EOF
1233
1234     cat >> confdefs.h <<\EOF
1235 #define __OPENBSD__ 1
1236 EOF
1237
1238     DEFAULT_DEFAULT_wxUSE_GTK=1
1239   ;;
1240   *-*-netbsd*)
1241     USE_BSD=1
1242     USE_NETBSD=1
1243     cat >> confdefs.h <<\EOF
1244 #define __FREEBSD__ 1
1245 EOF
1246
1247     cat >> confdefs.h <<\EOF
1248 #define __NETBSD__ 1
1249 EOF
1250
1251     DEFAULT_DEFAULT_wxUSE_GTK=1
1252   ;;
1253   *-*-osf* )
1254     USE_ALPHA=1
1255     USE_OSF=1
1256     cat >> confdefs.h <<\EOF
1257 #define __ALPHA__ 1
1258 EOF
1259
1260     cat >> confdefs.h <<\EOF
1261 #define __OSF__ 1
1262 EOF
1263
1264     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1265     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1266   ;;
1267   *-*-dgux5* )
1268     USE_ALPHA=1
1269     USE_SVR4=1
1270     cat >> confdefs.h <<\EOF
1271 #define __ALPHA__ 1
1272 EOF
1273
1274     cat >> confdefs.h <<\EOF
1275 #define __SVR4__ 1
1276 EOF
1277
1278     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1279   ;;
1280   *-*-sysv5* )
1281     USE_SYSV=1
1282     USE_SVR4=1
1283     cat >> confdefs.h <<\EOF
1284 #define __SYSV__ 1
1285 EOF
1286
1287     cat >> confdefs.h <<\EOF
1288 #define __SVR4__ 1
1289 EOF
1290
1291     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1292   ;;
1293   *-*-aix* )
1294     USE_AIX=1
1295     USE_SYSV=1
1296     USE_SVR4=1
1297             SO_SUFFIX=a
1298     cat >> confdefs.h <<\EOF
1299 #define __AIX__ 1
1300 EOF
1301
1302     cat >> confdefs.h <<\EOF
1303 #define __SYSV__ 1
1304 EOF
1305
1306     cat >> confdefs.h <<\EOF
1307 #define __SVR4__ 1
1308 EOF
1309
1310     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1311   ;;
1312
1313   *-*-cygwin* | *-*-mingw32* )
1314                 SO_SUFFIX=dll
1315     PROGRAM_EXT=".exe"
1316     RESCOMP=windres
1317     DEFAULT_DEFAULT_wxUSE_MSW=1
1318   ;;
1319
1320   *-pc-msdosdjgpp )
1321     USE_UNIX=0
1322     USE_DOS=1
1323     cat >> confdefs.h <<\EOF
1324 #define __DOS__ 1
1325 EOF
1326
1327     PROGRAM_EXT=".exe"
1328     DEFAULT_DEFAULT_wxUSE_MGL=1
1329   ;;
1330
1331   *-pc-os2_emx | *-pc-os2-emx )
1332     cat >> confdefs.h <<\EOF
1333 #define __EMX__ 1
1334 EOF
1335
1336     PROGRAM_EXT=".exe"
1337     DEFAULT_DEFAULT_wxUSE_PM=1
1338     LIBS="$LIBS -lstdcpp"
1339   ;;
1340
1341   powerpc-*-darwin* )
1342         USE_BSD=1
1343     USE_DARWIN=1
1344     SO_SUFFIX=dylib
1345     cat >> confdefs.h <<\EOF
1346 #define __BSD__ 1
1347 EOF
1348
1349     cat >> confdefs.h <<\EOF
1350 #define __DARWIN__ 1
1351 EOF
1352
1353     cat >> confdefs.h <<\EOF
1354 #define __POWERPC__ 1
1355 EOF
1356
1357     DEFAULT_DEFAULT_wxUSE_MAC=1
1358   ;;
1359
1360   *-*-beos* )
1361         USE_BEOS=1
1362     cat >> confdefs.h <<\EOF
1363 #define __BEOS__ 1
1364 EOF
1365
1366   ;;
1367
1368   *)
1369     { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1370 esac
1371
1372
1373
1374
1375           wx_arg_cache_file="configarg.cache"
1376           echo "loading argument cache $wx_arg_cache_file"
1377           rm -f ${wx_arg_cache_file}.tmp
1378           touch ${wx_arg_cache_file}.tmp
1379           touch ${wx_arg_cache_file}
1380         
1381
1382 DEBUG_CONFIGURE=0
1383 if test $DEBUG_CONFIGURE = 1; then
1384   DEFAULT_wxUSE_UNIVERSAL=no
1385
1386   DEFAULT_wxUSE_NANOX=no
1387
1388   DEFAULT_wxUSE_THREADS=yes
1389
1390   DEFAULT_wxUSE_SHARED=yes
1391   DEFAULT_wxUSE_SONAME=no
1392   DEFAULT_wxUSE_OPTIMISE=no
1393   DEFAULT_wxUSE_PROFILE=no
1394   DEFAULT_wxUSE_NO_DEPS=no
1395   DEFAULT_wxUSE_NO_RTTI=no
1396   DEFAULT_wxUSE_NO_EXCEPTIONS=no
1397   DEFAULT_wxUSE_PERMISSIVE=no
1398   DEFAULT_wxUSE_DEBUG_FLAG=yes
1399   DEFAULT_wxUSE_DEBUG_INFO=yes
1400   DEFAULT_wxUSE_DEBUG_GDB=yes
1401   DEFAULT_wxUSE_MEM_TRACING=no
1402   DEFAULT_wxUSE_DEBUG_CONTEXT=no
1403   DEFAULT_wxUSE_DMALLOC=no
1404   DEFAULT_wxUSE_PRECOMP=no
1405   DEFAULT_wxUSE_APPLE_IEEE=no
1406
1407   DEFAULT_wxUSE_LOG=yes
1408   DEFAULT_wxUSE_LOGWINDOW=no
1409   DEFAULT_wxUSE_LOGGUI=no
1410   DEFAULT_wxUSE_LOGDIALOG=no
1411
1412   DEFAULT_wxUSE_GUI=yes
1413   DEFAULT_wxUSE_CONTROLS=no
1414
1415   DEFAULT_wxUSE_REGEX=no
1416   DEFAULT_wxUSE_ZLIB=no
1417   DEFAULT_wxUSE_LIBPNG=no
1418   DEFAULT_wxUSE_LIBJPEG=no
1419   DEFAULT_wxUSE_LIBTIFF=no
1420   DEFAULT_wxUSE_ODBC=no
1421   DEFAULT_wxUSE_OPENGL=no
1422
1423   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1424   DEFAULT_wxUSE_SNGLINST_CHECKER=no
1425   DEFAULT_wxUSE_STD_IOSTREAM=no
1426   DEFAULT_wxUSE_CMDLINE_PARSER=no
1427   DEFAULT_wxUSE_DATETIME=no
1428   DEFAULT_wxUSE_TIMEDATE=no
1429   DEFAULT_wxUSE_TIMER=no
1430   DEFAULT_wxUSE_STOPWATCH=no
1431   DEFAULT_wxUSE_FILE=no
1432   DEFAULT_wxUSE_FFILE=no
1433   DEFAULT_wxUSE_TEXTBUFFER=no
1434   DEFAULT_wxUSE_TEXTFILE=no
1435   DEFAULT_wxUSE_WAVE=no
1436   DEFAULT_wxUSE_INTL=no
1437   DEFAULT_wxUSE_CONFIG=no
1438   DEFAULT_wxUSE_FONTMAP=no
1439   DEFAULT_wxUSE_STREAMS=no
1440   DEFAULT_wxUSE_SOCKETS=no
1441   DEFAULT_wxUSE_DIALUP_MANAGER=no
1442   DEFAULT_wxUSE_JOYSTICK=no
1443   DEFAULT_wxUSE_DYNLIB_CLASS=no
1444   DEFAULT_wxUSE_DYNAMIC_LOADER=no
1445   DEFAULT_wxUSE_LONGLONG=no
1446   DEFAULT_wxUSE_GEOMETRY=no
1447
1448   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1449   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1450   DEFAULT_wxUSE_POSTSCRIPT=no
1451
1452   DEFAULT_wxUSE_X_RESOURCES=no
1453   DEFAULT_wxUSE_CLIPBOARD=no
1454   DEFAULT_wxUSE_TOOLTIPS=no
1455   DEFAULT_wxUSE_DRAG_AND_DROP=no
1456   DEFAULT_wxUSE_DRAGIMAGE=no
1457   DEFAULT_wxUSE_SPLINES=no
1458
1459   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1460   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1461   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1462
1463   DEFAULT_wxUSE_PROLOGIO=no
1464   DEFAULT_wxUSE_RESOURCES=no
1465   DEFAULT_wxUSE_CONSTRAINTS=no
1466   DEFAULT_wxUSE_IPC=no
1467   DEFAULT_wxUSE_HELP=no
1468   DEFAULT_wxUSE_MS_HTML_HELP=no
1469   DEFAULT_wxUSE_WXHTML_HELP=no
1470   DEFAULT_wxUSE_TREELAYOUT=no
1471   DEFAULT_wxUSE_METAFILE=no
1472   DEFAULT_wxUSE_MIMETYPE=no
1473   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1474   DEFAULT_wxUSE_PROTOCOL=no
1475   DEFAULT_wxUSE_PROTOCOL_HTTP=no
1476   DEFAULT_wxUSE_PROTOCOL_FTP=no
1477   DEFAULT_wxUSE_PROTOCOL_FILE=no
1478   DEFAULT_wxUSE_URL=no
1479   
1480   DEFAULT_wxUSE_COMMONDLGS=no
1481   DEFAULT_wxUSE_CHOICEDLG=no
1482   DEFAULT_wxUSE_COLOURDLG=no
1483   DEFAULT_wxUSE_DIRDLG=no
1484   DEFAULT_wxUSE_FILEDLG=no
1485   DEFAULT_wxUSE_FINDREPLDLG=no
1486   DEFAULT_wxUSE_FONTDLG=no
1487   DEFAULT_wxUSE_MSGDLG=no
1488   DEFAULT_wxUSE_NUMBERDLG=no
1489   DEFAULT_wxUSE_TEXTDLG=no
1490   DEFAULT_wxUSE_SPLASH=no
1491   DEFAULT_wxUSE_STARTUP_TIPS=no
1492   DEFAULT_wxUSE_PROGRESSDLG=no
1493   DEFAULT_wxUSE_WIZARDDLG=no
1494
1495   DEFAULT_wxUSE_MENUS=no
1496   DEFAULT_wxUSE_MINIFRAME=no
1497   DEFAULT_wxUSE_HTML=no
1498   DEFAULT_wxUSE_FILESYSTEM=no
1499   DEFAULT_wxUSE_FS_INET=no
1500   DEFAULT_wxUSE_FS_ZIP=no
1501   DEFAULT_wxUSE_BUSYINFO=no
1502   DEFAULT_wxUSE_ZIPSTREAM=no
1503   DEFAULT_wxUSE_VALIDATORS=no
1504
1505   DEFAULT_wxUSE_ACCEL=no
1506   DEFAULT_wxUSE_BUTTON=no
1507   DEFAULT_wxUSE_BMPBUTTON=no
1508   DEFAULT_wxUSE_CALCTRL=no
1509   DEFAULT_wxUSE_CARET=no
1510   DEFAULT_wxUSE_CHECKBOX=no
1511   DEFAULT_wxUSE_CHECKLST=no
1512   DEFAULT_wxUSE_CHOICE=no
1513   DEFAULT_wxUSE_COMBOBOX=no
1514   DEFAULT_wxUSE_GAUGE=no
1515   DEFAULT_wxUSE_GRID=no
1516   DEFAULT_wxUSE_NEW_GRID=no
1517   DEFAULT_wxUSE_IMAGLIST=no
1518   DEFAULT_wxUSE_LISTBOX=no
1519   DEFAULT_wxUSE_LISTCTRL=no
1520   DEFAULT_wxUSE_NOTEBOOK=no
1521   DEFAULT_wxUSE_PROPSHEET=no
1522   DEFAULT_wxUSE_RADIOBOX=no
1523   DEFAULT_wxUSE_RADIOBTN=no
1524   DEFAULT_wxUSE_SASH=no
1525   DEFAULT_wxUSE_SCROLLBAR=no
1526   DEFAULT_wxUSE_SLIDER=no
1527   DEFAULT_wxUSE_SPINBTN=no
1528   DEFAULT_wxUSE_SPINCTRL=no
1529   DEFAULT_wxUSE_SPLITTER=no
1530   DEFAULT_wxUSE_STATBMP=no
1531   DEFAULT_wxUSE_STATBOX=no
1532   DEFAULT_wxUSE_STATLINE=no
1533   DEFAULT_wxUSE_STATTEXT=no
1534   DEFAULT_wxUSE_STATUSBAR=yes
1535   DEFAULT_wxUSE_TABDIALOG=no
1536   DEFAULT_wxUSE_TEXTCTRL=no
1537   DEFAULT_wxUSE_TOGGLEBTN=no
1538   DEFAULT_wxUSE_TOOLBAR=no
1539   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1540   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1541   DEFAULT_wxUSE_TREECTRL=no
1542   DEFAULT_wxUSE_POPUPWIN=no
1543   DEFAULT_wxUSE_TIPWINDOW=no
1544
1545   DEFAULT_wxUSE_UNICODE=no
1546   DEFAULT_wxUSE_UNICODE_MSLU=no
1547   DEFAULT_wxUSE_WCSRTOMBS=no
1548
1549   DEFAULT_wxUSE_PALETTE=no
1550   DEFAULT_wxUSE_IMAGE=no
1551   DEFAULT_wxUSE_GIF=no
1552   DEFAULT_wxUSE_PCX=no
1553   DEFAULT_wxUSE_PNM=no
1554   DEFAULT_wxUSE_IFF=no
1555   DEFAULT_wxUSE_XPM=no
1556   DEFAULT_wxUSE_ICO_CUR=no
1557 else
1558   DEFAULT_wxUSE_UNIVERSAL=no
1559
1560   DEFAULT_wxUSE_NANOX=no
1561
1562   DEFAULT_wxUSE_THREADS=yes
1563
1564   DEFAULT_wxUSE_SHARED=yes
1565   DEFAULT_wxUSE_SONAME=no
1566   DEFAULT_wxUSE_OPTIMISE=yes
1567   DEFAULT_wxUSE_PROFILE=no
1568   DEFAULT_wxUSE_NO_DEPS=no
1569   DEFAULT_wxUSE_NO_RTTI=no
1570   DEFAULT_wxUSE_NO_EXCEPTIONS=no
1571   DEFAULT_wxUSE_PERMISSIVE=no
1572   DEFAULT_wxUSE_DEBUG_FLAG=no
1573   DEFAULT_wxUSE_DEBUG_INFO=no
1574   DEFAULT_wxUSE_DEBUG_GDB=no
1575   DEFAULT_wxUSE_MEM_TRACING=no
1576   DEFAULT_wxUSE_DEBUG_CONTEXT=no
1577   DEFAULT_wxUSE_DMALLOC=no
1578   DEFAULT_wxUSE_PRECOMP=no
1579   DEFAULT_wxUSE_APPLE_IEEE=yes
1580
1581   DEFAULT_wxUSE_LOG=yes
1582   DEFAULT_wxUSE_LOGWINDOW=yes
1583   DEFAULT_wxUSE_LOGGUI=yes
1584   DEFAULT_wxUSE_LOGDIALOG=yes
1585
1586   DEFAULT_wxUSE_GUI=yes
1587
1588   DEFAULT_wxUSE_REGEX=yes
1589   DEFAULT_wxUSE_ZLIB=yes
1590   DEFAULT_wxUSE_LIBPNG=yes
1591   DEFAULT_wxUSE_LIBJPEG=yes
1592   DEFAULT_wxUSE_LIBTIFF=yes
1593   DEFAULT_wxUSE_ODBC=no
1594   DEFAULT_wxUSE_OPENGL=no
1595
1596   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1597   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1598   DEFAULT_wxUSE_STD_IOSTREAM=no
1599   DEFAULT_wxUSE_CMDLINE_PARSER=yes
1600   DEFAULT_wxUSE_DATETIME=yes
1601   DEFAULT_wxUSE_TIMEDATE=no
1602   DEFAULT_wxUSE_TIMER=yes
1603   DEFAULT_wxUSE_STOPWATCH=yes
1604   DEFAULT_wxUSE_FILE=yes
1605   DEFAULT_wxUSE_FFILE=yes
1606   DEFAULT_wxUSE_TEXTBUFFER=yes
1607   DEFAULT_wxUSE_TEXTFILE=yes
1608   DEFAULT_wxUSE_WAVE=no
1609   DEFAULT_wxUSE_INTL=yes
1610   DEFAULT_wxUSE_CONFIG=yes
1611   DEFAULT_wxUSE_FONTMAP=yes
1612   DEFAULT_wxUSE_STREAMS=yes
1613   DEFAULT_wxUSE_SOCKETS=yes
1614   DEFAULT_wxUSE_DIALUP_MANAGER=yes
1615   DEFAULT_wxUSE_JOYSTICK=yes
1616   DEFAULT_wxUSE_DYNLIB_CLASS=yes
1617   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1618   DEFAULT_wxUSE_LONGLONG=yes
1619   DEFAULT_wxUSE_GEOMETRY=yes
1620
1621   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1622   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1623   DEFAULT_wxUSE_POSTSCRIPT=yes
1624
1625   DEFAULT_wxUSE_X_RESOURCES=no
1626   DEFAULT_wxUSE_CLIPBOARD=yes
1627   DEFAULT_wxUSE_TOOLTIPS=yes
1628   DEFAULT_wxUSE_DRAG_AND_DROP=yes
1629   DEFAULT_wxUSE_DRAGIMAGE=yes
1630   DEFAULT_wxUSE_SPLINES=yes
1631
1632   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1633   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1634   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1635
1636   DEFAULT_wxUSE_PROLOGIO=yes
1637   DEFAULT_wxUSE_RESOURCES=yes
1638   DEFAULT_wxUSE_CONSTRAINTS=yes
1639   DEFAULT_wxUSE_IPC=yes
1640   DEFAULT_wxUSE_HELP=yes
1641   DEFAULT_wxUSE_MS_HTML_HELP=yes
1642   DEFAULT_wxUSE_WXHTML_HELP=yes
1643   DEFAULT_wxUSE_TREELAYOUT=yes
1644   DEFAULT_wxUSE_METAFILE=yes
1645   DEFAULT_wxUSE_MIMETYPE=yes
1646   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1647   DEFAULT_wxUSE_PROTOCOL=yes
1648   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1649   DEFAULT_wxUSE_PROTOCOL_FTP=yes
1650   DEFAULT_wxUSE_PROTOCOL_FILE=yes
1651   DEFAULT_wxUSE_URL=yes
1652
1653   DEFAULT_wxUSE_COMMONDLGS=yes
1654   DEFAULT_wxUSE_CHOICEDLG=yes
1655   DEFAULT_wxUSE_COLOURDLG=yes
1656   DEFAULT_wxUSE_DIRDLG=yes
1657   DEFAULT_wxUSE_FILEDLG=yes
1658   DEFAULT_wxUSE_FINDREPLDLG=yes
1659   DEFAULT_wxUSE_FONTDLG=yes
1660   DEFAULT_wxUSE_MSGDLG=yes
1661   DEFAULT_wxUSE_NUMBERDLG=yes
1662   DEFAULT_wxUSE_TEXTDLG=yes
1663   DEFAULT_wxUSE_SPLASH=yes
1664   DEFAULT_wxUSE_STARTUP_TIPS=yes
1665   DEFAULT_wxUSE_PROGRESSDLG=yes
1666   DEFAULT_wxUSE_WIZARDDLG=yes
1667
1668   DEFAULT_wxUSE_MENUS=yes
1669   DEFAULT_wxUSE_MINIFRAME=yes
1670   DEFAULT_wxUSE_HTML=yes
1671   DEFAULT_wxUSE_FILESYSTEM=yes
1672   DEFAULT_wxUSE_FS_INET=yes
1673   DEFAULT_wxUSE_FS_ZIP=yes
1674   DEFAULT_wxUSE_BUSYINFO=yes
1675   DEFAULT_wxUSE_ZIPSTREAM=yes
1676   DEFAULT_wxUSE_VALIDATORS=yes
1677
1678   DEFAULT_wxUSE_ACCEL=yes
1679   DEFAULT_wxUSE_BUTTON=yes
1680   DEFAULT_wxUSE_BMPBUTTON=yes
1681   DEFAULT_wxUSE_CALCTRL=yes
1682   DEFAULT_wxUSE_CARET=yes
1683   DEFAULT_wxUSE_CHECKBOX=yes
1684   DEFAULT_wxUSE_CHECKLST=yes
1685   DEFAULT_wxUSE_CHOICE=yes
1686   DEFAULT_wxUSE_COMBOBOX=yes
1687   DEFAULT_wxUSE_GAUGE=yes
1688   DEFAULT_wxUSE_GRID=yes
1689   DEFAULT_wxUSE_NEW_GRID=yes
1690   DEFAULT_wxUSE_IMAGLIST=yes
1691   DEFAULT_wxUSE_LISTBOX=yes
1692   DEFAULT_wxUSE_LISTCTRL=yes
1693   DEFAULT_wxUSE_NOTEBOOK=yes
1694   DEFAULT_wxUSE_PROPSHEET=yes
1695   DEFAULT_wxUSE_RADIOBOX=yes
1696   DEFAULT_wxUSE_RADIOBTN=yes
1697   DEFAULT_wxUSE_SASH=yes
1698   DEFAULT_wxUSE_SCROLLBAR=yes
1699   DEFAULT_wxUSE_SLIDER=yes
1700   DEFAULT_wxUSE_SPINBTN=yes
1701   DEFAULT_wxUSE_SPINCTRL=yes
1702   DEFAULT_wxUSE_SPLITTER=yes
1703   DEFAULT_wxUSE_STATBMP=yes
1704   DEFAULT_wxUSE_STATBOX=yes
1705   DEFAULT_wxUSE_STATLINE=yes
1706   DEFAULT_wxUSE_STATTEXT=yes
1707   DEFAULT_wxUSE_STATUSBAR=yes
1708   DEFAULT_wxUSE_TABDIALOG=no
1709   DEFAULT_wxUSE_TEXTCTRL=yes
1710   DEFAULT_wxUSE_TOGGLEBTN=yes
1711   DEFAULT_wxUSE_TOOLBAR=yes
1712   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1713   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1714   DEFAULT_wxUSE_TREECTRL=yes
1715   DEFAULT_wxUSE_POPUPWIN=yes
1716   DEFAULT_wxUSE_TIPWINDOW=yes
1717
1718   DEFAULT_wxUSE_UNICODE=no
1719   DEFAULT_wxUSE_UNICODE_MSLU=yes
1720   DEFAULT_wxUSE_WCSRTOMBS=no
1721
1722   DEFAULT_wxUSE_PALETTE=yes
1723   DEFAULT_wxUSE_IMAGE=yes
1724   DEFAULT_wxUSE_GIF=yes
1725   DEFAULT_wxUSE_PCX=yes
1726   DEFAULT_wxUSE_IFF=no
1727   DEFAULT_wxUSE_PNM=yes
1728   DEFAULT_wxUSE_XPM=yes
1729   DEFAULT_wxUSE_ICO_CUR=yes
1730 fi
1731
1732
1733
1734 for toolkit in `echo $ALL_TOOLKITS`; do
1735   LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1736   if test "x$LINE" != x ; then
1737     has_toolkit_in_cache=1
1738     eval "DEFAULT_$LINE"
1739     eval "CACHE_$toolkit=1"
1740   fi
1741 done
1742
1743
1744
1745           echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1746 echo "configure:1747: checking for --enable-gui" >&5
1747           no_cache=0
1748           # Check whether --enable-gui or --disable-gui was given.
1749 if test "${enable_gui+set}" = set; then
1750   enableval="$enable_gui"
1751   
1752                           if test "$enableval" = yes; then
1753                             ac_cv_use_gui='wxUSE_GUI=yes'
1754                           else
1755                             ac_cv_use_gui='wxUSE_GUI=no'
1756                           fi
1757                         
1758 else
1759   
1760                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1761                           if test "x$LINE" != x ; then
1762                             eval "DEFAULT_$LINE"
1763                           else
1764                             no_cache=1
1765                           fi
1766
1767                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1768                         
1769 fi
1770
1771
1772           eval "$ac_cv_use_gui"
1773           if test "$no_cache" != 1; then
1774             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1775           fi
1776
1777           if test "$wxUSE_GUI" = yes; then
1778             echo "$ac_t""yes" 1>&6
1779           else
1780             echo "$ac_t""no" 1>&6
1781           fi
1782         
1783
1784 if test "$wxUSE_GUI" = "yes"; then
1785
1786
1787           echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1788 echo "configure:1789: checking for --enable-universal" >&5
1789           no_cache=0
1790           # Check whether --enable-universal or --disable-universal was given.
1791 if test "${enable_universal+set}" = set; then
1792   enableval="$enable_universal"
1793   
1794                           if test "$enableval" = yes; then
1795                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1796                           else
1797                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1798                           fi
1799                         
1800 else
1801   
1802                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1803                           if test "x$LINE" != x ; then
1804                             eval "DEFAULT_$LINE"
1805                           else
1806                             no_cache=1
1807                           fi
1808
1809                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1810                         
1811 fi
1812
1813
1814           eval "$ac_cv_use_universal"
1815           if test "$no_cache" != 1; then
1816             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1817           fi
1818
1819           if test "$wxUSE_UNIVERSAL" = yes; then
1820             echo "$ac_t""yes" 1>&6
1821           else
1822             echo "$ac_t""no" 1>&6
1823           fi
1824         
1825 # Check whether --with-gtk or --without-gtk was given.
1826 if test "${with_gtk+set}" = set; then
1827   withval="$with_gtk"
1828   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1829 fi
1830
1831 # Check whether --with-motif or --without-motif was given.
1832 if test "${with_motif+set}" = set; then
1833   withval="$with_motif"
1834   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1835 fi
1836
1837 # Check whether --with-mac or --without-mac was given.
1838 if test "${with_mac+set}" = set; then
1839   withval="$with_mac"
1840   wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1841 fi
1842
1843 # Check whether --with-wine or --without-wine was given.
1844 if test "${with_wine+set}" = set; then
1845   withval="$with_wine"
1846   wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1847 fi
1848
1849 # Check whether --with-msw or --without-msw was given.
1850 if test "${with_msw+set}" = set; then
1851   withval="$with_msw"
1852   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1853 fi
1854
1855 # Check whether --with-pm or --without-pm was given.
1856 if test "${with_pm+set}" = set; then
1857   withval="$with_pm"
1858   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1859 fi
1860
1861 # Check whether --with-mgl or --without-mgl was given.
1862 if test "${with_mgl+set}" = set; then
1863   withval="$with_mgl"
1864   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1865 fi
1866
1867 # Check whether --with-microwin or --without-microwin was given.
1868 if test "${with_microwin+set}" = set; then
1869   withval="$with_microwin"
1870   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1871 fi
1872
1873 # Check whether --with-x11 or --without-x11 was given.
1874 if test "${with_x11+set}" = set; then
1875   withval="$with_x11"
1876   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1877 fi
1878
1879
1880           echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6
1881 echo "configure:1882: checking for --enable-nanox" >&5
1882           no_cache=0
1883           # Check whether --enable-nanox or --disable-nanox was given.
1884 if test "${enable_nanox+set}" = set; then
1885   enableval="$enable_nanox"
1886   
1887                           if test "$enableval" = yes; then
1888                             ac_cv_use_nanox='wxUSE_NANOX=yes'
1889                           else
1890                             ac_cv_use_nanox='wxUSE_NANOX=no'
1891                           fi
1892                         
1893 else
1894   
1895                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1896                           if test "x$LINE" != x ; then
1897                             eval "DEFAULT_$LINE"
1898                           else
1899                             no_cache=1
1900                           fi
1901
1902                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1903                         
1904 fi
1905
1906
1907           eval "$ac_cv_use_nanox"
1908           if test "$no_cache" != 1; then
1909             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1910           fi
1911
1912           if test "$wxUSE_NANOX" = yes; then
1913             echo "$ac_t""yes" 1>&6
1914           else
1915             echo "$ac_t""no" 1>&6
1916           fi
1917         
1918
1919 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1920 if test "${enable_gtk2+set}" = set; then
1921   enableval="$enable_gtk2"
1922   wxUSE_GTK2="yes"
1923 else
1924   wxUSE_GTK2="no"
1925 fi
1926
1927
1928
1929           echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1930 echo "configure:1931: checking for --with-libpng" >&5
1931           no_cache=0
1932           # Check whether --with-libpng or --without-libpng was given.
1933 if test "${with_libpng+set}" = set; then
1934   withval="$with_libpng"
1935   
1936                         if test "$withval" = yes; then
1937                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1938                         elif test "$withval" = no; then
1939                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
1940                         elif test "$withval" = sys; then
1941                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1942                         elif test "$withval" = builtin; then
1943                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1944                         else
1945                           { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1946                         fi
1947                       
1948 else
1949   
1950                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1951                         if test "x$LINE" != x ; then
1952                           eval "DEFAULT_$LINE"
1953                         else
1954                           no_cache=1
1955                         fi
1956
1957                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1958                       
1959 fi
1960
1961
1962           eval "$ac_cv_use_libpng"
1963           if test "$no_cache" != 1; then
1964             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1965           fi
1966
1967           if test "$wxUSE_LIBPNG" = yes; then
1968             echo "$ac_t""yes" 1>&6
1969           elif test "$wxUSE_LIBPNG" = no; then
1970             echo "$ac_t""no" 1>&6
1971           elif test "$wxUSE_LIBPNG" = sys; then
1972             echo "$ac_t""system version" 1>&6
1973           elif test "$wxUSE_LIBPNG" = builtin; then
1974             echo "$ac_t""builtin version" 1>&6
1975           else
1976             { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1977           fi
1978         
1979
1980           echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1981 echo "configure:1982: checking for --with-libjpeg" >&5
1982           no_cache=0
1983           # Check whether --with-libjpeg or --without-libjpeg was given.
1984 if test "${with_libjpeg+set}" = set; then
1985   withval="$with_libjpeg"
1986   
1987                         if test "$withval" = yes; then
1988                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1989                         elif test "$withval" = no; then
1990                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1991                         elif test "$withval" = sys; then
1992                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1993                         elif test "$withval" = builtin; then
1994                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
1995                         else
1996                           { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1997                         fi
1998                       
1999 else
2000   
2001                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2002                         if test "x$LINE" != x ; then
2003                           eval "DEFAULT_$LINE"
2004                         else
2005                           no_cache=1
2006                         fi
2007
2008                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2009                       
2010 fi
2011
2012
2013           eval "$ac_cv_use_libjpeg"
2014           if test "$no_cache" != 1; then
2015             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2016           fi
2017
2018           if test "$wxUSE_LIBJPEG" = yes; then
2019             echo "$ac_t""yes" 1>&6
2020           elif test "$wxUSE_LIBJPEG" = no; then
2021             echo "$ac_t""no" 1>&6
2022           elif test "$wxUSE_LIBJPEG" = sys; then
2023             echo "$ac_t""system version" 1>&6
2024           elif test "$wxUSE_LIBJPEG" = builtin; then
2025             echo "$ac_t""builtin version" 1>&6
2026           else
2027             { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2028           fi
2029         
2030
2031           echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2032 echo "configure:2033: checking for --with-libtiff" >&5
2033           no_cache=0
2034           # Check whether --with-libtiff or --without-libtiff was given.
2035 if test "${with_libtiff+set}" = set; then
2036   withval="$with_libtiff"
2037   
2038                         if test "$withval" = yes; then
2039                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2040                         elif test "$withval" = no; then
2041                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2042                         elif test "$withval" = sys; then
2043                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2044                         elif test "$withval" = builtin; then
2045                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2046                         else
2047                           { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2048                         fi
2049                       
2050 else
2051   
2052                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2053                         if test "x$LINE" != x ; then
2054                           eval "DEFAULT_$LINE"
2055                         else
2056                           no_cache=1
2057                         fi
2058
2059                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2060                       
2061 fi
2062
2063
2064           eval "$ac_cv_use_libtiff"
2065           if test "$no_cache" != 1; then
2066             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2067           fi
2068
2069           if test "$wxUSE_LIBTIFF" = yes; then
2070             echo "$ac_t""yes" 1>&6
2071           elif test "$wxUSE_LIBTIFF" = no; then
2072             echo "$ac_t""no" 1>&6
2073           elif test "$wxUSE_LIBTIFF" = sys; then
2074             echo "$ac_t""system version" 1>&6
2075           elif test "$wxUSE_LIBTIFF" = builtin; then
2076             echo "$ac_t""builtin version" 1>&6
2077           else
2078             { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2079           fi
2080         
2081
2082           echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2083 echo "configure:2084: checking for --with-opengl" >&5
2084           no_cache=0
2085           # Check whether --with-opengl or --without-opengl was given.
2086 if test "${with_opengl+set}" = set; then
2087   withval="$with_opengl"
2088   
2089                         if test "$withval" = yes; then
2090                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
2091                         else
2092                           ac_cv_use_opengl='wxUSE_OPENGL=no'
2093                         fi
2094                       
2095 else
2096   
2097                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2098                         if test "x$LINE" != x ; then
2099                           eval "DEFAULT_$LINE"
2100                         else
2101                           no_cache=1
2102                         fi
2103
2104                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2105                       
2106 fi
2107
2108
2109           eval "$ac_cv_use_opengl"
2110           if test "$no_cache" != 1; then
2111             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2112           fi
2113
2114           if test "$wxUSE_OPENGL" = yes; then
2115             echo "$ac_t""yes" 1>&6
2116           else
2117             echo "$ac_t""no" 1>&6
2118           fi
2119         
2120
2121 fi
2122
2123
2124           echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2125 echo "configure:2126: checking for --with-dmalloc" >&5
2126           no_cache=0
2127           # Check whether --with-dmalloc or --without-dmalloc was given.
2128 if test "${with_dmalloc+set}" = set; then
2129   withval="$with_dmalloc"
2130   
2131                         if test "$withval" = yes; then
2132                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2133                         else
2134                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2135                         fi
2136                       
2137 else
2138   
2139                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2140                         if test "x$LINE" != x ; then
2141                           eval "DEFAULT_$LINE"
2142                         else
2143                           no_cache=1
2144                         fi
2145
2146                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2147                       
2148 fi
2149
2150
2151           eval "$ac_cv_use_dmalloc"
2152           if test "$no_cache" != 1; then
2153             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2154           fi
2155
2156           if test "$wxUSE_DMALLOC" = yes; then
2157             echo "$ac_t""yes" 1>&6
2158           else
2159             echo "$ac_t""no" 1>&6
2160           fi
2161         
2162
2163           echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2164 echo "configure:2165: checking for --with-regex" >&5
2165           no_cache=0
2166           # Check whether --with-regex or --without-regex was given.
2167 if test "${with_regex+set}" = set; then
2168   withval="$with_regex"
2169   
2170                         if test "$withval" = yes; then
2171                           ac_cv_use_regex='wxUSE_REGEX=yes'
2172                         elif test "$withval" = no; then
2173                           ac_cv_use_regex='wxUSE_REGEX=no'
2174                         elif test "$withval" = sys; then
2175                           ac_cv_use_regex='wxUSE_REGEX=sys'
2176                         elif test "$withval" = builtin; then
2177                           ac_cv_use_regex='wxUSE_REGEX=builtin'
2178                         else
2179                           { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2180                         fi
2181                       
2182 else
2183   
2184                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2185                         if test "x$LINE" != x ; then
2186                           eval "DEFAULT_$LINE"
2187                         else
2188                           no_cache=1
2189                         fi
2190
2191                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2192                       
2193 fi
2194
2195
2196           eval "$ac_cv_use_regex"
2197           if test "$no_cache" != 1; then
2198             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2199           fi
2200
2201           if test "$wxUSE_REGEX" = yes; then
2202             echo "$ac_t""yes" 1>&6
2203           elif test "$wxUSE_REGEX" = no; then
2204             echo "$ac_t""no" 1>&6
2205           elif test "$wxUSE_REGEX" = sys; then
2206             echo "$ac_t""system version" 1>&6
2207           elif test "$wxUSE_REGEX" = builtin; then
2208             echo "$ac_t""builtin version" 1>&6
2209           else
2210             { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2211           fi
2212         
2213
2214           echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2215 echo "configure:2216: checking for --with-zlib" >&5
2216           no_cache=0
2217           # Check whether --with-zlib or --without-zlib was given.
2218 if test "${with_zlib+set}" = set; then
2219   withval="$with_zlib"
2220   
2221                         if test "$withval" = yes; then
2222                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
2223                         elif test "$withval" = no; then
2224                           ac_cv_use_zlib='wxUSE_ZLIB=no'
2225                         elif test "$withval" = sys; then
2226                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
2227                         elif test "$withval" = builtin; then
2228                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2229                         else
2230                           { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2231                         fi
2232                       
2233 else
2234   
2235                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2236                         if test "x$LINE" != x ; then
2237                           eval "DEFAULT_$LINE"
2238                         else
2239                           no_cache=1
2240                         fi
2241
2242                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2243                       
2244 fi
2245
2246
2247           eval "$ac_cv_use_zlib"
2248           if test "$no_cache" != 1; then
2249             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2250           fi
2251
2252           if test "$wxUSE_ZLIB" = yes; then
2253             echo "$ac_t""yes" 1>&6
2254           elif test "$wxUSE_ZLIB" = no; then
2255             echo "$ac_t""no" 1>&6
2256           elif test "$wxUSE_ZLIB" = sys; then
2257             echo "$ac_t""system version" 1>&6
2258           elif test "$wxUSE_ZLIB" = builtin; then
2259             echo "$ac_t""builtin version" 1>&6
2260           else
2261             { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2262           fi
2263         
2264
2265           echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2266 echo "configure:2267: checking for --with-odbc" >&5
2267           no_cache=0
2268           # Check whether --with-odbc or --without-odbc was given.
2269 if test "${with_odbc+set}" = set; then
2270   withval="$with_odbc"
2271   
2272                         if test "$withval" = yes; then
2273                           ac_cv_use_odbc='wxUSE_ODBC=yes'
2274                         else
2275                           ac_cv_use_odbc='wxUSE_ODBC=no'
2276                         fi
2277                       
2278 else
2279   
2280                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2281                         if test "x$LINE" != x ; then
2282                           eval "DEFAULT_$LINE"
2283                         else
2284                           no_cache=1
2285                         fi
2286
2287                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2288                       
2289 fi
2290
2291
2292           eval "$ac_cv_use_odbc"
2293           if test "$no_cache" != 1; then
2294             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2295           fi
2296
2297           if test "$wxUSE_ODBC" = yes; then
2298             echo "$ac_t""yes" 1>&6
2299           else
2300             echo "$ac_t""no" 1>&6
2301           fi
2302         
2303
2304
2305
2306           echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2307 echo "configure:2308: checking for --enable-shared" >&5
2308           no_cache=0
2309           # Check whether --enable-shared or --disable-shared was given.
2310 if test "${enable_shared+set}" = set; then
2311   enableval="$enable_shared"
2312   
2313                           if test "$enableval" = yes; then
2314                             ac_cv_use_shared='wxUSE_SHARED=yes'
2315                           else
2316                             ac_cv_use_shared='wxUSE_SHARED=no'
2317                           fi
2318                         
2319 else
2320   
2321                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2322                           if test "x$LINE" != x ; then
2323                             eval "DEFAULT_$LINE"
2324                           else
2325                             no_cache=1
2326                           fi
2327
2328                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2329                         
2330 fi
2331
2332
2333           eval "$ac_cv_use_shared"
2334           if test "$no_cache" != 1; then
2335             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2336           fi
2337
2338           if test "$wxUSE_SHARED" = yes; then
2339             echo "$ac_t""yes" 1>&6
2340           else
2341             echo "$ac_t""no" 1>&6
2342           fi
2343         
2344
2345           echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2346 echo "configure:2347: checking for --enable-soname" >&5
2347           no_cache=0
2348           # Check whether --enable-soname or --disable-soname was given.
2349 if test "${enable_soname+set}" = set; then
2350   enableval="$enable_soname"
2351   
2352                           if test "$enableval" = yes; then
2353                             ac_cv_use_soname='wxUSE_SONAME=yes'
2354                           else
2355                             ac_cv_use_soname='wxUSE_SONAME=no'
2356                           fi
2357                         
2358 else
2359   
2360                           LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2361                           if test "x$LINE" != x ; then
2362                             eval "DEFAULT_$LINE"
2363                           else
2364                             no_cache=1
2365                           fi
2366
2367                           ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2368                         
2369 fi
2370
2371
2372           eval "$ac_cv_use_soname"
2373           if test "$no_cache" != 1; then
2374             echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2375           fi
2376
2377           if test "$wxUSE_SONAME" = yes; then
2378             echo "$ac_t""yes" 1>&6
2379           else
2380             echo "$ac_t""no" 1>&6
2381           fi
2382         
2383
2384           echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2385 echo "configure:2386: checking for --enable-optimise" >&5
2386           no_cache=0
2387           # Check whether --enable-optimise or --disable-optimise was given.
2388 if test "${enable_optimise+set}" = set; then
2389   enableval="$enable_optimise"
2390   
2391                           if test "$enableval" = yes; then
2392                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2393                           else
2394                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2395                           fi
2396                         
2397 else
2398   
2399                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2400                           if test "x$LINE" != x ; then
2401                             eval "DEFAULT_$LINE"
2402                           else
2403                             no_cache=1
2404                           fi
2405
2406                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2407                         
2408 fi
2409
2410
2411           eval "$ac_cv_use_optimise"
2412           if test "$no_cache" != 1; then
2413             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2414           fi
2415
2416           if test "$wxUSE_OPTIMISE" = yes; then
2417             echo "$ac_t""yes" 1>&6
2418           else
2419             echo "$ac_t""no" 1>&6
2420           fi
2421         
2422
2423           echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2424 echo "configure:2425: checking for --enable-debug" >&5
2425           no_cache=0
2426           # Check whether --enable-debug or --disable-debug was given.
2427 if test "${enable_debug+set}" = set; then
2428   enableval="$enable_debug"
2429   
2430                           if test "$enableval" = yes; then
2431                             ac_cv_use_debug='wxUSE_DEBUG=yes'
2432                           else
2433                             ac_cv_use_debug='wxUSE_DEBUG=no'
2434                           fi
2435                         
2436 else
2437   
2438                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2439                           if test "x$LINE" != x ; then
2440                             eval "DEFAULT_$LINE"
2441                           else
2442                             no_cache=1
2443                           fi
2444
2445                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2446                         
2447 fi
2448
2449
2450           eval "$ac_cv_use_debug"
2451           if test "$no_cache" != 1; then
2452             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2453           fi
2454
2455           if test "$wxUSE_DEBUG" = yes; then
2456             echo "$ac_t""yes" 1>&6
2457           else
2458             echo "$ac_t""no" 1>&6
2459           fi
2460         
2461
2462
2463           echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2464 echo "configure:2465: checking for --enable-precomp" >&5
2465           no_cache=0
2466           # Check whether --enable-precomp or --disable-precomp was given.
2467 if test "${enable_precomp+set}" = set; then
2468   enableval="$enable_precomp"
2469   
2470                           if test "$enableval" = yes; then
2471                             ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2472                           else
2473                             ac_cv_use_precomp='wxUSE_PRECOMP=no'
2474                           fi
2475                         
2476 else
2477   
2478                           LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2479                           if test "x$LINE" != x ; then
2480                             eval "DEFAULT_$LINE"
2481                           else
2482                             no_cache=1
2483                           fi
2484
2485                           ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2486                         
2487 fi
2488
2489
2490           eval "$ac_cv_use_precomp"
2491           if test "$no_cache" != 1; then
2492             echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2493           fi
2494
2495           if test "$wxUSE_PRECOMP" = yes; then
2496             echo "$ac_t""yes" 1>&6
2497           else
2498             echo "$ac_t""no" 1>&6
2499           fi
2500         
2501
2502 if test "$wxUSE_DEBUG" = "yes"; then
2503   DEFAULT_wxUSE_DEBUG_FLAG=yes
2504   DEFAULT_wxUSE_DEBUG_INFO=yes
2505 elif test "$wxUSE_DEBUG" = "no"; then
2506   DEFAULT_wxUSE_DEBUG_FLAG=no
2507   DEFAULT_wxUSE_DEBUG_INFO=no
2508 fi
2509
2510
2511           echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2512 echo "configure:2513: checking for --enable-debug_flag" >&5
2513           no_cache=0
2514           # Check whether --enable-debug_flag or --disable-debug_flag was given.
2515 if test "${enable_debug_flag+set}" = set; then
2516   enableval="$enable_debug_flag"
2517   
2518                           if test "$enableval" = yes; then
2519                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2520                           else
2521                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2522                           fi
2523                         
2524 else
2525   
2526                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2527                           if test "x$LINE" != x ; then
2528                             eval "DEFAULT_$LINE"
2529                           else
2530                             no_cache=1
2531                           fi
2532
2533                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2534                         
2535 fi
2536
2537
2538           eval "$ac_cv_use_debug_flag"
2539           if test "$no_cache" != 1; then
2540             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2541           fi
2542
2543           if test "$wxUSE_DEBUG_FLAG" = yes; then
2544             echo "$ac_t""yes" 1>&6
2545           else
2546             echo "$ac_t""no" 1>&6
2547           fi
2548         
2549
2550           echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2551 echo "configure:2552: checking for --enable-debug_info" >&5
2552           no_cache=0
2553           # Check whether --enable-debug_info or --disable-debug_info was given.
2554 if test "${enable_debug_info+set}" = set; then
2555   enableval="$enable_debug_info"
2556   
2557                           if test "$enableval" = yes; then
2558                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2559                           else
2560                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2561                           fi
2562                         
2563 else
2564   
2565                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2566                           if test "x$LINE" != x ; then
2567                             eval "DEFAULT_$LINE"
2568                           else
2569                             no_cache=1
2570                           fi
2571
2572                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2573                         
2574 fi
2575
2576
2577           eval "$ac_cv_use_debug_info"
2578           if test "$no_cache" != 1; then
2579             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2580           fi
2581
2582           if test "$wxUSE_DEBUG_INFO" = yes; then
2583             echo "$ac_t""yes" 1>&6
2584           else
2585             echo "$ac_t""no" 1>&6
2586           fi
2587         
2588
2589           echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2590 echo "configure:2591: checking for --enable-debug_gdb" >&5
2591           no_cache=0
2592           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2593 if test "${enable_debug_gdb+set}" = set; then
2594   enableval="$enable_debug_gdb"
2595   
2596                           if test "$enableval" = yes; then
2597                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2598                           else
2599                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2600                           fi
2601                         
2602 else
2603   
2604                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2605                           if test "x$LINE" != x ; then
2606                             eval "DEFAULT_$LINE"
2607                           else
2608                             no_cache=1
2609                           fi
2610
2611                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2612                         
2613 fi
2614
2615
2616           eval "$ac_cv_use_debug_gdb"
2617           if test "$no_cache" != 1; then
2618             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2619           fi
2620
2621           if test "$wxUSE_DEBUG_GDB" = yes; then
2622             echo "$ac_t""yes" 1>&6
2623           else
2624             echo "$ac_t""no" 1>&6
2625           fi
2626         
2627
2628           echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2629 echo "configure:2630: checking for --enable-debug_cntxt" >&5
2630           no_cache=0
2631           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2632 if test "${enable_debug_cntxt+set}" = set; then
2633   enableval="$enable_debug_cntxt"
2634   
2635                           if test "$enableval" = yes; then
2636                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2637                           else
2638                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2639                           fi
2640                         
2641 else
2642   
2643                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2644                           if test "x$LINE" != x ; then
2645                             eval "DEFAULT_$LINE"
2646                           else
2647                             no_cache=1
2648                           fi
2649
2650                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2651                         
2652 fi
2653
2654
2655           eval "$ac_cv_use_debug_cntxt"
2656           if test "$no_cache" != 1; then
2657             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2658           fi
2659
2660           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2661             echo "$ac_t""yes" 1>&6
2662           else
2663             echo "$ac_t""no" 1>&6
2664           fi
2665         
2666
2667           echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2668 echo "configure:2669: checking for --enable-mem_tracing" >&5
2669           no_cache=0
2670           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2671 if test "${enable_mem_tracing+set}" = set; then
2672   enableval="$enable_mem_tracing"
2673   
2674                           if test "$enableval" = yes; then
2675                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2676                           else
2677                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2678                           fi
2679                         
2680 else
2681   
2682                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2683                           if test "x$LINE" != x ; then
2684                             eval "DEFAULT_$LINE"
2685                           else
2686                             no_cache=1
2687                           fi
2688
2689                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2690                         
2691 fi
2692
2693
2694           eval "$ac_cv_use_mem_tracing"
2695           if test "$no_cache" != 1; then
2696             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2697           fi
2698
2699           if test "$wxUSE_MEM_TRACING" = yes; then
2700             echo "$ac_t""yes" 1>&6
2701           else
2702             echo "$ac_t""no" 1>&6
2703           fi
2704         
2705
2706           echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2707 echo "configure:2708: checking for --enable-profile" >&5
2708           no_cache=0
2709           # Check whether --enable-profile or --disable-profile was given.
2710 if test "${enable_profile+set}" = set; then
2711   enableval="$enable_profile"
2712   
2713                           if test "$enableval" = yes; then
2714                             ac_cv_use_profile='wxUSE_PROFILE=yes'
2715                           else
2716                             ac_cv_use_profile='wxUSE_PROFILE=no'
2717                           fi
2718                         
2719 else
2720   
2721                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2722                           if test "x$LINE" != x ; then
2723                             eval "DEFAULT_$LINE"
2724                           else
2725                             no_cache=1
2726                           fi
2727
2728                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2729                         
2730 fi
2731
2732
2733           eval "$ac_cv_use_profile"
2734           if test "$no_cache" != 1; then
2735             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2736           fi
2737
2738           if test "$wxUSE_PROFILE" = yes; then
2739             echo "$ac_t""yes" 1>&6
2740           else
2741             echo "$ac_t""no" 1>&6
2742           fi
2743         
2744
2745           echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2746 echo "configure:2747: checking for --enable-no_rtti" >&5
2747           no_cache=0
2748           # Check whether --enable-no_rtti or --disable-no_rtti was given.
2749 if test "${enable_no_rtti+set}" = set; then
2750   enableval="$enable_no_rtti"
2751   
2752                           if test "$enableval" = yes; then
2753                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2754                           else
2755                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2756                           fi
2757                         
2758 else
2759   
2760                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2761                           if test "x$LINE" != x ; then
2762                             eval "DEFAULT_$LINE"
2763                           else
2764                             no_cache=1
2765                           fi
2766
2767                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2768                         
2769 fi
2770
2771
2772           eval "$ac_cv_use_no_rtti"
2773           if test "$no_cache" != 1; then
2774             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2775           fi
2776
2777           if test "$wxUSE_NO_RTTI" = yes; then
2778             echo "$ac_t""yes" 1>&6
2779           else
2780             echo "$ac_t""no" 1>&6
2781           fi
2782         
2783
2784           echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2785 echo "configure:2786: checking for --enable-no_exceptions" >&5
2786           no_cache=0
2787           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2788 if test "${enable_no_exceptions+set}" = set; then
2789   enableval="$enable_no_exceptions"
2790   
2791                           if test "$enableval" = yes; then
2792                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2793                           else
2794                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2795                           fi
2796                         
2797 else
2798   
2799                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2800                           if test "x$LINE" != x ; then
2801                             eval "DEFAULT_$LINE"
2802                           else
2803                             no_cache=1
2804                           fi
2805
2806                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2807                         
2808 fi
2809
2810
2811           eval "$ac_cv_use_no_exceptions"
2812           if test "$no_cache" != 1; then
2813             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2814           fi
2815
2816           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2817             echo "$ac_t""yes" 1>&6
2818           else
2819             echo "$ac_t""no" 1>&6
2820           fi
2821         
2822
2823           echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2824 echo "configure:2825: checking for --enable-permissive" >&5
2825           no_cache=0
2826           # Check whether --enable-permissive or --disable-permissive was given.
2827 if test "${enable_permissive+set}" = set; then
2828   enableval="$enable_permissive"
2829   
2830                           if test "$enableval" = yes; then
2831                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2832                           else
2833                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2834                           fi
2835                         
2836 else
2837   
2838                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2839                           if test "x$LINE" != x ; then
2840                             eval "DEFAULT_$LINE"
2841                           else
2842                             no_cache=1
2843                           fi
2844
2845                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2846                         
2847 fi
2848
2849
2850           eval "$ac_cv_use_permissive"
2851           if test "$no_cache" != 1; then
2852             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2853           fi
2854
2855           if test "$wxUSE_PERMISSIVE" = yes; then
2856             echo "$ac_t""yes" 1>&6
2857           else
2858             echo "$ac_t""no" 1>&6
2859           fi
2860         
2861
2862           echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2863 echo "configure:2864: checking for --enable-no_deps" >&5
2864           no_cache=0
2865           # Check whether --enable-no_deps or --disable-no_deps was given.
2866 if test "${enable_no_deps+set}" = set; then
2867   enableval="$enable_no_deps"
2868   
2869                           if test "$enableval" = yes; then
2870                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2871                           else
2872                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2873                           fi
2874                         
2875 else
2876   
2877                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2878                           if test "x$LINE" != x ; then
2879                             eval "DEFAULT_$LINE"
2880                           else
2881                             no_cache=1
2882                           fi
2883
2884                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2885                         
2886 fi
2887
2888
2889           eval "$ac_cv_use_no_deps"
2890           if test "$no_cache" != 1; then
2891             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2892           fi
2893
2894           if test "$wxUSE_NO_DEPS" = yes; then
2895             echo "$ac_t""yes" 1>&6
2896           else
2897             echo "$ac_t""no" 1>&6
2898           fi
2899         
2900
2901
2902           echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2903 echo "configure:2904: checking for --enable-compat20" >&5
2904           no_cache=0
2905           # Check whether --enable-compat20 or --disable-compat20 was given.
2906 if test "${enable_compat20+set}" = set; then
2907   enableval="$enable_compat20"
2908   
2909                           if test "$enableval" = yes; then
2910                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2911                           else
2912                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2913                           fi
2914                         
2915 else
2916   
2917                           LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2918                           if test "x$LINE" != x ; then
2919                             eval "DEFAULT_$LINE"
2920                           else
2921                             no_cache=1
2922                           fi
2923
2924                           ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2925                         
2926 fi
2927
2928
2929           eval "$ac_cv_use_compat20"
2930           if test "$no_cache" != 1; then
2931             echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2932           fi
2933
2934           if test "$WXWIN_COMPATIBILITY_2" = yes; then
2935             echo "$ac_t""yes" 1>&6
2936           else
2937             echo "$ac_t""no" 1>&6
2938           fi
2939         
2940
2941           echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2942 echo "configure:2943: checking for --enable-compat22" >&5
2943           no_cache=0
2944           # Check whether --enable-compat22 or --disable-compat22 was given.
2945 if test "${enable_compat22+set}" = set; then
2946   enableval="$enable_compat22"
2947   
2948                           if test "$enableval" = yes; then
2949                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2950                           else
2951                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2952                           fi
2953                         
2954 else
2955   
2956                           LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2957                           if test "x$LINE" != x ; then
2958                             eval "DEFAULT_$LINE"
2959                           else
2960                             no_cache=1
2961                           fi
2962
2963                           ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2964                         
2965 fi
2966
2967
2968           eval "$ac_cv_use_compat22"
2969           if test "$no_cache" != 1; then
2970             echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2971           fi
2972
2973           if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2974             echo "$ac_t""yes" 1>&6
2975           else
2976             echo "$ac_t""no" 1>&6
2977           fi
2978         
2979
2980
2981
2982           echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2983 echo "configure:2984: checking for --enable-intl" >&5
2984           no_cache=0
2985           # Check whether --enable-intl or --disable-intl was given.
2986 if test "${enable_intl+set}" = set; then
2987   enableval="$enable_intl"
2988   
2989                           if test "$enableval" = yes; then
2990                             ac_cv_use_intl='wxUSE_INTL=yes'
2991                           else
2992                             ac_cv_use_intl='wxUSE_INTL=no'
2993                           fi
2994                         
2995 else
2996   
2997                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2998                           if test "x$LINE" != x ; then
2999                             eval "DEFAULT_$LINE"
3000                           else
3001                             no_cache=1
3002                           fi
3003
3004                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3005                         
3006 fi
3007
3008
3009           eval "$ac_cv_use_intl"
3010           if test "$no_cache" != 1; then
3011             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3012           fi
3013
3014           if test "$wxUSE_INTL" = yes; then
3015             echo "$ac_t""yes" 1>&6
3016           else
3017             echo "$ac_t""no" 1>&6
3018           fi
3019         
3020
3021           echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3022 echo "configure:3023: checking for --enable-config" >&5
3023           no_cache=0
3024           # Check whether --enable-config or --disable-config was given.
3025 if test "${enable_config+set}" = set; then
3026   enableval="$enable_config"
3027   
3028                           if test "$enableval" = yes; then
3029                             ac_cv_use_config='wxUSE_CONFIG=yes'
3030                           else
3031                             ac_cv_use_config='wxUSE_CONFIG=no'
3032                           fi
3033                         
3034 else
3035   
3036                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3037                           if test "x$LINE" != x ; then
3038                             eval "DEFAULT_$LINE"
3039                           else
3040                             no_cache=1
3041                           fi
3042
3043                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3044                         
3045 fi
3046
3047
3048           eval "$ac_cv_use_config"
3049           if test "$no_cache" != 1; then
3050             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3051           fi
3052
3053           if test "$wxUSE_CONFIG" = yes; then
3054             echo "$ac_t""yes" 1>&6
3055           else
3056             echo "$ac_t""no" 1>&6
3057           fi
3058         
3059
3060
3061           echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3062 echo "configure:3063: checking for --enable-protocols" >&5
3063           no_cache=0
3064           # Check whether --enable-protocols or --disable-protocols was given.
3065 if test "${enable_protocols+set}" = set; then
3066   enableval="$enable_protocols"
3067   
3068                           if test "$enableval" = yes; then
3069                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3070                           else
3071                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3072                           fi
3073                         
3074 else
3075   
3076                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3077                           if test "x$LINE" != x ; then
3078                             eval "DEFAULT_$LINE"
3079                           else
3080                             no_cache=1
3081                           fi
3082
3083                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3084                         
3085 fi
3086
3087
3088           eval "$ac_cv_use_protocols"
3089           if test "$no_cache" != 1; then
3090             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3091           fi
3092
3093           if test "$wxUSE_PROTOCOL" = yes; then
3094             echo "$ac_t""yes" 1>&6
3095           else
3096             echo "$ac_t""no" 1>&6
3097           fi
3098         
3099
3100           echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3101 echo "configure:3102: checking for --enable-ftp" >&5
3102           no_cache=0
3103           # Check whether --enable-ftp or --disable-ftp was given.
3104 if test "${enable_ftp+set}" = set; then
3105   enableval="$enable_ftp"
3106   
3107                           if test "$enableval" = yes; then
3108                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3109                           else
3110                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3111                           fi
3112                         
3113 else
3114   
3115                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3116                           if test "x$LINE" != x ; then
3117                             eval "DEFAULT_$LINE"
3118                           else
3119                             no_cache=1
3120                           fi
3121
3122                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3123                         
3124 fi
3125
3126
3127           eval "$ac_cv_use_ftp"
3128           if test "$no_cache" != 1; then
3129             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3130           fi
3131
3132           if test "$wxUSE_PROTOCOL_FTP" = yes; then
3133             echo "$ac_t""yes" 1>&6
3134           else
3135             echo "$ac_t""no" 1>&6
3136           fi
3137         
3138
3139           echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3140 echo "configure:3141: checking for --enable-http" >&5
3141           no_cache=0
3142           # Check whether --enable-http or --disable-http was given.
3143 if test "${enable_http+set}" = set; then
3144   enableval="$enable_http"
3145   
3146                           if test "$enableval" = yes; then
3147                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3148                           else
3149                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3150                           fi
3151                         
3152 else
3153   
3154                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3155                           if test "x$LINE" != x ; then
3156                             eval "DEFAULT_$LINE"
3157                           else
3158                             no_cache=1
3159                           fi
3160
3161                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3162                         
3163 fi
3164
3165
3166           eval "$ac_cv_use_http"
3167           if test "$no_cache" != 1; then
3168             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3169           fi
3170
3171           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3172             echo "$ac_t""yes" 1>&6
3173           else
3174             echo "$ac_t""no" 1>&6
3175           fi
3176         
3177
3178           echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3179 echo "configure:3180: checking for --enable-fileproto" >&5
3180           no_cache=0
3181           # Check whether --enable-fileproto or --disable-fileproto was given.
3182 if test "${enable_fileproto+set}" = set; then
3183   enableval="$enable_fileproto"
3184   
3185                           if test "$enableval" = yes; then
3186                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3187                           else
3188                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3189                           fi
3190                         
3191 else
3192   
3193                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3194                           if test "x$LINE" != x ; then
3195                             eval "DEFAULT_$LINE"
3196                           else
3197                             no_cache=1
3198                           fi
3199
3200                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3201                         
3202 fi
3203
3204
3205           eval "$ac_cv_use_fileproto"
3206           if test "$no_cache" != 1; then
3207             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3208           fi
3209
3210           if test "$wxUSE_PROTOCOL_FILE" = yes; then
3211             echo "$ac_t""yes" 1>&6
3212           else
3213             echo "$ac_t""no" 1>&6
3214           fi
3215         
3216
3217           echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3218 echo "configure:3219: checking for --enable-sockets" >&5
3219           no_cache=0
3220           # Check whether --enable-sockets or --disable-sockets was given.
3221 if test "${enable_sockets+set}" = set; then
3222   enableval="$enable_sockets"
3223   
3224                           if test "$enableval" = yes; then
3225                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3226                           else
3227                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
3228                           fi
3229                         
3230 else
3231   
3232                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3233                           if test "x$LINE" != x ; then
3234                             eval "DEFAULT_$LINE"
3235                           else
3236                             no_cache=1
3237                           fi
3238
3239                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3240                         
3241 fi
3242
3243
3244           eval "$ac_cv_use_sockets"
3245           if test "$no_cache" != 1; then
3246             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3247           fi
3248
3249           if test "$wxUSE_SOCKETS" = yes; then
3250             echo "$ac_t""yes" 1>&6
3251           else
3252             echo "$ac_t""no" 1>&6
3253           fi
3254         
3255
3256
3257           echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3258 echo "configure:3259: checking for --enable-ipc" >&5
3259           no_cache=0
3260           # Check whether --enable-ipc or --disable-ipc was given.
3261 if test "${enable_ipc+set}" = set; then
3262   enableval="$enable_ipc"
3263   
3264                           if test "$enableval" = yes; then
3265                             ac_cv_use_ipc='wxUSE_IPC=yes'
3266                           else
3267                             ac_cv_use_ipc='wxUSE_IPC=no'
3268                           fi
3269                         
3270 else
3271   
3272                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3273                           if test "x$LINE" != x ; then
3274                             eval "DEFAULT_$LINE"
3275                           else
3276                             no_cache=1
3277                           fi
3278
3279                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3280                         
3281 fi
3282
3283
3284           eval "$ac_cv_use_ipc"
3285           if test "$no_cache" != 1; then
3286             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3287           fi
3288
3289           if test "$wxUSE_IPC" = yes; then
3290             echo "$ac_t""yes" 1>&6
3291           else
3292             echo "$ac_t""no" 1>&6
3293           fi
3294         
3295
3296
3297           echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3298 echo "configure:3299: checking for --enable-cmdline" >&5
3299           no_cache=0
3300           # Check whether --enable-cmdline or --disable-cmdline was given.
3301 if test "${enable_cmdline+set}" = set; then
3302   enableval="$enable_cmdline"
3303   
3304                           if test "$enableval" = yes; then
3305                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3306                           else
3307                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3308                           fi
3309                         
3310 else
3311   
3312                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3313                           if test "x$LINE" != x ; then
3314                             eval "DEFAULT_$LINE"
3315                           else
3316                             no_cache=1
3317                           fi
3318
3319                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3320                         
3321 fi
3322
3323
3324           eval "$ac_cv_use_cmdline"
3325           if test "$no_cache" != 1; then
3326             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3327           fi
3328
3329           if test "$wxUSE_CMDLINE_PARSER" = yes; then
3330             echo "$ac_t""yes" 1>&6
3331           else
3332             echo "$ac_t""no" 1>&6
3333           fi
3334         
3335
3336           echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3337 echo "configure:3338: checking for --enable-datetime" >&5
3338           no_cache=0
3339           # Check whether --enable-datetime or --disable-datetime was given.
3340 if test "${enable_datetime+set}" = set; then
3341   enableval="$enable_datetime"
3342   
3343                           if test "$enableval" = yes; then
3344                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
3345                           else
3346                             ac_cv_use_datetime='wxUSE_DATETIME=no'
3347                           fi
3348                         
3349 else
3350   
3351                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3352                           if test "x$LINE" != x ; then
3353                             eval "DEFAULT_$LINE"
3354                           else
3355                             no_cache=1
3356                           fi
3357
3358                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3359                         
3360 fi
3361
3362
3363           eval "$ac_cv_use_datetime"
3364           if test "$no_cache" != 1; then
3365             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3366           fi
3367
3368           if test "$wxUSE_DATETIME" = yes; then
3369             echo "$ac_t""yes" 1>&6
3370           else
3371             echo "$ac_t""no" 1>&6
3372           fi
3373         
3374
3375           echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3376 echo "configure:3377: checking for --enable-timedate" >&5
3377           no_cache=0
3378           # Check whether --enable-timedate or --disable-timedate was given.
3379 if test "${enable_timedate+set}" = set; then
3380   enableval="$enable_timedate"
3381   
3382                           if test "$enableval" = yes; then
3383                             ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3384                           else
3385                             ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3386                           fi
3387                         
3388 else
3389   
3390                           LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3391                           if test "x$LINE" != x ; then
3392                             eval "DEFAULT_$LINE"
3393                           else
3394                             no_cache=1
3395                           fi
3396
3397                           ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3398                         
3399 fi
3400
3401
3402           eval "$ac_cv_use_timedate"
3403           if test "$no_cache" != 1; then
3404             echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3405           fi
3406
3407           if test "$wxUSE_TIMEDATE" = yes; then
3408             echo "$ac_t""yes" 1>&6
3409           else
3410             echo "$ac_t""no" 1>&6
3411           fi
3412         
3413
3414           echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3415 echo "configure:3416: checking for --enable-stopwatch" >&5
3416           no_cache=0
3417           # Check whether --enable-stopwatch or --disable-stopwatch was given.
3418 if test "${enable_stopwatch+set}" = set; then
3419   enableval="$enable_stopwatch"
3420   
3421                           if test "$enableval" = yes; then
3422                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3423                           else
3424                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3425                           fi
3426                         
3427 else
3428   
3429                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3430                           if test "x$LINE" != x ; then
3431                             eval "DEFAULT_$LINE"
3432                           else
3433                             no_cache=1
3434                           fi
3435
3436                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3437                         
3438 fi
3439
3440
3441           eval "$ac_cv_use_stopwatch"
3442           if test "$no_cache" != 1; then
3443             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3444           fi
3445
3446           if test "$wxUSE_STOPWATCH" = yes; then
3447             echo "$ac_t""yes" 1>&6
3448           else
3449             echo "$ac_t""no" 1>&6
3450           fi
3451         
3452
3453           echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3454 echo "configure:3455: checking for --enable-dialupman" >&5
3455           no_cache=0
3456           # Check whether --enable-dialupman or --disable-dialupman was given.
3457 if test "${enable_dialupman+set}" = set; then
3458   enableval="$enable_dialupman"
3459   
3460                           if test "$enableval" = yes; then
3461                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3462                           else
3463                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3464                           fi
3465                         
3466 else
3467   
3468                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3469                           if test "x$LINE" != x ; then
3470                             eval "DEFAULT_$LINE"
3471                           else
3472                             no_cache=1
3473                           fi
3474
3475                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3476                         
3477 fi
3478
3479
3480           eval "$ac_cv_use_dialupman"
3481           if test "$no_cache" != 1; then
3482             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3483           fi
3484
3485           if test "$wxUSE_DIALUP_MANAGER" = yes; then
3486             echo "$ac_t""yes" 1>&6
3487           else
3488             echo "$ac_t""no" 1>&6
3489           fi
3490         
3491
3492           echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3493 echo "configure:3494: checking for --enable-apple_ieee" >&5
3494           no_cache=0
3495           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3496 if test "${enable_apple_ieee+set}" = set; then
3497   enableval="$enable_apple_ieee"
3498   
3499                           if test "$enableval" = yes; then
3500                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3501                           else
3502                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3503                           fi
3504                         
3505 else
3506   
3507                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3508                           if test "x$LINE" != x ; then
3509                             eval "DEFAULT_$LINE"
3510                           else
3511                             no_cache=1
3512                           fi
3513
3514                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3515                         
3516 fi
3517
3518
3519           eval "$ac_cv_use_apple_ieee"
3520           if test "$no_cache" != 1; then
3521             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3522           fi
3523
3524           if test "$wxUSE_APPLE_IEEE" = yes; then
3525             echo "$ac_t""yes" 1>&6
3526           else
3527             echo "$ac_t""no" 1>&6
3528           fi
3529         
3530
3531           echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3532 echo "configure:3533: checking for --enable-timer" >&5
3533           no_cache=0
3534           # Check whether --enable-timer or --disable-timer was given.
3535 if test "${enable_timer+set}" = set; then
3536   enableval="$enable_timer"
3537   
3538                           if test "$enableval" = yes; then
3539                             ac_cv_use_timer='wxUSE_TIMER=yes'
3540                           else
3541                             ac_cv_use_timer='wxUSE_TIMER=no'
3542                           fi
3543                         
3544 else
3545   
3546                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3547                           if test "x$LINE" != x ; then
3548                             eval "DEFAULT_$LINE"
3549                           else
3550                             no_cache=1
3551                           fi
3552
3553                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3554                         
3555 fi
3556
3557
3558           eval "$ac_cv_use_timer"
3559           if test "$no_cache" != 1; then
3560             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3561           fi
3562
3563           if test "$wxUSE_TIMER" = yes; then
3564             echo "$ac_t""yes" 1>&6
3565           else
3566             echo "$ac_t""no" 1>&6
3567           fi
3568         
3569
3570           echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3571 echo "configure:3572: checking for --enable-wave" >&5
3572           no_cache=0
3573           # Check whether --enable-wave or --disable-wave was given.
3574 if test "${enable_wave+set}" = set; then
3575   enableval="$enable_wave"
3576   
3577                           if test "$enableval" = yes; then
3578                             ac_cv_use_wave='wxUSE_WAVE=yes'
3579                           else
3580                             ac_cv_use_wave='wxUSE_WAVE=no'
3581                           fi
3582                         
3583 else
3584   
3585                           LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3586                           if test "x$LINE" != x ; then
3587                             eval "DEFAULT_$LINE"
3588                           else
3589                             no_cache=1
3590                           fi
3591
3592                           ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3593                         
3594 fi
3595
3596
3597           eval "$ac_cv_use_wave"
3598           if test "$no_cache" != 1; then
3599             echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3600           fi
3601
3602           if test "$wxUSE_WAVE" = yes; then
3603             echo "$ac_t""yes" 1>&6
3604           else
3605             echo "$ac_t""no" 1>&6
3606           fi
3607         
3608
3609           echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3610 echo "configure:3611: checking for --enable-fraction" >&5
3611           no_cache=0
3612           # Check whether --enable-fraction or --disable-fraction was given.
3613 if test "${enable_fraction+set}" = set; then
3614   enableval="$enable_fraction"
3615   
3616                           if test "$enableval" = yes; then
3617                             ac_cv_use_fraction='wxUSE_FRACTION=yes'
3618                           else
3619                             ac_cv_use_fraction='wxUSE_FRACTION=no'
3620                           fi
3621                         
3622 else
3623   
3624                           LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3625                           if test "x$LINE" != x ; then
3626                             eval "DEFAULT_$LINE"
3627                           else
3628                             no_cache=1
3629                           fi
3630
3631                           ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3632                         
3633 fi
3634
3635
3636           eval "$ac_cv_use_fraction"
3637           if test "$no_cache" != 1; then
3638             echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3639           fi
3640
3641           if test "$wxUSE_FRACTION" = yes; then
3642             echo "$ac_t""yes" 1>&6
3643           else
3644             echo "$ac_t""no" 1>&6
3645           fi
3646         
3647
3648           echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3649 echo "configure:3650: checking for --enable-dynlib" >&5
3650           no_cache=0
3651           # Check whether --enable-dynlib or --disable-dynlib was given.
3652 if test "${enable_dynlib+set}" = set; then
3653   enableval="$enable_dynlib"
3654   
3655                           if test "$enableval" = yes; then
3656                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3657                           else
3658                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3659                           fi
3660                         
3661 else
3662   
3663                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3664                           if test "x$LINE" != x ; then
3665                             eval "DEFAULT_$LINE"
3666                           else
3667                             no_cache=1
3668                           fi
3669
3670                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3671                         
3672 fi
3673
3674
3675           eval "$ac_cv_use_dynlib"
3676           if test "$no_cache" != 1; then
3677             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3678           fi
3679
3680           if test "$wxUSE_DYNLIB_CLASS" = yes; then
3681             echo "$ac_t""yes" 1>&6
3682           else
3683             echo "$ac_t""no" 1>&6
3684           fi
3685         
3686
3687           echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3688 echo "configure:3689: checking for --enable-dynamicloader" >&5
3689           no_cache=0
3690           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3691 if test "${enable_dynamicloader+set}" = set; then
3692   enableval="$enable_dynamicloader"
3693   
3694                           if test "$enableval" = yes; then
3695                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3696                           else
3697                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3698                           fi
3699                         
3700 else
3701   
3702                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3703                           if test "x$LINE" != x ; then
3704                             eval "DEFAULT_$LINE"
3705                           else
3706                             no_cache=1
3707                           fi
3708
3709                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3710                         
3711 fi
3712
3713
3714           eval "$ac_cv_use_dynamicloader"
3715           if test "$no_cache" != 1; then
3716             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3717           fi
3718
3719           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3720             echo "$ac_t""yes" 1>&6
3721           else
3722             echo "$ac_t""no" 1>&6
3723           fi
3724         
3725
3726           echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3727 echo "configure:3728: checking for --enable-longlong" >&5
3728           no_cache=0
3729           # Check whether --enable-longlong or --disable-longlong was given.
3730 if test "${enable_longlong+set}" = set; then
3731   enableval="$enable_longlong"
3732   
3733                           if test "$enableval" = yes; then
3734                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3735                           else
3736                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
3737                           fi
3738                         
3739 else
3740   
3741                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3742                           if test "x$LINE" != x ; then
3743                             eval "DEFAULT_$LINE"
3744                           else
3745                             no_cache=1
3746                           fi
3747
3748                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3749                         
3750 fi
3751
3752
3753           eval "$ac_cv_use_longlong"
3754           if test "$no_cache" != 1; then
3755             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3756           fi
3757
3758           if test "$wxUSE_LONGLONG" = yes; then
3759             echo "$ac_t""yes" 1>&6
3760           else
3761             echo "$ac_t""no" 1>&6
3762           fi
3763         
3764
3765           echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3766 echo "configure:3767: checking for --enable-geometry" >&5
3767           no_cache=0
3768           # Check whether --enable-geometry or --disable-geometry was given.
3769 if test "${enable_geometry+set}" = set; then
3770   enableval="$enable_geometry"
3771   
3772                           if test "$enableval" = yes; then
3773                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3774                           else
3775                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3776                           fi
3777                         
3778 else
3779   
3780                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3781                           if test "x$LINE" != x ; then
3782                             eval "DEFAULT_$LINE"
3783                           else
3784                             no_cache=1
3785                           fi
3786
3787                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3788                         
3789 fi
3790
3791
3792           eval "$ac_cv_use_geometry"
3793           if test "$no_cache" != 1; then
3794             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3795           fi
3796
3797           if test "$wxUSE_GEOMETRY" = yes; then
3798             echo "$ac_t""yes" 1>&6
3799           else
3800             echo "$ac_t""no" 1>&6
3801           fi
3802         
3803
3804           echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3805 echo "configure:3806: checking for --enable-log" >&5
3806           no_cache=0
3807           # Check whether --enable-log or --disable-log was given.
3808 if test "${enable_log+set}" = set; then
3809   enableval="$enable_log"
3810   
3811                           if test "$enableval" = yes; then
3812                             ac_cv_use_log='wxUSE_LOG=yes'
3813                           else
3814                             ac_cv_use_log='wxUSE_LOG=no'
3815                           fi
3816                         
3817 else
3818   
3819                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3820                           if test "x$LINE" != x ; then
3821                             eval "DEFAULT_$LINE"
3822                           else
3823                             no_cache=1
3824                           fi
3825
3826                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3827                         
3828 fi
3829
3830
3831           eval "$ac_cv_use_log"
3832           if test "$no_cache" != 1; then
3833             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3834           fi
3835
3836           if test "$wxUSE_LOG" = yes; then
3837             echo "$ac_t""yes" 1>&6
3838           else
3839             echo "$ac_t""no" 1>&6
3840           fi
3841         
3842
3843           echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3844 echo "configure:3845: checking for --enable-streams" >&5
3845           no_cache=0
3846           # Check whether --enable-streams or --disable-streams was given.
3847 if test "${enable_streams+set}" = set; then
3848   enableval="$enable_streams"
3849   
3850                           if test "$enableval" = yes; then
3851                             ac_cv_use_streams='wxUSE_STREAMS=yes'
3852                           else
3853                             ac_cv_use_streams='wxUSE_STREAMS=no'
3854                           fi
3855                         
3856 else
3857   
3858                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3859                           if test "x$LINE" != x ; then
3860                             eval "DEFAULT_$LINE"
3861                           else
3862                             no_cache=1
3863                           fi
3864
3865                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3866                         
3867 fi
3868
3869
3870           eval "$ac_cv_use_streams"
3871           if test "$no_cache" != 1; then
3872             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3873           fi
3874
3875           if test "$wxUSE_STREAMS" = yes; then
3876             echo "$ac_t""yes" 1>&6
3877           else
3878             echo "$ac_t""no" 1>&6
3879           fi
3880         
3881
3882           echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3883 echo "configure:3884: checking for --enable-file" >&5
3884           no_cache=0
3885           # Check whether --enable-file or --disable-file was given.
3886 if test "${enable_file+set}" = set; then
3887   enableval="$enable_file"
3888   
3889                           if test "$enableval" = yes; then
3890                             ac_cv_use_file='wxUSE_FILE=yes'
3891                           else
3892                             ac_cv_use_file='wxUSE_FILE=no'
3893                           fi
3894                         
3895 else
3896   
3897                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3898                           if test "x$LINE" != x ; then
3899                             eval "DEFAULT_$LINE"
3900                           else
3901                             no_cache=1
3902                           fi
3903
3904                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3905                         
3906 fi
3907
3908
3909           eval "$ac_cv_use_file"
3910           if test "$no_cache" != 1; then
3911             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3912           fi
3913
3914           if test "$wxUSE_FILE" = yes; then
3915             echo "$ac_t""yes" 1>&6
3916           else
3917             echo "$ac_t""no" 1>&6
3918           fi
3919         
3920
3921           echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3922 echo "configure:3923: checking for --enable-ffile" >&5
3923           no_cache=0
3924           # Check whether --enable-ffile or --disable-ffile was given.
3925 if test "${enable_ffile+set}" = set; then
3926   enableval="$enable_ffile"
3927   
3928                           if test "$enableval" = yes; then
3929                             ac_cv_use_ffile='wxUSE_FFILE=yes'
3930                           else
3931                             ac_cv_use_ffile='wxUSE_FFILE=no'
3932                           fi
3933                         
3934 else
3935   
3936                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3937                           if test "x$LINE" != x ; then
3938                             eval "DEFAULT_$LINE"
3939                           else
3940                             no_cache=1
3941                           fi
3942
3943                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3944                         
3945 fi
3946
3947
3948           eval "$ac_cv_use_ffile"
3949           if test "$no_cache" != 1; then
3950             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3951           fi
3952
3953           if test "$wxUSE_FFILE" = yes; then
3954             echo "$ac_t""yes" 1>&6
3955           else
3956             echo "$ac_t""no" 1>&6
3957           fi
3958         
3959
3960           echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
3961 echo "configure:3962: checking for --enable-textbuf" >&5
3962           no_cache=0
3963           # Check whether --enable-textbuf or --disable-textbuf was given.
3964 if test "${enable_textbuf+set}" = set; then
3965   enableval="$enable_textbuf"
3966   
3967                           if test "$enableval" = yes; then
3968                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3969                           else
3970                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
3971                           fi
3972                         
3973 else
3974   
3975                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
3976                           if test "x$LINE" != x ; then
3977                             eval "DEFAULT_$LINE"
3978                           else
3979                             no_cache=1
3980                           fi
3981
3982                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
3983                         
3984 fi
3985
3986
3987           eval "$ac_cv_use_textbuf"
3988           if test "$no_cache" != 1; then
3989             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
3990           fi
3991
3992           if test "$wxUSE_TEXTBUFFER" = yes; then
3993             echo "$ac_t""yes" 1>&6
3994           else
3995             echo "$ac_t""no" 1>&6
3996           fi
3997         
3998
3999           echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
4000 echo "configure:4001: checking for --enable-textfile" >&5
4001           no_cache=0
4002           # Check whether --enable-textfile or --disable-textfile was given.
4003 if test "${enable_textfile+set}" = set; then
4004   enableval="$enable_textfile"
4005   
4006                           if test "$enableval" = yes; then
4007                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4008                           else
4009                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4010                           fi
4011                         
4012 else
4013   
4014                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4015                           if test "x$LINE" != x ; then
4016                             eval "DEFAULT_$LINE"
4017                           else
4018                             no_cache=1
4019                           fi
4020
4021                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4022                         
4023 fi
4024
4025
4026           eval "$ac_cv_use_textfile"
4027           if test "$no_cache" != 1; then
4028             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4029           fi
4030
4031           if test "$wxUSE_TEXTFILE" = yes; then
4032             echo "$ac_t""yes" 1>&6
4033           else
4034             echo "$ac_t""no" 1>&6
4035           fi
4036         
4037
4038           echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
4039 echo "configure:4040: checking for --enable-fontmap" >&5
4040           no_cache=0
4041           # Check whether --enable-fontmap or --disable-fontmap was given.
4042 if test "${enable_fontmap+set}" = set; then
4043   enableval="$enable_fontmap"
4044   
4045                           if test "$enableval" = yes; then
4046                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4047                           else
4048                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4049                           fi
4050                         
4051 else
4052   
4053                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4054                           if test "x$LINE" != x ; then
4055                             eval "DEFAULT_$LINE"
4056                           else
4057                             no_cache=1
4058                           fi
4059
4060                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4061                         
4062 fi
4063
4064
4065           eval "$ac_cv_use_fontmap"
4066           if test "$no_cache" != 1; then
4067             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4068           fi
4069
4070           if test "$wxUSE_FONTMAP" = yes; then
4071             echo "$ac_t""yes" 1>&6
4072           else
4073             echo "$ac_t""no" 1>&6
4074           fi
4075         
4076
4077           echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
4078 echo "configure:4079: checking for --enable-unicode" >&5
4079           no_cache=0
4080           # Check whether --enable-unicode or --disable-unicode was given.
4081 if test "${enable_unicode+set}" = set; then
4082   enableval="$enable_unicode"
4083   
4084                           if test "$enableval" = yes; then
4085                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
4086                           else
4087                             ac_cv_use_unicode='wxUSE_UNICODE=no'
4088                           fi
4089                         
4090 else
4091   
4092                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4093                           if test "x$LINE" != x ; then
4094                             eval "DEFAULT_$LINE"
4095                           else
4096                             no_cache=1
4097                           fi
4098
4099                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4100                         
4101 fi
4102
4103
4104           eval "$ac_cv_use_unicode"
4105           if test "$no_cache" != 1; then
4106             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4107           fi
4108
4109           if test "$wxUSE_UNICODE" = yes; then
4110             echo "$ac_t""yes" 1>&6
4111           else
4112             echo "$ac_t""no" 1>&6
4113           fi
4114         
4115
4116           echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
4117 echo "configure:4118: checking for --enable-mslu" >&5
4118           no_cache=0
4119           # Check whether --enable-mslu or --disable-mslu was given.
4120 if test "${enable_mslu+set}" = set; then
4121   enableval="$enable_mslu"
4122   
4123                           if test "$enableval" = yes; then
4124                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4125                           else
4126                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4127                           fi
4128                         
4129 else
4130   
4131                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4132                           if test "x$LINE" != x ; then
4133                             eval "DEFAULT_$LINE"
4134                           else
4135                             no_cache=1
4136                           fi
4137
4138                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4139                         
4140 fi
4141
4142
4143           eval "$ac_cv_use_mslu"
4144           if test "$no_cache" != 1; then
4145             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4146           fi
4147
4148           if test "$wxUSE_UNICODE_MSLU" = yes; then
4149             echo "$ac_t""yes" 1>&6
4150           else
4151             echo "$ac_t""no" 1>&6
4152           fi
4153         
4154
4155           echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
4156 echo "configure:4157: checking for --enable-wxprintfv" >&5
4157           no_cache=0
4158           # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4159 if test "${enable_wxprintfv+set}" = set; then
4160   enableval="$enable_wxprintfv"
4161   
4162                           if test "$enableval" = yes; then
4163                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4164                           else
4165                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4166                           fi
4167                         
4168 else
4169   
4170                           LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4171                           if test "x$LINE" != x ; then
4172                             eval "DEFAULT_$LINE"
4173                           else
4174                             no_cache=1
4175                           fi
4176
4177                           ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4178                         
4179 fi
4180
4181
4182           eval "$ac_cv_use_wxprintfv"
4183           if test "$no_cache" != 1; then
4184             echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4185           fi
4186
4187           if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4188             echo "$ac_t""yes" 1>&6
4189           else
4190             echo "$ac_t""no" 1>&6
4191           fi
4192         
4193
4194           echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4195 echo "configure:4196: checking for --enable-std_iostreams" >&5
4196           no_cache=0
4197           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4198 if test "${enable_std_iostreams+set}" = set; then
4199   enableval="$enable_std_iostreams"
4200   
4201                           if test "$enableval" = yes; then
4202                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4203                           else
4204                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4205                           fi
4206                         
4207 else
4208   
4209                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4210                           if test "x$LINE" != x ; then
4211                             eval "DEFAULT_$LINE"
4212                           else
4213                             no_cache=1
4214                           fi
4215
4216                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4217                         
4218 fi
4219
4220
4221           eval "$ac_cv_use_std_iostreams"
4222           if test "$no_cache" != 1; then
4223             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4224           fi
4225
4226           if test "$wxUSE_STD_IOSTREAM" = yes; then
4227             echo "$ac_t""yes" 1>&6
4228           else
4229             echo "$ac_t""no" 1>&6
4230           fi
4231         
4232
4233           echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4234 echo "configure:4235: checking for --enable-filesystem" >&5
4235           no_cache=0
4236           # Check whether --enable-filesystem or --disable-filesystem was given.
4237 if test "${enable_filesystem+set}" = set; then
4238   enableval="$enable_filesystem"
4239   
4240                           if test "$enableval" = yes; then
4241                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4242                           else
4243                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4244                           fi
4245                         
4246 else
4247   
4248                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4249                           if test "x$LINE" != x ; then
4250                             eval "DEFAULT_$LINE"
4251                           else
4252                             no_cache=1
4253                           fi
4254
4255                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4256                         
4257 fi
4258
4259
4260           eval "$ac_cv_use_filesystem"
4261           if test "$no_cache" != 1; then
4262             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4263           fi
4264
4265           if test "$wxUSE_FILESYSTEM" = yes; then
4266             echo "$ac_t""yes" 1>&6
4267           else
4268             echo "$ac_t""no" 1>&6
4269           fi
4270         
4271
4272           echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4273 echo "configure:4274: checking for --enable-fs_inet" >&5
4274           no_cache=0
4275           # Check whether --enable-fs_inet or --disable-fs_inet was given.
4276 if test "${enable_fs_inet+set}" = set; then
4277   enableval="$enable_fs_inet"
4278   
4279                           if test "$enableval" = yes; then
4280                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4281                           else
4282                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4283                           fi
4284                         
4285 else
4286   
4287                           LINE=`grep "wxUSE_FS_INET" ${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_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4295                         
4296 fi
4297
4298
4299           eval "$ac_cv_use_fs_inet"
4300           if test "$no_cache" != 1; then
4301             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4302           fi
4303
4304           if test "$wxUSE_FS_INET" = yes; then
4305             echo "$ac_t""yes" 1>&6
4306           else
4307             echo "$ac_t""no" 1>&6
4308           fi
4309         
4310
4311           echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4312 echo "configure:4313: checking for --enable-fs_zip" >&5
4313           no_cache=0
4314           # Check whether --enable-fs_zip or --disable-fs_zip was given.
4315 if test "${enable_fs_zip+set}" = set; then
4316   enableval="$enable_fs_zip"
4317   
4318                           if test "$enableval" = yes; then
4319                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4320                           else
4321                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4322                           fi
4323                         
4324 else
4325   
4326                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4327                           if test "x$LINE" != x ; then
4328                             eval "DEFAULT_$LINE"
4329                           else
4330                             no_cache=1
4331                           fi
4332
4333                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4334                         
4335 fi
4336
4337
4338           eval "$ac_cv_use_fs_zip"
4339           if test "$no_cache" != 1; then
4340             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4341           fi
4342
4343           if test "$wxUSE_FS_ZIP" = yes; then
4344             echo "$ac_t""yes" 1>&6
4345           else
4346             echo "$ac_t""no" 1>&6
4347           fi
4348         
4349
4350           echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4351 echo "configure:4352: checking for --enable-zipstream" >&5
4352           no_cache=0
4353           # Check whether --enable-zipstream or --disable-zipstream was given.
4354 if test "${enable_zipstream+set}" = set; then
4355   enableval="$enable_zipstream"
4356   
4357                           if test "$enableval" = yes; then
4358                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4359                           else
4360                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4361                           fi
4362                         
4363 else
4364   
4365                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4366                           if test "x$LINE" != x ; then
4367                             eval "DEFAULT_$LINE"
4368                           else
4369                             no_cache=1
4370                           fi
4371
4372                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4373                         
4374 fi
4375
4376
4377           eval "$ac_cv_use_zipstream"
4378           if test "$no_cache" != 1; then
4379             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4380           fi
4381
4382           if test "$wxUSE_ZIPSTREAM" = yes; then
4383             echo "$ac_t""yes" 1>&6
4384           else
4385             echo "$ac_t""no" 1>&6
4386           fi
4387         
4388
4389
4390           echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4391 echo "configure:4392: checking for --enable-catch_segvs" >&5
4392           no_cache=0
4393           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4394 if test "${enable_catch_segvs+set}" = set; then
4395   enableval="$enable_catch_segvs"
4396   
4397                           if test "$enableval" = yes; then
4398                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4399                           else
4400                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4401                           fi
4402                         
4403 else
4404   
4405                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4406                           if test "x$LINE" != x ; then
4407                             eval "DEFAULT_$LINE"
4408                           else
4409                             no_cache=1
4410                           fi
4411
4412                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4413                         
4414 fi
4415
4416
4417           eval "$ac_cv_use_catch_segvs"
4418           if test "$no_cache" != 1; then
4419             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4420           fi
4421
4422           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4423             echo "$ac_t""yes" 1>&6
4424           else
4425             echo "$ac_t""no" 1>&6
4426           fi
4427         
4428
4429           echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4430 echo "configure:4431: checking for --enable-snglinst" >&5
4431           no_cache=0
4432           # Check whether --enable-snglinst or --disable-snglinst was given.
4433 if test "${enable_snglinst+set}" = set; then
4434   enableval="$enable_snglinst"
4435   
4436                           if test "$enableval" = yes; then
4437                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4438                           else
4439                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4440                           fi
4441                         
4442 else
4443   
4444                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4445                           if test "x$LINE" != x ; then
4446                             eval "DEFAULT_$LINE"
4447                           else
4448                             no_cache=1
4449                           fi
4450
4451                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4452                         
4453 fi
4454
4455
4456           eval "$ac_cv_use_snglinst"
4457           if test "$no_cache" != 1; then
4458             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4459           fi
4460
4461           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4462             echo "$ac_t""yes" 1>&6
4463           else
4464             echo "$ac_t""no" 1>&6
4465           fi
4466         
4467
4468
4469           echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4470 echo "configure:4471: checking for --enable-mimetype" >&5
4471           no_cache=0
4472           # Check whether --enable-mimetype or --disable-mimetype was given.
4473 if test "${enable_mimetype+set}" = set; then
4474   enableval="$enable_mimetype"
4475   
4476                           if test "$enableval" = yes; then
4477                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4478                           else
4479                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4480                           fi
4481                         
4482 else
4483   
4484                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4485                           if test "x$LINE" != x ; then
4486                             eval "DEFAULT_$LINE"
4487                           else
4488                             no_cache=1
4489                           fi
4490
4491                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4492                         
4493 fi
4494
4495
4496           eval "$ac_cv_use_mimetype"
4497           if test "$no_cache" != 1; then
4498             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4499           fi
4500
4501           if test "$wxUSE_MIMETYPE" = yes; then
4502             echo "$ac_t""yes" 1>&6
4503           else
4504             echo "$ac_t""no" 1>&6
4505           fi
4506         
4507
4508           echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4509 echo "configure:4510: checking for --enable-system_options" >&5
4510           no_cache=0
4511           # Check whether --enable-system_options or --disable-system_options was given.
4512 if test "${enable_system_options+set}" = set; then
4513   enableval="$enable_system_options"
4514   
4515                           if test "$enableval" = yes; then
4516                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4517                           else
4518                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4519                           fi
4520                         
4521 else
4522   
4523                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4524                           if test "x$LINE" != x ; then
4525                             eval "DEFAULT_$LINE"
4526                           else
4527                             no_cache=1
4528                           fi
4529
4530                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4531                         
4532 fi
4533
4534
4535           eval "$ac_cv_use_system_options"
4536           if test "$no_cache" != 1; then
4537             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4538           fi
4539
4540           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4541             echo "$ac_t""yes" 1>&6
4542           else
4543             echo "$ac_t""no" 1>&6
4544           fi
4545         
4546
4547
4548           echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
4549 echo "configure:4550: checking for --enable-url" >&5
4550           no_cache=0
4551           # Check whether --enable-url or --disable-url was given.
4552 if test "${enable_url+set}" = set; then
4553   enableval="$enable_url"
4554   
4555                           if test "$enableval" = yes; then
4556                             ac_cv_use_url='wxUSE_URL=yes'
4557                           else
4558                             ac_cv_use_url='wxUSE_URL=no'
4559                           fi
4560                         
4561 else
4562   
4563                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4564                           if test "x$LINE" != x ; then
4565                             eval "DEFAULT_$LINE"
4566                           else
4567                             no_cache=1
4568                           fi
4569
4570                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4571                         
4572 fi
4573
4574
4575           eval "$ac_cv_use_url"
4576           if test "$no_cache" != 1; then
4577             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4578           fi
4579
4580           if test "$wxUSE_URL" = yes; then
4581             echo "$ac_t""yes" 1>&6
4582           else
4583             echo "$ac_t""no" 1>&6
4584           fi
4585         
4586
4587           echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
4588 echo "configure:4589: checking for --enable-protocol" >&5
4589           no_cache=0
4590           # Check whether --enable-protocol or --disable-protocol was given.
4591 if test "${enable_protocol+set}" = set; then
4592   enableval="$enable_protocol"
4593   
4594                           if test "$enableval" = yes; then
4595                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4596                           else
4597                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4598                           fi
4599                         
4600 else
4601   
4602                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4603                           if test "x$LINE" != x ; then
4604                             eval "DEFAULT_$LINE"
4605                           else
4606                             no_cache=1
4607                           fi
4608
4609                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4610                         
4611 fi
4612
4613
4614           eval "$ac_cv_use_protocol"
4615           if test "$no_cache" != 1; then
4616             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4617           fi
4618
4619           if test "$wxUSE_PROTOCOL" = yes; then
4620             echo "$ac_t""yes" 1>&6
4621           else
4622             echo "$ac_t""no" 1>&6
4623           fi
4624         
4625
4626           echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
4627 echo "configure:4628: checking for --enable-protocol_http" >&5
4628           no_cache=0
4629           # Check whether --enable-protocol_http or --disable-protocol_http was given.
4630 if test "${enable_protocol_http+set}" = set; then
4631   enableval="$enable_protocol_http"
4632   
4633                           if test "$enableval" = yes; then
4634                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4635                           else
4636                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4637                           fi
4638                         
4639 else
4640   
4641                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4642                           if test "x$LINE" != x ; then
4643                             eval "DEFAULT_$LINE"
4644                           else
4645                             no_cache=1
4646                           fi
4647
4648                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4649                         
4650 fi
4651
4652
4653           eval "$ac_cv_use_protocol_http"
4654           if test "$no_cache" != 1; then
4655             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4656           fi
4657
4658           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4659             echo "$ac_t""yes" 1>&6
4660           else
4661             echo "$ac_t""no" 1>&6
4662           fi
4663         
4664
4665           echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
4666 echo "configure:4667: checking for --enable-protocol_ftp" >&5
4667           no_cache=0
4668           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4669 if test "${enable_protocol_ftp+set}" = set; then
4670   enableval="$enable_protocol_ftp"
4671   
4672                           if test "$enableval" = yes; then
4673                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4674                           else
4675                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4676                           fi
4677                         
4678 else
4679   
4680                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4681                           if test "x$LINE" != x ; then
4682                             eval "DEFAULT_$LINE"
4683                           else
4684                             no_cache=1
4685                           fi
4686
4687                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4688                         
4689 fi
4690
4691
4692           eval "$ac_cv_use_protocol_ftp"
4693           if test "$no_cache" != 1; then
4694             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4695           fi
4696
4697           if test "$wxUSE_PROTOCOL_FTP" = yes; then
4698             echo "$ac_t""yes" 1>&6
4699           else
4700             echo "$ac_t""no" 1>&6
4701           fi
4702         
4703
4704           echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
4705 echo "configure:4706: checking for --enable-protocol_file" >&5
4706           no_cache=0
4707           # Check whether --enable-protocol_file or --disable-protocol_file was given.
4708 if test "${enable_protocol_file+set}" = set; then
4709   enableval="$enable_protocol_file"
4710   
4711                           if test "$enableval" = yes; then
4712                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4713                           else
4714                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4715                           fi
4716                         
4717 else
4718   
4719                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4720                           if test "x$LINE" != x ; then
4721                             eval "DEFAULT_$LINE"
4722                           else
4723                             no_cache=1
4724                           fi
4725
4726                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4727                         
4728 fi
4729
4730
4731           eval "$ac_cv_use_protocol_file"
4732           if test "$no_cache" != 1; then
4733             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4734           fi
4735
4736           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4737             echo "$ac_t""yes" 1>&6
4738           else
4739             echo "$ac_t""no" 1>&6
4740           fi
4741         
4742
4743
4744
4745
4746           echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4747 echo "configure:4748: checking for --enable-threads" >&5
4748           no_cache=0
4749           # Check whether --enable-threads or --disable-threads was given.
4750 if test "${enable_threads+set}" = set; then
4751   enableval="$enable_threads"
4752   
4753                           if test "$enableval" = yes; then
4754                             ac_cv_use_threads='wxUSE_THREADS=yes'
4755                           else
4756                             ac_cv_use_threads='wxUSE_THREADS=no'
4757                           fi
4758                         
4759 else
4760   
4761                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4762                           if test "x$LINE" != x ; then
4763                             eval "DEFAULT_$LINE"
4764                           else
4765                             no_cache=1
4766                           fi
4767
4768                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4769                         
4770 fi
4771
4772
4773           eval "$ac_cv_use_threads"
4774           if test "$no_cache" != 1; then
4775             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4776           fi
4777
4778           if test "$wxUSE_THREADS" = yes; then
4779             echo "$ac_t""yes" 1>&6
4780           else
4781             echo "$ac_t""no" 1>&6
4782           fi
4783         
4784
4785 if test "$wxUSE_GUI" = "yes"; then
4786
4787
4788
4789           echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4790 echo "configure:4791: checking for --enable-docview" >&5
4791           no_cache=0
4792           # Check whether --enable-docview or --disable-docview was given.
4793 if test "${enable_docview+set}" = set; then
4794   enableval="$enable_docview"
4795   
4796                           if test "$enableval" = yes; then
4797                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4798                           else
4799                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4800                           fi
4801                         
4802 else
4803   
4804                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4805                           if test "x$LINE" != x ; then
4806                             eval "DEFAULT_$LINE"
4807                           else
4808                             no_cache=1
4809                           fi
4810
4811                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4812                         
4813 fi
4814
4815
4816           eval "$ac_cv_use_docview"
4817           if test "$no_cache" != 1; then
4818             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4819           fi
4820
4821           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4822             echo "$ac_t""yes" 1>&6
4823           else
4824             echo "$ac_t""no" 1>&6
4825           fi
4826         
4827
4828           echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4829 echo "configure:4830: checking for --enable-help" >&5
4830           no_cache=0
4831           # Check whether --enable-help or --disable-help was given.
4832 if test "${enable_help+set}" = set; then
4833   enableval="$enable_help"
4834   
4835                           if test "$enableval" = yes; then
4836                             ac_cv_use_help='wxUSE_HELP=yes'
4837                           else
4838                             ac_cv_use_help='wxUSE_HELP=no'
4839                           fi
4840                         
4841 else
4842   
4843                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4844                           if test "x$LINE" != x ; then
4845                             eval "DEFAULT_$LINE"
4846                           else
4847                             no_cache=1
4848                           fi
4849
4850                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4851                         
4852 fi
4853
4854
4855           eval "$ac_cv_use_help"
4856           if test "$no_cache" != 1; then
4857             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4858           fi
4859
4860           if test "$wxUSE_HELP" = yes; then
4861             echo "$ac_t""yes" 1>&6
4862           else
4863             echo "$ac_t""no" 1>&6
4864           fi
4865         
4866
4867           echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4868 echo "configure:4869: checking for --enable-mshtmlhelp" >&5
4869           no_cache=0
4870           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4871 if test "${enable_mshtmlhelp+set}" = set; then
4872   enableval="$enable_mshtmlhelp"
4873   
4874                           if test "$enableval" = yes; then
4875                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4876                           else
4877                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4878                           fi
4879                         
4880 else
4881   
4882                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4883                           if test "x$LINE" != x ; then
4884                             eval "DEFAULT_$LINE"
4885                           else
4886                             no_cache=1
4887                           fi
4888
4889                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4890                         
4891 fi
4892
4893
4894           eval "$ac_cv_use_mshtmlhelp"
4895           if test "$no_cache" != 1; then
4896             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4897           fi
4898
4899           if test "$wxUSE_MS_HTML_HELP" = yes; then
4900             echo "$ac_t""yes" 1>&6
4901           else
4902             echo "$ac_t""no" 1>&6
4903           fi
4904         
4905
4906           echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4907 echo "configure:4908: checking for --enable-html" >&5
4908           no_cache=0
4909           # Check whether --enable-html or --disable-html was given.
4910 if test "${enable_html+set}" = set; then
4911   enableval="$enable_html"
4912   
4913                           if test "$enableval" = yes; then
4914                             ac_cv_use_html='wxUSE_HTML=yes'
4915                           else
4916                             ac_cv_use_html='wxUSE_HTML=no'
4917                           fi
4918                         
4919 else
4920   
4921                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4922                           if test "x$LINE" != x ; then
4923                             eval "DEFAULT_$LINE"
4924                           else
4925                             no_cache=1
4926                           fi
4927
4928                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4929                         
4930 fi
4931
4932
4933           eval "$ac_cv_use_html"
4934           if test "$no_cache" != 1; then
4935             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4936           fi
4937
4938           if test "$wxUSE_HTML" = yes; then
4939             echo "$ac_t""yes" 1>&6
4940           else
4941             echo "$ac_t""no" 1>&6
4942           fi
4943         
4944
4945           echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4946 echo "configure:4947: checking for --enable-htmlhelp" >&5
4947           no_cache=0
4948           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4949 if test "${enable_htmlhelp+set}" = set; then
4950   enableval="$enable_htmlhelp"
4951   
4952                           if test "$enableval" = yes; then
4953                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4954                           else
4955                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4956                           fi
4957                         
4958 else
4959   
4960                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4961                           if test "x$LINE" != x ; then
4962                             eval "DEFAULT_$LINE"
4963                           else
4964                             no_cache=1
4965                           fi
4966
4967                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4968                         
4969 fi
4970
4971
4972           eval "$ac_cv_use_htmlhelp"
4973           if test "$no_cache" != 1; then
4974             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4975           fi
4976
4977           if test "$wxUSE_WXHTML_HELP" = yes; then
4978             echo "$ac_t""yes" 1>&6
4979           else
4980             echo "$ac_t""no" 1>&6
4981           fi
4982         
4983
4984           echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4985 echo "configure:4986: checking for --enable-constraints" >&5
4986           no_cache=0
4987           # Check whether --enable-constraints or --disable-constraints was given.
4988 if test "${enable_constraints+set}" = set; then
4989   enableval="$enable_constraints"
4990   
4991                           if test "$enableval" = yes; then
4992                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4993                           else
4994                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4995                           fi
4996                         
4997 else
4998   
4999                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5000                           if test "x$LINE" != x ; then
5001                             eval "DEFAULT_$LINE"
5002                           else
5003                             no_cache=1
5004                           fi
5005
5006                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5007                         
5008 fi
5009
5010
5011           eval "$ac_cv_use_constraints"
5012           if test "$no_cache" != 1; then
5013             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5014           fi
5015
5016           if test "$wxUSE_CONSTRAINTS" = yes; then
5017             echo "$ac_t""yes" 1>&6
5018           else
5019             echo "$ac_t""no" 1>&6
5020           fi
5021         
5022
5023           echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
5024 echo "configure:5025: checking for --enable-printarch" >&5
5025           no_cache=0
5026           # Check whether --enable-printarch or --disable-printarch was given.
5027 if test "${enable_printarch+set}" = set; then
5028   enableval="$enable_printarch"
5029   
5030                           if test "$enableval" = yes; then
5031                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5032                           else
5033                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5034                           fi
5035                         
5036 else
5037   
5038                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5039                           if test "x$LINE" != x ; then
5040                             eval "DEFAULT_$LINE"
5041                           else
5042                             no_cache=1
5043                           fi
5044
5045                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5046                         
5047 fi
5048
5049
5050           eval "$ac_cv_use_printarch"
5051           if test "$no_cache" != 1; then
5052             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5053           fi
5054
5055           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5056             echo "$ac_t""yes" 1>&6
5057           else
5058             echo "$ac_t""no" 1>&6
5059           fi
5060         
5061
5062           echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
5063 echo "configure:5064: checking for --enable-mdi" >&5
5064           no_cache=0
5065           # Check whether --enable-mdi or --disable-mdi was given.
5066 if test "${enable_mdi+set}" = set; then
5067   enableval="$enable_mdi"
5068   
5069                           if test "$enableval" = yes; then
5070                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5071                           else
5072                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5073                           fi
5074                         
5075 else
5076   
5077                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5078                           if test "x$LINE" != x ; then
5079                             eval "DEFAULT_$LINE"
5080                           else
5081                             no_cache=1
5082                           fi
5083
5084                           ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5085                         
5086 fi
5087
5088
5089           eval "$ac_cv_use_mdi"
5090           if test "$no_cache" != 1; then
5091             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5092           fi
5093
5094           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5095             echo "$ac_t""yes" 1>&6
5096           else
5097             echo "$ac_t""no" 1>&6
5098           fi
5099         
5100
5101           echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
5102 echo "configure:5103: checking for --enable-loggui" >&5
5103           no_cache=0
5104           # Check whether --enable-loggui or --disable-loggui was given.
5105 if test "${enable_loggui+set}" = set; then
5106   enableval="$enable_loggui"
5107   
5108                           if test "$enableval" = yes; then
5109                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5110                           else
5111                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
5112                           fi
5113                         
5114 else
5115   
5116                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5117                           if test "x$LINE" != x ; then
5118                             eval "DEFAULT_$LINE"
5119                           else
5120                             no_cache=1
5121                           fi
5122
5123                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5124                         
5125 fi
5126
5127
5128           eval "$ac_cv_use_loggui"
5129           if test "$no_cache" != 1; then
5130             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5131           fi
5132
5133           if test "$wxUSE_LOGGUI" = yes; then
5134             echo "$ac_t""yes" 1>&6
5135           else
5136             echo "$ac_t""no" 1>&6
5137           fi
5138         
5139
5140           echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
5141 echo "configure:5142: checking for --enable-logwin" >&5
5142           no_cache=0
5143           # Check whether --enable-logwin or --disable-logwin was given.
5144 if test "${enable_logwin+set}" = set; then
5145   enableval="$enable_logwin"
5146   
5147                           if test "$enableval" = yes; then
5148                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5149                           else
5150                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5151                           fi
5152                         
5153 else
5154   
5155                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5156                           if test "x$LINE" != x ; then
5157                             eval "DEFAULT_$LINE"
5158                           else
5159                             no_cache=1
5160                           fi
5161
5162                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5163                         
5164 fi
5165
5166
5167           eval "$ac_cv_use_logwin"
5168           if test "$no_cache" != 1; then
5169             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5170           fi
5171
5172           if test "$wxUSE_LOGWINDOW" = yes; then
5173             echo "$ac_t""yes" 1>&6
5174           else
5175             echo "$ac_t""no" 1>&6
5176           fi
5177         
5178
5179           echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
5180 echo "configure:5181: checking for --enable-logdialog" >&5
5181           no_cache=0
5182           # Check whether --enable-logdialog or --disable-logdialog was given.
5183 if test "${enable_logdialog+set}" = set; then
5184   enableval="$enable_logdialog"
5185   
5186                           if test "$enableval" = yes; then
5187                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5188                           else
5189                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5190                           fi
5191                         
5192 else
5193   
5194                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5195                           if test "x$LINE" != x ; then
5196                             eval "DEFAULT_$LINE"
5197                           else
5198                             no_cache=1
5199                           fi
5200
5201                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5202                         
5203 fi
5204
5205
5206           eval "$ac_cv_use_logdialog"
5207           if test "$no_cache" != 1; then
5208             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5209           fi
5210
5211           if test "$wxUSE_LOGDIALOG" = yes; then
5212             echo "$ac_t""yes" 1>&6
5213           else
5214             echo "$ac_t""no" 1>&6
5215           fi
5216         
5217
5218
5219           echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
5220 echo "configure:5221: checking for --enable-postscript" >&5
5221           no_cache=0
5222           # Check whether --enable-postscript or --disable-postscript was given.
5223 if test "${enable_postscript+set}" = set; then
5224   enableval="$enable_postscript"
5225   
5226                           if test "$enableval" = yes; then
5227                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5228                           else
5229                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5230                           fi
5231                         
5232 else
5233   
5234                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5235                           if test "x$LINE" != x ; then
5236                             eval "DEFAULT_$LINE"
5237                           else
5238                             no_cache=1
5239                           fi
5240
5241                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5242                         
5243 fi
5244
5245
5246           eval "$ac_cv_use_postscript"
5247           if test "$no_cache" != 1; then
5248             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5249           fi
5250
5251           if test "$wxUSE_POSTSCRIPT" = yes; then
5252             echo "$ac_t""yes" 1>&6
5253           else
5254             echo "$ac_t""no" 1>&6
5255           fi
5256         
5257
5258
5259
5260
5261           echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
5262 echo "configure:5263: checking for --enable-prologio" >&5
5263           no_cache=0
5264           # Check whether --enable-prologio or --disable-prologio was given.
5265 if test "${enable_prologio+set}" = set; then
5266   enableval="$enable_prologio"
5267   
5268                           if test "$enableval" = yes; then
5269                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5270                           else
5271                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5272                           fi
5273                         
5274 else
5275   
5276                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5277                           if test "x$LINE" != x ; then
5278                             eval "DEFAULT_$LINE"
5279                           else
5280                             no_cache=1
5281                           fi
5282
5283                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5284                         
5285 fi
5286
5287
5288           eval "$ac_cv_use_prologio"
5289           if test "$no_cache" != 1; then
5290             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5291           fi
5292
5293           if test "$wxUSE_PROLOGIO" = yes; then
5294             echo "$ac_t""yes" 1>&6
5295           else
5296             echo "$ac_t""no" 1>&6
5297           fi
5298         
5299
5300           echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
5301 echo "configure:5302: checking for --enable-resources" >&5
5302           no_cache=0
5303           # Check whether --enable-resources or --disable-resources was given.
5304 if test "${enable_resources+set}" = set; then
5305   enableval="$enable_resources"
5306   
5307                           if test "$enableval" = yes; then
5308                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
5309                           else
5310                             ac_cv_use_resources='wxUSE_RESOURCES=no'
5311                           fi
5312                         
5313 else
5314   
5315                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5316                           if test "x$LINE" != x ; then
5317                             eval "DEFAULT_$LINE"
5318                           else
5319                             no_cache=1
5320                           fi
5321
5322                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5323                         
5324 fi
5325
5326
5327           eval "$ac_cv_use_resources"
5328           if test "$no_cache" != 1; then
5329             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5330           fi
5331
5332           if test "$wxUSE_RESOURCES" = yes; then
5333             echo "$ac_t""yes" 1>&6
5334           else
5335             echo "$ac_t""no" 1>&6
5336           fi
5337         
5338
5339
5340           echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
5341 echo "configure:5342: checking for --enable-xresources" >&5
5342           no_cache=0
5343           # Check whether --enable-xresources or --disable-xresources was given.
5344 if test "${enable_xresources+set}" = set; then
5345   enableval="$enable_xresources"
5346   
5347                           if test "$enableval" = yes; then
5348                             ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5349                           else
5350                             ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5351                           fi
5352                         
5353 else
5354   
5355                           LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5356                           if test "x$LINE" != x ; then
5357                             eval "DEFAULT_$LINE"
5358                           else
5359                             no_cache=1
5360                           fi
5361
5362                           ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5363                         
5364 fi
5365
5366
5367           eval "$ac_cv_use_xresources"
5368           if test "$no_cache" != 1; then
5369             echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5370           fi
5371
5372           if test "$wxUSE_X_RESOURCES" = yes; then
5373             echo "$ac_t""yes" 1>&6
5374           else
5375             echo "$ac_t""no" 1>&6
5376           fi
5377         
5378
5379
5380
5381           echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
5382 echo "configure:5383: checking for --enable-clipboard" >&5
5383           no_cache=0
5384           # Check whether --enable-clipboard or --disable-clipboard was given.
5385 if test "${enable_clipboard+set}" = set; then
5386   enableval="$enable_clipboard"
5387   
5388                           if test "$enableval" = yes; then
5389                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5390                           else
5391                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5392                           fi
5393                         
5394 else
5395   
5396                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5397                           if test "x$LINE" != x ; then
5398                             eval "DEFAULT_$LINE"
5399                           else
5400                             no_cache=1
5401                           fi
5402
5403                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5404                         
5405 fi
5406
5407
5408           eval "$ac_cv_use_clipboard"
5409           if test "$no_cache" != 1; then
5410             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5411           fi
5412
5413           if test "$wxUSE_CLIPBOARD" = yes; then
5414             echo "$ac_t""yes" 1>&6
5415           else
5416             echo "$ac_t""no" 1>&6
5417           fi
5418         
5419
5420           echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5421 echo "configure:5422: checking for --enable-dnd" >&5
5422           no_cache=0
5423           # Check whether --enable-dnd or --disable-dnd was given.
5424 if test "${enable_dnd+set}" = set; then
5425   enableval="$enable_dnd"
5426   
5427                           if test "$enableval" = yes; then
5428                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5429                           else
5430                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5431                           fi
5432                         
5433 else
5434   
5435                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5436                           if test "x$LINE" != x ; then
5437                             eval "DEFAULT_$LINE"
5438                           else
5439                             no_cache=1
5440                           fi
5441
5442                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5443                         
5444 fi
5445
5446
5447           eval "$ac_cv_use_dnd"
5448           if test "$no_cache" != 1; then
5449             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5450           fi
5451
5452           if test "$wxUSE_DRAG_AND_DROP" = yes; then
5453             echo "$ac_t""yes" 1>&6
5454           else
5455             echo "$ac_t""no" 1>&6
5456           fi
5457         
5458
5459           echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5460 echo "configure:5461: checking for --enable-metafile" >&5
5461           no_cache=0
5462           # Check whether --enable-metafile or --disable-metafile was given.
5463 if test "${enable_metafile+set}" = set; then
5464   enableval="$enable_metafile"
5465   
5466                           if test "$enableval" = yes; then
5467                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
5468                           else
5469                             ac_cv_use_metafile='wxUSE_METAFILE=no'
5470                           fi
5471                         
5472 else
5473   
5474                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5475                           if test "x$LINE" != x ; then
5476                             eval "DEFAULT_$LINE"
5477                           else
5478                             no_cache=1
5479                           fi
5480
5481                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5482                         
5483 fi
5484
5485
5486           eval "$ac_cv_use_metafile"
5487           if test "$no_cache" != 1; then
5488             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5489           fi
5490
5491           if test "$wxUSE_METAFILE" = yes; then
5492             echo "$ac_t""yes" 1>&6
5493           else
5494             echo "$ac_t""no" 1>&6
5495           fi
5496         
5497
5498
5499           echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5500 echo "configure:5501: checking for --enable-treelayout" >&5
5501           no_cache=0
5502           # Check whether --enable-treelayout or --disable-treelayout was given.
5503 if test "${enable_treelayout+set}" = set; then
5504   enableval="$enable_treelayout"
5505   
5506                           if test "$enableval" = yes; then
5507                             ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5508                           else
5509                             ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5510                           fi
5511                         
5512 else
5513   
5514                           LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5515                           if test "x$LINE" != x ; then
5516                             eval "DEFAULT_$LINE"
5517                           else
5518                             no_cache=1
5519                           fi
5520
5521                           ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5522                         
5523 fi
5524
5525
5526           eval "$ac_cv_use_treelayout"
5527           if test "$no_cache" != 1; then
5528             echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5529           fi
5530
5531           if test "$wxUSE_TREELAYOUT" = yes; then
5532             echo "$ac_t""yes" 1>&6
5533           else
5534             echo "$ac_t""no" 1>&6
5535           fi
5536         
5537
5538
5539
5540           echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5541 echo "configure:5542: checking for --enable-controls" >&5
5542           no_cache=0
5543           # Check whether --enable-controls or --disable-controls was given.
5544 if test "${enable_controls+set}" = set; then
5545   enableval="$enable_controls"
5546   
5547                           if test "$enableval" = yes; then
5548                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
5549                           else
5550                             ac_cv_use_controls='wxUSE_CONTROLS=no'
5551                           fi
5552                         
5553 else
5554   
5555                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5556                           if test "x$LINE" != x ; then
5557                             eval "DEFAULT_$LINE"
5558                           else
5559                             no_cache=1
5560                           fi
5561
5562                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5563                         
5564 fi
5565
5566
5567           eval "$ac_cv_use_controls"
5568           if test "$no_cache" != 1; then
5569             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5570           fi
5571
5572           if test "$wxUSE_CONTROLS" = yes; then
5573             echo "$ac_t""yes" 1>&6
5574           else
5575             echo "$ac_t""no" 1>&6
5576           fi
5577         
5578
5579 if test "$wxUSE_CONTROLS" = "yes"; then
5580   DEFAULT_wxUSE_ACCEL=yes
5581   DEFAULT_wxUSE_BMPBUTTON=yes
5582   DEFAULT_wxUSE_BUTTON=yes
5583   DEFAULT_wxUSE_CALCTRL=no
5584   DEFAULT_wxUSE_CARET=yes
5585   DEFAULT_wxUSE_COMBOBOX=yes
5586   DEFAULT_wxUSE_CHECKBOX=yes
5587   DEFAULT_wxUSE_CHECKLISTBOX=yes
5588   DEFAULT_wxUSE_CHOICE=yes
5589   DEFAULT_wxUSE_GAUGE=yes
5590   DEFAULT_wxUSE_GRID=yes
5591   DEFAULT_wxUSE_NEW_GRID=yes
5592   DEFAULT_wxUSE_IMAGLIST=yes
5593   DEFAULT_wxUSE_LISTBOX=yes
5594   DEFAULT_wxUSE_LISTCTRL=yes
5595   DEFAULT_wxUSE_NOTEBOOK=yes
5596   DEFAULT_wxUSE_PROPSHEET=yes
5597   DEFAULT_wxUSE_RADIOBOX=yes
5598   DEFAULT_wxUSE_RADIOBTN=yes
5599   DEFAULT_wxUSE_SASH=yes
5600   DEFAULT_wxUSE_SCROLLBAR=yes
5601   DEFAULT_wxUSE_SLIDER=yes
5602   DEFAULT_wxUSE_SPINBTN=yes
5603   DEFAULT_wxUSE_SPINCTRL=yes
5604   DEFAULT_wxUSE_SPLITTER=yes
5605   DEFAULT_wxUSE_STATBMP=yes
5606   DEFAULT_wxUSE_STATBOX=yes
5607   DEFAULT_wxUSE_STATLINE=yes
5608   DEFAULT_wxUSE_STATUSBAR=yes
5609   DEFAULT_wxUSE_TAB_DIALOG=yes
5610   DEFAULT_wxUSE_TOGGLEBTN=yes
5611   DEFAULT_wxUSE_TOOLBAR=yes
5612   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5613   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5614   DEFAULT_wxUSE_TOOLTIPS=yes
5615   DEFAULT_wxUSE_TREECTRL=yes
5616   DEFAULT_wxUSE_POPUPWIN=yes
5617   DEFAULT_wxUSE_TIPWINDOW=yes
5618 elif test "$wxUSE_CONTROLS" = "no"; then
5619   DEFAULT_wxUSE_ACCEL=no
5620   DEFAULT_wxUSE_BMPBUTTON=no
5621   DEFAULT_wxUSE_BUTTON=no
5622   DEFAULT_wxUSE_CALCTRL=no
5623   DEFAULT_wxUSE_CARET=no
5624   DEFAULT_wxUSE_COMBOBOX=no
5625   DEFAULT_wxUSE_CHECKBOX=no
5626   DEFAULT_wxUSE_CHECKLISTBOX=no
5627   DEFAULT_wxUSE_CHOICE=no
5628   DEFAULT_wxUSE_GAUGE=no
5629   DEFAULT_wxUSE_GRID=no
5630   DEFAULT_wxUSE_NEW_GRID=no
5631   DEFAULT_wxUSE_IMAGLIST=no
5632   DEFAULT_wxUSE_LISTBOX=no
5633   DEFAULT_wxUSE_LISTCTRL=no
5634   DEFAULT_wxUSE_NOTEBOOK=no
5635   DEFAULT_wxUSE_PROPSHEET=no
5636   DEFAULT_wxUSE_RADIOBOX=no
5637   DEFAULT_wxUSE_RADIOBTN=no
5638   DEFAULT_wxUSE_SASH=no
5639   DEFAULT_wxUSE_SCROLLBAR=no
5640   DEFAULT_wxUSE_SLIDER=no
5641   DEFAULT_wxUSE_SPINBTN=no
5642   DEFAULT_wxUSE_SPINCTRL=no
5643   DEFAULT_wxUSE_SPLITTER=no
5644   DEFAULT_wxUSE_STATBMP=no
5645   DEFAULT_wxUSE_STATBOX=no
5646   DEFAULT_wxUSE_STATLINE=no
5647   DEFAULT_wxUSE_STATUSBAR=no
5648   DEFAULT_wxUSE_TAB_DIALOG=no
5649   DEFAULT_wxUSE_TOGGLEBTN=no
5650   DEFAULT_wxUSE_TOOLBAR=no
5651   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5652   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5653   DEFAULT_wxUSE_TOOLTIPS=no
5654   DEFAULT_wxUSE_TREECTRL=no
5655   DEFAULT_wxUSE_POPUPWIN=no
5656   DEFAULT_wxUSE_TIPWINDOW=no
5657 fi
5658
5659
5660           echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5661 echo "configure:5662: checking for --enable-accel" >&5
5662           no_cache=0
5663           # Check whether --enable-accel or --disable-accel was given.
5664 if test "${enable_accel+set}" = set; then
5665   enableval="$enable_accel"
5666   
5667                           if test "$enableval" = yes; then
5668                             ac_cv_use_accel='wxUSE_ACCEL=yes'
5669                           else
5670                             ac_cv_use_accel='wxUSE_ACCEL=no'
5671                           fi
5672                         
5673 else
5674   
5675                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5676                           if test "x$LINE" != x ; then
5677                             eval "DEFAULT_$LINE"
5678                           else
5679                             no_cache=1
5680                           fi
5681
5682                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5683                         
5684 fi
5685
5686
5687           eval "$ac_cv_use_accel"
5688           if test "$no_cache" != 1; then
5689             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5690           fi
5691
5692           if test "$wxUSE_ACCEL" = yes; then
5693             echo "$ac_t""yes" 1>&6
5694           else
5695             echo "$ac_t""no" 1>&6
5696           fi
5697         
5698
5699           echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5700 echo "configure:5701: checking for --enable-button" >&5
5701           no_cache=0
5702           # Check whether --enable-button or --disable-button was given.
5703 if test "${enable_button+set}" = set; then
5704   enableval="$enable_button"
5705   
5706                           if test "$enableval" = yes; then
5707                             ac_cv_use_button='wxUSE_BUTTON=yes'
5708                           else
5709                             ac_cv_use_button='wxUSE_BUTTON=no'
5710                           fi
5711                         
5712 else
5713   
5714                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5715                           if test "x$LINE" != x ; then
5716                             eval "DEFAULT_$LINE"
5717                           else
5718                             no_cache=1
5719                           fi
5720
5721                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5722                         
5723 fi
5724
5725
5726           eval "$ac_cv_use_button"
5727           if test "$no_cache" != 1; then
5728             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5729           fi
5730
5731           if test "$wxUSE_BUTTON" = yes; then
5732             echo "$ac_t""yes" 1>&6
5733           else
5734             echo "$ac_t""no" 1>&6
5735           fi
5736         
5737
5738           echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5739 echo "configure:5740: checking for --enable-bmpbutton" >&5
5740           no_cache=0
5741           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5742 if test "${enable_bmpbutton+set}" = set; then
5743   enableval="$enable_bmpbutton"
5744   
5745                           if test "$enableval" = yes; then
5746                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5747                           else
5748                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5749                           fi
5750                         
5751 else
5752   
5753                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5754                           if test "x$LINE" != x ; then
5755                             eval "DEFAULT_$LINE"
5756                           else
5757                             no_cache=1
5758                           fi
5759
5760                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5761                         
5762 fi
5763
5764
5765           eval "$ac_cv_use_bmpbutton"
5766           if test "$no_cache" != 1; then
5767             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5768           fi
5769
5770           if test "$wxUSE_BMPBUTTON" = yes; then
5771             echo "$ac_t""yes" 1>&6
5772           else
5773             echo "$ac_t""no" 1>&6
5774           fi
5775         
5776
5777           echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5778 echo "configure:5779: checking for --enable-calendar" >&5
5779           no_cache=0
5780           # Check whether --enable-calendar or --disable-calendar was given.
5781 if test "${enable_calendar+set}" = set; then
5782   enableval="$enable_calendar"
5783   
5784                           if test "$enableval" = yes; then
5785                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5786                           else
5787                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
5788                           fi
5789                         
5790 else
5791   
5792                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5793                           if test "x$LINE" != x ; then
5794                             eval "DEFAULT_$LINE"
5795                           else
5796                             no_cache=1
5797                           fi
5798
5799                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5800                         
5801 fi
5802
5803
5804           eval "$ac_cv_use_calendar"
5805           if test "$no_cache" != 1; then
5806             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5807           fi
5808
5809           if test "$wxUSE_CALCTRL" = yes; then
5810             echo "$ac_t""yes" 1>&6
5811           else
5812             echo "$ac_t""no" 1>&6
5813           fi
5814         
5815
5816           echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5817 echo "configure:5818: checking for --enable-caret" >&5
5818           no_cache=0
5819           # Check whether --enable-caret or --disable-caret was given.
5820 if test "${enable_caret+set}" = set; then
5821   enableval="$enable_caret"
5822   
5823                           if test "$enableval" = yes; then
5824                             ac_cv_use_caret='wxUSE_CARET=yes'
5825                           else
5826                             ac_cv_use_caret='wxUSE_CARET=no'
5827                           fi
5828                         
5829 else
5830   
5831                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5832                           if test "x$LINE" != x ; then
5833                             eval "DEFAULT_$LINE"
5834                           else
5835                             no_cache=1
5836                           fi
5837
5838                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5839                         
5840 fi
5841
5842
5843           eval "$ac_cv_use_caret"
5844           if test "$no_cache" != 1; then
5845             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5846           fi
5847
5848           if test "$wxUSE_CARET" = yes; then
5849             echo "$ac_t""yes" 1>&6
5850           else
5851             echo "$ac_t""no" 1>&6
5852           fi
5853         
5854
5855           echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5856 echo "configure:5857: checking for --enable-checkbox" >&5
5857           no_cache=0
5858           # Check whether --enable-checkbox or --disable-checkbox was given.
5859 if test "${enable_checkbox+set}" = set; then
5860   enableval="$enable_checkbox"
5861   
5862                           if test "$enableval" = yes; then
5863                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5864                           else
5865                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5866                           fi
5867                         
5868 else
5869   
5870                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5871                           if test "x$LINE" != x ; then
5872                             eval "DEFAULT_$LINE"
5873                           else
5874                             no_cache=1
5875                           fi
5876
5877                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5878                         
5879 fi
5880
5881
5882           eval "$ac_cv_use_checkbox"
5883           if test "$no_cache" != 1; then
5884             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5885           fi
5886
5887           if test "$wxUSE_CHECKBOX" = yes; then
5888             echo "$ac_t""yes" 1>&6
5889           else
5890             echo "$ac_t""no" 1>&6
5891           fi
5892         
5893
5894           echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5895 echo "configure:5896: checking for --enable-checklst" >&5
5896           no_cache=0
5897           # Check whether --enable-checklst or --disable-checklst was given.
5898 if test "${enable_checklst+set}" = set; then
5899   enableval="$enable_checklst"
5900   
5901                           if test "$enableval" = yes; then
5902                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5903                           else
5904                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
5905                           fi
5906                         
5907 else
5908   
5909                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5910                           if test "x$LINE" != x ; then
5911                             eval "DEFAULT_$LINE"
5912                           else
5913                             no_cache=1
5914                           fi
5915
5916                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5917                         
5918 fi
5919
5920
5921           eval "$ac_cv_use_checklst"
5922           if test "$no_cache" != 1; then
5923             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5924           fi
5925
5926           if test "$wxUSE_CHECKLST" = yes; then
5927             echo "$ac_t""yes" 1>&6
5928           else
5929             echo "$ac_t""no" 1>&6
5930           fi
5931         
5932
5933           echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5934 echo "configure:5935: checking for --enable-choice" >&5
5935           no_cache=0
5936           # Check whether --enable-choice or --disable-choice was given.
5937 if test "${enable_choice+set}" = set; then
5938   enableval="$enable_choice"
5939   
5940                           if test "$enableval" = yes; then
5941                             ac_cv_use_choice='wxUSE_CHOICE=yes'
5942                           else
5943                             ac_cv_use_choice='wxUSE_CHOICE=no'
5944                           fi
5945                         
5946 else
5947   
5948                           LINE=`grep "wxUSE_CHOICE" ${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_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5956                         
5957 fi
5958
5959
5960           eval "$ac_cv_use_choice"
5961           if test "$no_cache" != 1; then
5962             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5963           fi
5964
5965           if test "$wxUSE_CHOICE" = yes; then
5966             echo "$ac_t""yes" 1>&6
5967           else
5968             echo "$ac_t""no" 1>&6
5969           fi
5970         
5971
5972           echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5973 echo "configure:5974: checking for --enable-combobox" >&5
5974           no_cache=0
5975           # Check whether --enable-combobox or --disable-combobox was given.
5976 if test "${enable_combobox+set}" = set; then
5977   enableval="$enable_combobox"
5978   
5979                           if test "$enableval" = yes; then
5980                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5981                           else
5982                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5983                           fi
5984                         
5985 else
5986   
5987                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5988                           if test "x$LINE" != x ; then
5989                             eval "DEFAULT_$LINE"
5990                           else
5991                             no_cache=1
5992                           fi
5993
5994                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5995                         
5996 fi
5997
5998
5999           eval "$ac_cv_use_combobox"
6000           if test "$no_cache" != 1; then
6001             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6002           fi
6003
6004           if test "$wxUSE_COMBOBOX" = yes; then
6005             echo "$ac_t""yes" 1>&6
6006           else
6007             echo "$ac_t""no" 1>&6
6008           fi
6009         
6010
6011           echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
6012 echo "configure:6013: checking for --enable-gauge" >&5
6013           no_cache=0
6014           # Check whether --enable-gauge or --disable-gauge was given.
6015 if test "${enable_gauge+set}" = set; then
6016   enableval="$enable_gauge"
6017   
6018                           if test "$enableval" = yes; then
6019                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
6020                           else
6021                             ac_cv_use_gauge='wxUSE_GAUGE=no'
6022                           fi
6023                         
6024 else
6025   
6026                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6027                           if test "x$LINE" != x ; then
6028                             eval "DEFAULT_$LINE"
6029                           else
6030                             no_cache=1
6031                           fi
6032
6033                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6034                         
6035 fi
6036
6037
6038           eval "$ac_cv_use_gauge"
6039           if test "$no_cache" != 1; then
6040             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6041           fi
6042
6043           if test "$wxUSE_GAUGE" = yes; then
6044             echo "$ac_t""yes" 1>&6
6045           else
6046             echo "$ac_t""no" 1>&6
6047           fi
6048         
6049
6050           echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
6051 echo "configure:6052: checking for --enable-grid" >&5
6052           no_cache=0
6053           # Check whether --enable-grid or --disable-grid was given.
6054 if test "${enable_grid+set}" = set; then
6055   enableval="$enable_grid"
6056   
6057                           if test "$enableval" = yes; then
6058                             ac_cv_use_grid='wxUSE_GRID=yes'
6059                           else
6060                             ac_cv_use_grid='wxUSE_GRID=no'
6061                           fi
6062                         
6063 else
6064   
6065                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6066                           if test "x$LINE" != x ; then
6067                             eval "DEFAULT_$LINE"
6068                           else
6069                             no_cache=1
6070                           fi
6071
6072                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6073                         
6074 fi
6075
6076
6077           eval "$ac_cv_use_grid"
6078           if test "$no_cache" != 1; then
6079             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6080           fi
6081
6082           if test "$wxUSE_GRID" = yes; then
6083             echo "$ac_t""yes" 1>&6
6084           else
6085             echo "$ac_t""no" 1>&6
6086           fi
6087         
6088
6089           echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
6090 echo "configure:6091: checking for --enable-newgrid" >&5
6091           no_cache=0
6092           # Check whether --enable-newgrid or --disable-newgrid was given.
6093 if test "${enable_newgrid+set}" = set; then
6094   enableval="$enable_newgrid"
6095   
6096                           if test "$enableval" = yes; then
6097                             ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6098                           else
6099                             ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6100                           fi
6101                         
6102 else
6103   
6104                           LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6105                           if test "x$LINE" != x ; then
6106                             eval "DEFAULT_$LINE"
6107                           else
6108                             no_cache=1
6109                           fi
6110
6111                           ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6112                         
6113 fi
6114
6115
6116           eval "$ac_cv_use_newgrid"
6117           if test "$no_cache" != 1; then
6118             echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6119           fi
6120
6121           if test "$wxUSE_NEW_GRID" = yes; then
6122             echo "$ac_t""yes" 1>&6
6123           else
6124             echo "$ac_t""no" 1>&6
6125           fi
6126         
6127
6128           echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
6129 echo "configure:6130: checking for --enable-imaglist" >&5
6130           no_cache=0
6131           # Check whether --enable-imaglist or --disable-imaglist was given.
6132 if test "${enable_imaglist+set}" = set; then
6133   enableval="$enable_imaglist"
6134   
6135                           if test "$enableval" = yes; then
6136                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6137                           else
6138                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6139                           fi
6140                         
6141 else
6142   
6143                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6144                           if test "x$LINE" != x ; then
6145                             eval "DEFAULT_$LINE"
6146                           else
6147                             no_cache=1
6148                           fi
6149
6150                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6151                         
6152 fi
6153
6154
6155           eval "$ac_cv_use_imaglist"
6156           if test "$no_cache" != 1; then
6157             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6158           fi
6159
6160           if test "$wxUSE_IMAGLIST" = yes; then
6161             echo "$ac_t""yes" 1>&6
6162           else
6163             echo "$ac_t""no" 1>&6
6164           fi
6165         
6166
6167           echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
6168 echo "configure:6169: checking for --enable-listbox" >&5
6169           no_cache=0
6170           # Check whether --enable-listbox or --disable-listbox was given.
6171 if test "${enable_listbox+set}" = set; then
6172   enableval="$enable_listbox"
6173   
6174                           if test "$enableval" = yes; then
6175                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6176                           else
6177                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
6178                           fi
6179                         
6180 else
6181   
6182                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6183                           if test "x$LINE" != x ; then
6184                             eval "DEFAULT_$LINE"
6185                           else
6186                             no_cache=1
6187                           fi
6188
6189                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6190                         
6191 fi
6192
6193
6194           eval "$ac_cv_use_listbox"
6195           if test "$no_cache" != 1; then
6196             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6197           fi
6198
6199           if test "$wxUSE_LISTBOX" = yes; then
6200             echo "$ac_t""yes" 1>&6
6201           else
6202             echo "$ac_t""no" 1>&6
6203           fi
6204         
6205
6206           echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
6207 echo "configure:6208: checking for --enable-listctrl" >&5
6208           no_cache=0
6209           # Check whether --enable-listctrl or --disable-listctrl was given.
6210 if test "${enable_listctrl+set}" = set; then
6211   enableval="$enable_listctrl"
6212   
6213                           if test "$enableval" = yes; then
6214                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6215                           else
6216                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6217                           fi
6218                         
6219 else
6220   
6221                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6222                           if test "x$LINE" != x ; then
6223                             eval "DEFAULT_$LINE"
6224                           else
6225                             no_cache=1
6226                           fi
6227
6228                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6229                         
6230 fi
6231
6232
6233           eval "$ac_cv_use_listctrl"
6234           if test "$no_cache" != 1; then
6235             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6236           fi
6237
6238           if test "$wxUSE_LISTCTRL" = yes; then
6239             echo "$ac_t""yes" 1>&6
6240           else
6241             echo "$ac_t""no" 1>&6
6242           fi
6243         
6244
6245           echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
6246 echo "configure:6247: checking for --enable-notebook" >&5
6247           no_cache=0
6248           # Check whether --enable-notebook or --disable-notebook was given.
6249 if test "${enable_notebook+set}" = set; then
6250   enableval="$enable_notebook"
6251   
6252                           if test "$enableval" = yes; then
6253                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6254                           else
6255                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6256                           fi
6257                         
6258 else
6259   
6260                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6261                           if test "x$LINE" != x ; then
6262                             eval "DEFAULT_$LINE"
6263                           else
6264                             no_cache=1
6265                           fi
6266
6267                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6268                         
6269 fi
6270
6271
6272           eval "$ac_cv_use_notebook"
6273           if test "$no_cache" != 1; then
6274             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6275           fi
6276
6277           if test "$wxUSE_NOTEBOOK" = yes; then
6278             echo "$ac_t""yes" 1>&6
6279           else
6280             echo "$ac_t""no" 1>&6
6281           fi
6282         
6283
6284           echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
6285 echo "configure:6286: checking for --enable-propsheet" >&5
6286           no_cache=0
6287           # Check whether --enable-propsheet or --disable-propsheet was given.
6288 if test "${enable_propsheet+set}" = set; then
6289   enableval="$enable_propsheet"
6290   
6291                           if test "$enableval" = yes; then
6292                             ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6293                           else
6294                             ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6295                           fi
6296                         
6297 else
6298   
6299                           LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6300                           if test "x$LINE" != x ; then
6301                             eval "DEFAULT_$LINE"
6302                           else
6303                             no_cache=1
6304                           fi
6305
6306                           ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6307                         
6308 fi
6309
6310
6311           eval "$ac_cv_use_propsheet"
6312           if test "$no_cache" != 1; then
6313             echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6314           fi
6315
6316           if test "$wxUSE_PROPSHEET" = yes; then
6317             echo "$ac_t""yes" 1>&6
6318           else
6319             echo "$ac_t""no" 1>&6
6320           fi
6321         
6322
6323           echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
6324 echo "configure:6325: checking for --enable-radiobox" >&5
6325           no_cache=0
6326           # Check whether --enable-radiobox or --disable-radiobox was given.
6327 if test "${enable_radiobox+set}" = set; then
6328   enableval="$enable_radiobox"
6329   
6330                           if test "$enableval" = yes; then
6331                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6332                           else
6333                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6334                           fi
6335                         
6336 else
6337   
6338                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6339                           if test "x$LINE" != x ; then
6340                             eval "DEFAULT_$LINE"
6341                           else
6342                             no_cache=1
6343                           fi
6344
6345                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6346                         
6347 fi
6348
6349
6350           eval "$ac_cv_use_radiobox"
6351           if test "$no_cache" != 1; then
6352             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6353           fi
6354
6355           if test "$wxUSE_RADIOBOX" = yes; then
6356             echo "$ac_t""yes" 1>&6
6357           else
6358             echo "$ac_t""no" 1>&6
6359           fi
6360         
6361
6362           echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
6363 echo "configure:6364: checking for --enable-radiobtn" >&5
6364           no_cache=0
6365           # Check whether --enable-radiobtn or --disable-radiobtn was given.
6366 if test "${enable_radiobtn+set}" = set; then
6367   enableval="$enable_radiobtn"
6368   
6369                           if test "$enableval" = yes; then
6370                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6371                           else
6372                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6373                           fi
6374                         
6375 else
6376   
6377                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6378                           if test "x$LINE" != x ; then
6379                             eval "DEFAULT_$LINE"
6380                           else
6381                             no_cache=1
6382                           fi
6383
6384                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6385                         
6386 fi
6387
6388
6389           eval "$ac_cv_use_radiobtn"
6390           if test "$no_cache" != 1; then
6391             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6392           fi
6393
6394           if test "$wxUSE_RADIOBTN" = yes; then
6395             echo "$ac_t""yes" 1>&6
6396           else
6397             echo "$ac_t""no" 1>&6
6398           fi
6399         
6400
6401           echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
6402 echo "configure:6403: checking for --enable-sash" >&5
6403           no_cache=0
6404           # Check whether --enable-sash or --disable-sash was given.
6405 if test "${enable_sash+set}" = set; then
6406   enableval="$enable_sash"
6407   
6408                           if test "$enableval" = yes; then
6409                             ac_cv_use_sash='wxUSE_SASH=yes'
6410                           else
6411                             ac_cv_use_sash='wxUSE_SASH=no'
6412                           fi
6413                         
6414 else
6415   
6416                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6417                           if test "x$LINE" != x ; then
6418                             eval "DEFAULT_$LINE"
6419                           else
6420                             no_cache=1
6421                           fi
6422
6423                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6424                         
6425 fi
6426
6427
6428           eval "$ac_cv_use_sash"
6429           if test "$no_cache" != 1; then
6430             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6431           fi
6432
6433           if test "$wxUSE_SASH" = yes; then
6434             echo "$ac_t""yes" 1>&6
6435           else
6436             echo "$ac_t""no" 1>&6
6437           fi
6438         
6439
6440           echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
6441 echo "configure:6442: checking for --enable-scrollbar" >&5
6442           no_cache=0
6443           # Check whether --enable-scrollbar or --disable-scrollbar was given.
6444 if test "${enable_scrollbar+set}" = set; then
6445   enableval="$enable_scrollbar"
6446   
6447                           if test "$enableval" = yes; then
6448                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6449                           else
6450                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6451                           fi
6452                         
6453 else
6454   
6455                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6456                           if test "x$LINE" != x ; then
6457                             eval "DEFAULT_$LINE"
6458                           else
6459                             no_cache=1
6460                           fi
6461
6462                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6463                         
6464 fi
6465
6466
6467           eval "$ac_cv_use_scrollbar"
6468           if test "$no_cache" != 1; then
6469             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6470           fi
6471
6472           if test "$wxUSE_SCROLLBAR" = yes; then
6473             echo "$ac_t""yes" 1>&6
6474           else
6475             echo "$ac_t""no" 1>&6
6476           fi
6477         
6478
6479           echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6480 echo "configure:6481: checking for --enable-slider" >&5
6481           no_cache=0
6482           # Check whether --enable-slider or --disable-slider was given.
6483 if test "${enable_slider+set}" = set; then
6484   enableval="$enable_slider"
6485   
6486                           if test "$enableval" = yes; then
6487                             ac_cv_use_slider='wxUSE_SLIDER=yes'
6488                           else
6489                             ac_cv_use_slider='wxUSE_SLIDER=no'
6490                           fi
6491                         
6492 else
6493   
6494                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6495                           if test "x$LINE" != x ; then
6496                             eval "DEFAULT_$LINE"
6497                           else
6498                             no_cache=1
6499                           fi
6500
6501                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6502                         
6503 fi
6504
6505
6506           eval "$ac_cv_use_slider"
6507           if test "$no_cache" != 1; then
6508             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6509           fi
6510
6511           if test "$wxUSE_SLIDER" = yes; then
6512             echo "$ac_t""yes" 1>&6
6513           else
6514             echo "$ac_t""no" 1>&6
6515           fi
6516         
6517
6518           echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6519 echo "configure:6520: checking for --enable-spinbtn" >&5
6520           no_cache=0
6521           # Check whether --enable-spinbtn or --disable-spinbtn was given.
6522 if test "${enable_spinbtn+set}" = set; then
6523   enableval="$enable_spinbtn"
6524   
6525                           if test "$enableval" = yes; then
6526                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6527                           else
6528                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6529                           fi
6530                         
6531 else
6532   
6533                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6534                           if test "x$LINE" != x ; then
6535                             eval "DEFAULT_$LINE"
6536                           else
6537                             no_cache=1
6538                           fi
6539
6540                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6541                         
6542 fi
6543
6544
6545           eval "$ac_cv_use_spinbtn"
6546           if test "$no_cache" != 1; then
6547             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6548           fi
6549
6550           if test "$wxUSE_SPINBTN" = yes; then
6551             echo "$ac_t""yes" 1>&6
6552           else
6553             echo "$ac_t""no" 1>&6
6554           fi
6555         
6556
6557           echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6558 echo "configure:6559: checking for --enable-spinctrl" >&5
6559           no_cache=0
6560           # Check whether --enable-spinctrl or --disable-spinctrl was given.
6561 if test "${enable_spinctrl+set}" = set; then
6562   enableval="$enable_spinctrl"
6563   
6564                           if test "$enableval" = yes; then
6565                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6566                           else
6567                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6568                           fi
6569                         
6570 else
6571   
6572                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6573                           if test "x$LINE" != x ; then
6574                             eval "DEFAULT_$LINE"
6575                           else
6576                             no_cache=1
6577                           fi
6578
6579                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6580                         
6581 fi
6582
6583
6584           eval "$ac_cv_use_spinctrl"
6585           if test "$no_cache" != 1; then
6586             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6587           fi
6588
6589           if test "$wxUSE_SPINCTRL" = yes; then
6590             echo "$ac_t""yes" 1>&6
6591           else
6592             echo "$ac_t""no" 1>&6
6593           fi
6594         
6595
6596           echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6597 echo "configure:6598: checking for --enable-splitter" >&5
6598           no_cache=0
6599           # Check whether --enable-splitter or --disable-splitter was given.
6600 if test "${enable_splitter+set}" = set; then
6601   enableval="$enable_splitter"
6602   
6603                           if test "$enableval" = yes; then
6604                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6605                           else
6606                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
6607                           fi
6608                         
6609 else
6610   
6611                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6612                           if test "x$LINE" != x ; then
6613                             eval "DEFAULT_$LINE"
6614                           else
6615                             no_cache=1
6616                           fi
6617
6618                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6619                         
6620 fi
6621
6622
6623           eval "$ac_cv_use_splitter"
6624           if test "$no_cache" != 1; then
6625             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6626           fi
6627
6628           if test "$wxUSE_SPLITTER" = yes; then
6629             echo "$ac_t""yes" 1>&6
6630           else
6631             echo "$ac_t""no" 1>&6
6632           fi
6633         
6634
6635           echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6636 echo "configure:6637: checking for --enable-statbmp" >&5
6637           no_cache=0
6638           # Check whether --enable-statbmp or --disable-statbmp was given.
6639 if test "${enable_statbmp+set}" = set; then
6640   enableval="$enable_statbmp"
6641   
6642                           if test "$enableval" = yes; then
6643                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6644                           else
6645                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
6646                           fi
6647                         
6648 else
6649   
6650                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6651                           if test "x$LINE" != x ; then
6652                             eval "DEFAULT_$LINE"
6653                           else
6654                             no_cache=1
6655                           fi
6656
6657                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6658                         
6659 fi
6660
6661
6662           eval "$ac_cv_use_statbmp"
6663           if test "$no_cache" != 1; then
6664             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6665           fi
6666
6667           if test "$wxUSE_STATBMP" = yes; then
6668             echo "$ac_t""yes" 1>&6
6669           else
6670             echo "$ac_t""no" 1>&6
6671           fi
6672         
6673
6674           echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6675 echo "configure:6676: checking for --enable-statbox" >&5
6676           no_cache=0
6677           # Check whether --enable-statbox or --disable-statbox was given.
6678 if test "${enable_statbox+set}" = set; then
6679   enableval="$enable_statbox"
6680   
6681                           if test "$enableval" = yes; then
6682                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
6683                           else
6684                             ac_cv_use_statbox='wxUSE_STATBOX=no'
6685                           fi
6686                         
6687 else
6688   
6689                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6690                           if test "x$LINE" != x ; then
6691                             eval "DEFAULT_$LINE"
6692                           else
6693                             no_cache=1
6694                           fi
6695
6696                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6697                         
6698 fi
6699
6700
6701           eval "$ac_cv_use_statbox"
6702           if test "$no_cache" != 1; then
6703             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6704           fi
6705
6706           if test "$wxUSE_STATBOX" = yes; then
6707             echo "$ac_t""yes" 1>&6
6708           else
6709             echo "$ac_t""no" 1>&6
6710           fi
6711         
6712
6713           echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6714 echo "configure:6715: checking for --enable-statline" >&5
6715           no_cache=0
6716           # Check whether --enable-statline or --disable-statline was given.
6717 if test "${enable_statline+set}" = set; then
6718   enableval="$enable_statline"
6719   
6720                           if test "$enableval" = yes; then
6721                             ac_cv_use_statline='wxUSE_STATLINE=yes'
6722                           else
6723                             ac_cv_use_statline='wxUSE_STATLINE=no'
6724                           fi
6725                         
6726 else
6727   
6728                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6729                           if test "x$LINE" != x ; then
6730                             eval "DEFAULT_$LINE"
6731                           else
6732                             no_cache=1
6733                           fi
6734
6735                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6736                         
6737 fi
6738
6739
6740           eval "$ac_cv_use_statline"
6741           if test "$no_cache" != 1; then
6742             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6743           fi
6744
6745           if test "$wxUSE_STATLINE" = yes; then
6746             echo "$ac_t""yes" 1>&6
6747           else
6748             echo "$ac_t""no" 1>&6
6749           fi
6750         
6751
6752           echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6753 echo "configure:6754: checking for --enable-stattext" >&5
6754           no_cache=0
6755           # Check whether --enable-stattext or --disable-stattext was given.
6756 if test "${enable_stattext+set}" = set; then
6757   enableval="$enable_stattext"
6758   
6759                           if test "$enableval" = yes; then
6760                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6761                           else
6762                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
6763                           fi
6764                         
6765 else
6766   
6767                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6768                           if test "x$LINE" != x ; then
6769                             eval "DEFAULT_$LINE"
6770                           else
6771                             no_cache=1
6772                           fi
6773
6774                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6775                         
6776 fi
6777
6778
6779           eval "$ac_cv_use_stattext"
6780           if test "$no_cache" != 1; then
6781             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6782           fi
6783
6784           if test "$wxUSE_STATTEXT" = yes; then
6785             echo "$ac_t""yes" 1>&6
6786           else
6787             echo "$ac_t""no" 1>&6
6788           fi
6789         
6790
6791           echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6792 echo "configure:6793: checking for --enable-statusbar" >&5
6793           no_cache=0
6794           # Check whether --enable-statusbar or --disable-statusbar was given.
6795 if test "${enable_statusbar+set}" = set; then
6796   enableval="$enable_statusbar"
6797   
6798                           if test "$enableval" = yes; then
6799                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6800                           else
6801                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6802                           fi
6803                         
6804 else
6805   
6806                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6807                           if test "x$LINE" != x ; then
6808                             eval "DEFAULT_$LINE"
6809                           else
6810                             no_cache=1
6811                           fi
6812
6813                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6814                         
6815 fi
6816
6817
6818           eval "$ac_cv_use_statusbar"
6819           if test "$no_cache" != 1; then
6820             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6821           fi
6822
6823           if test "$wxUSE_STATUSBAR" = yes; then
6824             echo "$ac_t""yes" 1>&6
6825           else
6826             echo "$ac_t""no" 1>&6
6827           fi
6828         
6829
6830           echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6831 echo "configure:6832: checking for --enable-tabdialog" >&5
6832           no_cache=0
6833           # Check whether --enable-tabdialog or --disable-tabdialog was given.
6834 if test "${enable_tabdialog+set}" = set; then
6835   enableval="$enable_tabdialog"
6836   
6837                           if test "$enableval" = yes; then
6838                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6839                           else
6840                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6841                           fi
6842                         
6843 else
6844   
6845                           LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6846                           if test "x$LINE" != x ; then
6847                             eval "DEFAULT_$LINE"
6848                           else
6849                             no_cache=1
6850                           fi
6851
6852                           ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6853                         
6854 fi
6855
6856
6857           eval "$ac_cv_use_tabdialog"
6858           if test "$no_cache" != 1; then
6859             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6860           fi
6861
6862           if test "$wxUSE_TABDIALOG" = yes; then
6863             echo "$ac_t""yes" 1>&6
6864           else
6865             echo "$ac_t""no" 1>&6
6866           fi
6867         
6868
6869           echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6870 echo "configure:6871: checking for --enable-textctrl" >&5
6871           no_cache=0
6872           # Check whether --enable-textctrl or --disable-textctrl was given.
6873 if test "${enable_textctrl+set}" = set; then
6874   enableval="$enable_textctrl"
6875   
6876                           if test "$enableval" = yes; then
6877                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6878                           else
6879                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6880                           fi
6881                         
6882 else
6883   
6884                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6885                           if test "x$LINE" != x ; then
6886                             eval "DEFAULT_$LINE"
6887                           else
6888                             no_cache=1
6889                           fi
6890
6891                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6892                         
6893 fi
6894
6895
6896           eval "$ac_cv_use_textctrl"
6897           if test "$no_cache" != 1; then
6898             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6899           fi
6900
6901           if test "$wxUSE_TEXTCTRL" = yes; then
6902             echo "$ac_t""yes" 1>&6
6903           else
6904             echo "$ac_t""no" 1>&6
6905           fi
6906         
6907
6908           echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6909 echo "configure:6910: checking for --enable-togglebtn" >&5
6910           no_cache=0
6911           # Check whether --enable-togglebtn or --disable-togglebtn was given.
6912 if test "${enable_togglebtn+set}" = set; then
6913   enableval="$enable_togglebtn"
6914   
6915                           if test "$enableval" = yes; then
6916                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6917                           else
6918                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6919                           fi
6920                         
6921 else
6922   
6923                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6924                           if test "x$LINE" != x ; then
6925                             eval "DEFAULT_$LINE"
6926                           else
6927                             no_cache=1
6928                           fi
6929
6930                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6931                         
6932 fi
6933
6934
6935           eval "$ac_cv_use_togglebtn"
6936           if test "$no_cache" != 1; then
6937             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6938           fi
6939
6940           if test "$wxUSE_TOGGLEBTN" = yes; then
6941             echo "$ac_t""yes" 1>&6
6942           else
6943             echo "$ac_t""no" 1>&6
6944           fi
6945         
6946
6947           echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6948 echo "configure:6949: checking for --enable-toolbar" >&5
6949           no_cache=0
6950           # Check whether --enable-toolbar or --disable-toolbar was given.
6951 if test "${enable_toolbar+set}" = set; then
6952   enableval="$enable_toolbar"
6953   
6954                           if test "$enableval" = yes; then
6955                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6956                           else
6957                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6958                           fi
6959                         
6960 else
6961   
6962                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6963                           if test "x$LINE" != x ; then
6964                             eval "DEFAULT_$LINE"
6965                           else
6966                             no_cache=1
6967                           fi
6968
6969                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6970                         
6971 fi
6972
6973
6974           eval "$ac_cv_use_toolbar"
6975           if test "$no_cache" != 1; then
6976             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6977           fi
6978
6979           if test "$wxUSE_TOOLBAR" = yes; then
6980             echo "$ac_t""yes" 1>&6
6981           else
6982             echo "$ac_t""no" 1>&6
6983           fi
6984         
6985
6986           echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6987 echo "configure:6988: checking for --enable-tbarnative" >&5
6988           no_cache=0
6989           # Check whether --enable-tbarnative or --disable-tbarnative was given.
6990 if test "${enable_tbarnative+set}" = set; then
6991   enableval="$enable_tbarnative"
6992   
6993                           if test "$enableval" = yes; then
6994                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6995                           else
6996                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6997                           fi
6998                         
6999 else
7000   
7001                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7002                           if test "x$LINE" != x ; then
7003                             eval "DEFAULT_$LINE"
7004                           else
7005                             no_cache=1
7006                           fi
7007
7008                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7009                         
7010 fi
7011
7012
7013           eval "$ac_cv_use_tbarnative"
7014           if test "$no_cache" != 1; then
7015             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7016           fi
7017
7018           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7019             echo "$ac_t""yes" 1>&6
7020           else
7021             echo "$ac_t""no" 1>&6
7022           fi
7023         
7024
7025           echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
7026 echo "configure:7027: checking for --enable-tbarsmpl" >&5
7027           no_cache=0
7028           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7029 if test "${enable_tbarsmpl+set}" = set; then
7030   enableval="$enable_tbarsmpl"
7031   
7032                           if test "$enableval" = yes; then
7033                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7034                           else
7035                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7036                           fi
7037                         
7038 else
7039   
7040                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7041                           if test "x$LINE" != x ; then
7042                             eval "DEFAULT_$LINE"
7043                           else
7044                             no_cache=1
7045                           fi
7046
7047                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7048                         
7049 fi
7050
7051
7052           eval "$ac_cv_use_tbarsmpl"
7053           if test "$no_cache" != 1; then
7054             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7055           fi
7056
7057           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7058             echo "$ac_t""yes" 1>&6
7059           else
7060             echo "$ac_t""no" 1>&6
7061           fi
7062         
7063
7064           echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
7065 echo "configure:7066: checking for --enable-treectrl" >&5
7066           no_cache=0
7067           # Check whether --enable-treectrl or --disable-treectrl was given.
7068 if test "${enable_treectrl+set}" = set; then
7069   enableval="$enable_treectrl"
7070   
7071                           if test "$enableval" = yes; then
7072                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7073                           else
7074                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7075                           fi
7076                         
7077 else
7078   
7079                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7080                           if test "x$LINE" != x ; then
7081                             eval "DEFAULT_$LINE"
7082                           else
7083                             no_cache=1
7084                           fi
7085
7086                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7087                         
7088 fi
7089
7090
7091           eval "$ac_cv_use_treectrl"
7092           if test "$no_cache" != 1; then
7093             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7094           fi
7095
7096           if test "$wxUSE_TREECTRL" = yes; then
7097             echo "$ac_t""yes" 1>&6
7098           else
7099             echo "$ac_t""no" 1>&6
7100           fi
7101         
7102
7103           echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
7104 echo "configure:7105: checking for --enable-tipwindow" >&5
7105           no_cache=0
7106           # Check whether --enable-tipwindow or --disable-tipwindow was given.
7107 if test "${enable_tipwindow+set}" = set; then
7108   enableval="$enable_tipwindow"
7109   
7110                           if test "$enableval" = yes; then
7111                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7112                           else
7113                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7114                           fi
7115                         
7116 else
7117   
7118                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7119                           if test "x$LINE" != x ; then
7120                             eval "DEFAULT_$LINE"
7121                           else
7122                             no_cache=1
7123                           fi
7124
7125                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7126                         
7127 fi
7128
7129
7130           eval "$ac_cv_use_tipwindow"
7131           if test "$no_cache" != 1; then
7132             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7133           fi
7134
7135           if test "$wxUSE_TIPWINDOW" = yes; then
7136             echo "$ac_t""yes" 1>&6
7137           else
7138             echo "$ac_t""no" 1>&6
7139           fi
7140         
7141
7142           echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
7143 echo "configure:7144: checking for --enable-popupwin" >&5
7144           no_cache=0
7145           # Check whether --enable-popupwin or --disable-popupwin was given.
7146 if test "${enable_popupwin+set}" = set; then
7147   enableval="$enable_popupwin"
7148   
7149                           if test "$enableval" = yes; then
7150                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7151                           else
7152                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7153                           fi
7154                         
7155 else
7156   
7157                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7158                           if test "x$LINE" != x ; then
7159                             eval "DEFAULT_$LINE"
7160                           else
7161                             no_cache=1
7162                           fi
7163
7164                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7165                         
7166 fi
7167
7168
7169           eval "$ac_cv_use_popupwin"
7170           if test "$no_cache" != 1; then
7171             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7172           fi
7173
7174           if test "$wxUSE_POPUPWIN" = yes; then
7175             echo "$ac_t""yes" 1>&6
7176           else
7177             echo "$ac_t""no" 1>&6
7178           fi
7179         
7180
7181
7182
7183           echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
7184 echo "configure:7185: checking for --enable-commondlg" >&5
7185           no_cache=0
7186           # Check whether --enable-commondlg or --disable-commondlg was given.
7187 if test "${enable_commondlg+set}" = set; then
7188   enableval="$enable_commondlg"
7189   
7190                           if test "$enableval" = yes; then
7191                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7192                           else
7193                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7194                           fi
7195                         
7196 else
7197   
7198                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7199                           if test "x$LINE" != x ; then
7200                             eval "DEFAULT_$LINE"
7201                           else
7202                             no_cache=1
7203                           fi
7204
7205                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7206                         
7207 fi
7208
7209
7210           eval "$ac_cv_use_commondlg"
7211           if test "$no_cache" != 1; then
7212             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7213           fi
7214
7215           if test "$wxUSE_COMMONDLGS" = yes; then
7216             echo "$ac_t""yes" 1>&6
7217           else
7218             echo "$ac_t""no" 1>&6
7219           fi
7220         
7221
7222           echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
7223 echo "configure:7224: checking for --enable-choicedlg" >&5
7224           no_cache=0
7225           # Check whether --enable-choicedlg or --disable-choicedlg was given.
7226 if test "${enable_choicedlg+set}" = set; then
7227   enableval="$enable_choicedlg"
7228   
7229                           if test "$enableval" = yes; then
7230                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7231                           else
7232                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7233                           fi
7234                         
7235 else
7236   
7237                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7238                           if test "x$LINE" != x ; then
7239                             eval "DEFAULT_$LINE"
7240                           else
7241                             no_cache=1
7242                           fi
7243
7244                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7245                         
7246 fi
7247
7248
7249           eval "$ac_cv_use_choicedlg"
7250           if test "$no_cache" != 1; then
7251             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7252           fi
7253
7254           if test "$wxUSE_CHOICEDLG" = yes; then
7255             echo "$ac_t""yes" 1>&6
7256           else
7257             echo "$ac_t""no" 1>&6
7258           fi
7259         
7260
7261           echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
7262 echo "configure:7263: checking for --enable-coldlg" >&5
7263           no_cache=0
7264           # Check whether --enable-coldlg or --disable-coldlg was given.
7265 if test "${enable_coldlg+set}" = set; then
7266   enableval="$enable_coldlg"
7267   
7268                           if test "$enableval" = yes; then
7269                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7270                           else
7271                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7272                           fi
7273                         
7274 else
7275   
7276                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7277                           if test "x$LINE" != x ; then
7278                             eval "DEFAULT_$LINE"
7279                           else
7280                             no_cache=1
7281                           fi
7282
7283                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7284                         
7285 fi
7286
7287
7288           eval "$ac_cv_use_coldlg"
7289           if test "$no_cache" != 1; then
7290             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7291           fi
7292
7293           if test "$wxUSE_COLOURDLG" = yes; then
7294             echo "$ac_t""yes" 1>&6
7295           else
7296             echo "$ac_t""no" 1>&6
7297           fi
7298         
7299
7300           echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7301 echo "configure:7302: checking for --enable-filedlg" >&5
7302           no_cache=0
7303           # Check whether --enable-filedlg or --disable-filedlg was given.
7304 if test "${enable_filedlg+set}" = set; then
7305   enableval="$enable_filedlg"
7306   
7307                           if test "$enableval" = yes; then
7308                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7309                           else
7310                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7311                           fi
7312                         
7313 else
7314   
7315                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7316                           if test "x$LINE" != x ; then
7317                             eval "DEFAULT_$LINE"
7318                           else
7319                             no_cache=1
7320                           fi
7321
7322                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7323                         
7324 fi
7325
7326
7327           eval "$ac_cv_use_filedlg"
7328           if test "$no_cache" != 1; then
7329             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7330           fi
7331
7332           if test "$wxUSE_FILEDLG" = yes; then
7333             echo "$ac_t""yes" 1>&6
7334           else
7335             echo "$ac_t""no" 1>&6
7336           fi
7337         
7338
7339           echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
7340 echo "configure:7341: checking for --enable-finddlg" >&5
7341           no_cache=0
7342           # Check whether --enable-finddlg or --disable-finddlg was given.
7343 if test "${enable_finddlg+set}" = set; then
7344   enableval="$enable_finddlg"
7345   
7346                           if test "$enableval" = yes; then
7347                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7348                           else
7349                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7350                           fi
7351                         
7352 else
7353   
7354                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7355                           if test "x$LINE" != x ; then
7356                             eval "DEFAULT_$LINE"
7357                           else
7358                             no_cache=1
7359                           fi
7360
7361                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7362                         
7363 fi
7364
7365
7366           eval "$ac_cv_use_finddlg"
7367           if test "$no_cache" != 1; then
7368             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7369           fi
7370
7371           if test "$wxUSE_FINDREPLDLG" = yes; then
7372             echo "$ac_t""yes" 1>&6
7373           else
7374             echo "$ac_t""no" 1>&6
7375           fi
7376         
7377
7378           echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7379 echo "configure:7380: checking for --enable-fontdlg" >&5
7380           no_cache=0
7381           # Check whether --enable-fontdlg or --disable-fontdlg was given.
7382 if test "${enable_fontdlg+set}" = set; then
7383   enableval="$enable_fontdlg"
7384   
7385                           if test "$enableval" = yes; then
7386                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7387                           else
7388                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7389                           fi
7390                         
7391 else
7392   
7393                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7394                           if test "x$LINE" != x ; then
7395                             eval "DEFAULT_$LINE"
7396                           else
7397                             no_cache=1
7398                           fi
7399
7400                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7401                         
7402 fi
7403
7404
7405           eval "$ac_cv_use_fontdlg"
7406           if test "$no_cache" != 1; then
7407             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7408           fi
7409
7410           if test "$wxUSE_FONTDLG" = yes; then
7411             echo "$ac_t""yes" 1>&6
7412           else
7413             echo "$ac_t""no" 1>&6
7414           fi
7415         
7416
7417           echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7418 echo "configure:7419: checking for --enable-dirdlg" >&5
7419           no_cache=0
7420           # Check whether --enable-dirdlg or --disable-dirdlg was given.
7421 if test "${enable_dirdlg+set}" = set; then
7422   enableval="$enable_dirdlg"
7423   
7424                           if test "$enableval" = yes; then
7425                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7426                           else
7427                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7428                           fi
7429                         
7430 else
7431   
7432                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7433                           if test "x$LINE" != x ; then
7434                             eval "DEFAULT_$LINE"
7435                           else
7436                             no_cache=1
7437                           fi
7438
7439                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7440                         
7441 fi
7442
7443
7444           eval "$ac_cv_use_dirdlg"
7445           if test "$no_cache" != 1; then
7446             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7447           fi
7448
7449           if test "$wxUSE_DIRDLG" = yes; then
7450             echo "$ac_t""yes" 1>&6
7451           else
7452             echo "$ac_t""no" 1>&6
7453           fi
7454         
7455
7456           echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7457 echo "configure:7458: checking for --enable-msgdlg" >&5
7458           no_cache=0
7459           # Check whether --enable-msgdlg or --disable-msgdlg was given.
7460 if test "${enable_msgdlg+set}" = set; then
7461   enableval="$enable_msgdlg"
7462   
7463                           if test "$enableval" = yes; then
7464                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7465                           else
7466                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7467                           fi
7468                         
7469 else
7470   
7471                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7472                           if test "x$LINE" != x ; then
7473                             eval "DEFAULT_$LINE"
7474                           else
7475                             no_cache=1
7476                           fi
7477
7478                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7479                         
7480 fi
7481
7482
7483           eval "$ac_cv_use_msgdlg"
7484           if test "$no_cache" != 1; then
7485             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7486           fi
7487
7488           if test "$wxUSE_MSGDLG" = yes; then
7489             echo "$ac_t""yes" 1>&6
7490           else
7491             echo "$ac_t""no" 1>&6
7492           fi
7493         
7494
7495           echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7496 echo "configure:7497: checking for --enable-numberdlg" >&5
7497           no_cache=0
7498           # Check whether --enable-numberdlg or --disable-numberdlg was given.
7499 if test "${enable_numberdlg+set}" = set; then
7500   enableval="$enable_numberdlg"
7501   
7502                           if test "$enableval" = yes; then
7503                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7504                           else
7505                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7506                           fi
7507                         
7508 else
7509   
7510                           LINE=`grep "wxUSE_NUMBERDLG" ${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_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7518                         
7519 fi
7520
7521
7522           eval "$ac_cv_use_numberdlg"
7523           if test "$no_cache" != 1; then
7524             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7525           fi
7526
7527           if test "$wxUSE_NUMBERDLG" = yes; then
7528             echo "$ac_t""yes" 1>&6
7529           else
7530             echo "$ac_t""no" 1>&6
7531           fi
7532         
7533
7534           echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7535 echo "configure:7536: checking for --enable-splash" >&5
7536           no_cache=0
7537           # Check whether --enable-splash or --disable-splash was given.
7538 if test "${enable_splash+set}" = set; then
7539   enableval="$enable_splash"
7540   
7541                           if test "$enableval" = yes; then
7542                             ac_cv_use_splash='wxUSE_SPLASH=yes'
7543                           else
7544                             ac_cv_use_splash='wxUSE_SPLASH=no'
7545                           fi
7546                         
7547 else
7548   
7549                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7550                           if test "x$LINE" != x ; then
7551                             eval "DEFAULT_$LINE"
7552                           else
7553                             no_cache=1
7554                           fi
7555
7556                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7557                         
7558 fi
7559
7560
7561           eval "$ac_cv_use_splash"
7562           if test "$no_cache" != 1; then
7563             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7564           fi
7565
7566           if test "$wxUSE_SPLASH" = yes; then
7567             echo "$ac_t""yes" 1>&6
7568           else
7569             echo "$ac_t""no" 1>&6
7570           fi
7571         
7572
7573           echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7574 echo "configure:7575: checking for --enable-textdlg" >&5
7575           no_cache=0
7576           # Check whether --enable-textdlg or --disable-textdlg was given.
7577 if test "${enable_textdlg+set}" = set; then
7578   enableval="$enable_textdlg"
7579   
7580                           if test "$enableval" = yes; then
7581                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7582                           else
7583                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7584                           fi
7585                         
7586 else
7587   
7588                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7589                           if test "x$LINE" != x ; then
7590                             eval "DEFAULT_$LINE"
7591                           else
7592                             no_cache=1
7593                           fi
7594
7595                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7596                         
7597 fi
7598
7599
7600           eval "$ac_cv_use_textdlg"
7601           if test "$no_cache" != 1; then
7602             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7603           fi
7604
7605           if test "$wxUSE_TEXTDLG" = yes; then
7606             echo "$ac_t""yes" 1>&6
7607           else
7608             echo "$ac_t""no" 1>&6
7609           fi
7610         
7611
7612           echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7613 echo "configure:7614: checking for --enable-tipdlg" >&5
7614           no_cache=0
7615           # Check whether --enable-tipdlg or --disable-tipdlg was given.
7616 if test "${enable_tipdlg+set}" = set; then
7617   enableval="$enable_tipdlg"
7618   
7619                           if test "$enableval" = yes; then
7620                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7621                           else
7622                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7623                           fi
7624                         
7625 else
7626   
7627                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7628                           if test "x$LINE" != x ; then
7629                             eval "DEFAULT_$LINE"
7630                           else
7631                             no_cache=1
7632                           fi
7633
7634                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7635                         
7636 fi
7637
7638
7639           eval "$ac_cv_use_tipdlg"
7640           if test "$no_cache" != 1; then
7641             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7642           fi
7643
7644           if test "$wxUSE_STARTUP_TIPS" = yes; then
7645             echo "$ac_t""yes" 1>&6
7646           else
7647             echo "$ac_t""no" 1>&6
7648           fi
7649         
7650
7651           echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7652 echo "configure:7653: checking for --enable-progressdlg" >&5
7653           no_cache=0
7654           # Check whether --enable-progressdlg or --disable-progressdlg was given.
7655 if test "${enable_progressdlg+set}" = set; then
7656   enableval="$enable_progressdlg"
7657   
7658                           if test "$enableval" = yes; then
7659                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7660                           else
7661                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7662                           fi
7663                         
7664 else
7665   
7666                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7667                           if test "x$LINE" != x ; then
7668                             eval "DEFAULT_$LINE"
7669                           else
7670                             no_cache=1
7671                           fi
7672
7673                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7674                         
7675 fi
7676
7677
7678           eval "$ac_cv_use_progressdlg"
7679           if test "$no_cache" != 1; then
7680             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7681           fi
7682
7683           if test "$wxUSE_PROGRESSDLG" = yes; then
7684             echo "$ac_t""yes" 1>&6
7685           else
7686             echo "$ac_t""no" 1>&6
7687           fi
7688         
7689
7690           echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7691 echo "configure:7692: checking for --enable-wizarddlg" >&5
7692           no_cache=0
7693           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7694 if test "${enable_wizarddlg+set}" = set; then
7695   enableval="$enable_wizarddlg"
7696   
7697                           if test "$enableval" = yes; then
7698                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7699                           else
7700                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7701                           fi
7702                         
7703 else
7704   
7705                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7706                           if test "x$LINE" != x ; then
7707                             eval "DEFAULT_$LINE"
7708                           else
7709                             no_cache=1
7710                           fi
7711
7712                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7713                         
7714 fi
7715
7716
7717           eval "$ac_cv_use_wizarddlg"
7718           if test "$no_cache" != 1; then
7719             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7720           fi
7721
7722           if test "$wxUSE_WIZARDDLG" = yes; then
7723             echo "$ac_t""yes" 1>&6
7724           else
7725             echo "$ac_t""no" 1>&6
7726           fi
7727         
7728
7729
7730
7731           echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7732 echo "configure:7733: checking for --enable-menus" >&5
7733           no_cache=0
7734           # Check whether --enable-menus or --disable-menus was given.
7735 if test "${enable_menus+set}" = set; then
7736   enableval="$enable_menus"
7737   
7738                           if test "$enableval" = yes; then
7739                             ac_cv_use_menus='wxUSE_MENUS=yes'
7740                           else
7741                             ac_cv_use_menus='wxUSE_MENUS=no'
7742                           fi
7743                         
7744 else
7745   
7746                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7747                           if test "x$LINE" != x ; then
7748                             eval "DEFAULT_$LINE"
7749                           else
7750                             no_cache=1
7751                           fi
7752
7753                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7754                         
7755 fi
7756
7757
7758           eval "$ac_cv_use_menus"
7759           if test "$no_cache" != 1; then
7760             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7761           fi
7762
7763           if test "$wxUSE_MENUS" = yes; then
7764             echo "$ac_t""yes" 1>&6
7765           else
7766             echo "$ac_t""no" 1>&6
7767           fi
7768         
7769
7770           echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7771 echo "configure:7772: checking for --enable-miniframe" >&5
7772           no_cache=0
7773           # Check whether --enable-miniframe or --disable-miniframe was given.
7774 if test "${enable_miniframe+set}" = set; then
7775   enableval="$enable_miniframe"
7776   
7777                           if test "$enableval" = yes; then
7778                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7779                           else
7780                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7781                           fi
7782                         
7783 else
7784   
7785                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7786                           if test "x$LINE" != x ; then
7787                             eval "DEFAULT_$LINE"
7788                           else
7789                             no_cache=1
7790                           fi
7791
7792                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7793                         
7794 fi
7795
7796
7797           eval "$ac_cv_use_miniframe"
7798           if test "$no_cache" != 1; then
7799             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7800           fi
7801
7802           if test "$wxUSE_MINIFRAME" = yes; then
7803             echo "$ac_t""yes" 1>&6
7804           else
7805             echo "$ac_t""no" 1>&6
7806           fi
7807         
7808
7809           echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7810 echo "configure:7811: checking for --enable-tooltips" >&5
7811           no_cache=0
7812           # Check whether --enable-tooltips or --disable-tooltips was given.
7813 if test "${enable_tooltips+set}" = set; then
7814   enableval="$enable_tooltips"
7815   
7816                           if test "$enableval" = yes; then
7817                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7818                           else
7819                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7820                           fi
7821                         
7822 else
7823   
7824                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7825                           if test "x$LINE" != x ; then
7826                             eval "DEFAULT_$LINE"
7827                           else
7828                             no_cache=1
7829                           fi
7830
7831                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7832                         
7833 fi
7834
7835
7836           eval "$ac_cv_use_tooltips"
7837           if test "$no_cache" != 1; then
7838             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7839           fi
7840
7841           if test "$wxUSE_TOOLTIPS" = yes; then
7842             echo "$ac_t""yes" 1>&6
7843           else
7844             echo "$ac_t""no" 1>&6
7845           fi
7846         
7847
7848           echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7849 echo "configure:7850: checking for --enable-splines" >&5
7850           no_cache=0
7851           # Check whether --enable-splines or --disable-splines was given.
7852 if test "${enable_splines+set}" = set; then
7853   enableval="$enable_splines"
7854   
7855                           if test "$enableval" = yes; then
7856                             ac_cv_use_splines='wxUSE_SPLINES=yes'
7857                           else
7858                             ac_cv_use_splines='wxUSE_SPLINES=no'
7859                           fi
7860                         
7861 else
7862   
7863                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7864                           if test "x$LINE" != x ; then
7865                             eval "DEFAULT_$LINE"
7866                           else
7867                             no_cache=1
7868                           fi
7869
7870                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7871                         
7872 fi
7873
7874
7875           eval "$ac_cv_use_splines"
7876           if test "$no_cache" != 1; then
7877             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7878           fi
7879
7880           if test "$wxUSE_SPLINES" = yes; then
7881             echo "$ac_t""yes" 1>&6
7882           else
7883             echo "$ac_t""no" 1>&6
7884           fi
7885         
7886
7887           echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7888 echo "configure:7889: checking for --enable-validators" >&5
7889           no_cache=0
7890           # Check whether --enable-validators or --disable-validators was given.
7891 if test "${enable_validators+set}" = set; then
7892   enableval="$enable_validators"
7893   
7894                           if test "$enableval" = yes; then
7895                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7896                           else
7897                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
7898                           fi
7899                         
7900 else
7901   
7902                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7903                           if test "x$LINE" != x ; then
7904                             eval "DEFAULT_$LINE"
7905                           else
7906                             no_cache=1
7907                           fi
7908
7909                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7910                         
7911 fi
7912
7913
7914           eval "$ac_cv_use_validators"
7915           if test "$no_cache" != 1; then
7916             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7917           fi
7918
7919           if test "$wxUSE_VALIDATORS" = yes; then
7920             echo "$ac_t""yes" 1>&6
7921           else
7922             echo "$ac_t""no" 1>&6
7923           fi
7924         
7925
7926           echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7927 echo "configure:7928: checking for --enable-busyinfo" >&5
7928           no_cache=0
7929           # Check whether --enable-busyinfo or --disable-busyinfo was given.
7930 if test "${enable_busyinfo+set}" = set; then
7931   enableval="$enable_busyinfo"
7932   
7933                           if test "$enableval" = yes; then
7934                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7935                           else
7936                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7937                           fi
7938                         
7939 else
7940   
7941                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7942                           if test "x$LINE" != x ; then
7943                             eval "DEFAULT_$LINE"
7944                           else
7945                             no_cache=1
7946                           fi
7947
7948                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7949                         
7950 fi
7951
7952
7953           eval "$ac_cv_use_busyinfo"
7954           if test "$no_cache" != 1; then
7955             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7956           fi
7957
7958           if test "$wxUSE_BUSYINFO" = yes; then
7959             echo "$ac_t""yes" 1>&6
7960           else
7961             echo "$ac_t""no" 1>&6
7962           fi
7963         
7964
7965           echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7966 echo "configure:7967: checking for --enable-joystick" >&5
7967           no_cache=0
7968           # Check whether --enable-joystick or --disable-joystick was given.
7969 if test "${enable_joystick+set}" = set; then
7970   enableval="$enable_joystick"
7971   
7972                           if test "$enableval" = yes; then
7973                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7974                           else
7975                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7976                           fi
7977                         
7978 else
7979   
7980                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7981                           if test "x$LINE" != x ; then
7982                             eval "DEFAULT_$LINE"
7983                           else
7984                             no_cache=1
7985                           fi
7986
7987                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7988                         
7989 fi
7990
7991
7992           eval "$ac_cv_use_joystick"
7993           if test "$no_cache" != 1; then
7994             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7995           fi
7996
7997           if test "$wxUSE_JOYSTICK" = yes; then
7998             echo "$ac_t""yes" 1>&6
7999           else
8000             echo "$ac_t""no" 1>&6
8001           fi
8002         
8003
8004           echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
8005 echo "configure:8006: checking for --enable-metafile" >&5
8006           no_cache=0
8007           # Check whether --enable-metafile or --disable-metafile was given.
8008 if test "${enable_metafile+set}" = set; then
8009   enableval="$enable_metafile"
8010   
8011                           if test "$enableval" = yes; then
8012                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
8013                           else
8014                             ac_cv_use_metafile='wxUSE_METAFILE=no'
8015                           fi
8016                         
8017 else
8018   
8019                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8020                           if test "x$LINE" != x ; then
8021                             eval "DEFAULT_$LINE"
8022                           else
8023                             no_cache=1
8024                           fi
8025
8026                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8027                         
8028 fi
8029
8030
8031           eval "$ac_cv_use_metafile"
8032           if test "$no_cache" != 1; then
8033             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8034           fi
8035
8036           if test "$wxUSE_METAFILE" = yes; then
8037             echo "$ac_t""yes" 1>&6
8038           else
8039             echo "$ac_t""no" 1>&6
8040           fi
8041         
8042
8043           echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
8044 echo "configure:8045: checking for --enable-dragimage" >&5
8045           no_cache=0
8046           # Check whether --enable-dragimage or --disable-dragimage was given.
8047 if test "${enable_dragimage+set}" = set; then
8048   enableval="$enable_dragimage"
8049   
8050                           if test "$enableval" = yes; then
8051                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8052                           else
8053                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8054                           fi
8055                         
8056 else
8057   
8058                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8059                           if test "x$LINE" != x ; then
8060                             eval "DEFAULT_$LINE"
8061                           else
8062                             no_cache=1
8063                           fi
8064
8065                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8066                         
8067 fi
8068
8069
8070           eval "$ac_cv_use_dragimage"
8071           if test "$no_cache" != 1; then
8072             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8073           fi
8074
8075           if test "$wxUSE_DRAGIMAGE" = yes; then
8076             echo "$ac_t""yes" 1>&6
8077           else
8078             echo "$ac_t""no" 1>&6
8079           fi
8080         
8081
8082
8083
8084           echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
8085 echo "configure:8086: checking for --enable-palette" >&5
8086           no_cache=0
8087           # Check whether --enable-palette or --disable-palette was given.
8088 if test "${enable_palette+set}" = set; then
8089   enableval="$enable_palette"
8090   
8091                           if test "$enableval" = yes; then
8092                             ac_cv_use_palette='wxUSE_PALETTE=yes'
8093                           else
8094                             ac_cv_use_palette='wxUSE_PALETTE=no'
8095                           fi
8096                         
8097 else
8098   
8099                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8100                           if test "x$LINE" != x ; then
8101                             eval "DEFAULT_$LINE"
8102                           else
8103                             no_cache=1
8104                           fi
8105
8106                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8107                         
8108 fi
8109
8110
8111           eval "$ac_cv_use_palette"
8112           if test "$no_cache" != 1; then
8113             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8114           fi
8115
8116           if test "$wxUSE_PALETTE" = yes; then
8117             echo "$ac_t""yes" 1>&6
8118           else
8119             echo "$ac_t""no" 1>&6
8120           fi
8121         
8122
8123           echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
8124 echo "configure:8125: checking for --enable-image" >&5
8125           no_cache=0
8126           # Check whether --enable-image or --disable-image was given.
8127 if test "${enable_image+set}" = set; then
8128   enableval="$enable_image"
8129   
8130                           if test "$enableval" = yes; then
8131                             ac_cv_use_image='wxUSE_IMAGE=yes'
8132                           else
8133                             ac_cv_use_image='wxUSE_IMAGE=no'
8134                           fi
8135                         
8136 else
8137   
8138                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8139                           if test "x$LINE" != x ; then
8140                             eval "DEFAULT_$LINE"
8141                           else
8142                             no_cache=1
8143                           fi
8144
8145                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8146                         
8147 fi
8148
8149
8150           eval "$ac_cv_use_image"
8151           if test "$no_cache" != 1; then
8152             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8153           fi
8154
8155           if test "$wxUSE_IMAGE" = yes; then
8156             echo "$ac_t""yes" 1>&6
8157           else
8158             echo "$ac_t""no" 1>&6
8159           fi
8160         
8161
8162           echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
8163 echo "configure:8164: checking for --enable-gif" >&5
8164           no_cache=0
8165           # Check whether --enable-gif or --disable-gif was given.
8166 if test "${enable_gif+set}" = set; then
8167   enableval="$enable_gif"
8168   
8169                           if test "$enableval" = yes; then
8170                             ac_cv_use_gif='wxUSE_GIF=yes'
8171                           else
8172                             ac_cv_use_gif='wxUSE_GIF=no'
8173                           fi
8174                         
8175 else
8176   
8177                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8178                           if test "x$LINE" != x ; then
8179                             eval "DEFAULT_$LINE"
8180                           else
8181                             no_cache=1
8182                           fi
8183
8184                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8185                         
8186 fi
8187
8188
8189           eval "$ac_cv_use_gif"
8190           if test "$no_cache" != 1; then
8191             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8192           fi
8193
8194           if test "$wxUSE_GIF" = yes; then
8195             echo "$ac_t""yes" 1>&6
8196           else
8197             echo "$ac_t""no" 1>&6
8198           fi
8199         
8200
8201           echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
8202 echo "configure:8203: checking for --enable-pcx" >&5
8203           no_cache=0
8204           # Check whether --enable-pcx or --disable-pcx was given.
8205 if test "${enable_pcx+set}" = set; then
8206   enableval="$enable_pcx"
8207   
8208                           if test "$enableval" = yes; then
8209                             ac_cv_use_pcx='wxUSE_PCX=yes'
8210                           else
8211                             ac_cv_use_pcx='wxUSE_PCX=no'
8212                           fi
8213                         
8214 else
8215   
8216                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8217                           if test "x$LINE" != x ; then
8218                             eval "DEFAULT_$LINE"
8219                           else
8220                             no_cache=1
8221                           fi
8222
8223                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8224                         
8225 fi
8226
8227
8228           eval "$ac_cv_use_pcx"
8229           if test "$no_cache" != 1; then
8230             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8231           fi
8232
8233           if test "$wxUSE_PCX" = yes; then
8234             echo "$ac_t""yes" 1>&6
8235           else
8236             echo "$ac_t""no" 1>&6
8237           fi
8238         
8239
8240           echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
8241 echo "configure:8242: checking for --enable-iff" >&5
8242           no_cache=0
8243           # Check whether --enable-iff or --disable-iff was given.
8244 if test "${enable_iff+set}" = set; then
8245   enableval="$enable_iff"
8246   
8247                           if test "$enableval" = yes; then
8248                             ac_cv_use_iff='wxUSE_IFF=yes'
8249                           else
8250                             ac_cv_use_iff='wxUSE_IFF=no'
8251                           fi
8252                         
8253 else
8254   
8255                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8256                           if test "x$LINE" != x ; then
8257                             eval "DEFAULT_$LINE"
8258                           else
8259                             no_cache=1
8260                           fi
8261
8262                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8263                         
8264 fi
8265
8266
8267           eval "$ac_cv_use_iff"
8268           if test "$no_cache" != 1; then
8269             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8270           fi
8271
8272           if test "$wxUSE_IFF" = yes; then
8273             echo "$ac_t""yes" 1>&6
8274           else
8275             echo "$ac_t""no" 1>&6
8276           fi
8277         
8278
8279           echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8280 echo "configure:8281: checking for --enable-pnm" >&5
8281           no_cache=0
8282           # Check whether --enable-pnm or --disable-pnm was given.
8283 if test "${enable_pnm+set}" = set; then
8284   enableval="$enable_pnm"
8285   
8286                           if test "$enableval" = yes; then
8287                             ac_cv_use_pnm='wxUSE_PNM=yes'
8288                           else
8289                             ac_cv_use_pnm='wxUSE_PNM=no'
8290                           fi
8291                         
8292 else
8293   
8294                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8295                           if test "x$LINE" != x ; then
8296                             eval "DEFAULT_$LINE"
8297                           else
8298                             no_cache=1
8299                           fi
8300
8301                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8302                         
8303 fi
8304
8305
8306           eval "$ac_cv_use_pnm"
8307           if test "$no_cache" != 1; then
8308             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8309           fi
8310
8311           if test "$wxUSE_PNM" = yes; then
8312             echo "$ac_t""yes" 1>&6
8313           else
8314             echo "$ac_t""no" 1>&6
8315           fi
8316         
8317
8318           echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
8319 echo "configure:8320: checking for --enable-xpm" >&5
8320           no_cache=0
8321           # Check whether --enable-xpm or --disable-xpm was given.
8322 if test "${enable_xpm+set}" = set; then
8323   enableval="$enable_xpm"
8324   
8325                           if test "$enableval" = yes; then
8326                             ac_cv_use_xpm='wxUSE_XPM=yes'
8327                           else
8328                             ac_cv_use_xpm='wxUSE_XPM=no'
8329                           fi
8330                         
8331 else
8332   
8333                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8334                           if test "x$LINE" != x ; then
8335                             eval "DEFAULT_$LINE"
8336                           else
8337                             no_cache=1
8338                           fi
8339
8340                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8341                         
8342 fi
8343
8344
8345           eval "$ac_cv_use_xpm"
8346           if test "$no_cache" != 1; then
8347             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8348           fi
8349
8350           if test "$wxUSE_XPM" = yes; then
8351             echo "$ac_t""yes" 1>&6
8352           else
8353             echo "$ac_t""no" 1>&6
8354           fi
8355         
8356
8357           echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
8358 echo "configure:8359: checking for --enable-ico_cur" >&5
8359           no_cache=0
8360           # Check whether --enable-ico_cur or --disable-ico_cur was given.
8361 if test "${enable_ico_cur+set}" = set; then
8362   enableval="$enable_ico_cur"
8363   
8364                           if test "$enableval" = yes; then
8365                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8366                           else
8367                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8368                           fi
8369                         
8370 else
8371   
8372                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8373                           if test "x$LINE" != x ; then
8374                             eval "DEFAULT_$LINE"
8375                           else
8376                             no_cache=1
8377                           fi
8378
8379                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8380                         
8381 fi
8382
8383
8384           eval "$ac_cv_use_ico_cur"
8385           if test "$no_cache" != 1; then
8386             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8387           fi
8388
8389           if test "$wxUSE_ICO_CUR" = yes; then
8390             echo "$ac_t""yes" 1>&6
8391           else
8392             echo "$ac_t""no" 1>&6
8393           fi
8394         
8395
8396 fi
8397
8398 case "${host}" in
8399   *-pc-os2_emx | *-pc-os2-emx )
8400         LEX_STEM="lexyy"
8401   ;;
8402   *)
8403     PATH_IFS=':'
8404     LEX_STEM="lex.yy"
8405   ;;
8406 esac
8407
8408
8409
8410           echo "saving argument cache $wx_arg_cache_file"
8411           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8412         
8413
8414
8415 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8416 echo "configure:8417: checking for toolkit" >&5
8417
8418 if test "$wxUSE_GUI" = "yes"; then
8419
8420     if test "$USE_BEOS" = 1; then
8421         { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8422     fi
8423
8424     if test "$TOOLKIT_GIVEN" = 1; then
8425             for toolkit in `echo $ALL_TOOLKITS`; do
8426         var=wxUSE_$toolkit
8427         eval "value=\$${var}"
8428         eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8429       done
8430     else
8431             for toolkit in `echo $ALL_TOOLKITS`; do
8432         if test "$has_toolkit_in_cache" != 1; then
8433           var=DEFAULT_DEFAULT_wxUSE_$toolkit
8434         else
8435           var=DEFAULT_wxUSE_$toolkit
8436         fi
8437         eval "wxUSE_$toolkit=\$${var}"
8438       done
8439     fi
8440
8441             NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0}  \
8442                   + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8443
8444         case "${host}" in
8445       *-pc-os2_emx | *-pc-os2-emx )
8446         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8447     esac
8448
8449     case "$NUM_TOOLKITS" in
8450       1)
8451       ;;
8452       0)
8453         { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8454       ;;
8455       *)
8456         { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8457     esac
8458
8459         for toolkit in `echo $ALL_TOOLKITS`; do
8460       var=wxUSE_$toolkit
8461       eval "value=\$${var}"
8462       if test "x$value" != x; then
8463         cache_var=CACHE_$toolkit
8464         eval "cache=\$${cache_var}"
8465         if test "$cache" = 1; then
8466           echo "$var=$value" >> ${wx_arg_cache_file}
8467         fi
8468         if test "$value" = 1; then
8469           toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8470           echo "$ac_t""$toolkit_echo" 1>&6
8471         fi
8472       fi
8473     done
8474 else
8475     echo "$ac_t""base ($host_alias hosted) only" 1>&6
8476 fi
8477
8478
8479 define_win32=0
8480 case "${host}" in
8481   *-*-cygwin*)
8482       if test "$wxUSE_MSW" = 1 ; then
8483         define_win32=1
8484       fi
8485   ;;
8486   *-*-mingw*)
8487       define_win32=1
8488   ;;
8489 esac
8490
8491 if test "$define_win32" = 1 ; then
8492     USE_UNIX=0
8493     USE_WIN32=1
8494     cat >> confdefs.h <<\EOF
8495 #define __WIN32__ 1
8496 EOF
8497
8498     cat >> confdefs.h <<\EOF
8499 #define __WIN95__ 1
8500 EOF
8501
8502     cat >> confdefs.h <<\EOF
8503 #define __WINDOWS__ 1
8504 EOF
8505
8506     cat >> confdefs.h <<\EOF
8507 #define __GNUWIN32__ 1
8508 EOF
8509
8510     cat >> confdefs.h <<\EOF
8511 #define STRICT 1
8512 EOF
8513
8514     cat >> confdefs.h <<\EOF
8515 #define WINVER 0x0400
8516 EOF
8517
8518 else
8519     USE_UNIX=1
8520     USE_WIN32=0
8521 fi
8522
8523 if test "$USE_UNIX" = 1 ; then
8524     wxUSE_UNIX=yes
8525     cat >> confdefs.h <<\EOF
8526 #define __UNIX__ 1
8527 EOF
8528
8529 fi
8530
8531
8532 cat > confcache <<\EOF
8533 # This file is a shell script that caches the results of configure
8534 # tests run on this system so they can be shared between configure
8535 # scripts and configure runs.  It is not useful on other systems.
8536 # If it contains results you don't want to keep, you may remove or edit it.
8537 #
8538 # By default, configure uses ./config.cache as the cache file,
8539 # creating it if it does not exist already.  You can give configure
8540 # the --cache-file=FILE option to use a different cache file; that is
8541 # what configure does when it calls configure scripts in
8542 # subdirectories, so they share the cache.
8543 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8544 # config.status only pays attention to the cache file if you give it the
8545 # --recheck option to rerun configure.
8546 #
8547 EOF
8548 # The following way of writing the cache mishandles newlines in values,
8549 # but we know of no workaround that is simple, portable, and efficient.
8550 # So, don't put newlines in cache variables' values.
8551 # Ultrix sh set writes to stderr and can't be redirected directly,
8552 # and sets the high bit in the cache file unless we assign to the vars.
8553 (set) 2>&1 |
8554   case `(ac_space=' '; set | grep ac_space) 2>&1` in
8555   *ac_space=\ *)
8556     # `set' does not quote correctly, so add quotes (double-quote substitution
8557     # turns \\\\ into \\, and sed turns \\ into \).
8558     sed -n \
8559       -e "s/'/'\\\\''/g" \
8560       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8561     ;;
8562   *)
8563     # `set' quotes correctly as required by POSIX, so do not add quotes.
8564     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8565     ;;
8566   esac >> confcache
8567 if cmp -s $cache_file confcache; then
8568   :
8569 else
8570   if test -w $cache_file; then
8571     echo "updating cache $cache_file"
8572     cat confcache > $cache_file
8573   else
8574     echo "not updating unwritable cache $cache_file"
8575   fi
8576 fi
8577 rm -f confcache
8578
8579
8580 if test "$build" != "$host" ; then
8581     if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8582         CC=$host_alias-gcc
8583         CXX=$host_alias-c++
8584         AR=$host_alias-ar
8585         RANLIB=$host_alias-ranlib
8586         DLLTOOL=$host_alias-dlltool
8587         RESCOMP=$host_alias-windres
8588         LD=$host_alias-ld
8589         NM=$host_alias-nm
8590         STRIP=$host_alias-strip
8591     else
8592         { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8593     fi
8594 fi
8595
8596 CFLAGS=${CFLAGS:=}
8597 # Extract the first word of "gcc", so it can be a program name with args.
8598 set dummy gcc; ac_word=$2
8599 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8600 echo "configure:8601: checking for $ac_word" >&5
8601 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8602   echo $ac_n "(cached) $ac_c" 1>&6
8603 else
8604   if test -n "$CC"; then
8605   ac_cv_prog_CC="$CC" # Let the user override the test.
8606 else
8607   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8608   ac_dummy="$PATH"
8609   for ac_dir in $ac_dummy; do
8610     test -z "$ac_dir" && ac_dir=.
8611     if test -f $ac_dir/$ac_word; then
8612       ac_cv_prog_CC="gcc"
8613       break
8614     fi
8615   done
8616   IFS="$ac_save_ifs"
8617 fi
8618 fi
8619 CC="$ac_cv_prog_CC"
8620 if test -n "$CC"; then
8621   echo "$ac_t""$CC" 1>&6
8622 else
8623   echo "$ac_t""no" 1>&6
8624 fi
8625
8626 if test -z "$CC"; then
8627   # Extract the first word of "cc", so it can be a program name with args.
8628 set dummy cc; ac_word=$2
8629 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8630 echo "configure:8631: checking for $ac_word" >&5
8631 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8632   echo $ac_n "(cached) $ac_c" 1>&6
8633 else
8634   if test -n "$CC"; then
8635   ac_cv_prog_CC="$CC" # Let the user override the test.
8636 else
8637   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8638   ac_prog_rejected=no
8639   ac_dummy="$PATH"
8640   for ac_dir in $ac_dummy; do
8641     test -z "$ac_dir" && ac_dir=.
8642     if test -f $ac_dir/$ac_word; then
8643       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8644         ac_prog_rejected=yes
8645         continue
8646       fi
8647       ac_cv_prog_CC="cc"
8648       break
8649     fi
8650   done
8651   IFS="$ac_save_ifs"
8652 if test $ac_prog_rejected = yes; then
8653   # We found a bogon in the path, so make sure we never use it.
8654   set dummy $ac_cv_prog_CC
8655   shift
8656   if test $# -gt 0; then
8657     # We chose a different compiler from the bogus one.
8658     # However, it has the same basename, so the bogon will be chosen
8659     # first if we set CC to just the basename; use the full file name.
8660     shift
8661     set dummy "$ac_dir/$ac_word" "$@"
8662     shift
8663     ac_cv_prog_CC="$@"
8664   fi
8665 fi
8666 fi
8667 fi
8668 CC="$ac_cv_prog_CC"
8669 if test -n "$CC"; then
8670   echo "$ac_t""$CC" 1>&6
8671 else
8672   echo "$ac_t""no" 1>&6
8673 fi
8674
8675   if test -z "$CC"; then
8676     case "`uname -s`" in
8677     *win32* | *WIN32*)
8678       # Extract the first word of "cl", so it can be a program name with args.
8679 set dummy cl; ac_word=$2
8680 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8681 echo "configure:8682: checking for $ac_word" >&5
8682 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8683   echo $ac_n "(cached) $ac_c" 1>&6
8684 else
8685   if test -n "$CC"; then
8686   ac_cv_prog_CC="$CC" # Let the user override the test.
8687 else
8688   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8689   ac_dummy="$PATH"
8690   for ac_dir in $ac_dummy; do
8691     test -z "$ac_dir" && ac_dir=.
8692     if test -f $ac_dir/$ac_word; then
8693       ac_cv_prog_CC="cl"
8694       break
8695     fi
8696   done
8697   IFS="$ac_save_ifs"
8698 fi
8699 fi
8700 CC="$ac_cv_prog_CC"
8701 if test -n "$CC"; then
8702   echo "$ac_t""$CC" 1>&6
8703 else
8704   echo "$ac_t""no" 1>&6
8705 fi
8706  ;;
8707     esac
8708   fi
8709   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8710 fi
8711
8712 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8713 echo "configure:8714: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8714
8715 ac_ext=c
8716 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8717 ac_cpp='$CPP $CPPFLAGS'
8718 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8719 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8720 cross_compiling=$ac_cv_prog_cc_cross
8721
8722 cat > conftest.$ac_ext << EOF
8723
8724 #line 8725 "configure"
8725 #include "confdefs.h"
8726
8727 main(){return(0);}
8728 EOF
8729 if { (eval echo configure:8730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8730   ac_cv_prog_cc_works=yes
8731   # If we can't run a trivial program, we are probably using a cross compiler.
8732   if (./conftest; exit) 2>/dev/null; then
8733     ac_cv_prog_cc_cross=no
8734   else
8735     ac_cv_prog_cc_cross=yes
8736   fi
8737 else
8738   echo "configure: failed program was:" >&5
8739   cat conftest.$ac_ext >&5
8740   ac_cv_prog_cc_works=no
8741 fi
8742 rm -fr conftest*
8743 ac_ext=c
8744 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8745 ac_cpp='$CPP $CPPFLAGS'
8746 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8747 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8748 cross_compiling=$ac_cv_prog_cc_cross
8749
8750 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8751 if test $ac_cv_prog_cc_works = no; then
8752   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8753 fi
8754 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8755 echo "configure:8756: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8756 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8757 cross_compiling=$ac_cv_prog_cc_cross
8758
8759 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8760 echo "configure:8761: checking whether we are using GNU C" >&5
8761 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8762   echo $ac_n "(cached) $ac_c" 1>&6
8763 else
8764   cat > conftest.c <<EOF
8765 #ifdef __GNUC__
8766   yes;
8767 #endif
8768 EOF
8769 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8770   ac_cv_prog_gcc=yes
8771 else
8772   ac_cv_prog_gcc=no
8773 fi
8774 fi
8775
8776 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8777
8778 if test $ac_cv_prog_gcc = yes; then
8779   GCC=yes
8780 else
8781   GCC=
8782 fi
8783
8784 ac_test_CFLAGS="${CFLAGS+set}"
8785 ac_save_CFLAGS="$CFLAGS"
8786 CFLAGS=
8787 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8788 echo "configure:8789: checking whether ${CC-cc} accepts -g" >&5
8789 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8790   echo $ac_n "(cached) $ac_c" 1>&6
8791 else
8792   echo 'void f(){}' > conftest.c
8793 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8794   ac_cv_prog_cc_g=yes
8795 else
8796   ac_cv_prog_cc_g=no
8797 fi
8798 rm -f conftest*
8799
8800 fi
8801
8802 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8803 if test "$ac_test_CFLAGS" = set; then
8804   CFLAGS="$ac_save_CFLAGS"
8805 elif test $ac_cv_prog_cc_g = yes; then
8806   if test "$GCC" = yes; then
8807     CFLAGS="-g -O2"
8808   else
8809     CFLAGS="-g"
8810   fi
8811 else
8812   if test "$GCC" = yes; then
8813     CFLAGS="-O2"
8814   else
8815     CFLAGS=
8816   fi
8817 fi
8818
8819
8820 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8821 echo "configure:8822: checking how to run the C preprocessor" >&5
8822 # On Suns, sometimes $CPP names a directory.
8823 if test -n "$CPP" && test -d "$CPP"; then
8824   CPP=
8825 fi
8826 if test -z "$CPP"; then
8827 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8828   echo $ac_n "(cached) $ac_c" 1>&6
8829 else
8830     # This must be in double quotes, not single quotes, because CPP may get
8831   # substituted into the Makefile and "${CC-cc}" will confuse make.
8832   CPP="${CC-cc} -E"
8833   # On the NeXT, cc -E runs the code through the compiler's parser,
8834   # not just through cpp.
8835   cat > conftest.$ac_ext <<EOF
8836 #line 8837 "configure"
8837 #include "confdefs.h"
8838 #include <assert.h>
8839 Syntax Error
8840 EOF
8841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8842 { (eval echo configure:8843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8844 if test -z "$ac_err"; then
8845   :
8846 else
8847   echo "$ac_err" >&5
8848   echo "configure: failed program was:" >&5
8849   cat conftest.$ac_ext >&5
8850   rm -rf conftest*
8851   CPP="${CC-cc} -E -traditional-cpp"
8852   cat > conftest.$ac_ext <<EOF
8853 #line 8854 "configure"
8854 #include "confdefs.h"
8855 #include <assert.h>
8856 Syntax Error
8857 EOF
8858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8859 { (eval echo configure:8860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8861 if test -z "$ac_err"; then
8862   :
8863 else
8864   echo "$ac_err" >&5
8865   echo "configure: failed program was:" >&5
8866   cat conftest.$ac_ext >&5
8867   rm -rf conftest*
8868   CPP="${CC-cc} -nologo -E"
8869   cat > conftest.$ac_ext <<EOF
8870 #line 8871 "configure"
8871 #include "confdefs.h"
8872 #include <assert.h>
8873 Syntax Error
8874 EOF
8875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8876 { (eval echo configure:8877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8878 if test -z "$ac_err"; then
8879   :
8880 else
8881   echo "$ac_err" >&5
8882   echo "configure: failed program was:" >&5
8883   cat conftest.$ac_ext >&5
8884   rm -rf conftest*
8885   CPP=/lib/cpp
8886 fi
8887 rm -f conftest*
8888 fi
8889 rm -f conftest*
8890 fi
8891 rm -f conftest*
8892   ac_cv_prog_CPP="$CPP"
8893 fi
8894   CPP="$ac_cv_prog_CPP"
8895 else
8896   ac_cv_prog_CPP="$CPP"
8897 fi
8898 echo "$ac_t""$CPP" 1>&6
8899
8900 if test $ac_cv_prog_gcc = yes; then
8901     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8902 echo "configure:8903: checking whether ${CC-cc} needs -traditional" >&5
8903 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8904   echo $ac_n "(cached) $ac_c" 1>&6
8905 else
8906     ac_pattern="Autoconf.*'x'"
8907   cat > conftest.$ac_ext <<EOF
8908 #line 8909 "configure"
8909 #include "confdefs.h"
8910 #include <sgtty.h>
8911 Autoconf TIOCGETP
8912 EOF
8913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8914   egrep "$ac_pattern" >/dev/null 2>&1; then
8915   rm -rf conftest*
8916   ac_cv_prog_gcc_traditional=yes
8917 else
8918   rm -rf conftest*
8919   ac_cv_prog_gcc_traditional=no
8920 fi
8921 rm -f conftest*
8922
8923
8924   if test $ac_cv_prog_gcc_traditional = no; then
8925     cat > conftest.$ac_ext <<EOF
8926 #line 8927 "configure"
8927 #include "confdefs.h"
8928 #include <termio.h>
8929 Autoconf TCGETA
8930 EOF
8931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8932   egrep "$ac_pattern" >/dev/null 2>&1; then
8933   rm -rf conftest*
8934   ac_cv_prog_gcc_traditional=yes
8935 fi
8936 rm -f conftest*
8937
8938   fi
8939 fi
8940
8941 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8942   if test $ac_cv_prog_gcc_traditional = yes; then
8943     CC="$CC -traditional"
8944   fi
8945 fi
8946
8947
8948
8949 ac_ext=C
8950 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8951 ac_cpp='$CXXCPP $CPPFLAGS'
8952 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8953 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8954 cross_compiling=$ac_cv_prog_cxx_cross
8955
8956
8957 CXXFLAGS=${CXXFLAGS:=}
8958 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8959 do
8960 # Extract the first word of "$ac_prog", so it can be a program name with args.
8961 set dummy $ac_prog; ac_word=$2
8962 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8963 echo "configure:8964: checking for $ac_word" >&5
8964 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8965   echo $ac_n "(cached) $ac_c" 1>&6
8966 else
8967   if test -n "$CXX"; then
8968   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8969 else
8970   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8971   ac_dummy="$PATH"
8972   for ac_dir in $ac_dummy; do
8973     test -z "$ac_dir" && ac_dir=.
8974     if test -f $ac_dir/$ac_word; then
8975       ac_cv_prog_CXX="$ac_prog"
8976       break
8977     fi
8978   done
8979   IFS="$ac_save_ifs"
8980 fi
8981 fi
8982 CXX="$ac_cv_prog_CXX"
8983 if test -n "$CXX"; then
8984   echo "$ac_t""$CXX" 1>&6
8985 else
8986   echo "$ac_t""no" 1>&6
8987 fi
8988
8989 test -n "$CXX" && break
8990 done
8991 test -n "$CXX" || CXX="gcc"
8992
8993
8994 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8995 echo "configure:8996: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8996
8997 ac_ext=C
8998 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8999 ac_cpp='$CXXCPP $CPPFLAGS'
9000 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9001 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9002 cross_compiling=$ac_cv_prog_cxx_cross
9003
9004 cat > conftest.$ac_ext << EOF
9005
9006 #line 9007 "configure"
9007 #include "confdefs.h"
9008
9009 int main(){return(0);}
9010 EOF
9011 if { (eval echo configure:9012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9012   ac_cv_prog_cxx_works=yes
9013   # If we can't run a trivial program, we are probably using a cross compiler.
9014   if (./conftest; exit) 2>/dev/null; then
9015     ac_cv_prog_cxx_cross=no
9016   else
9017     ac_cv_prog_cxx_cross=yes
9018   fi
9019 else
9020   echo "configure: failed program was:" >&5
9021   cat conftest.$ac_ext >&5
9022   ac_cv_prog_cxx_works=no
9023 fi
9024 rm -fr conftest*
9025 ac_ext=C
9026 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9027 ac_cpp='$CXXCPP $CPPFLAGS'
9028 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9029 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9030 cross_compiling=$ac_cv_prog_cxx_cross
9031
9032 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9033 if test $ac_cv_prog_cxx_works = no; then
9034   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9035 fi
9036 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9037 echo "configure:9038: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9038 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9039 cross_compiling=$ac_cv_prog_cxx_cross
9040
9041 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9042 echo "configure:9043: checking whether we are using GNU C++" >&5
9043 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9044   echo $ac_n "(cached) $ac_c" 1>&6
9045 else
9046   cat > conftest.C <<EOF
9047 #ifdef __GNUC__
9048   yes;
9049 #endif
9050 EOF
9051 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9052   ac_cv_prog_gxx=yes
9053 else
9054   ac_cv_prog_gxx=no
9055 fi
9056 fi
9057
9058 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9059
9060 if test $ac_cv_prog_gxx = yes; then
9061   GXX=yes
9062 else
9063   GXX=
9064 fi
9065
9066 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9067 ac_save_CXXFLAGS="$CXXFLAGS"
9068 CXXFLAGS=
9069 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9070 echo "configure:9071: checking whether ${CXX-g++} accepts -g" >&5
9071 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9072   echo $ac_n "(cached) $ac_c" 1>&6
9073 else
9074   echo 'void f(){}' > conftest.cc
9075 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9076   ac_cv_prog_cxx_g=yes
9077 else
9078   ac_cv_prog_cxx_g=no
9079 fi
9080 rm -f conftest*
9081
9082 fi
9083
9084 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9085 if test "$ac_test_CXXFLAGS" = set; then
9086   CXXFLAGS="$ac_save_CXXFLAGS"
9087 elif test $ac_cv_prog_cxx_g = yes; then
9088   if test "$GXX" = yes; then
9089     CXXFLAGS="-g -O2"
9090   else
9091     CXXFLAGS="-g"
9092   fi
9093 else
9094   if test "$GXX" = yes; then
9095     CXXFLAGS="-O2"
9096   else
9097     CXXFLAGS=
9098   fi
9099 fi
9100
9101
9102 ac_ext=c
9103 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9104 ac_cpp='$CPP $CPPFLAGS'
9105 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9106 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9107 cross_compiling=$ac_cv_prog_cc_cross
9108
9109
9110 # Extract the first word of "ranlib", so it can be a program name with args.
9111 set dummy ranlib; ac_word=$2
9112 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9113 echo "configure:9114: checking for $ac_word" >&5
9114 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9115   echo $ac_n "(cached) $ac_c" 1>&6
9116 else
9117   if test -n "$RANLIB"; then
9118   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9119 else
9120   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9121   ac_dummy="$PATH"
9122   for ac_dir in $ac_dummy; do
9123     test -z "$ac_dir" && ac_dir=.
9124     if test -f $ac_dir/$ac_word; then
9125       ac_cv_prog_RANLIB="ranlib"
9126       break
9127     fi
9128   done
9129   IFS="$ac_save_ifs"
9130   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9131 fi
9132 fi
9133 RANLIB="$ac_cv_prog_RANLIB"
9134 if test -n "$RANLIB"; then
9135   echo "$ac_t""$RANLIB" 1>&6
9136 else
9137   echo "$ac_t""no" 1>&6
9138 fi
9139
9140
9141 # Extract the first word of "ar", so it can be a program name with args.
9142 set dummy ar; ac_word=$2
9143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9144 echo "configure:9145: checking for $ac_word" >&5
9145 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9146   echo $ac_n "(cached) $ac_c" 1>&6
9147 else
9148   if test -n "$AR"; then
9149   ac_cv_prog_AR="$AR" # Let the user override the test.
9150 else
9151   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9152   ac_dummy="$PATH"
9153   for ac_dir in $ac_dummy; do
9154     test -z "$ac_dir" && ac_dir=.
9155     if test -f $ac_dir/$ac_word; then
9156       ac_cv_prog_AR="ar"
9157       break
9158     fi
9159   done
9160   IFS="$ac_save_ifs"
9161   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9162 fi
9163 fi
9164 AR="$ac_cv_prog_AR"
9165 if test -n "$AR"; then
9166   echo "$ac_t""$AR" 1>&6
9167 else
9168   echo "$ac_t""no" 1>&6
9169 fi
9170
9171
9172 # Find a good install program.  We prefer a C program (faster),
9173 # so one script is as good as another.  But avoid the broken or
9174 # incompatible versions:
9175 # SysV /etc/install, /usr/sbin/install
9176 # SunOS /usr/etc/install
9177 # IRIX /sbin/install
9178 # AIX /bin/install
9179 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9180 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9181 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9182 # ./install, which can be erroneously created by make from ./install.sh.
9183 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9184 echo "configure:9185: checking for a BSD compatible install" >&5
9185 if test -z "$INSTALL"; then
9186 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9187   echo $ac_n "(cached) $ac_c" 1>&6
9188 else
9189     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
9190   for ac_dir in $PATH; do
9191     # Account for people who put trailing slashes in PATH elements.
9192     case "$ac_dir/" in
9193     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9194     *)
9195       # OSF1 and SCO ODT 3.0 have their own names for install.
9196       # Don't use installbsd from OSF since it installs stuff as root
9197       # by default.
9198       for ac_prog in ginstall scoinst install; do
9199         if test -f $ac_dir/$ac_prog; then
9200           if test $ac_prog = install &&
9201             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9202             # AIX install.  It has an incompatible calling convention.
9203             :
9204           else
9205             ac_cv_path_install="$ac_dir/$ac_prog -c"
9206             break 2
9207           fi
9208         fi
9209       done
9210       ;;
9211     esac
9212   done
9213   IFS="$ac_save_IFS"
9214
9215 fi
9216   if test "${ac_cv_path_install+set}" = set; then
9217     INSTALL="$ac_cv_path_install"
9218   else
9219     # As a last resort, use the slow shell script.  We don't cache a
9220     # path for INSTALL within a source directory, because that will
9221     # break other packages using the cache if that directory is
9222     # removed, or if the path is relative.
9223     INSTALL="$ac_install_sh"
9224   fi
9225 fi
9226 echo "$ac_t""$INSTALL" 1>&6
9227
9228 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9229 # It thinks the first close brace ends the variable substitution.
9230 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9231
9232 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9233
9234 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9235
9236
9237 case ${INSTALL} in
9238   /* ) # Absolute
9239      ;;
9240   *)     
9241      INSTALL=`pwd`/${INSTALL} ;;
9242 esac
9243
9244
9245 case "${host}" in
9246
9247                 powerpc-*-darwin* )
9248         INSTALL_PROGRAM="cp -fp"
9249         INSTALL_DATA="cp -fp"
9250         ;;
9251     *)
9252         ;;
9253 esac
9254
9255 # Extract the first word of "strip", so it can be a program name with args.
9256 set dummy strip; ac_word=$2
9257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9258 echo "configure:9259: checking for $ac_word" >&5
9259 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9260   echo $ac_n "(cached) $ac_c" 1>&6
9261 else
9262   if test -n "$STRIP"; then
9263   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9264 else
9265   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9266   ac_dummy="$PATH"
9267   for ac_dir in $ac_dummy; do
9268     test -z "$ac_dir" && ac_dir=.
9269     if test -f $ac_dir/$ac_word; then
9270       ac_cv_prog_STRIP="strip"
9271       break
9272     fi
9273   done
9274   IFS="$ac_save_ifs"
9275   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9276 fi
9277 fi
9278 STRIP="$ac_cv_prog_STRIP"
9279 if test -n "$STRIP"; then
9280   echo "$ac_t""$STRIP" 1>&6
9281 else
9282   echo "$ac_t""no" 1>&6
9283 fi
9284
9285
9286 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9287 echo "configure:9288: checking if make is GNU make" >&5
9288 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9289   echo $ac_n "(cached) $ac_c" 1>&6
9290 else
9291   
9292     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9293             egrep -s GNU > /dev/null); then
9294         wx_cv_prog_makeisgnu="yes"
9295     else
9296         wx_cv_prog_makeisgnu="no"
9297     fi
9298
9299 fi
9300
9301 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9302
9303 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9304     IF_GNU_MAKE=""
9305 else
9306     IF_GNU_MAKE="#"
9307 fi
9308
9309
9310
9311 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9312 echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9313 echo "configure:9314: checking if make supports VPATH" >&5
9314 if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9315   echo $ac_n "(cached) $ac_c" 1>&6
9316 else
9317   
9318 cat - << EOF > confMake
9319 check : file
9320         cp \$? \$@
9321         cp \$? final_file
9322 EOF
9323
9324 if test ! -d sub ; then
9325   mkdir sub
9326 fi
9327 echo dummy > sub/file
9328 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9329 RESULT=$?
9330 rm -f sub/file check final_file confMake
9331 rmdir sub
9332 if test "$RESULT" = 0; then
9333   wx_cv_prog_makevpath="yes"
9334 else
9335   wx_cv_prog_makevpath="no"
9336 fi
9337
9338 fi
9339
9340 echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9341
9342 if test "x$wx_cv_prog_makevpath" != "xyes"; then
9343 { echo "configure: error: 
9344 You need a make-utility that is able to use the variable
9345 VPATH correctly.
9346 If your version of make does not support VPATH correctly,
9347 please install GNU-make (possibly as gmake), and start
9348 configure with the following command:
9349 export MAKE=gmake; ./configure  for sh-type shells
9350 setenv MAKE gmake; ./configure  for csh-type shells
9351 Also please do remember to use gmake in this case every time
9352 you are trying to compile.
9353 " 1>&2; exit 1; }
9354 fi fi 
9355 for ac_prog in 'bison -y' byacc
9356 do
9357 # Extract the first word of "$ac_prog", so it can be a program name with args.
9358 set dummy $ac_prog; ac_word=$2
9359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9360 echo "configure:9361: checking for $ac_word" >&5
9361 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9362   echo $ac_n "(cached) $ac_c" 1>&6
9363 else
9364   if test -n "$YACC"; then
9365   ac_cv_prog_YACC="$YACC" # Let the user override the test.
9366 else
9367   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9368   ac_dummy="$PATH"
9369   for ac_dir in $ac_dummy; do
9370     test -z "$ac_dir" && ac_dir=.
9371     if test -f $ac_dir/$ac_word; then
9372       ac_cv_prog_YACC="$ac_prog"
9373       break
9374     fi
9375   done
9376   IFS="$ac_save_ifs"
9377 fi
9378 fi
9379 YACC="$ac_cv_prog_YACC"
9380 if test -n "$YACC"; then
9381   echo "$ac_t""$YACC" 1>&6
9382 else
9383   echo "$ac_t""no" 1>&6
9384 fi
9385
9386 test -n "$YACC" && break
9387 done
9388 test -n "$YACC" || YACC="yacc"
9389
9390
9391 # Extract the first word of "flex", so it can be a program name with args.
9392 set dummy flex; ac_word=$2
9393 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9394 echo "configure:9395: checking for $ac_word" >&5
9395 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9396   echo $ac_n "(cached) $ac_c" 1>&6
9397 else
9398   if test -n "$LEX"; then
9399   ac_cv_prog_LEX="$LEX" # Let the user override the test.
9400 else
9401   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9402   ac_dummy="$PATH"
9403   for ac_dir in $ac_dummy; do
9404     test -z "$ac_dir" && ac_dir=.
9405     if test -f $ac_dir/$ac_word; then
9406       ac_cv_prog_LEX="flex"
9407       break
9408     fi
9409   done
9410   IFS="$ac_save_ifs"
9411   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9412 fi
9413 fi
9414 LEX="$ac_cv_prog_LEX"
9415 if test -n "$LEX"; then
9416   echo "$ac_t""$LEX" 1>&6
9417 else
9418   echo "$ac_t""no" 1>&6
9419 fi
9420
9421 if test -z "$LEXLIB"
9422 then
9423   case "$LEX" in
9424   flex*) ac_lib=fl ;;
9425   *) ac_lib=l ;;
9426   esac
9427   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9428 echo "configure:9429: checking for yywrap in -l$ac_lib" >&5
9429 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9431   echo $ac_n "(cached) $ac_c" 1>&6
9432 else
9433   ac_save_LIBS="$LIBS"
9434 LIBS="-l$ac_lib  $LIBS"
9435 cat > conftest.$ac_ext <<EOF
9436 #line 9437 "configure"
9437 #include "confdefs.h"
9438 /* Override any gcc2 internal prototype to avoid an error.  */
9439 /* We use char because int might match the return type of a gcc2
9440     builtin and then its argument prototype would still apply.  */
9441 char yywrap();
9442
9443 int main() {
9444 yywrap()
9445 ; return 0; }
9446 EOF
9447 if { (eval echo configure:9448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9448   rm -rf conftest*
9449   eval "ac_cv_lib_$ac_lib_var=yes"
9450 else
9451   echo "configure: failed program was:" >&5
9452   cat conftest.$ac_ext >&5
9453   rm -rf conftest*
9454   eval "ac_cv_lib_$ac_lib_var=no"
9455 fi
9456 rm -f conftest*
9457 LIBS="$ac_save_LIBS"
9458
9459 fi
9460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9461   echo "$ac_t""yes" 1>&6
9462   LEXLIB="-l$ac_lib"
9463 else
9464   echo "$ac_t""no" 1>&6
9465 fi
9466
9467 fi
9468
9469
9470 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9471 echo "configure:9472: checking whether ln -s works" >&5
9472 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9473   echo $ac_n "(cached) $ac_c" 1>&6
9474 else
9475   rm -f conftestdata
9476 if ln -s X conftestdata 2>/dev/null
9477 then
9478   rm -f conftestdata
9479   ac_cv_prog_LN_S="ln -s"
9480 else
9481   ac_cv_prog_LN_S=ln
9482 fi
9483 fi
9484 LN_S="$ac_cv_prog_LN_S"
9485 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9486   echo "$ac_t""yes" 1>&6
9487 else
9488   echo "$ac_t""no" 1>&6
9489 fi
9490
9491
9492
9493 if test "$wxUSE_MAC" != 1; then
9494     for ac_hdr in strings.h
9495 do
9496 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9497 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9498 echo "configure:9499: checking for $ac_hdr" >&5
9499 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9500   echo $ac_n "(cached) $ac_c" 1>&6
9501 else
9502   cat > conftest.$ac_ext <<EOF
9503 #line 9504 "configure"
9504 #include "confdefs.h"
9505 #include <$ac_hdr>
9506 EOF
9507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9508 { (eval echo configure:9509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9509 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9510 if test -z "$ac_err"; then
9511   rm -rf conftest*
9512   eval "ac_cv_header_$ac_safe=yes"
9513 else
9514   echo "$ac_err" >&5
9515   echo "configure: failed program was:" >&5
9516   cat conftest.$ac_ext >&5
9517   rm -rf conftest*
9518   eval "ac_cv_header_$ac_safe=no"
9519 fi
9520 rm -f conftest*
9521 fi
9522 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9523   echo "$ac_t""yes" 1>&6
9524     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9525   cat >> confdefs.h <<EOF
9526 #define $ac_tr_hdr 1
9527 EOF
9528  
9529 else
9530   echo "$ac_t""no" 1>&6
9531 fi
9532 done
9533
9534 fi
9535
9536 for ac_hdr in stdlib.h
9537 do
9538 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9540 echo "configure:9541: checking for $ac_hdr" >&5
9541 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9542   echo $ac_n "(cached) $ac_c" 1>&6
9543 else
9544   cat > conftest.$ac_ext <<EOF
9545 #line 9546 "configure"
9546 #include "confdefs.h"
9547 #include <$ac_hdr>
9548 EOF
9549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9550 { (eval echo configure:9551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9552 if test -z "$ac_err"; then
9553   rm -rf conftest*
9554   eval "ac_cv_header_$ac_safe=yes"
9555 else
9556   echo "$ac_err" >&5
9557   echo "configure: failed program was:" >&5
9558   cat conftest.$ac_ext >&5
9559   rm -rf conftest*
9560   eval "ac_cv_header_$ac_safe=no"
9561 fi
9562 rm -f conftest*
9563 fi
9564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9565   echo "$ac_t""yes" 1>&6
9566     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9567   cat >> confdefs.h <<EOF
9568 #define $ac_tr_hdr 1
9569 EOF
9570  
9571 else
9572   echo "$ac_t""no" 1>&6
9573 fi
9574 done
9575
9576 for ac_hdr in malloc.h
9577 do
9578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9580 echo "configure:9581: checking for $ac_hdr" >&5
9581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9582   echo $ac_n "(cached) $ac_c" 1>&6
9583 else
9584   cat > conftest.$ac_ext <<EOF
9585 #line 9586 "configure"
9586 #include "confdefs.h"
9587 #include <$ac_hdr>
9588 EOF
9589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9590 { (eval echo configure:9591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9592 if test -z "$ac_err"; then
9593   rm -rf conftest*
9594   eval "ac_cv_header_$ac_safe=yes"
9595 else
9596   echo "$ac_err" >&5
9597   echo "configure: failed program was:" >&5
9598   cat conftest.$ac_ext >&5
9599   rm -rf conftest*
9600   eval "ac_cv_header_$ac_safe=no"
9601 fi
9602 rm -f conftest*
9603 fi
9604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9605   echo "$ac_t""yes" 1>&6
9606     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9607   cat >> confdefs.h <<EOF
9608 #define $ac_tr_hdr 1
9609 EOF
9610  
9611 else
9612   echo "$ac_t""no" 1>&6
9613 fi
9614 done
9615
9616 for ac_hdr in unistd.h
9617 do
9618 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9619 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9620 echo "configure:9621: checking for $ac_hdr" >&5
9621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9622   echo $ac_n "(cached) $ac_c" 1>&6
9623 else
9624   cat > conftest.$ac_ext <<EOF
9625 #line 9626 "configure"
9626 #include "confdefs.h"
9627 #include <$ac_hdr>
9628 EOF
9629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9630 { (eval echo configure:9631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9632 if test -z "$ac_err"; then
9633   rm -rf conftest*
9634   eval "ac_cv_header_$ac_safe=yes"
9635 else
9636   echo "$ac_err" >&5
9637   echo "configure: failed program was:" >&5
9638   cat conftest.$ac_ext >&5
9639   rm -rf conftest*
9640   eval "ac_cv_header_$ac_safe=no"
9641 fi
9642 rm -f conftest*
9643 fi
9644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9645   echo "$ac_t""yes" 1>&6
9646     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9647   cat >> confdefs.h <<EOF
9648 #define $ac_tr_hdr 1
9649 EOF
9650  
9651 else
9652   echo "$ac_t""no" 1>&6
9653 fi
9654 done
9655
9656 for ac_hdr in wchar.h
9657 do
9658 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9659 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9660 echo "configure:9661: checking for $ac_hdr" >&5
9661 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9662   echo $ac_n "(cached) $ac_c" 1>&6
9663 else
9664   cat > conftest.$ac_ext <<EOF
9665 #line 9666 "configure"
9666 #include "confdefs.h"
9667 #include <$ac_hdr>
9668 EOF
9669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9670 { (eval echo configure:9671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9672 if test -z "$ac_err"; then
9673   rm -rf conftest*
9674   eval "ac_cv_header_$ac_safe=yes"
9675 else
9676   echo "$ac_err" >&5
9677   echo "configure: failed program was:" >&5
9678   cat conftest.$ac_ext >&5
9679   rm -rf conftest*
9680   eval "ac_cv_header_$ac_safe=no"
9681 fi
9682 rm -f conftest*
9683 fi
9684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9685   echo "$ac_t""yes" 1>&6
9686     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9687   cat >> confdefs.h <<EOF
9688 #define $ac_tr_hdr 1
9689 EOF
9690  
9691 else
9692   echo "$ac_t""no" 1>&6
9693 fi
9694 done
9695
9696
9697 if test "$ac_cv_header_wchar_h" != "yes"; then
9698         for ac_hdr in wcstr.h
9699 do
9700 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9701 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9702 echo "configure:9703: checking for $ac_hdr" >&5
9703 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9704   echo $ac_n "(cached) $ac_c" 1>&6
9705 else
9706   cat > conftest.$ac_ext <<EOF
9707 #line 9708 "configure"
9708 #include "confdefs.h"
9709 #include <$ac_hdr>
9710 EOF
9711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9712 { (eval echo configure:9713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9714 if test -z "$ac_err"; then
9715   rm -rf conftest*
9716   eval "ac_cv_header_$ac_safe=yes"
9717 else
9718   echo "$ac_err" >&5
9719   echo "configure: failed program was:" >&5
9720   cat conftest.$ac_ext >&5
9721   rm -rf conftest*
9722   eval "ac_cv_header_$ac_safe=no"
9723 fi
9724 rm -f conftest*
9725 fi
9726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9727   echo "$ac_t""yes" 1>&6
9728     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9729   cat >> confdefs.h <<EOF
9730 #define $ac_tr_hdr 1
9731 EOF
9732  
9733 else
9734   echo "$ac_t""no" 1>&6
9735 fi
9736 done
9737
9738 fi
9739
9740
9741 for ac_hdr in fnmatch.h
9742 do
9743 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9744 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9745 echo "configure:9746: checking for $ac_hdr" >&5
9746 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9747   echo $ac_n "(cached) $ac_c" 1>&6
9748 else
9749   cat > conftest.$ac_ext <<EOF
9750 #line 9751 "configure"
9751 #include "confdefs.h"
9752 #include <$ac_hdr>
9753 EOF
9754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9755 { (eval echo configure:9756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9756 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9757 if test -z "$ac_err"; then
9758   rm -rf conftest*
9759   eval "ac_cv_header_$ac_safe=yes"
9760 else
9761   echo "$ac_err" >&5
9762   echo "configure: failed program was:" >&5
9763   cat conftest.$ac_ext >&5
9764   rm -rf conftest*
9765   eval "ac_cv_header_$ac_safe=no"
9766 fi
9767 rm -f conftest*
9768 fi
9769 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9770   echo "$ac_t""yes" 1>&6
9771     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9772   cat >> confdefs.h <<EOF
9773 #define $ac_tr_hdr 1
9774 EOF
9775  
9776 else
9777   echo "$ac_t""no" 1>&6
9778 fi
9779 done
9780
9781
9782 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
9783     for ac_func in fnmatch
9784 do
9785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9786 echo "configure:9787: checking for $ac_func" >&5
9787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9788   echo $ac_n "(cached) $ac_c" 1>&6
9789 else
9790   cat > conftest.$ac_ext <<EOF
9791 #line 9792 "configure"
9792 #include "confdefs.h"
9793 /* System header to define __stub macros and hopefully few prototypes,
9794     which can conflict with char $ac_func(); below.  */
9795 #include <assert.h>
9796 /* Override any gcc2 internal prototype to avoid an error.  */
9797 /* We use char because int might match the return type of a gcc2
9798     builtin and then its argument prototype would still apply.  */
9799 char $ac_func();
9800
9801 int main() {
9802
9803 /* The GNU C library defines this for functions which it implements
9804     to always fail with ENOSYS.  Some functions are actually named
9805     something starting with __ and the normal name is an alias.  */
9806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9807 choke me
9808 #else
9809 $ac_func();
9810 #endif
9811
9812 ; return 0; }
9813 EOF
9814 if { (eval echo configure:9815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9815   rm -rf conftest*
9816   eval "ac_cv_func_$ac_func=yes"
9817 else
9818   echo "configure: failed program was:" >&5
9819   cat conftest.$ac_ext >&5
9820   rm -rf conftest*
9821   eval "ac_cv_func_$ac_func=no"
9822 fi
9823 rm -f conftest*
9824 fi
9825
9826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9827   echo "$ac_t""yes" 1>&6
9828     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9829   cat >> confdefs.h <<EOF
9830 #define $ac_tr_func 1
9831 EOF
9832  
9833 else
9834   echo "$ac_t""no" 1>&6
9835 fi
9836 done
9837
9838 fi
9839
9840 for ac_hdr in langinfo.h
9841 do
9842 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9843 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9844 echo "configure:9845: checking for $ac_hdr" >&5
9845 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9846   echo $ac_n "(cached) $ac_c" 1>&6
9847 else
9848   cat > conftest.$ac_ext <<EOF
9849 #line 9850 "configure"
9850 #include "confdefs.h"
9851 #include <$ac_hdr>
9852 EOF
9853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9854 { (eval echo configure:9855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9855 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9856 if test -z "$ac_err"; then
9857   rm -rf conftest*
9858   eval "ac_cv_header_$ac_safe=yes"
9859 else
9860   echo "$ac_err" >&5
9861   echo "configure: failed program was:" >&5
9862   cat conftest.$ac_ext >&5
9863   rm -rf conftest*
9864   eval "ac_cv_header_$ac_safe=no"
9865 fi
9866 rm -f conftest*
9867 fi
9868 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9869   echo "$ac_t""yes" 1>&6
9870     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9871   cat >> confdefs.h <<EOF
9872 #define $ac_tr_hdr 1
9873 EOF
9874  
9875 else
9876   echo "$ac_t""no" 1>&6
9877 fi
9878 done
9879
9880
9881 if test "$wxUSE_GUI" = "yes"; then
9882     if test "$wxUSE_UNIX" = "yes"; then
9883                 for ac_hdr in X11/XKBlib.h
9884 do
9885 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9886 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9887 echo "configure:9888: checking for $ac_hdr" >&5
9888 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9889   echo $ac_n "(cached) $ac_c" 1>&6
9890 else
9891   cat > conftest.$ac_ext <<EOF
9892 #line 9893 "configure"
9893 #include "confdefs.h"
9894 #include <$ac_hdr>
9895 EOF
9896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9897 { (eval echo configure:9898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9899 if test -z "$ac_err"; then
9900   rm -rf conftest*
9901   eval "ac_cv_header_$ac_safe=yes"
9902 else
9903   echo "$ac_err" >&5
9904   echo "configure: failed program was:" >&5
9905   cat conftest.$ac_ext >&5
9906   rm -rf conftest*
9907   eval "ac_cv_header_$ac_safe=no"
9908 fi
9909 rm -f conftest*
9910 fi
9911 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9912   echo "$ac_t""yes" 1>&6
9913     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9914   cat >> confdefs.h <<EOF
9915 #define $ac_tr_hdr 1
9916 EOF
9917  
9918 else
9919   echo "$ac_t""no" 1>&6
9920 fi
9921 done
9922
9923     fi
9924 fi
9925
9926
9927 echo $ac_n "checking for working const""... $ac_c" 1>&6
9928 echo "configure:9929: checking for working const" >&5
9929 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9930   echo $ac_n "(cached) $ac_c" 1>&6
9931 else
9932   cat > conftest.$ac_ext <<EOF
9933 #line 9934 "configure"
9934 #include "confdefs.h"
9935
9936 int main() {
9937
9938 /* Ultrix mips cc rejects this.  */
9939 typedef int charset[2]; const charset x;
9940 /* SunOS 4.1.1 cc rejects this.  */
9941 char const *const *ccp;
9942 char **p;
9943 /* NEC SVR4.0.2 mips cc rejects this.  */
9944 struct point {int x, y;};
9945 static struct point const zero = {0,0};
9946 /* AIX XL C 1.02.0.0 rejects this.
9947    It does not let you subtract one const X* pointer from another in an arm
9948    of an if-expression whose if-part is not a constant expression */
9949 const char *g = "string";
9950 ccp = &g + (g ? g-g : 0);
9951 /* HPUX 7.0 cc rejects these. */
9952 ++ccp;
9953 p = (char**) ccp;
9954 ccp = (char const *const *) p;
9955 { /* SCO 3.2v4 cc rejects this.  */
9956   char *t;
9957   char const *s = 0 ? (char *) 0 : (char const *) 0;
9958
9959   *t++ = 0;
9960 }
9961 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9962   int x[] = {25, 17};
9963   const int *foo = &x[0];
9964   ++foo;
9965 }
9966 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9967   typedef const int *iptr;
9968   iptr p = 0;
9969   ++p;
9970 }
9971 { /* AIX XL C 1.02.0.0 rejects this saying
9972      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9973   struct s { int j; const int *ap[3]; };
9974   struct s *b; b->j = 5;
9975 }
9976 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9977   const int foo = 10;
9978 }
9979
9980 ; return 0; }
9981 EOF
9982 if { (eval echo configure:9983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9983   rm -rf conftest*
9984   ac_cv_c_const=yes
9985 else
9986   echo "configure: failed program was:" >&5
9987   cat conftest.$ac_ext >&5
9988   rm -rf conftest*
9989   ac_cv_c_const=no
9990 fi
9991 rm -f conftest*
9992 fi
9993
9994 echo "$ac_t""$ac_cv_c_const" 1>&6
9995 if test $ac_cv_c_const = no; then
9996   cat >> confdefs.h <<\EOF
9997 #define const 
9998 EOF
9999
10000 fi
10001
10002 echo $ac_n "checking for inline""... $ac_c" 1>&6
10003 echo "configure:10004: checking for inline" >&5
10004 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10005   echo $ac_n "(cached) $ac_c" 1>&6
10006 else
10007   ac_cv_c_inline=no
10008 for ac_kw in inline __inline__ __inline; do
10009   cat > conftest.$ac_ext <<EOF
10010 #line 10011 "configure"
10011 #include "confdefs.h"
10012
10013 int main() {
10014 } $ac_kw foo() {
10015 ; return 0; }
10016 EOF
10017 if { (eval echo configure:10018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10018   rm -rf conftest*
10019   ac_cv_c_inline=$ac_kw; break
10020 else
10021   echo "configure: failed program was:" >&5
10022   cat conftest.$ac_ext >&5
10023 fi
10024 rm -f conftest*
10025 done
10026
10027 fi
10028
10029 echo "$ac_t""$ac_cv_c_inline" 1>&6
10030 case "$ac_cv_c_inline" in
10031   inline | yes) ;;
10032   no) cat >> confdefs.h <<\EOF
10033 #define inline 
10034 EOF
10035  ;;
10036   *)  cat >> confdefs.h <<EOF
10037 #define inline $ac_cv_c_inline
10038 EOF
10039  ;;
10040 esac
10041
10042
10043 echo $ac_n "checking size of char""... $ac_c" 1>&6
10044 echo "configure:10045: checking size of char" >&5
10045 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10046   echo $ac_n "(cached) $ac_c" 1>&6
10047 else
10048   if test "$cross_compiling" = yes; then
10049   ac_cv_sizeof_char=1
10050 else
10051   cat > conftest.$ac_ext <<EOF
10052 #line 10053 "configure"
10053 #include "confdefs.h"
10054 #include <stdio.h>
10055 #include <sys/types.h>
10056 main()
10057 {
10058   FILE *f=fopen("conftestval", "w");
10059   if (!f) exit(1);
10060   fprintf(f, "%d\n", sizeof(char));
10061   exit(0);
10062 }
10063 EOF
10064 if { (eval echo configure:10065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10065 then
10066   ac_cv_sizeof_char=`cat conftestval`
10067 else
10068   echo "configure: failed program was:" >&5
10069   cat conftest.$ac_ext >&5
10070   rm -fr conftest*
10071   ac_cv_sizeof_char=0
10072 fi
10073 rm -fr conftest*
10074 fi
10075
10076 fi
10077 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10078 cat >> confdefs.h <<EOF
10079 #define SIZEOF_CHAR $ac_cv_sizeof_char
10080 EOF
10081
10082
10083 echo $ac_n "checking size of short""... $ac_c" 1>&6
10084 echo "configure:10085: checking size of short" >&5
10085 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10086   echo $ac_n "(cached) $ac_c" 1>&6
10087 else
10088   if test "$cross_compiling" = yes; then
10089   ac_cv_sizeof_short=2
10090 else
10091   cat > conftest.$ac_ext <<EOF
10092 #line 10093 "configure"
10093 #include "confdefs.h"
10094 #include <stdio.h>
10095 #include <sys/types.h>
10096 main()
10097 {
10098   FILE *f=fopen("conftestval", "w");
10099   if (!f) exit(1);
10100   fprintf(f, "%d\n", sizeof(short));
10101   exit(0);
10102 }
10103 EOF
10104 if { (eval echo configure:10105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10105 then
10106   ac_cv_sizeof_short=`cat conftestval`
10107 else
10108   echo "configure: failed program was:" >&5
10109   cat conftest.$ac_ext >&5
10110   rm -fr conftest*
10111   ac_cv_sizeof_short=0
10112 fi
10113 rm -fr conftest*
10114 fi
10115
10116 fi
10117 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10118 cat >> confdefs.h <<EOF
10119 #define SIZEOF_SHORT $ac_cv_sizeof_short
10120 EOF
10121
10122
10123 echo $ac_n "checking size of void *""... $ac_c" 1>&6
10124 echo "configure:10125: checking size of void *" >&5
10125 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10126   echo $ac_n "(cached) $ac_c" 1>&6
10127 else
10128   if test "$cross_compiling" = yes; then
10129   ac_cv_sizeof_void_p=4
10130 else
10131   cat > conftest.$ac_ext <<EOF
10132 #line 10133 "configure"
10133 #include "confdefs.h"
10134 #include <stdio.h>
10135 #include <sys/types.h>
10136 main()
10137 {
10138   FILE *f=fopen("conftestval", "w");
10139   if (!f) exit(1);
10140   fprintf(f, "%d\n", sizeof(void *));
10141   exit(0);
10142 }
10143 EOF
10144 if { (eval echo configure:10145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10145 then
10146   ac_cv_sizeof_void_p=`cat conftestval`
10147 else
10148   echo "configure: failed program was:" >&5
10149   cat conftest.$ac_ext >&5
10150   rm -fr conftest*
10151   ac_cv_sizeof_void_p=0
10152 fi
10153 rm -fr conftest*
10154 fi
10155
10156 fi
10157 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10158 cat >> confdefs.h <<EOF
10159 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10160 EOF
10161
10162
10163 echo $ac_n "checking size of int""... $ac_c" 1>&6
10164 echo "configure:10165: checking size of int" >&5
10165 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10166   echo $ac_n "(cached) $ac_c" 1>&6
10167 else
10168   if test "$cross_compiling" = yes; then
10169   ac_cv_sizeof_int=4
10170 else
10171   cat > conftest.$ac_ext <<EOF
10172 #line 10173 "configure"
10173 #include "confdefs.h"
10174 #include <stdio.h>
10175 #include <sys/types.h>
10176 main()
10177 {
10178   FILE *f=fopen("conftestval", "w");
10179   if (!f) exit(1);
10180   fprintf(f, "%d\n", sizeof(int));
10181   exit(0);
10182 }
10183 EOF
10184 if { (eval echo configure:10185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10185 then
10186   ac_cv_sizeof_int=`cat conftestval`
10187 else
10188   echo "configure: failed program was:" >&5
10189   cat conftest.$ac_ext >&5
10190   rm -fr conftest*
10191   ac_cv_sizeof_int=0
10192 fi
10193 rm -fr conftest*
10194 fi
10195
10196 fi
10197 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10198 cat >> confdefs.h <<EOF
10199 #define SIZEOF_INT $ac_cv_sizeof_int
10200 EOF
10201
10202
10203 echo $ac_n "checking size of long""... $ac_c" 1>&6
10204 echo "configure:10205: checking size of long" >&5
10205 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10206   echo $ac_n "(cached) $ac_c" 1>&6
10207 else
10208   if test "$cross_compiling" = yes; then
10209   ac_cv_sizeof_long=4
10210 else
10211   cat > conftest.$ac_ext <<EOF
10212 #line 10213 "configure"
10213 #include "confdefs.h"
10214 #include <stdio.h>
10215 #include <sys/types.h>
10216 main()
10217 {
10218   FILE *f=fopen("conftestval", "w");
10219   if (!f) exit(1);
10220   fprintf(f, "%d\n", sizeof(long));
10221   exit(0);
10222 }
10223 EOF
10224 if { (eval echo configure:10225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10225 then
10226   ac_cv_sizeof_long=`cat conftestval`
10227 else
10228   echo "configure: failed program was:" >&5
10229   cat conftest.$ac_ext >&5
10230   rm -fr conftest*
10231   ac_cv_sizeof_long=0
10232 fi
10233 rm -fr conftest*
10234 fi
10235
10236 fi
10237 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10238 cat >> confdefs.h <<EOF
10239 #define SIZEOF_LONG $ac_cv_sizeof_long
10240 EOF
10241
10242
10243
10244 case "${host}" in
10245     arm-*-linux* )
10246         echo $ac_n "checking size of long long""... $ac_c" 1>&6
10247 echo "configure:10248: checking size of long long" >&5
10248 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10249   echo $ac_n "(cached) $ac_c" 1>&6
10250 else
10251   if test "$cross_compiling" = yes; then
10252   ac_cv_sizeof_long_long=8
10253 else
10254   cat > conftest.$ac_ext <<EOF
10255 #line 10256 "configure"
10256 #include "confdefs.h"
10257 #include <stdio.h>
10258 #include <sys/types.h>
10259 main()
10260 {
10261   FILE *f=fopen("conftestval", "w");
10262   if (!f) exit(1);
10263   fprintf(f, "%d\n", sizeof(long long));
10264   exit(0);
10265 }
10266 EOF
10267 if { (eval echo configure:10268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10268 then
10269   ac_cv_sizeof_long_long=`cat conftestval`
10270 else
10271   echo "configure: failed program was:" >&5
10272   cat conftest.$ac_ext >&5
10273   rm -fr conftest*
10274   ac_cv_sizeof_long_long=0
10275 fi
10276 rm -fr conftest*
10277 fi
10278
10279 fi
10280 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10281 cat >> confdefs.h <<EOF
10282 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10283 EOF
10284
10285
10286     ;;
10287     * )
10288         echo $ac_n "checking size of long long""... $ac_c" 1>&6
10289 echo "configure:10290: checking size of long long" >&5
10290 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10291   echo $ac_n "(cached) $ac_c" 1>&6
10292 else
10293   if test "$cross_compiling" = yes; then
10294   ac_cv_sizeof_long_long=0
10295 else
10296   cat > conftest.$ac_ext <<EOF
10297 #line 10298 "configure"
10298 #include "confdefs.h"
10299 #include <stdio.h>
10300 #include <sys/types.h>
10301 main()
10302 {
10303   FILE *f=fopen("conftestval", "w");
10304   if (!f) exit(1);
10305   fprintf(f, "%d\n", sizeof(long long));
10306   exit(0);
10307 }
10308 EOF
10309 if { (eval echo configure:10310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10310 then
10311   ac_cv_sizeof_long_long=`cat conftestval`
10312 else
10313   echo "configure: failed program was:" >&5
10314   cat conftest.$ac_ext >&5
10315   rm -fr conftest*
10316   ac_cv_sizeof_long_long=0
10317 fi
10318 rm -fr conftest*
10319 fi
10320
10321 fi
10322 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10323 cat >> confdefs.h <<EOF
10324 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10325 EOF
10326
10327
10328 esac
10329
10330 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10331 echo "configure:10332: checking size of wchar_t" >&5
10332 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10333   echo $ac_n "(cached) $ac_c" 1>&6
10334 else
10335   
10336     if test "$cross_compiling" = yes; then
10337   wx_cv_sizeof_wchar_t=4
10338     
10339 else
10340   cat > conftest.$ac_ext <<EOF
10341 #line 10342 "configure"
10342 #include "confdefs.h"
10343
10344             #ifdef HAVE_WCHAR_H
10345             #  ifdef __CYGWIN__
10346             #    include <stddef.h>
10347             #  endif
10348             #  include <wchar.h>
10349             #endif
10350             #ifdef HAVE_STDLIB_H
10351             #  include <stdlib.h>
10352             #endif
10353             #include <stdio.h>
10354             int main()
10355             {
10356                 FILE *f=fopen("conftestval", "w");
10357                 if (!f) exit(1);
10358                 fprintf(f, "%i", sizeof(wchar_t));
10359                 exit(0);
10360             }
10361         
10362 EOF
10363 if { (eval echo configure:10364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10364 then
10365   wx_cv_sizeof_wchar_t=`cat conftestval`
10366 else
10367   echo "configure: failed program was:" >&5
10368   cat conftest.$ac_ext >&5
10369   rm -fr conftest*
10370   wx_cv_sizeof_wchar_t=0
10371 fi
10372 rm -fr conftest*
10373 fi
10374
10375
10376 fi
10377
10378 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10379
10380 cat >> confdefs.h <<EOF
10381 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10382 EOF
10383
10384
10385 # Check whether --enable-largefile or --disable-largefile was given.
10386 if test "${enable_largefile+set}" = set; then
10387   enableval="$enable_largefile"
10388   :
10389 fi
10390
10391 if test "$enable_largefile" != no; then
10392             wx_largefile=no
10393     
10394     echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10395 echo "configure:10396: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10396 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10397   echo $ac_n "(cached) $ac_c" 1>&6
10398 else
10399   
10400           cat > conftest.$ac_ext <<EOF
10401 #line 10402 "configure"
10402 #include "confdefs.h"
10403 #define _FILE_OFFSET_BITS 64
10404                           #include <sys/types.h>
10405 int main() {
10406 typedef struct {
10407     unsigned int field: sizeof(off_t) == 8;
10408 } wxlf;
10409
10410 ; return 0; }
10411 EOF
10412 if { (eval echo configure:10413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10413   rm -rf conftest*
10414   ac_cv_sys_file_offset_bits=64
10415 else
10416   echo "configure: failed program was:" >&5
10417   cat conftest.$ac_ext >&5
10418   rm -rf conftest*
10419   ac_cv_sys_file_offset_bits=no
10420 fi
10421 rm -f conftest*
10422         
10423     
10424 fi
10425
10426 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10427
10428     if test "$ac_cv_sys_file_offset_bits" != no; then
10429         wx_largefile=yes
10430         cat >> confdefs.h <<EOF
10431 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10432 EOF
10433
10434     fi
10435
10436     if test "x$wx_largefile" != "xyes"; then
10437         
10438     echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10439 echo "configure:10440: checking for _LARGE_FILES value needed for large files" >&5
10440 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10441   echo $ac_n "(cached) $ac_c" 1>&6
10442 else
10443   
10444           cat > conftest.$ac_ext <<EOF
10445 #line 10446 "configure"
10446 #include "confdefs.h"
10447 #define _LARGE_FILES 1
10448                           #include <sys/types.h>
10449 int main() {
10450 typedef struct {
10451     unsigned int field: sizeof(off_t) == 8;
10452 } wxlf;
10453
10454 ; return 0; }
10455 EOF
10456 if { (eval echo configure:10457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10457   rm -rf conftest*
10458   ac_cv_sys_large_files=1
10459 else
10460   echo "configure: failed program was:" >&5
10461   cat conftest.$ac_ext >&5
10462   rm -rf conftest*
10463   ac_cv_sys_large_files=no
10464 fi
10465 rm -f conftest*
10466         
10467     
10468 fi
10469
10470 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10471
10472     if test "$ac_cv_sys_large_files" != no; then
10473         wx_largefile=yes
10474         cat >> confdefs.h <<EOF
10475 #define _LARGE_FILES $ac_cv_sys_large_files
10476 EOF
10477
10478     fi
10479
10480     fi
10481
10482     echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10483 echo "configure:10484: checking if large file support is available" >&5
10484     if test "x$wx_largefile" = "xyes"; then
10485         cat >> confdefs.h <<\EOF
10486 #define HAVE_LARGEFILE_SUPPORT 1
10487 EOF
10488
10489     fi
10490     echo "$ac_t""$wx_largefile" 1>&6
10491 fi
10492
10493
10494 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10495 echo "configure:10496: checking whether byte ordering is bigendian" >&5
10496 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10497   echo $ac_n "(cached) $ac_c" 1>&6
10498 else
10499   ac_cv_c_bigendian=unknown
10500 # See if sys/param.h defines the BYTE_ORDER macro.
10501 cat > conftest.$ac_ext <<EOF
10502 #line 10503 "configure"
10503 #include "confdefs.h"
10504 #include <sys/types.h>
10505 #include <sys/param.h>
10506 int main() {
10507
10508 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10509  bogus endian macros
10510 #endif
10511 ; return 0; }
10512 EOF
10513 if { (eval echo configure:10514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10514   rm -rf conftest*
10515   # It does; now see whether it defined to BIG_ENDIAN or not.
10516 cat > conftest.$ac_ext <<EOF
10517 #line 10518 "configure"
10518 #include "confdefs.h"
10519 #include <sys/types.h>
10520 #include <sys/param.h>
10521 int main() {
10522
10523 #if BYTE_ORDER != BIG_ENDIAN
10524  not big endian
10525 #endif
10526 ; return 0; }
10527 EOF
10528 if { (eval echo configure:10529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10529   rm -rf conftest*
10530   ac_cv_c_bigendian=yes
10531 else
10532   echo "configure: failed program was:" >&5
10533   cat conftest.$ac_ext >&5
10534   rm -rf conftest*
10535   ac_cv_c_bigendian=no
10536 fi
10537 rm -f conftest*
10538 else
10539   echo "configure: failed program was:" >&5
10540   cat conftest.$ac_ext >&5
10541 fi
10542 rm -f conftest*
10543 if test $ac_cv_c_bigendian = unknown; then
10544 if test "$cross_compiling" = yes; then
10545   ac_cv_c_bigendian=unknown
10546 else
10547   cat > conftest.$ac_ext <<EOF
10548 #line 10549 "configure"
10549 #include "confdefs.h"
10550 main () {
10551   /* Are we little or big endian?  From Harbison&Steele.  */
10552   union
10553   {
10554     long l;
10555     char c[sizeof (long)];
10556   } u;
10557   u.l = 1;
10558   exit (u.c[sizeof (long) - 1] == 1);
10559 }
10560 EOF
10561 if { (eval echo configure:10562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10562 then
10563   ac_cv_c_bigendian=no
10564 else
10565   echo "configure: failed program was:" >&5
10566   cat conftest.$ac_ext >&5
10567   rm -fr conftest*
10568   ac_cv_c_bigendian=yes
10569 fi
10570 rm -fr conftest*
10571 fi
10572
10573 fi
10574 fi
10575
10576 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10577 if test $ac_cv_c_bigendian = unknown; then
10578   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
10579 fi
10580 if test $ac_cv_c_bigendian = yes; then
10581   cat >> confdefs.h <<\EOF
10582 #define WORDS_BIGENDIAN 1
10583 EOF
10584
10585 fi
10586
10587
10588 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
10589 echo "configure:10590: checking how to run the C++ preprocessor" >&5
10590 if test -z "$CXXCPP"; then
10591 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
10592   echo $ac_n "(cached) $ac_c" 1>&6
10593 else
10594   ac_ext=C
10595 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10596 ac_cpp='$CXXCPP $CPPFLAGS'
10597 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10598 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10599 cross_compiling=$ac_cv_prog_cxx_cross
10600   CXXCPP="${CXX-g++} -E"
10601   cat > conftest.$ac_ext <<EOF
10602 #line 10603 "configure"
10603 #include "confdefs.h"
10604 #include <stdlib.h>
10605 EOF
10606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10607 { (eval echo configure:10608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10609 if test -z "$ac_err"; then
10610   :
10611 else
10612   echo "$ac_err" >&5
10613   echo "configure: failed program was:" >&5
10614   cat conftest.$ac_ext >&5
10615   rm -rf conftest*
10616   CXXCPP=/lib/cpp
10617 fi
10618 rm -f conftest*
10619   ac_cv_prog_CXXCPP="$CXXCPP"
10620 ac_ext=C
10621 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10622 ac_cpp='$CXXCPP $CPPFLAGS'
10623 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10624 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10625 cross_compiling=$ac_cv_prog_cxx_cross
10626 fi
10627 fi
10628 CXXCPP="$ac_cv_prog_CXXCPP"
10629 echo "$ac_t""$CXXCPP" 1>&6
10630
10631
10632   if test "$cross_compiling" = "yes"; then
10633     cat >> confdefs.h <<\EOF
10634 #define wxUSE_IOSTREAMH 1
10635 EOF
10636
10637   else
10638     
10639     ac_ext=C
10640 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10641 ac_cpp='$CXXCPP $CPPFLAGS'
10642 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10643 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10644 cross_compiling=$ac_cv_prog_cxx_cross
10645
10646
10647     for ac_hdr in iostream
10648 do
10649 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10650 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10651 echo "configure:10652: checking for $ac_hdr" >&5
10652 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10653   echo $ac_n "(cached) $ac_c" 1>&6
10654 else
10655   cat > conftest.$ac_ext <<EOF
10656 #line 10657 "configure"
10657 #include "confdefs.h"
10658 #include <$ac_hdr>
10659 EOF
10660 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10661 { (eval echo configure:10662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10662 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10663 if test -z "$ac_err"; then
10664   rm -rf conftest*
10665   eval "ac_cv_header_$ac_safe=yes"
10666 else
10667   echo "$ac_err" >&5
10668   echo "configure: failed program was:" >&5
10669   cat conftest.$ac_ext >&5
10670   rm -rf conftest*
10671   eval "ac_cv_header_$ac_safe=no"
10672 fi
10673 rm -f conftest*
10674 fi
10675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10676   echo "$ac_t""yes" 1>&6
10677     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10678   cat >> confdefs.h <<EOF
10679 #define $ac_tr_hdr 1
10680 EOF
10681  
10682 else
10683   echo "$ac_t""no" 1>&6
10684 fi
10685 done
10686
10687
10688     if test "$ac_cv_header_iostream" = "yes" ; then
10689       :
10690     else
10691       cat >> confdefs.h <<\EOF
10692 #define wxUSE_IOSTREAMH 1
10693 EOF
10694
10695     fi
10696
10697     ac_ext=c
10698 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10699 ac_cpp='$CPP $CPPFLAGS'
10700 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10701 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10702 cross_compiling=$ac_cv_prog_cc_cross
10703
10704   fi
10705
10706
10707
10708   echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
10709 echo "configure:10710: checking if C++ compiler supports bool" >&5
10710 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10711   echo $ac_n "(cached) $ac_c" 1>&6
10712 else
10713   
10714     
10715     ac_ext=C
10716 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10717 ac_cpp='$CXXCPP $CPPFLAGS'
10718 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10719 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10720 cross_compiling=$ac_cv_prog_cxx_cross
10721
10722
10723     cat > conftest.$ac_ext <<EOF
10724 #line 10725 "configure"
10725 #include "confdefs.h"
10726
10727       
10728 int main() {
10729
10730         bool b = true;
10731
10732         return 0;
10733       
10734 ; return 0; }
10735 EOF
10736 if { (eval echo configure:10737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10737   rm -rf conftest*
10738   
10739         wx_cv_cpp_bool=yes
10740       
10741 else
10742   echo "configure: failed program was:" >&5
10743   cat conftest.$ac_ext >&5
10744   rm -rf conftest*
10745   
10746         wx_cv_cpp_bool=no
10747       
10748     
10749 fi
10750 rm -f conftest*
10751
10752     ac_ext=c
10753 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10754 ac_cpp='$CPP $CPPFLAGS'
10755 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10756 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10757 cross_compiling=$ac_cv_prog_cc_cross
10758
10759   
10760 fi
10761
10762 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10763
10764   if test "$wx_cv_cpp_bool" = "yes"; then
10765     cat >> confdefs.h <<\EOF
10766 #define HAVE_BOOL 1
10767 EOF
10768
10769   fi
10770
10771
10772
10773   echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
10774 echo "configure:10775: checking if C++ compiler supports the explicit keyword" >&5
10775 if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
10776   echo $ac_n "(cached) $ac_c" 1>&6
10777 else
10778   
10779     
10780     ac_ext=C
10781 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10782 ac_cpp='$CXXCPP $CPPFLAGS'
10783 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10784 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10785 cross_compiling=$ac_cv_prog_cxx_cross
10786
10787
10788             cat > conftest.$ac_ext <<EOF
10789 #line 10790 "configure"
10790 #include "confdefs.h"
10791
10792         class Foo { public: explicit Foo(int) {} };
10793       
10794 int main() {
10795
10796         return 0;
10797       
10798 ; return 0; }
10799 EOF
10800 if { (eval echo configure:10801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10801   rm -rf conftest*
10802   
10803         cat > conftest.$ac_ext <<EOF
10804 #line 10805 "configure"
10805 #include "confdefs.h"
10806
10807                 class Foo { public: explicit Foo(int) {} };
10808                 static void TakeFoo(const Foo& foo) { }
10809             
10810 int main() {
10811
10812                 TakeFoo(17);
10813                 return 0;
10814             
10815 ; return 0; }
10816 EOF
10817 if { (eval echo configure:10818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10818   rm -rf conftest*
10819   wx_cv_explicit=no
10820 else
10821   echo "configure: failed program was:" >&5
10822   cat conftest.$ac_ext >&5
10823   rm -rf conftest*
10824   wx_cv_explicit=yes
10825         
10826 fi
10827 rm -f conftest*
10828       
10829 else
10830   echo "configure: failed program was:" >&5
10831   cat conftest.$ac_ext >&5
10832   rm -rf conftest*
10833   wx_cv_explicit=no
10834     
10835 fi
10836 rm -f conftest*
10837
10838     ac_ext=c
10839 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10840 ac_cpp='$CPP $CPPFLAGS'
10841 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10842 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10843 cross_compiling=$ac_cv_prog_cc_cross
10844
10845   
10846 fi
10847
10848 echo "$ac_t""$wx_cv_explicit" 1>&6
10849
10850   if test "$wx_cv_explicit" = "yes"; then
10851     cat >> confdefs.h <<\EOF
10852 #define HAVE_EXPLICIT 1
10853 EOF
10854
10855   fi
10856
10857
10858
10859 SEARCH_INCLUDE="\
10860     /usr/local/include        \
10861                               \
10862     /usr/Motif-1.2/include    \
10863     /usr/Motif-2.1/include    \
10864                               \
10865     /usr/include/Motif1.2     \
10866     /opt/xpm/include/X11      \
10867     /opt/GBxpm/include/       \
10868     /opt/GBxpm/X11/include/   \
10869                               \
10870     /usr/Motif1.2/include     \
10871     /usr/dt/include           \
10872     /usr/openwin/include      \
10873                               \
10874     /usr/include/Xm           \
10875                               \
10876     /usr/X11R6/include        \
10877     /usr/X11R6.4/include      \
10878     /usr/X11R5/include        \
10879     /usr/X11R4/include        \
10880                               \
10881     /usr/include/X11R6        \
10882     /usr/include/X11R5        \
10883     /usr/include/X11R4        \
10884                               \
10885     /usr/local/X11R6/include  \
10886     /usr/local/X11R5/include  \
10887     /usr/local/X11R4/include  \
10888                               \
10889     /usr/local/include/X11R6  \
10890     /usr/local/include/X11R5  \
10891     /usr/local/include/X11R4  \
10892                               \
10893     /usr/X11/include          \
10894     /usr/include/X11          \
10895     /usr/local/X11/include    \
10896     /usr/local/include/X11    \
10897                               \
10898     /usr/X386/include         \
10899     /usr/x386/include         \
10900     /usr/XFree86/include/X11  \
10901                               \
10902     X:/XFree86/include        \
10903     X:/XFree86/include/X11    \
10904                               \
10905     /usr/include/gtk          \
10906     /usr/local/include/gtk    \
10907     /usr/include/glib         \
10908     /usr/local/include/glib   \
10909                               \
10910     /usr/include/qt           \
10911     /usr/local/include/qt     \
10912                               \
10913     /usr/include/windows      \
10914     /usr/include/wine         \
10915     /usr/local/include/wine   \
10916                               \
10917     /usr/unsupported/include  \
10918     /usr/athena/include       \
10919     /usr/local/x11r5/include  \
10920     /usr/lpp/Xamples/include  \
10921                               \
10922     /usr/openwin/share/include \
10923                                \
10924     /usr/include"
10925
10926 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
10927
10928
10929 cat > confcache <<\EOF
10930 # This file is a shell script that caches the results of configure
10931 # tests run on this system so they can be shared between configure
10932 # scripts and configure runs.  It is not useful on other systems.
10933 # If it contains results you don't want to keep, you may remove or edit it.
10934 #
10935 # By default, configure uses ./config.cache as the cache file,
10936 # creating it if it does not exist already.  You can give configure
10937 # the --cache-file=FILE option to use a different cache file; that is
10938 # what configure does when it calls configure scripts in
10939 # subdirectories, so they share the cache.
10940 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10941 # config.status only pays attention to the cache file if you give it the
10942 # --recheck option to rerun configure.
10943 #
10944 EOF
10945 # The following way of writing the cache mishandles newlines in values,
10946 # but we know of no workaround that is simple, portable, and efficient.
10947 # So, don't put newlines in cache variables' values.
10948 # Ultrix sh set writes to stderr and can't be redirected directly,
10949 # and sets the high bit in the cache file unless we assign to the vars.
10950 (set) 2>&1 |
10951   case `(ac_space=' '; set | grep ac_space) 2>&1` in
10952   *ac_space=\ *)
10953     # `set' does not quote correctly, so add quotes (double-quote substitution
10954     # turns \\\\ into \\, and sed turns \\ into \).
10955     sed -n \
10956       -e "s/'/'\\\\''/g" \
10957       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10958     ;;
10959   *)
10960     # `set' quotes correctly as required by POSIX, so do not add quotes.
10961     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10962     ;;
10963   esac >> confcache
10964 if cmp -s $cache_file confcache; then
10965   :
10966 else
10967   if test -w $cache_file; then
10968     echo "updating cache $cache_file"
10969     cat confcache > $cache_file
10970   else
10971     echo "not updating unwritable cache $cache_file"
10972   fi
10973 fi
10974 rm -f confcache
10975
10976
10977 if test "$USE_LINUX" = 1; then
10978     echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
10979 echo "configure:10980: checking for glibc 2.1 or later" >&5
10980 if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
10981   echo $ac_n "(cached) $ac_c" 1>&6
10982 else
10983   
10984         cat > conftest.$ac_ext <<EOF
10985 #line 10986 "configure"
10986 #include "confdefs.h"
10987 #include <features.h>
10988 int main() {
10989
10990                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
10991                     #error not glibc2.1
10992                 #endif
10993             
10994 ; return 0; }
10995 EOF
10996 if { (eval echo configure:10997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10997   rm -rf conftest*
10998   
10999                 wx_cv_lib_glibc21=yes
11000             
11001 else
11002   echo "configure: failed program was:" >&5
11003   cat conftest.$ac_ext >&5
11004   rm -rf conftest*
11005   
11006                 wx_cv_lib_glibc21=no
11007             
11008         
11009 fi
11010 rm -f conftest*
11011     
11012 fi
11013
11014 echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11015     if test "$wx_cv_lib_glibc21" = "yes"; then
11016         cat >> confdefs.h <<\EOF
11017 #define wxHAVE_GLIBC2 1
11018 EOF
11019
11020     fi
11021 fi
11022
11023
11024
11025 REGEX_INCLUDE=
11026 if test "$wxUSE_REGEX" != "no"; then
11027     cat >> confdefs.h <<\EOF
11028 #define wxUSE_REGEX 1
11029 EOF
11030
11031
11032     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11033                         ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11034 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11035 echo "configure:11036: checking for regex.h" >&5
11036 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11037   echo $ac_n "(cached) $ac_c" 1>&6
11038 else
11039   cat > conftest.$ac_ext <<EOF
11040 #line 11041 "configure"
11041 #include "confdefs.h"
11042 #include <regex.h>
11043 EOF
11044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11045 { (eval echo configure:11046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11046 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11047 if test -z "$ac_err"; then
11048   rm -rf conftest*
11049   eval "ac_cv_header_$ac_safe=yes"
11050 else
11051   echo "$ac_err" >&5
11052   echo "configure: failed program was:" >&5
11053   cat conftest.$ac_ext >&5
11054   rm -rf conftest*
11055   eval "ac_cv_header_$ac_safe=no"
11056 fi
11057 rm -f conftest*
11058 fi
11059 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11060   echo "$ac_t""yes" 1>&6
11061   for ac_func in regcomp
11062 do
11063 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11064 echo "configure:11065: checking for $ac_func" >&5
11065 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11066   echo $ac_n "(cached) $ac_c" 1>&6
11067 else
11068   cat > conftest.$ac_ext <<EOF
11069 #line 11070 "configure"
11070 #include "confdefs.h"
11071 /* System header to define __stub macros and hopefully few prototypes,
11072     which can conflict with char $ac_func(); below.  */
11073 #include <assert.h>
11074 /* Override any gcc2 internal prototype to avoid an error.  */
11075 /* We use char because int might match the return type of a gcc2
11076     builtin and then its argument prototype would still apply.  */
11077 char $ac_func();
11078
11079 int main() {
11080
11081 /* The GNU C library defines this for functions which it implements
11082     to always fail with ENOSYS.  Some functions are actually named
11083     something starting with __ and the normal name is an alias.  */
11084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11085 choke me
11086 #else
11087 $ac_func();
11088 #endif
11089
11090 ; return 0; }
11091 EOF
11092 if { (eval echo configure:11093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11093   rm -rf conftest*
11094   eval "ac_cv_func_$ac_func=yes"
11095 else
11096   echo "configure: failed program was:" >&5
11097   cat conftest.$ac_ext >&5
11098   rm -rf conftest*
11099   eval "ac_cv_func_$ac_func=no"
11100 fi
11101 rm -f conftest*
11102 fi
11103
11104 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11105   echo "$ac_t""yes" 1>&6
11106     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11107   cat >> confdefs.h <<EOF
11108 #define $ac_tr_func 1
11109 EOF
11110  
11111 else
11112   echo "$ac_t""no" 1>&6
11113 fi
11114 done
11115
11116 else
11117   echo "$ac_t""no" 1>&6
11118 fi
11119
11120
11121         if test "x$ac_cv_func_regcomp" != "xyes"; then
11122             if test "$wxUSE_REGEX" = "sys" ; then
11123                 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11124             else
11125                 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11126                 wxUSE_REGEX=builtin
11127             fi
11128         else
11129                         wxUSE_REGEX=sys
11130         fi
11131     fi
11132
11133     if test "$wxUSE_REGEX" = "builtin" ; then
11134         REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11135     fi
11136 fi
11137
11138
11139 ZLIB_INCLUDE=
11140 ZLIB_LINK=
11141 if test "$wxUSE_ZLIB" != "no" ; then
11142     cat >> confdefs.h <<\EOF
11143 #define wxUSE_ZLIB 1
11144 EOF
11145
11146
11147     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11148         ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11149 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11150 echo "configure:11151: checking for zlib.h" >&5
11151 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11152   echo $ac_n "(cached) $ac_c" 1>&6
11153 else
11154   cat > conftest.$ac_ext <<EOF
11155 #line 11156 "configure"
11156 #include "confdefs.h"
11157 #include <zlib.h>
11158 EOF
11159 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11160 { (eval echo configure:11161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11161 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11162 if test -z "$ac_err"; then
11163   rm -rf conftest*
11164   eval "ac_cv_header_$ac_safe=yes"
11165 else
11166   echo "$ac_err" >&5
11167   echo "configure: failed program was:" >&5
11168   cat conftest.$ac_ext >&5
11169   rm -rf conftest*
11170   eval "ac_cv_header_$ac_safe=no"
11171 fi
11172 rm -f conftest*
11173 fi
11174 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11175   echo "$ac_t""yes" 1>&6
11176   echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11177 echo "configure:11178: checking for deflate in -lz" >&5
11178 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11179 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11180   echo $ac_n "(cached) $ac_c" 1>&6
11181 else
11182   ac_save_LIBS="$LIBS"
11183 LIBS="-lz  $LIBS"
11184 cat > conftest.$ac_ext <<EOF
11185 #line 11186 "configure"
11186 #include "confdefs.h"
11187 /* Override any gcc2 internal prototype to avoid an error.  */
11188 /* We use char because int might match the return type of a gcc2
11189     builtin and then its argument prototype would still apply.  */
11190 char deflate();
11191
11192 int main() {
11193 deflate()
11194 ; return 0; }
11195 EOF
11196 if { (eval echo configure:11197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11197   rm -rf conftest*
11198   eval "ac_cv_lib_$ac_lib_var=yes"
11199 else
11200   echo "configure: failed program was:" >&5
11201   cat conftest.$ac_ext >&5
11202   rm -rf conftest*
11203   eval "ac_cv_lib_$ac_lib_var=no"
11204 fi
11205 rm -f conftest*
11206 LIBS="$ac_save_LIBS"
11207
11208 fi
11209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11210   echo "$ac_t""yes" 1>&6
11211   ZLIB_LINK=" -lz"
11212 else
11213   echo "$ac_t""no" 1>&6
11214 fi
11215
11216 else
11217   echo "$ac_t""no" 1>&6
11218 fi
11219
11220
11221         if test "x$ZLIB_LINK" = "x" ; then
11222             if test "$wxUSE_ZLIB" = "sys" ; then
11223                 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11224             else
11225                 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
11226                 wxUSE_ZLIB=builtin
11227             fi
11228         else
11229                         wxUSE_ZLIB=sys
11230         fi
11231     fi
11232
11233     if test "$wxUSE_ZLIB" = "builtin" ; then
11234         ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11235     fi
11236 fi
11237
11238
11239 PNG_INCLUDE=
11240 PNG_LINK=
11241 if test "$wxUSE_LIBPNG" != "no" ; then
11242     cat >> confdefs.h <<\EOF
11243 #define wxUSE_LIBPNG 1
11244 EOF
11245
11246     
11247     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11248         echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11249         wxUSE_LIBPNG=sys
11250     fi
11251
11252                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11253         echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11254         wxUSE_LIBPNG=builtin
11255     fi
11256
11257     if test "$wxUSE_MGL" != 1 ; then
11258                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11259             ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11260 echo $ac_n "checking for png.h""... $ac_c" 1>&6
11261 echo "configure:11262: checking for png.h" >&5
11262 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11263   echo $ac_n "(cached) $ac_c" 1>&6
11264 else
11265   cat > conftest.$ac_ext <<EOF
11266 #line 11267 "configure"
11267 #include "confdefs.h"
11268 #include <png.h>
11269 EOF
11270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11271 { (eval echo configure:11272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11272 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11273 if test -z "$ac_err"; then
11274   rm -rf conftest*
11275   eval "ac_cv_header_$ac_safe=yes"
11276 else
11277   echo "$ac_err" >&5
11278   echo "configure: failed program was:" >&5
11279   cat conftest.$ac_ext >&5
11280   rm -rf conftest*
11281   eval "ac_cv_header_$ac_safe=no"
11282 fi
11283 rm -f conftest*
11284 fi
11285 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11286   echo "$ac_t""yes" 1>&6
11287   echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11288 echo "configure:11289: checking for png_check_sig in -lpng" >&5
11289 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11291   echo $ac_n "(cached) $ac_c" 1>&6
11292 else
11293   ac_save_LIBS="$LIBS"
11294 LIBS="-lpng -lz -lm $LIBS"
11295 cat > conftest.$ac_ext <<EOF
11296 #line 11297 "configure"
11297 #include "confdefs.h"
11298 /* Override any gcc2 internal prototype to avoid an error.  */
11299 /* We use char because int might match the return type of a gcc2
11300     builtin and then its argument prototype would still apply.  */
11301 char png_check_sig();
11302
11303 int main() {
11304 png_check_sig()
11305 ; return 0; }
11306 EOF
11307 if { (eval echo configure:11308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11308   rm -rf conftest*
11309   eval "ac_cv_lib_$ac_lib_var=yes"
11310 else
11311   echo "configure: failed program was:" >&5
11312   cat conftest.$ac_ext >&5
11313   rm -rf conftest*
11314   eval "ac_cv_lib_$ac_lib_var=no"
11315 fi
11316 rm -f conftest*
11317 LIBS="$ac_save_LIBS"
11318
11319 fi
11320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11321   echo "$ac_t""yes" 1>&6
11322   PNG_LINK=" -lpng"
11323 else
11324   echo "$ac_t""no" 1>&6
11325 fi
11326
11327                            
11328 else
11329   echo "$ac_t""no" 1>&6
11330 fi
11331
11332
11333             if test "x$PNG_LINK" = "x" ; then
11334                 if test "$wxUSE_LIBPNG" = "sys" ; then
11335                     { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11336                 else
11337                     echo "configure: warning: system png library not found, will use built-in instead" 1>&2
11338                     wxUSE_LIBPNG=builtin
11339                 fi
11340             else
11341                                 wxUSE_LIBPNG=yes
11342             fi
11343         fi
11344     fi
11345
11346     if test "$wxUSE_LIBPNG" = "builtin" ; then
11347         PNG_INCLUDE="-I\${top_srcdir}/src/png"
11348     fi
11349
11350     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11351 fi
11352
11353
11354 JPEG_INCLUDE=
11355 JPEG_LINK=
11356 if test "$wxUSE_LIBJPEG" != "no" ; then
11357     cat >> confdefs.h <<\EOF
11358 #define wxUSE_LIBJPEG 1
11359 EOF
11360
11361
11362     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11363         echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11364         wxUSE_LIBJPEG=sys
11365     fi
11366
11367     if test "$wxUSE_MGL" != 1 ; then
11368                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11369                                                 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11370 echo "configure:11371: checking for jpeglib.h" >&5
11371             if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11372   echo $ac_n "(cached) $ac_c" 1>&6
11373 else
11374   cat > conftest.$ac_ext <<EOF
11375 #line 11376 "configure"
11376 #include "confdefs.h"
11377
11378                         #undef HAVE_STDLIB_H
11379                         #include <stdio.h>
11380                         #include <jpeglib.h>
11381                     
11382 int main() {
11383
11384                     
11385 ; return 0; }
11386 EOF
11387 if { (eval echo configure:11388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11388   rm -rf conftest*
11389   ac_cv_header_jpeglib_h=yes
11390 else
11391   echo "configure: failed program was:" >&5
11392   cat conftest.$ac_ext >&5
11393   rm -rf conftest*
11394   ac_cv_header_jpeglib_h=no
11395                 
11396 fi
11397 rm -f conftest*
11398             
11399 fi
11400
11401             echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11402
11403             if test "$ac_cv_header_jpeglib_h" = "yes"; then
11404                 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11405 echo "configure:11406: checking for jpeg_read_header in -ljpeg" >&5
11406 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11408   echo $ac_n "(cached) $ac_c" 1>&6
11409 else
11410   ac_save_LIBS="$LIBS"
11411 LIBS="-ljpeg  $LIBS"
11412 cat > conftest.$ac_ext <<EOF
11413 #line 11414 "configure"
11414 #include "confdefs.h"
11415 /* Override any gcc2 internal prototype to avoid an error.  */
11416 /* We use char because int might match the return type of a gcc2
11417     builtin and then its argument prototype would still apply.  */
11418 char jpeg_read_header();
11419
11420 int main() {
11421 jpeg_read_header()
11422 ; return 0; }
11423 EOF
11424 if { (eval echo configure:11425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11425   rm -rf conftest*
11426   eval "ac_cv_lib_$ac_lib_var=yes"
11427 else
11428   echo "configure: failed program was:" >&5
11429   cat conftest.$ac_ext >&5
11430   rm -rf conftest*
11431   eval "ac_cv_lib_$ac_lib_var=no"
11432 fi
11433 rm -f conftest*
11434 LIBS="$ac_save_LIBS"
11435
11436 fi
11437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11438   echo "$ac_t""yes" 1>&6
11439   JPEG_LINK=" -ljpeg"
11440 else
11441   echo "$ac_t""no" 1>&6
11442 fi
11443
11444             fi
11445
11446             if test "x$JPEG_LINK" = "x" ; then
11447                 if test "$wxUSE_LIBJPEG" = "sys" ; then
11448                     { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
11449                 else
11450                     echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
11451                     wxUSE_LIBJPEG=builtin
11452                 fi
11453             else
11454                                 wxUSE_LIBJPEG=sys
11455             fi
11456         fi
11457     fi
11458
11459     if test "$wxUSE_LIBJPEG" = "builtin" ; then
11460         JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11461     fi
11462 fi
11463
11464
11465 TIFF_INCLUDE=
11466 TIFF_LINK=
11467 if test "$wxUSE_LIBTIFF" != "no" ; then
11468     cat >> confdefs.h <<\EOF
11469 #define wxUSE_LIBTIFF 1
11470 EOF
11471
11472
11473     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
11474         ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11475 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
11476 echo "configure:11477: checking for tiffio.h" >&5
11477 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11478   echo $ac_n "(cached) $ac_c" 1>&6
11479 else
11480   cat > conftest.$ac_ext <<EOF
11481 #line 11482 "configure"
11482 #include "confdefs.h"
11483 #include <tiffio.h>
11484 EOF
11485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11486 { (eval echo configure:11487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11488 if test -z "$ac_err"; then
11489   rm -rf conftest*
11490   eval "ac_cv_header_$ac_safe=yes"
11491 else
11492   echo "$ac_err" >&5
11493   echo "configure: failed program was:" >&5
11494   cat conftest.$ac_ext >&5
11495   rm -rf conftest*
11496   eval "ac_cv_header_$ac_safe=no"
11497 fi
11498 rm -f conftest*
11499 fi
11500 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11501   echo "$ac_t""yes" 1>&6
11502   echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
11503 echo "configure:11504: checking for TIFFError in -ltiff" >&5
11504 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
11505 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11506   echo $ac_n "(cached) $ac_c" 1>&6
11507 else
11508   ac_save_LIBS="$LIBS"
11509 LIBS="-ltiff -lm $LIBS"
11510 cat > conftest.$ac_ext <<EOF
11511 #line 11512 "configure"
11512 #include "confdefs.h"
11513 /* Override any gcc2 internal prototype to avoid an error.  */
11514 /* We use char because int might match the return type of a gcc2
11515     builtin and then its argument prototype would still apply.  */
11516 char TIFFError();
11517
11518 int main() {
11519 TIFFError()
11520 ; return 0; }
11521 EOF
11522 if { (eval echo configure:11523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11523   rm -rf conftest*
11524   eval "ac_cv_lib_$ac_lib_var=yes"
11525 else
11526   echo "configure: failed program was:" >&5
11527   cat conftest.$ac_ext >&5
11528   rm -rf conftest*
11529   eval "ac_cv_lib_$ac_lib_var=no"
11530 fi
11531 rm -f conftest*
11532 LIBS="$ac_save_LIBS"
11533
11534 fi
11535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11536   echo "$ac_t""yes" 1>&6
11537   TIFF_LINK=" -ltiff"
11538 else
11539   echo "$ac_t""no" 1>&6
11540 fi
11541
11542                        
11543 else
11544   echo "$ac_t""no" 1>&6
11545 fi
11546
11547
11548         if test "x$TIFF_LINK" = "x" ; then
11549             if test "$wxUSE_LIBTIFF" = "sys" ; then
11550                 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
11551             else
11552                 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
11553                 wxUSE_LIBTIFF=builtin
11554             fi
11555         else
11556                         wxUSE_LIBTIFF=sys
11557         fi
11558     fi
11559
11560     if test "$wxUSE_LIBTIFF" = "builtin" ; then
11561         TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11562     fi
11563 fi
11564
11565
11566 AFMINSTALL=
11567
11568 TOOLKIT=
11569 TOOLKIT_INCLUDE=
11570 WIDGET_SET=
11571
11572 if test "$USE_WIN32" = 1 ; then
11573     for ac_hdr in w32api.h
11574 do
11575 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11576 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11577 echo "configure:11578: checking for $ac_hdr" >&5
11578 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11579   echo $ac_n "(cached) $ac_c" 1>&6
11580 else
11581   cat > conftest.$ac_ext <<EOF
11582 #line 11583 "configure"
11583 #include "confdefs.h"
11584 #include <$ac_hdr>
11585 EOF
11586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11587 { (eval echo configure:11588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11589 if test -z "$ac_err"; then
11590   rm -rf conftest*
11591   eval "ac_cv_header_$ac_safe=yes"
11592 else
11593   echo "$ac_err" >&5
11594   echo "configure: failed program was:" >&5
11595   cat conftest.$ac_ext >&5
11596   rm -rf conftest*
11597   eval "ac_cv_header_$ac_safe=no"
11598 fi
11599 rm -f conftest*
11600 fi
11601 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11602   echo "$ac_t""yes" 1>&6
11603     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11604   cat >> confdefs.h <<EOF
11605 #define $ac_tr_hdr 1
11606 EOF
11607  
11608 else
11609   echo "$ac_t""no" 1>&6
11610 fi
11611 done
11612
11613     ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11614 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
11615 echo "configure:11616: checking for windows.h" >&5
11616 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11617   echo $ac_n "(cached) $ac_c" 1>&6
11618 else
11619   cat > conftest.$ac_ext <<EOF
11620 #line 11621 "configure"
11621 #include "confdefs.h"
11622 #include <windows.h>
11623 EOF
11624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11625 { (eval echo configure:11626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11627 if test -z "$ac_err"; then
11628   rm -rf conftest*
11629   eval "ac_cv_header_$ac_safe=yes"
11630 else
11631   echo "$ac_err" >&5
11632   echo "configure: failed program was:" >&5
11633   cat conftest.$ac_ext >&5
11634   rm -rf conftest*
11635   eval "ac_cv_header_$ac_safe=no"
11636 fi
11637 rm -f conftest*
11638 fi
11639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11640   echo "$ac_t""yes" 1>&6
11641   :
11642 else
11643   echo "$ac_t""no" 1>&6
11644
11645         { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
11646     
11647 fi
11648
11649
11650         echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
11651 echo "configure:11652: checking if w32api has good enough MSIE support" >&5
11652 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
11653   echo $ac_n "(cached) $ac_c" 1>&6
11654 else
11655   
11656       cat > conftest.$ac_ext <<EOF
11657 #line 11658 "configure"
11658 #include "confdefs.h"
11659 #include <w32api.h>
11660 int main() {
11661
11662                        #define wxCHECK_W32API_VERSION( major, minor ) \
11663                        ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
11664                        && ( ( __W32API_MAJOR_VERSION > (major) ) \
11665                        || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
11666
11667                        #if !wxCHECK_W32API_VERSION(1,1)
11668                        #error You need w32api 1.1 or newer
11669                        #endif
11670                      
11671 ; return 0; }
11672 EOF
11673 if { (eval echo configure:11674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11674   rm -rf conftest*
11675   
11676                         wx_cv_w32api_win32_ie=yes
11677                      
11678 else
11679   echo "configure: failed program was:" >&5
11680   cat conftest.$ac_ext >&5
11681   rm -rf conftest*
11682   
11683                         wx_cv_w32api_win32_ie=no
11684                      
11685 fi
11686 rm -f conftest*
11687     
11688 fi
11689
11690 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
11691     if test "$wx_cv_w32api_win32_ie" = "yes" ; then
11692         CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
11693     fi
11694
11695             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
11696
11697     case "${host}" in
11698         *-*-cygwin* )
11699                         LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
11700             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
11701     esac
11702
11703         if test "$wxUSE_ODBC" = "yes" ; then
11704         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
11705     fi
11706
11707     RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
11708     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
11709 fi
11710
11711 if test "$wxUSE_GUI" = "yes"; then
11712     USE_GUI=1
11713
11714     GUI_TK_LIBRARY=
11715
11716     WXGTK12=
11717     WXGTK127=
11718     WXGTK20=
11719
11720     if test "$wxUSE_MSW" = 1 ; then
11721         TOOLKIT=MSW
11722         GUIDIST=MSW_DIST
11723
11724                                 case "${host}" in
11725             *-*-mingw32* )
11726                 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
11727         esac
11728     fi
11729
11730     if test "$wxUSE_GTK" = 1; then
11731         echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
11732 echo "configure:11733: checking for GTK+ version" >&5
11733
11734         gtk_version_cached=1
11735         if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
11736   echo $ac_n "(cached) $ac_c" 1>&6
11737 else
11738   
11739                                                 gtk_version_cached=0
11740                 echo "$ac_t""" 1>&6
11741
11742                                                 GTK_MODULES=
11743                 if test "$wxUSE_THREADS" = "yes"; then
11744                     GTK_MODULES=gthread
11745                 fi
11746
11747                 wx_cv_lib_gtk=
11748                 if test "x$wxUSE_GTK2" = "xyes"; then
11749                     # Check whether --enable-gtktest or --disable-gtktest was given.
11750 if test "${enable_gtktest+set}" = set; then
11751   enableval="$enable_gtktest"
11752   :
11753 else
11754   enable_gtktest=yes
11755 fi
11756
11757
11758   pkg_config_args=gtk+-2.0
11759   for module in . $GTK_MODULES
11760   do
11761       case "$module" in
11762          gthread) 
11763              pkg_config_args="$pkg_config_args gthread-2.0"
11764          ;;
11765       esac
11766   done
11767
11768   no_gtk=""
11769
11770   # Extract the first word of "pkg-config", so it can be a program name with args.
11771 set dummy pkg-config; ac_word=$2
11772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11773 echo "configure:11774: checking for $ac_word" >&5
11774 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
11775   echo $ac_n "(cached) $ac_c" 1>&6
11776 else
11777   case "$PKG_CONFIG" in
11778   /*)
11779   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11780   ;;
11781   ?:/*)                  
11782   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
11783   ;;
11784   *)
11785   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
11786   ac_dummy="$PATH"
11787   for ac_dir in $ac_dummy; do 
11788     test -z "$ac_dir" && ac_dir=.
11789     if test -f $ac_dir/$ac_word; then
11790       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
11791       break
11792     fi
11793   done
11794   IFS="$ac_save_ifs"
11795   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11796   ;;
11797 esac
11798 fi
11799 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11800 if test -n "$PKG_CONFIG"; then
11801   echo "$ac_t""$PKG_CONFIG" 1>&6
11802 else
11803   echo "$ac_t""no" 1>&6
11804 fi
11805
11806
11807   if test x$PKG_CONFIG != xno ; then
11808     if pkg-config --atleast-pkgconfig-version 0.7 ; then
11809       :
11810     else
11811       echo *** pkg-config too old; version 0.7 or better required.
11812       no_gtk=yes
11813       PKG_CONFIG=no
11814     fi
11815   else
11816     no_gtk=yes
11817   fi
11818
11819   min_gtk_version=2.0.0
11820   echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
11821 echo "configure:11822: checking for GTK+ - version >= $min_gtk_version" >&5
11822
11823   if test x$PKG_CONFIG != xno ; then
11824     ## don't try to run the test against uninstalled libtool libs
11825     if $PKG_CONFIG --uninstalled $pkg_config_args; then
11826           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
11827           enable_gtktest=no
11828     fi
11829
11830     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
11831           :
11832     else
11833           no_gtk=yes
11834     fi
11835   fi
11836
11837   if test x"$no_gtk" = x ; then
11838     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
11839     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
11840     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11841            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11842     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11843            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11844     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11845            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11846     if test "x$enable_gtktest" = "xyes" ; then
11847       ac_save_CFLAGS="$CFLAGS"
11848       ac_save_LIBS="$LIBS"
11849       CFLAGS="$CFLAGS $GTK_CFLAGS"
11850       LIBS="$GTK_LIBS $LIBS"
11851       rm -f conf.gtktest
11852       if test "$cross_compiling" = yes; then
11853   echo $ac_n "cross compiling; assumed OK... $ac_c"
11854 else
11855   cat > conftest.$ac_ext <<EOF
11856 #line 11857 "configure"
11857 #include "confdefs.h"
11858
11859 #include <gtk/gtk.h>
11860 #include <stdio.h>
11861 #include <stdlib.h>
11862
11863 int 
11864 main ()
11865 {
11866   int major, minor, micro;
11867   char *tmp_version;
11868
11869   system ("touch conf.gtktest");
11870
11871   /* HP/UX 9 (%@#!) writes to sscanf strings */
11872   tmp_version = g_strdup("$min_gtk_version");
11873   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11874      printf("%s, bad version string\n", "$min_gtk_version");
11875      exit(1);
11876    }
11877
11878   if ((gtk_major_version != $gtk_config_major_version) ||
11879       (gtk_minor_version != $gtk_config_minor_version) ||
11880       (gtk_micro_version != $gtk_config_micro_version))
11881     {
11882       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
11883              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11884              gtk_major_version, gtk_minor_version, gtk_micro_version);
11885       printf ("*** was found! If pkg-config was correct, then it is best\n");
11886       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11887       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11888       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11889       printf("*** required on your system.\n");
11890       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
11891       printf("*** to point to the correct configuration files\n");
11892     } 
11893   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11894            (gtk_minor_version != GTK_MINOR_VERSION) ||
11895            (gtk_micro_version != GTK_MICRO_VERSION))
11896     {
11897       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11898              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11899       printf("*** library (version %d.%d.%d)\n",
11900              gtk_major_version, gtk_minor_version, gtk_micro_version);
11901     }
11902   else
11903     {
11904       if ((gtk_major_version > major) ||
11905         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11906         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11907       {
11908         return 0;
11909        }
11910      else
11911       {
11912         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11913                gtk_major_version, gtk_minor_version, gtk_micro_version);
11914         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11915                major, minor, micro);
11916         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11917         printf("***\n");
11918         printf("*** If you have already installed a sufficiently new version, this error\n");
11919         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
11920         printf("*** being found. The easiest way to fix this is to remove the old version\n");
11921         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
11922         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
11923         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11924         printf("*** so that the correct libraries are found at run-time))\n");
11925       }
11926     }
11927   return 1;
11928 }
11929
11930 EOF
11931 if { (eval echo configure:11932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11932 then
11933   :
11934 else
11935   echo "configure: failed program was:" >&5
11936   cat conftest.$ac_ext >&5
11937   rm -fr conftest*
11938   no_gtk=yes
11939 fi
11940 rm -fr conftest*
11941 fi
11942
11943        CFLAGS="$ac_save_CFLAGS"
11944        LIBS="$ac_save_LIBS"
11945      fi
11946   fi
11947   if test "x$no_gtk" = x ; then
11948      echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
11949      wx_cv_lib_gtk=2.0     
11950   else
11951      echo "$ac_t""no" 1>&6
11952      if test "$PKG_CONFIG" = "no" ; then
11953        echo "*** A new enough version of pkg-config was not found."
11954        echo "*** See http://pkgconfig.sourceforge.net"
11955      else
11956        if test -f conf.gtktest ; then
11957         :
11958        else
11959           echo "*** Could not run GTK+ test program, checking why..."
11960           CFLAGS="$CFLAGS $GTK_CFLAGS"
11961           LIBS="$LIBS $GTK_LIBS"
11962           cat > conftest.$ac_ext <<EOF
11963 #line 11964 "configure"
11964 #include "confdefs.h"
11965
11966 #include <gtk/gtk.h>
11967 #include <stdio.h>
11968
11969 int main() {
11970  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
11971 ; return 0; }
11972 EOF
11973 if { (eval echo configure:11974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11974   rm -rf conftest*
11975    echo "*** The test program compiled, but did not run. This usually means"
11976           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
11977           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
11978           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11979           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
11980           echo "*** is required on your system"
11981           echo "***"
11982           echo "*** If you have an old version installed, it is best to remove it, although"
11983           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 
11984 else
11985   echo "configure: failed program was:" >&5
11986   cat conftest.$ac_ext >&5
11987   rm -rf conftest*
11988    echo "*** The test program failed to compile or link. See the file config.log for the"
11989           echo "*** exact error that occured. This usually means GTK+ was incorrectly installed"
11990           echo "*** or that you have moved GTK+ since it was installed. In the latter case, you"
11991           echo "*** may want to edit the pkg-config script: $PKG_CONFIG" 
11992 fi
11993 rm -f conftest*
11994           CFLAGS="$ac_save_CFLAGS"
11995           LIBS="$ac_save_LIBS"
11996        fi
11997      fi
11998      GTK_CFLAGS=""
11999      GTK_LIBS=""
12000      :
12001   fi
12002   
12003   
12004   rm -f conf.gtktest
12005
12006                 fi
12007
12008                 if test -z "$wx_cv_lib_gtk"; then
12009                     # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12010 if test "${with_gtk_prefix+set}" = set; then
12011   withval="$with_gtk_prefix"
12012   gtk_config_prefix="$withval"
12013 else
12014   gtk_config_prefix=""
12015 fi
12016
12017 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12018 if test "${with_gtk_exec_prefix+set}" = set; then
12019   withval="$with_gtk_exec_prefix"
12020   gtk_config_exec_prefix="$withval"
12021 else
12022   gtk_config_exec_prefix=""
12023 fi
12024
12025 # Check whether --enable-gtktest or --disable-gtktest was given.
12026 if test "${enable_gtktest+set}" = set; then
12027   enableval="$enable_gtktest"
12028   :
12029 else
12030   enable_gtktest=yes
12031 fi
12032
12033
12034   for module in . $GTK_MODULES
12035   do
12036       case "$module" in
12037          gthread) 
12038              gtk_config_args="$gtk_config_args gthread"
12039          ;;
12040       esac
12041   done
12042
12043   if test x$gtk_config_exec_prefix != x ; then
12044      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12045      if test x${GTK_CONFIG+set} != xset ; then
12046         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12047      fi
12048   fi
12049   if test x$gtk_config_prefix != x ; then
12050      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12051      if test x${GTK_CONFIG+set} != xset ; then
12052         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12053      fi
12054   fi
12055
12056   # Extract the first word of "gtk-config", so it can be a program name with args.
12057 set dummy gtk-config; ac_word=$2
12058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12059 echo "configure:12060: checking for $ac_word" >&5
12060 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12061   echo $ac_n "(cached) $ac_c" 1>&6
12062 else
12063   case "$GTK_CONFIG" in
12064   /*)
12065   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12066   ;;
12067   ?:/*)                  
12068   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12069   ;;
12070   *)
12071   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
12072   ac_dummy="$PATH"
12073   for ac_dir in $ac_dummy; do 
12074     test -z "$ac_dir" && ac_dir=.
12075     if test -f $ac_dir/$ac_word; then
12076       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12077       break
12078     fi
12079   done
12080   IFS="$ac_save_ifs"
12081   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12082   ;;
12083 esac
12084 fi
12085 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12086 if test -n "$GTK_CONFIG"; then
12087   echo "$ac_t""$GTK_CONFIG" 1>&6
12088 else
12089   echo "$ac_t""no" 1>&6
12090 fi
12091
12092   min_gtk_version=1.2.7
12093   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12094 echo "configure:12095: checking for GTK - version >= $min_gtk_version" >&5
12095   no_gtk=""
12096   if test "$GTK_CONFIG" = "no" ; then
12097     no_gtk=yes
12098   else
12099     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12100     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12101     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12102            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12103     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12104            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12105     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12106            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12107     if test "x$enable_gtktest" = "xyes" ; then
12108       ac_save_CFLAGS="$CFLAGS"
12109       ac_save_LIBS="$LIBS"
12110       CFLAGS="$CFLAGS $GTK_CFLAGS"
12111       LIBS="$GTK_LIBS $LIBS"
12112       rm -f conf.gtktest
12113       if test "$cross_compiling" = yes; then
12114   echo $ac_n "cross compiling; assumed OK... $ac_c"
12115 else
12116   cat > conftest.$ac_ext <<EOF
12117 #line 12118 "configure"
12118 #include "confdefs.h"
12119
12120 #include <gtk/gtk.h>
12121 #include <stdio.h>
12122 #include <stdlib.h>
12123
12124 int 
12125 main ()
12126 {
12127   int major, minor, micro;
12128   char *tmp_version;
12129
12130   system ("touch conf.gtktest");
12131
12132   /* HP/UX 9 (%@#!) writes to sscanf strings */
12133   tmp_version = g_strdup("$min_gtk_version");
12134   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12135      printf("%s, bad version string\n", "$min_gtk_version");
12136      exit(1);
12137    }
12138
12139   if ((gtk_major_version != $gtk_config_major_version) ||
12140       (gtk_minor_version != $gtk_config_minor_version) ||
12141       (gtk_micro_version != $gtk_config_micro_version))
12142     {
12143       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
12144              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12145              gtk_major_version, gtk_minor_version, gtk_micro_version);
12146       printf ("*** was found! If gtk-config was correct, then it is best\n");
12147       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12148       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12149       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12150       printf("*** required on your system.\n");
12151       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12152       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12153       printf("*** before re-running configure\n");
12154     } 
12155 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12156   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12157            (gtk_minor_version != GTK_MINOR_VERSION) ||
12158            (gtk_micro_version != GTK_MICRO_VERSION))
12159     {
12160       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12161              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12162       printf("*** library (version %d.%d.%d)\n",
12163              gtk_major_version, gtk_minor_version, gtk_micro_version);
12164     }
12165 #endif /* defined (GTK_MAJOR_VERSION) ... */
12166   else
12167     {
12168       if ((gtk_major_version > major) ||
12169         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12170         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12171       {
12172         return 0;
12173        }
12174      else
12175       {
12176         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12177                gtk_major_version, gtk_minor_version, gtk_micro_version);
12178         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12179                major, minor, micro);
12180         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12181         printf("***\n");
12182         printf("*** If you have already installed a sufficiently new version, this error\n");
12183         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12184         printf("*** being found. The easiest way to fix this is to remove the old version\n");
12185         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12186         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12187         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12188         printf("*** so that the correct libraries are found at run-time))\n");
12189       }
12190     }
12191   return 1;
12192 }
12193
12194 EOF
12195 if { (eval echo configure:12196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12196 then
12197   :
12198 else
12199   echo "configure: failed program was:" >&5
12200   cat conftest.$ac_ext >&5
12201   rm -fr conftest*
12202   no_gtk=yes
12203 fi
12204 rm -fr conftest*
12205 fi
12206
12207        CFLAGS="$ac_save_CFLAGS"
12208        LIBS="$ac_save_LIBS"
12209      fi
12210   fi
12211   if test "x$no_gtk" = x ; then
12212      echo "$ac_t""yes" 1>&6
12213      wx_cv_lib_gtk=1.2.7     
12214   else
12215      echo "$ac_t""no" 1>&6
12216      if test "$GTK_CONFIG" = "no" ; then
12217        echo "*** The gtk-config script installed by GTK could not be found"
12218        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12219        echo "*** your path, or set the GTK_CONFIG environment variable to the"
12220        echo "*** full path to gtk-config."
12221      else
12222        if test -f conf.gtktest ; then
12223         :
12224        else
12225           echo "*** Could not run GTK test program, checking why..."
12226           CFLAGS="$CFLAGS $GTK_CFLAGS"
12227           LIBS="$LIBS $GTK_LIBS"
12228           cat > conftest.$ac_ext <<EOF
12229 #line 12230 "configure"
12230 #include "confdefs.h"
12231
12232 #include <gtk/gtk.h>
12233 #include <stdio.h>
12234
12235 int main() {
12236  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
12237 ; return 0; }
12238 EOF
12239 if { (eval echo configure:12240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12240   rm -rf conftest*
12241    echo "*** The test program compiled, but did not run. This usually means"
12242           echo "*** that the run-time linker is not finding GTK or finding the wrong"
12243           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12244           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12245           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12246           echo "*** is required on your system"
12247           echo "***"
12248           echo "*** If you have an old version installed, it is best to remove it, although"
12249           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12250           echo "***"
12251           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12252           echo "*** came with the system with the command"
12253           echo "***"
12254           echo "***    rpm --erase --nodeps gtk gtk-devel" 
12255 else
12256   echo "configure: failed program was:" >&5
12257   cat conftest.$ac_ext >&5
12258   rm -rf conftest*
12259    echo "*** The test program failed to compile or link. See the file config.log for the"
12260           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12261           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12262           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
12263 fi
12264 rm -f conftest*
12265           CFLAGS="$ac_save_CFLAGS"
12266           LIBS="$ac_save_LIBS"
12267        fi
12268      fi
12269      GTK_CFLAGS=""
12270      GTK_LIBS=""
12271      :
12272   fi
12273   
12274   
12275   rm -f conf.gtktest
12276
12277                 fi
12278
12279                 if test -z "$wx_cv_lib_gtk"; then
12280                     # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12281 if test "${with_gtk_prefix+set}" = set; then
12282   withval="$with_gtk_prefix"
12283   gtk_config_prefix="$withval"
12284 else
12285   gtk_config_prefix=""
12286 fi
12287
12288 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12289 if test "${with_gtk_exec_prefix+set}" = set; then
12290   withval="$with_gtk_exec_prefix"
12291   gtk_config_exec_prefix="$withval"
12292 else
12293   gtk_config_exec_prefix=""
12294 fi
12295
12296 # Check whether --enable-gtktest or --disable-gtktest was given.
12297 if test "${enable_gtktest+set}" = set; then
12298   enableval="$enable_gtktest"
12299   :
12300 else
12301   enable_gtktest=yes
12302 fi
12303
12304
12305   for module in . $GTK_MODULES
12306   do
12307       case "$module" in
12308          gthread) 
12309              gtk_config_args="$gtk_config_args gthread"
12310          ;;
12311       esac
12312   done
12313
12314   if test x$gtk_config_exec_prefix != x ; then
12315      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12316      if test x${GTK_CONFIG+set} != xset ; then
12317         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12318      fi
12319   fi
12320   if test x$gtk_config_prefix != x ; then
12321      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12322      if test x${GTK_CONFIG+set} != xset ; then
12323         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12324      fi
12325   fi
12326
12327   # Extract the first word of "gtk-config", so it can be a program name with args.
12328 set dummy gtk-config; ac_word=$2
12329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12330 echo "configure:12331: checking for $ac_word" >&5
12331 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12332   echo $ac_n "(cached) $ac_c" 1>&6
12333 else
12334   case "$GTK_CONFIG" in
12335   /*)
12336   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12337   ;;
12338   ?:/*)                  
12339   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12340   ;;
12341   *)
12342   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
12343   ac_dummy="$PATH"
12344   for ac_dir in $ac_dummy; do 
12345     test -z "$ac_dir" && ac_dir=.
12346     if test -f $ac_dir/$ac_word; then
12347       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12348       break
12349     fi
12350   done
12351   IFS="$ac_save_ifs"
12352   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12353   ;;
12354 esac
12355 fi
12356 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12357 if test -n "$GTK_CONFIG"; then
12358   echo "$ac_t""$GTK_CONFIG" 1>&6
12359 else
12360   echo "$ac_t""no" 1>&6
12361 fi
12362
12363   min_gtk_version=1.2.3
12364   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12365 echo "configure:12366: checking for GTK - version >= $min_gtk_version" >&5
12366   no_gtk=""
12367   if test "$GTK_CONFIG" = "no" ; then
12368     no_gtk=yes
12369   else
12370     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12371     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12372     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12373            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12374     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12375            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12376     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12377            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12378     if test "x$enable_gtktest" = "xyes" ; then
12379       ac_save_CFLAGS="$CFLAGS"
12380       ac_save_LIBS="$LIBS"
12381       CFLAGS="$CFLAGS $GTK_CFLAGS"
12382       LIBS="$GTK_LIBS $LIBS"
12383       rm -f conf.gtktest
12384       if test "$cross_compiling" = yes; then
12385   echo $ac_n "cross compiling; assumed OK... $ac_c"
12386 else
12387   cat > conftest.$ac_ext <<EOF
12388 #line 12389 "configure"
12389 #include "confdefs.h"
12390
12391 #include <gtk/gtk.h>
12392 #include <stdio.h>
12393 #include <stdlib.h>
12394
12395 int 
12396 main ()
12397 {
12398   int major, minor, micro;
12399   char *tmp_version;
12400
12401   system ("touch conf.gtktest");
12402
12403   /* HP/UX 9 (%@#!) writes to sscanf strings */
12404   tmp_version = g_strdup("$min_gtk_version");
12405   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12406      printf("%s, bad version string\n", "$min_gtk_version");
12407      exit(1);
12408    }
12409
12410   if ((gtk_major_version != $gtk_config_major_version) ||
12411       (gtk_minor_version != $gtk_config_minor_version) ||
12412       (gtk_micro_version != $gtk_config_micro_version))
12413     {
12414       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
12415              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12416              gtk_major_version, gtk_minor_version, gtk_micro_version);
12417       printf ("*** was found! If gtk-config was correct, then it is best\n");
12418       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12419       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12420       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12421       printf("*** required on your system.\n");
12422       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12423       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12424       printf("*** before re-running configure\n");
12425     } 
12426 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12427   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12428            (gtk_minor_version != GTK_MINOR_VERSION) ||
12429            (gtk_micro_version != GTK_MICRO_VERSION))
12430     {
12431       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12432              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12433       printf("*** library (version %d.%d.%d)\n",
12434              gtk_major_version, gtk_minor_version, gtk_micro_version);
12435     }
12436 #endif /* defined (GTK_MAJOR_VERSION) ... */
12437   else
12438     {
12439       if ((gtk_major_version > major) ||
12440         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12441         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12442       {
12443         return 0;
12444        }
12445      else
12446       {
12447         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12448                gtk_major_version, gtk_minor_version, gtk_micro_version);
12449         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12450                major, minor, micro);
12451         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12452         printf("***\n");
12453         printf("*** If you have already installed a sufficiently new version, this error\n");
12454         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12455         printf("*** being found. The easiest way to fix this is to remove the old version\n");
12456         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12457         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12458         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12459         printf("*** so that the correct libraries are found at run-time))\n");
12460       }
12461     }
12462   return 1;
12463 }
12464
12465 EOF
12466 if { (eval echo configure:12467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12467 then
12468   :
12469 else
12470   echo "configure: failed program was:" >&5
12471   cat conftest.$ac_ext >&5
12472   rm -fr conftest*
12473   no_gtk=yes
12474 fi
12475 rm -fr conftest*
12476 fi
12477
12478        CFLAGS="$ac_save_CFLAGS"
12479        LIBS="$ac_save_LIBS"
12480      fi
12481   fi
12482   if test "x$no_gtk" = x ; then
12483      echo "$ac_t""yes" 1>&6
12484      wx_cv_lib_gtk=1.2.3     
12485   else
12486      echo "$ac_t""no" 1>&6
12487      if test "$GTK_CONFIG" = "no" ; then
12488        echo "*** The gtk-config script installed by GTK could not be found"
12489        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12490        echo "*** your path, or set the GTK_CONFIG environment variable to the"
12491        echo "*** full path to gtk-config."
12492      else
12493        if test -f conf.gtktest ; then
12494         :
12495        else
12496           echo "*** Could not run GTK test program, checking why..."
12497           CFLAGS="$CFLAGS $GTK_CFLAGS"
12498           LIBS="$LIBS $GTK_LIBS"
12499           cat > conftest.$ac_ext <<EOF
12500 #line 12501 "configure"
12501 #include "confdefs.h"
12502
12503 #include <gtk/gtk.h>
12504 #include <stdio.h>
12505
12506 int main() {
12507  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
12508 ; return 0; }
12509 EOF
12510 if { (eval echo configure:12511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12511   rm -rf conftest*
12512    echo "*** The test program compiled, but did not run. This usually means"
12513           echo "*** that the run-time linker is not finding GTK or finding the wrong"
12514           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12515           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12516           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12517           echo "*** is required on your system"
12518           echo "***"
12519           echo "*** If you have an old version installed, it is best to remove it, although"
12520           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12521           echo "***"
12522           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12523           echo "*** came with the system with the command"
12524           echo "***"
12525           echo "***    rpm --erase --nodeps gtk gtk-devel" 
12526 else
12527   echo "configure: failed program was:" >&5
12528   cat conftest.$ac_ext >&5
12529   rm -rf conftest*
12530    echo "*** The test program failed to compile or link. See the file config.log for the"
12531           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12532           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12533           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
12534 fi
12535 rm -f conftest*
12536           CFLAGS="$ac_save_CFLAGS"
12537           LIBS="$ac_save_LIBS"
12538        fi
12539      fi
12540      GTK_CFLAGS=""
12541      GTK_LIBS=""
12542      :
12543   fi
12544   
12545   
12546   rm -f conf.gtktest
12547
12548                 fi
12549
12550                 if test -z "$wx_cv_lib_gtk"; then
12551                                         wx_cv_lib_gtk=none
12552                 else
12553                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
12554                     wx_cv_libs_gtk=$GTK_LIBS
12555                 fi
12556             
12557         
12558 fi
12559
12560
12561                         if test "$gtk_version_cached" = 1; then
12562             echo "$ac_t""$wx_cv_lib_gtk" 1>&6
12563         fi
12564
12565         case "$wx_cv_lib_gtk" in
12566             2.0)    WXGTK20=1
12567                     ;;
12568             1.2.7)  WXGTK127=1
12569                     WXGTK12=1
12570                     ;;
12571             1.2.3)  WXGTK12=1
12572                     ;;
12573             *)      { echo "configure: error: 
12574 Please check that gtk-config is in path, the directory
12575 where GTK+ libraries are installed (returned by
12576 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
12577 equivalent variable and GTK+ is version 1.2.3 or above.
12578                             " 1>&2; exit 1; }
12579                     ;;
12580         esac
12581
12582         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
12583         GUI_TK_LIBRARY="$wx_cv_libs_gtk"
12584
12585         AFMINSTALL=afminstall
12586         TOOLKIT=GTK
12587         GUIDIST=GTK_DIST
12588
12589                 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
12590 echo "configure:12591: checking for gdk_im_open in -lgdk" >&5
12591 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
12592 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12593   echo $ac_n "(cached) $ac_c" 1>&6
12594 else
12595   ac_save_LIBS="$LIBS"
12596 LIBS="-lgdk  $LIBS"
12597 cat > conftest.$ac_ext <<EOF
12598 #line 12599 "configure"
12599 #include "confdefs.h"
12600 /* Override any gcc2 internal prototype to avoid an error.  */
12601 /* We use char because int might match the return type of a gcc2
12602     builtin and then its argument prototype would still apply.  */
12603 char gdk_im_open();
12604
12605 int main() {
12606 gdk_im_open()
12607 ; return 0; }
12608 EOF
12609 if { (eval echo configure:12610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12610   rm -rf conftest*
12611   eval "ac_cv_lib_$ac_lib_var=yes"
12612 else
12613   echo "configure: failed program was:" >&5
12614   cat conftest.$ac_ext >&5
12615   rm -rf conftest*
12616   eval "ac_cv_lib_$ac_lib_var=no"
12617 fi
12618 rm -f conftest*
12619 LIBS="$ac_save_LIBS"
12620
12621 fi
12622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12623   echo "$ac_t""yes" 1>&6
12624   cat >> confdefs.h <<\EOF
12625 #define HAVE_XIM 1
12626 EOF
12627
12628 else
12629   echo "$ac_t""no" 1>&6
12630 fi
12631
12632     fi
12633
12634     if test "$wxUSE_MGL" = 1; then
12635         echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
12636 echo "configure:12637: checking for SciTech MGL library" >&5
12637         if test "x$MGL_ROOT" = x ; then
12638             echo "$ac_t""not found" 1>&6
12639             { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
12640         else
12641             echo "$ac_t""$MGL_ROOT" 1>&6
12642         fi
12643
12644                         case "${host}" in
12645             *-*-linux* )
12646               mgl_os=linux/gcc/glibc
12647               ;;
12648             *-pc-msdosdjgpp )
12649               mgl_os=dos32/dj2
12650               ;;
12651             *)
12652               { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
12653         esac
12654
12655         mgl_lib_type=""
12656
12657         if test "$wxUSE_DEBUG_FLAG" = yes ; then
12658             if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
12659                     -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
12660                 mgl_lib_type=debug
12661             fi
12662         fi
12663         if test "x$mgl_lib_type" = x ; then
12664             if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
12665                     -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
12666                 mgl_lib_type=release
12667             else
12668                 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
12669             fi
12670         fi
12671
12672         wxUSE_UNIVERSAL="yes"
12673
12674         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
12675         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
12676
12677         AFMINSTALL=afminstall
12678         TOOLKIT=MGL
12679         GUIDIST=MGL_DIST
12680     fi
12681
12682     if test "$wxUSE_MICROWIN" = 1; then
12683         echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
12684 echo "configure:12685: checking for MicroWindows" >&5
12685         if test "x$MICROWINDOWS" = x ; then
12686             echo "$ac_t""not found" 1>&6
12687             { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
12688         else
12689             echo "$ac_t""$MICROWINDOWS" 1>&6
12690         fi
12691
12692         if test -f $MICROWINDOWS/lib/libmwin.a; then
12693             echo "$ac_t""MicroWindows' libraries found." 1>&6
12694         else
12695             { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
12696         fi
12697
12698         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
12699         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
12700
12701         wxUSE_UNIVERSAL="yes"
12702
12703         AFMINSTALL=afminstall
12704         TOOLKIT=MICROWIN
12705         GUIDIST=MICROWIN_DIST
12706
12707         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
12708     fi
12709
12710     if test "$wxUSE_X11" = 1; then
12711                         # If we find X, set shell vars x_includes and x_libraries to the
12712 # paths, otherwise set no_x=yes.
12713 # Uses ac_ vars as temps to allow command line to override cache and checks.
12714 # --without-x overrides everything else, but does not touch the cache.
12715 echo $ac_n "checking for X""... $ac_c" 1>&6
12716 echo "configure:12717: checking for X" >&5
12717
12718 # Check whether --with-x or --without-x was given.
12719 if test "${with_x+set}" = set; then
12720   withval="$with_x"
12721   :
12722 fi
12723
12724 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12725 if test "x$with_x" = xno; then
12726   # The user explicitly disabled X.
12727   have_x=disabled
12728 else
12729   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
12730     # Both variables are already set.
12731     have_x=yes
12732   else
12733 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
12734   echo $ac_n "(cached) $ac_c" 1>&6
12735 else
12736   # One or both of the vars are not set, and there is no cached value.
12737 ac_x_includes=NO ac_x_libraries=NO
12738 rm -fr conftestdir
12739 if mkdir conftestdir; then
12740   cd conftestdir
12741   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
12742   cat > Imakefile <<'EOF'
12743 acfindx:
12744         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
12745 EOF
12746   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
12747     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12748     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
12749     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12750     for ac_extension in a so sl; do
12751       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
12752         test -f $ac_im_libdir/libX11.$ac_extension; then
12753         ac_im_usrlibdir=$ac_im_libdir; break
12754       fi
12755     done
12756     # Screen out bogus values from the imake configuration.  They are
12757     # bogus both because they are the default anyway, and because
12758     # using them would break gcc on systems where it needs fixed includes.
12759     case "$ac_im_incroot" in
12760         /usr/include) ;;
12761         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
12762     esac
12763     case "$ac_im_usrlibdir" in
12764         /usr/lib | /lib) ;;
12765         *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
12766     esac
12767   fi
12768   cd ..
12769   rm -fr conftestdir
12770 fi
12771
12772 if test "$ac_x_includes" = NO; then
12773   # Guess where to find include files, by looking for this one X11 .h file.
12774   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
12775
12776   # First, try using that file with no special directory specified.
12777 cat > conftest.$ac_ext <<EOF
12778 #line 12779 "configure"
12779 #include "confdefs.h"
12780 #include <$x_direct_test_include>
12781 EOF
12782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12783 { (eval echo configure:12784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12785 if test -z "$ac_err"; then
12786   rm -rf conftest*
12787   # We can compile using X headers with no special include directory.
12788 ac_x_includes=
12789 else
12790   echo "$ac_err" >&5
12791   echo "configure: failed program was:" >&5
12792   cat conftest.$ac_ext >&5
12793   rm -rf conftest*
12794   # Look for the header file in a standard set of common directories.
12795 # Check X11 before X11Rn because it is often a symlink to the current release.
12796   for ac_dir in               \
12797     /usr/X11/include          \
12798     /usr/X11R6/include        \
12799     /usr/X11R5/include        \
12800     /usr/X11R4/include        \
12801                               \
12802     /usr/include/X11          \
12803     /usr/include/X11R6        \
12804     /usr/include/X11R5        \
12805     /usr/include/X11R4        \
12806                               \
12807     /usr/local/X11/include    \
12808     /usr/local/X11R6/include  \
12809     /usr/local/X11R5/include  \
12810     /usr/local/X11R4/include  \
12811                               \
12812     /usr/local/include/X11    \
12813     /usr/local/include/X11R6  \
12814     /usr/local/include/X11R5  \
12815     /usr/local/include/X11R4  \
12816                               \
12817     /usr/X386/include         \
12818     /usr/x386/include         \
12819     /usr/XFree86/include/X11  \
12820                               \
12821     /usr/include              \
12822     /usr/local/include        \
12823     /usr/unsupported/include  \
12824     /usr/athena/include       \
12825     /usr/local/x11r5/include  \
12826     /usr/lpp/Xamples/include  \
12827                               \
12828     /usr/openwin/include      \
12829     /usr/openwin/share/include \
12830     ; \
12831   do
12832     if test -r "$ac_dir/$x_direct_test_include"; then
12833       ac_x_includes=$ac_dir
12834       break
12835     fi
12836   done
12837 fi
12838 rm -f conftest*
12839 fi # $ac_x_includes = NO
12840
12841 if test "$ac_x_libraries" = NO; then
12842   # Check for the libraries.
12843
12844   test -z "$x_direct_test_library" && x_direct_test_library=Xt
12845   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
12846
12847   # See if we find them without any special options.
12848   # Don't add to $LIBS permanently.
12849   ac_save_LIBS="$LIBS"
12850   LIBS="-l$x_direct_test_library $LIBS"
12851 cat > conftest.$ac_ext <<EOF
12852 #line 12853 "configure"
12853 #include "confdefs.h"
12854
12855 int main() {
12856 ${x_direct_test_function}()
12857 ; return 0; }
12858 EOF
12859 if { (eval echo configure:12860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12860   rm -rf conftest*
12861   LIBS="$ac_save_LIBS"
12862 # We can link X programs with no special library path.
12863 ac_x_libraries=
12864 else
12865   echo "configure: failed program was:" >&5
12866   cat conftest.$ac_ext >&5
12867   rm -rf conftest*
12868   LIBS="$ac_save_LIBS"
12869 # First see if replacing the include by lib works.
12870 # Check X11 before X11Rn because it is often a symlink to the current release.
12871 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
12872     /usr/X11/lib          \
12873     /usr/X11R6/lib        \
12874     /usr/X11R5/lib        \
12875     /usr/X11R4/lib        \
12876                           \
12877     /usr/lib/X11          \
12878     /usr/lib/X11R6        \
12879     /usr/lib/X11R5        \
12880     /usr/lib/X11R4        \
12881                           \
12882     /usr/local/X11/lib    \
12883     /usr/local/X11R6/lib  \
12884     /usr/local/X11R5/lib  \
12885     /usr/local/X11R4/lib  \
12886                           \
12887     /usr/local/lib/X11    \
12888     /usr/local/lib/X11R6  \
12889     /usr/local/lib/X11R5  \
12890     /usr/local/lib/X11R4  \
12891                           \
12892     /usr/X386/lib         \
12893     /usr/x386/lib         \
12894     /usr/XFree86/lib/X11  \
12895                           \
12896     /usr/lib              \
12897     /usr/local/lib        \
12898     /usr/unsupported/lib  \
12899     /usr/athena/lib       \
12900     /usr/local/x11r5/lib  \
12901     /usr/lpp/Xamples/lib  \
12902     /lib/usr/lib/X11      \
12903                           \
12904     /usr/openwin/lib      \
12905     /usr/openwin/share/lib \
12906     ; \
12907 do
12908   for ac_extension in a so sl; do
12909     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
12910       ac_x_libraries=$ac_dir
12911       break 2
12912     fi
12913   done
12914 done
12915 fi
12916 rm -f conftest*
12917 fi # $ac_x_libraries = NO
12918
12919 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
12920   # Didn't find X anywhere.  Cache the known absence of X.
12921   ac_cv_have_x="have_x=no"
12922 else
12923   # Record where we found X for the cache.
12924   ac_cv_have_x="have_x=yes \
12925                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
12926 fi
12927 fi
12928   fi
12929   eval "$ac_cv_have_x"
12930 fi # $with_x != no
12931
12932 if test "$have_x" != yes; then
12933   echo "$ac_t""$have_x" 1>&6
12934   no_x=yes
12935 else
12936   # If each of the values was on the command line, it overrides each guess.
12937   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12938   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12939   # Update the cache value to reflect the command line values.
12940   ac_cv_have_x="have_x=yes \
12941                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
12942   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
12943 fi
12944
12945 if test "$no_x" = yes; then
12946   # Not all programs may use this symbol, but it does not hurt to define it.
12947   cat >> confdefs.h <<\EOF
12948 #define X_DISPLAY_MISSING 1
12949 EOF
12950
12951   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12952 else
12953   if test -n "$x_includes"; then
12954     X_CFLAGS="$X_CFLAGS -I$x_includes"
12955   fi
12956
12957   # It would also be nice to do this for all -L options, not just this one.
12958   if test -n "$x_libraries"; then
12959     X_LIBS="$X_LIBS -L$x_libraries"
12960     # For Solaris; some versions of Sun CC require a space after -R and
12961     # others require no space.  Words are not sufficient . . . .
12962     case "`(uname -sr) 2>/dev/null`" in
12963     "SunOS 5"*)
12964       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
12965 echo "configure:12966: checking whether -R must be followed by a space" >&5
12966       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
12967       cat > conftest.$ac_ext <<EOF
12968 #line 12969 "configure"
12969 #include "confdefs.h"
12970
12971 int main() {
12972
12973 ; return 0; }
12974 EOF
12975 if { (eval echo configure:12976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12976   rm -rf conftest*
12977   ac_R_nospace=yes
12978 else
12979   echo "configure: failed program was:" >&5
12980   cat conftest.$ac_ext >&5
12981   rm -rf conftest*
12982   ac_R_nospace=no
12983 fi
12984 rm -f conftest*
12985       if test $ac_R_nospace = yes; then
12986         echo "$ac_t""no" 1>&6
12987         X_LIBS="$X_LIBS -R$x_libraries"
12988       else
12989         LIBS="$ac_xsave_LIBS -R $x_libraries"
12990         cat > conftest.$ac_ext <<EOF
12991 #line 12992 "configure"
12992 #include "confdefs.h"
12993
12994 int main() {
12995
12996 ; return 0; }
12997 EOF
12998 if { (eval echo configure:12999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12999   rm -rf conftest*
13000   ac_R_space=yes
13001 else
13002   echo "configure: failed program was:" >&5
13003   cat conftest.$ac_ext >&5
13004   rm -rf conftest*
13005   ac_R_space=no
13006 fi
13007 rm -f conftest*
13008         if test $ac_R_space = yes; then
13009           echo "$ac_t""yes" 1>&6
13010           X_LIBS="$X_LIBS -R $x_libraries"
13011         else
13012           echo "$ac_t""neither works" 1>&6
13013         fi
13014       fi
13015       LIBS="$ac_xsave_LIBS"
13016     esac
13017   fi
13018
13019   # Check for system-dependent libraries X programs must link with.
13020   # Do this before checking for the system-independent R6 libraries
13021   # (-lICE), since we may need -lsocket or whatever for X linking.
13022
13023   if test "$ISC" = yes; then
13024     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13025   else
13026     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13027     # libraries were built with DECnet support.  And karl@cs.umb.edu says
13028     # the Alpha needs dnet_stub (dnet does not exist).
13029     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13030 echo "configure:13031: checking for dnet_ntoa in -ldnet" >&5
13031 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13032 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13033   echo $ac_n "(cached) $ac_c" 1>&6
13034 else
13035   ac_save_LIBS="$LIBS"
13036 LIBS="-ldnet  $LIBS"
13037 cat > conftest.$ac_ext <<EOF
13038 #line 13039 "configure"
13039 #include "confdefs.h"
13040 /* Override any gcc2 internal prototype to avoid an error.  */
13041 /* We use char because int might match the return type of a gcc2
13042     builtin and then its argument prototype would still apply.  */
13043 char dnet_ntoa();
13044
13045 int main() {
13046 dnet_ntoa()
13047 ; return 0; }
13048 EOF
13049 if { (eval echo configure:13050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13050   rm -rf conftest*
13051   eval "ac_cv_lib_$ac_lib_var=yes"
13052 else
13053   echo "configure: failed program was:" >&5
13054   cat conftest.$ac_ext >&5
13055   rm -rf conftest*
13056   eval "ac_cv_lib_$ac_lib_var=no"
13057 fi
13058 rm -f conftest*
13059 LIBS="$ac_save_LIBS"
13060
13061 fi
13062 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13063   echo "$ac_t""yes" 1>&6
13064   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13065 else
13066   echo "$ac_t""no" 1>&6
13067 fi
13068
13069     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13070       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13071 echo "configure:13072: checking for dnet_ntoa in -ldnet_stub" >&5
13072 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13073 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13074   echo $ac_n "(cached) $ac_c" 1>&6
13075 else
13076   ac_save_LIBS="$LIBS"
13077 LIBS="-ldnet_stub  $LIBS"
13078 cat > conftest.$ac_ext <<EOF
13079 #line 13080 "configure"
13080 #include "confdefs.h"
13081 /* Override any gcc2 internal prototype to avoid an error.  */
13082 /* We use char because int might match the return type of a gcc2
13083     builtin and then its argument prototype would still apply.  */
13084 char dnet_ntoa();
13085
13086 int main() {
13087 dnet_ntoa()
13088 ; return 0; }
13089 EOF
13090 if { (eval echo configure:13091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13091   rm -rf conftest*
13092   eval "ac_cv_lib_$ac_lib_var=yes"
13093 else
13094   echo "configure: failed program was:" >&5
13095   cat conftest.$ac_ext >&5
13096   rm -rf conftest*
13097   eval "ac_cv_lib_$ac_lib_var=no"
13098 fi
13099 rm -f conftest*
13100 LIBS="$ac_save_LIBS"
13101
13102 fi
13103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13104   echo "$ac_t""yes" 1>&6
13105   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13106 else
13107   echo "$ac_t""no" 1>&6
13108 fi
13109
13110     fi
13111
13112     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13113     # to get the SysV transport functions.
13114     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13115     # needs -lnsl.
13116     # The nsl library prevents programs from opening the X display
13117     # on Irix 5.2, according to dickey@clark.net.
13118     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13119 echo "configure:13120: checking for gethostbyname" >&5
13120 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13121   echo $ac_n "(cached) $ac_c" 1>&6
13122 else
13123   cat > conftest.$ac_ext <<EOF
13124 #line 13125 "configure"
13125 #include "confdefs.h"
13126 /* System header to define __stub macros and hopefully few prototypes,
13127     which can conflict with char gethostbyname(); below.  */
13128 #include <assert.h>
13129 /* Override any gcc2 internal prototype to avoid an error.  */
13130 /* We use char because int might match the return type of a gcc2
13131     builtin and then its argument prototype would still apply.  */
13132 char gethostbyname();
13133
13134 int main() {
13135
13136 /* The GNU C library defines this for functions which it implements
13137     to always fail with ENOSYS.  Some functions are actually named
13138     something starting with __ and the normal name is an alias.  */
13139 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13140 choke me
13141 #else
13142 gethostbyname();
13143 #endif
13144
13145 ; return 0; }
13146 EOF
13147 if { (eval echo configure:13148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13148   rm -rf conftest*
13149   eval "ac_cv_func_gethostbyname=yes"
13150 else
13151   echo "configure: failed program was:" >&5
13152   cat conftest.$ac_ext >&5
13153   rm -rf conftest*
13154   eval "ac_cv_func_gethostbyname=no"
13155 fi
13156 rm -f conftest*
13157 fi
13158
13159 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13160   echo "$ac_t""yes" 1>&6
13161   :
13162 else
13163   echo "$ac_t""no" 1>&6
13164 fi
13165
13166     if test $ac_cv_func_gethostbyname = no; then
13167       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13168 echo "configure:13169: checking for gethostbyname in -lnsl" >&5
13169 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13170 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13171   echo $ac_n "(cached) $ac_c" 1>&6
13172 else
13173   ac_save_LIBS="$LIBS"
13174 LIBS="-lnsl  $LIBS"
13175 cat > conftest.$ac_ext <<EOF
13176 #line 13177 "configure"
13177 #include "confdefs.h"
13178 /* Override any gcc2 internal prototype to avoid an error.  */
13179 /* We use char because int might match the return type of a gcc2
13180     builtin and then its argument prototype would still apply.  */
13181 char gethostbyname();
13182
13183 int main() {
13184 gethostbyname()
13185 ; return 0; }
13186 EOF
13187 if { (eval echo configure:13188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13188   rm -rf conftest*
13189   eval "ac_cv_lib_$ac_lib_var=yes"
13190 else
13191   echo "configure: failed program was:" >&5
13192   cat conftest.$ac_ext >&5
13193   rm -rf conftest*
13194   eval "ac_cv_lib_$ac_lib_var=no"
13195 fi
13196 rm -f conftest*
13197 LIBS="$ac_save_LIBS"
13198
13199 fi
13200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13201   echo "$ac_t""yes" 1>&6
13202   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13203 else
13204   echo "$ac_t""no" 1>&6
13205 fi
13206
13207     fi
13208
13209     # lieder@skyler.mavd.honeywell.com says without -lsocket,
13210     # socket/setsockopt and other routines are undefined under SCO ODT
13211     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
13212     # on later versions), says simon@lia.di.epfl.ch: it contains
13213     # gethostby* variants that don't use the nameserver (or something).
13214     # -lsocket must be given before -lnsl if both are needed.
13215     # We assume that if connect needs -lnsl, so does gethostbyname.
13216     echo $ac_n "checking for connect""... $ac_c" 1>&6
13217 echo "configure:13218: checking for connect" >&5
13218 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13219   echo $ac_n "(cached) $ac_c" 1>&6
13220 else
13221   cat > conftest.$ac_ext <<EOF
13222 #line 13223 "configure"
13223 #include "confdefs.h"
13224 /* System header to define __stub macros and hopefully few prototypes,
13225     which can conflict with char connect(); below.  */
13226 #include <assert.h>
13227 /* Override any gcc2 internal prototype to avoid an error.  */
13228 /* We use char because int might match the return type of a gcc2
13229     builtin and then its argument prototype would still apply.  */
13230 char connect();
13231
13232 int main() {
13233
13234 /* The GNU C library defines this for functions which it implements
13235     to always fail with ENOSYS.  Some functions are actually named
13236     something starting with __ and the normal name is an alias.  */
13237 #if defined (__stub_connect) || defined (__stub___connect)
13238 choke me
13239 #else
13240 connect();
13241 #endif
13242
13243 ; return 0; }
13244 EOF
13245 if { (eval echo configure:13246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13246   rm -rf conftest*
13247   eval "ac_cv_func_connect=yes"
13248 else
13249   echo "configure: failed program was:" >&5
13250   cat conftest.$ac_ext >&5
13251   rm -rf conftest*
13252   eval "ac_cv_func_connect=no"
13253 fi
13254 rm -f conftest*
13255 fi
13256
13257 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13258   echo "$ac_t""yes" 1>&6
13259   :
13260 else
13261   echo "$ac_t""no" 1>&6
13262 fi
13263
13264     if test $ac_cv_func_connect = no; then
13265       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
13266 echo "configure:13267: checking for connect in -lsocket" >&5
13267 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13269   echo $ac_n "(cached) $ac_c" 1>&6
13270 else
13271   ac_save_LIBS="$LIBS"
13272 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13273 cat > conftest.$ac_ext <<EOF
13274 #line 13275 "configure"
13275 #include "confdefs.h"
13276 /* Override any gcc2 internal prototype to avoid an error.  */
13277 /* We use char because int might match the return type of a gcc2
13278     builtin and then its argument prototype would still apply.  */
13279 char connect();
13280
13281 int main() {
13282 connect()
13283 ; return 0; }
13284 EOF
13285 if { (eval echo configure:13286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13286   rm -rf conftest*
13287   eval "ac_cv_lib_$ac_lib_var=yes"
13288 else
13289   echo "configure: failed program was:" >&5
13290   cat conftest.$ac_ext >&5
13291   rm -rf conftest*
13292   eval "ac_cv_lib_$ac_lib_var=no"
13293 fi
13294 rm -f conftest*
13295 LIBS="$ac_save_LIBS"
13296
13297 fi
13298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13299   echo "$ac_t""yes" 1>&6
13300   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13301 else
13302   echo "$ac_t""no" 1>&6
13303 fi
13304
13305     fi
13306
13307     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
13308     echo $ac_n "checking for remove""... $ac_c" 1>&6
13309 echo "configure:13310: checking for remove" >&5
13310 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
13311   echo $ac_n "(cached) $ac_c" 1>&6
13312 else
13313   cat > conftest.$ac_ext <<EOF
13314 #line 13315 "configure"
13315 #include "confdefs.h"
13316 /* System header to define __stub macros and hopefully few prototypes,
13317     which can conflict with char remove(); below.  */
13318 #include <assert.h>
13319 /* Override any gcc2 internal prototype to avoid an error.  */
13320 /* We use char because int might match the return type of a gcc2
13321     builtin and then its argument prototype would still apply.  */
13322 char remove();
13323
13324 int main() {
13325
13326 /* The GNU C library defines this for functions which it implements
13327     to always fail with ENOSYS.  Some functions are actually named
13328     something starting with __ and the normal name is an alias.  */
13329 #if defined (__stub_remove) || defined (__stub___remove)
13330 choke me
13331 #else
13332 remove();
13333 #endif
13334
13335 ; return 0; }
13336 EOF
13337 if { (eval echo configure:13338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13338   rm -rf conftest*
13339   eval "ac_cv_func_remove=yes"
13340 else
13341   echo "configure: failed program was:" >&5
13342   cat conftest.$ac_ext >&5
13343   rm -rf conftest*
13344   eval "ac_cv_func_remove=no"
13345 fi
13346 rm -f conftest*
13347 fi
13348
13349 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
13350   echo "$ac_t""yes" 1>&6
13351   :
13352 else
13353   echo "$ac_t""no" 1>&6
13354 fi
13355
13356     if test $ac_cv_func_remove = no; then
13357       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
13358 echo "configure:13359: checking for remove in -lposix" >&5
13359 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
13360 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13361   echo $ac_n "(cached) $ac_c" 1>&6
13362 else
13363   ac_save_LIBS="$LIBS"
13364 LIBS="-lposix  $LIBS"
13365 cat > conftest.$ac_ext <<EOF
13366 #line 13367 "configure"
13367 #include "confdefs.h"
13368 /* Override any gcc2 internal prototype to avoid an error.  */
13369 /* We use char because int might match the return type of a gcc2
13370     builtin and then its argument prototype would still apply.  */
13371 char remove();
13372
13373 int main() {
13374 remove()
13375 ; return 0; }
13376 EOF
13377 if { (eval echo configure:13378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13378   rm -rf conftest*
13379   eval "ac_cv_lib_$ac_lib_var=yes"
13380 else
13381   echo "configure: failed program was:" >&5
13382   cat conftest.$ac_ext >&5
13383   rm -rf conftest*
13384   eval "ac_cv_lib_$ac_lib_var=no"
13385 fi
13386 rm -f conftest*
13387 LIBS="$ac_save_LIBS"
13388
13389 fi
13390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13391   echo "$ac_t""yes" 1>&6
13392   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13393 else
13394   echo "$ac_t""no" 1>&6
13395 fi
13396
13397     fi
13398
13399     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13400     echo $ac_n "checking for shmat""... $ac_c" 1>&6
13401 echo "configure:13402: checking for shmat" >&5
13402 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
13403   echo $ac_n "(cached) $ac_c" 1>&6
13404 else
13405   cat > conftest.$ac_ext <<EOF
13406 #line 13407 "configure"
13407 #include "confdefs.h"
13408 /* System header to define __stub macros and hopefully few prototypes,
13409     which can conflict with char shmat(); below.  */
13410 #include <assert.h>
13411 /* Override any gcc2 internal prototype to avoid an error.  */
13412 /* We use char because int might match the return type of a gcc2
13413     builtin and then its argument prototype would still apply.  */
13414 char shmat();
13415
13416 int main() {
13417
13418 /* The GNU C library defines this for functions which it implements
13419     to always fail with ENOSYS.  Some functions are actually named
13420     something starting with __ and the normal name is an alias.  */
13421 #if defined (__stub_shmat) || defined (__stub___shmat)
13422 choke me
13423 #else
13424 shmat();
13425 #endif
13426
13427 ; return 0; }
13428 EOF
13429 if { (eval echo configure:13430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13430   rm -rf conftest*
13431   eval "ac_cv_func_shmat=yes"
13432 else
13433   echo "configure: failed program was:" >&5
13434   cat conftest.$ac_ext >&5
13435   rm -rf conftest*
13436   eval "ac_cv_func_shmat=no"
13437 fi
13438 rm -f conftest*
13439 fi
13440
13441 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
13442   echo "$ac_t""yes" 1>&6
13443   :
13444 else
13445   echo "$ac_t""no" 1>&6
13446 fi
13447
13448     if test $ac_cv_func_shmat = no; then
13449       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
13450 echo "configure:13451: checking for shmat in -lipc" >&5
13451 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
13452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13453   echo $ac_n "(cached) $ac_c" 1>&6
13454 else
13455   ac_save_LIBS="$LIBS"
13456 LIBS="-lipc  $LIBS"
13457 cat > conftest.$ac_ext <<EOF
13458 #line 13459 "configure"
13459 #include "confdefs.h"
13460 /* Override any gcc2 internal prototype to avoid an error.  */
13461 /* We use char because int might match the return type of a gcc2
13462     builtin and then its argument prototype would still apply.  */
13463 char shmat();
13464
13465 int main() {
13466 shmat()
13467 ; return 0; }
13468 EOF
13469 if { (eval echo configure:13470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13470   rm -rf conftest*
13471   eval "ac_cv_lib_$ac_lib_var=yes"
13472 else
13473   echo "configure: failed program was:" >&5
13474   cat conftest.$ac_ext >&5
13475   rm -rf conftest*
13476   eval "ac_cv_lib_$ac_lib_var=no"
13477 fi
13478 rm -f conftest*
13479 LIBS="$ac_save_LIBS"
13480
13481 fi
13482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13483   echo "$ac_t""yes" 1>&6
13484   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13485 else
13486   echo "$ac_t""no" 1>&6
13487 fi
13488
13489     fi
13490   fi
13491
13492   # Check for libraries that X11R6 Xt/Xaw programs need.
13493   ac_save_LDFLAGS="$LDFLAGS"
13494   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13495   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13496   # check for ICE first), but we must link in the order -lSM -lICE or
13497   # we get undefined symbols.  So assume we have SM if we have ICE.
13498   # These have to be linked with before -lX11, unlike the other
13499   # libraries we check for below, so use a different variable.
13500   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
13501   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
13502 echo "configure:13503: checking for IceConnectionNumber in -lICE" >&5
13503 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
13504 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13505   echo $ac_n "(cached) $ac_c" 1>&6
13506 else
13507   ac_save_LIBS="$LIBS"
13508 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13509 cat > conftest.$ac_ext <<EOF
13510 #line 13511 "configure"
13511 #include "confdefs.h"
13512 /* Override any gcc2 internal prototype to avoid an error.  */
13513 /* We use char because int might match the return type of a gcc2
13514     builtin and then its argument prototype would still apply.  */
13515 char IceConnectionNumber();
13516
13517 int main() {
13518 IceConnectionNumber()
13519 ; return 0; }
13520 EOF
13521 if { (eval echo configure:13522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13522   rm -rf conftest*
13523   eval "ac_cv_lib_$ac_lib_var=yes"
13524 else
13525   echo "configure: failed program was:" >&5
13526   cat conftest.$ac_ext >&5
13527   rm -rf conftest*
13528   eval "ac_cv_lib_$ac_lib_var=no"
13529 fi
13530 rm -f conftest*
13531 LIBS="$ac_save_LIBS"
13532
13533 fi
13534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13535   echo "$ac_t""yes" 1>&6
13536   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13537 else
13538   echo "$ac_t""no" 1>&6
13539 fi
13540
13541   LDFLAGS="$ac_save_LDFLAGS"
13542
13543 fi
13544
13545
13546         if test "$no_x" = "yes"; then
13547           { echo "configure: error: X11 not found" 1>&2; exit 1; }
13548         fi
13549
13550         GUI_TK_LIBRARY="$X_LIBS"
13551         TOOLKIT_INCLUDE="$X_CFLAGS"
13552         AFMINSTALL=afminstall
13553         COMPILED_X_PROGRAM=0
13554
13555         if test "$wxUSE_NANOX" = "yes"; then
13556             echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
13557 echo "configure:13558: checking for MicroWindows/NanoX distribution" >&5
13558             if test "x$MICROWIN" = x ; then
13559                 echo "$ac_t""not found" 1>&6
13560                 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
13561             else
13562                 echo "$ac_t""$MICROWIN" 1>&6
13563                 cat >> confdefs.h <<\EOF
13564 #define wxUSE_NANOX 1
13565 EOF
13566
13567             fi
13568         fi
13569
13570         xpm_link=
13571         echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13572 echo "configure:13573: checking for Xpm library" >&5
13573         
13574 ac_find_libraries=
13575 for ac_dir in $SEARCH_LIB;
13576   do
13577     for ac_extension in a so sl dylib; do
13578       if test -f "$ac_dir/libXpm.$ac_extension"; then
13579         ac_find_libraries=$ac_dir
13580         break 2
13581       fi
13582     done
13583   done
13584
13585         if test "$ac_find_libraries" != "" ; then
13586             
13587   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13588   result=$?
13589   if test $result = 0; then
13590     ac_path_to_link=""
13591   else
13592     ac_path_to_link=" -L$ac_find_libraries"
13593   fi
13594
13595             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13596             xpm_link=" -lXpm"
13597             cat >> confdefs.h <<\EOF
13598 #define wxHAVE_LIB_XPM 1
13599 EOF
13600
13601             echo "$ac_t""found at $ac_find_libraries" 1>&6
13602         else
13603             cat > conftest.$ac_ext <<EOF
13604 #line 13605 "configure"
13605 #include "confdefs.h"
13606
13607                     #include <X11/xpm.h>
13608                 
13609 int main() {
13610
13611                     int version;
13612                     version = XpmLibraryVersion();
13613                 
13614 ; return 0; }
13615 EOF
13616 if { (eval echo configure:13617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13617   rm -rf conftest*
13618   
13619                     xpm_link=" -lXpm"
13620                     cat >> confdefs.h <<\EOF
13621 #define wxHAVE_LIB_XPM 1
13622 EOF
13623
13624                     echo "$ac_t""found in default search path" 1>&6
13625                     COMPILED_X_PROGRAM=0
13626                 
13627 else
13628   echo "configure: failed program was:" >&5
13629   cat conftest.$ac_ext >&5
13630   rm -rf conftest*
13631   
13632                     echo "$ac_t""no" 1>&6
13633                     echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13634                 
13635             
13636 fi
13637 rm -f conftest*
13638         fi
13639
13640         wxUSE_UNIVERSAL="yes"
13641
13642         if test "$wxUSE_NANOX" = "yes"; then
13643             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
13644             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"
13645             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
13646         else
13647             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
13648         fi
13649
13650         TOOLKIT_VPATH="\${top_srcdir}/src/x11"
13651         TOOLKIT=X11
13652         GUIDIST=X11_DIST
13653     fi
13654
13655     if test "$wxUSE_WINE" = 1; then
13656         ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
13657 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
13658 echo "configure:13659: checking for windows.h" >&5
13659 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13660   echo $ac_n "(cached) $ac_c" 1>&6
13661 else
13662   cat > conftest.$ac_ext <<EOF
13663 #line 13664 "configure"
13664 #include "confdefs.h"
13665 #include <windows.h>
13666 EOF
13667 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13668 { (eval echo configure:13669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13669 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13670 if test -z "$ac_err"; then
13671   rm -rf conftest*
13672   eval "ac_cv_header_$ac_safe=yes"
13673 else
13674   echo "$ac_err" >&5
13675   echo "configure: failed program was:" >&5
13676   cat conftest.$ac_ext >&5
13677   rm -rf conftest*
13678   eval "ac_cv_header_$ac_safe=no"
13679 fi
13680 rm -f conftest*
13681 fi
13682 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13683   echo "$ac_t""yes" 1>&6
13684   :
13685 else
13686   echo "$ac_t""no" 1>&6
13687
13688             { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
13689         
13690 fi
13691
13692
13693         xpm_link=
13694         echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13695 echo "configure:13696: checking for Xpm library" >&5
13696         
13697 ac_find_libraries=
13698 for ac_dir in $SEARCH_LIB;
13699   do
13700     for ac_extension in a so sl dylib; do
13701       if test -f "$ac_dir/libXpm.$ac_extension"; then
13702         ac_find_libraries=$ac_dir
13703         break 2
13704       fi
13705     done
13706   done
13707
13708         if test "$ac_find_libraries" != "" ; then
13709             GUI_TK_LIBRARY="-L$ac_find_libraries"
13710             xpm_link=" -lXpm"
13711             cat >> confdefs.h <<\EOF
13712 #define wxHAVE_LIB_XPM 1
13713 EOF
13714
13715             echo "$ac_t""found at $ac_find_libraries" 1>&6
13716         else
13717             echo "$ac_t""no" 1>&6
13718             echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13719         fi
13720
13721         mesa_link=
13722         echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
13723 echo "configure:13724: checking for Mesa library" >&5
13724         
13725 ac_find_libraries=
13726 for ac_dir in $SEARCH_LIB;
13727   do
13728     for ac_extension in a so sl dylib; do
13729       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13730         ac_find_libraries=$ac_dir
13731         break 2
13732       fi
13733     done
13734   done
13735
13736         if test "$ac_find_libraries" != "" ; then
13737             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
13738             mesa_link=" -lMesaGL"
13739             echo "$ac_t""found at $ac_find_libraries" 1>&6
13740         else
13741             { echo "configure: error: no" 1>&2; exit 1; }
13742         fi
13743
13744         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
13745         TOOLKIT=MSW
13746         GUIDIST=MSW_DIST
13747         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
13748     fi
13749
13750     if test "$wxUSE_MOTIF" = 1; then
13751                         if test "$no_x" = yes; then
13752   # Not all programs may use this symbol, but it does not hurt to define it.
13753   cat >> confdefs.h <<\EOF
13754 #define X_DISPLAY_MISSING 1
13755 EOF
13756
13757   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13758 else
13759   if test -n "$x_includes"; then
13760     X_CFLAGS="$X_CFLAGS -I$x_includes"
13761   fi
13762
13763   # It would also be nice to do this for all -L options, not just this one.
13764   if test -n "$x_libraries"; then
13765     X_LIBS="$X_LIBS -L$x_libraries"
13766     # For Solaris; some versions of Sun CC require a space after -R and
13767     # others require no space.  Words are not sufficient . . . .
13768     case "`(uname -sr) 2>/dev/null`" in
13769     "SunOS 5"*)
13770       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13771 echo "configure:13772: checking whether -R must be followed by a space" >&5
13772       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13773       cat > conftest.$ac_ext <<EOF
13774 #line 13775 "configure"
13775 #include "confdefs.h"
13776
13777 int main() {
13778
13779 ; return 0; }
13780 EOF
13781 if { (eval echo configure:13782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13782   rm -rf conftest*
13783   ac_R_nospace=yes
13784 else
13785   echo "configure: failed program was:" >&5
13786   cat conftest.$ac_ext >&5
13787   rm -rf conftest*
13788   ac_R_nospace=no
13789 fi
13790 rm -f conftest*
13791       if test $ac_R_nospace = yes; then
13792         echo "$ac_t""no" 1>&6
13793         X_LIBS="$X_LIBS -R$x_libraries"
13794       else
13795         LIBS="$ac_xsave_LIBS -R $x_libraries"
13796         cat > conftest.$ac_ext <<EOF
13797 #line 13798 "configure"
13798 #include "confdefs.h"
13799
13800 int main() {
13801
13802 ; return 0; }
13803 EOF
13804 if { (eval echo configure:13805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13805   rm -rf conftest*
13806   ac_R_space=yes
13807 else
13808   echo "configure: failed program was:" >&5
13809   cat conftest.$ac_ext >&5
13810   rm -rf conftest*
13811   ac_R_space=no
13812 fi
13813 rm -f conftest*
13814         if test $ac_R_space = yes; then
13815           echo "$ac_t""yes" 1>&6
13816           X_LIBS="$X_LIBS -R $x_libraries"
13817         else
13818           echo "$ac_t""neither works" 1>&6
13819         fi
13820       fi
13821       LIBS="$ac_xsave_LIBS"
13822     esac
13823   fi
13824
13825   # Check for system-dependent libraries X programs must link with.
13826   # Do this before checking for the system-independent R6 libraries
13827   # (-lICE), since we may need -lsocket or whatever for X linking.
13828
13829   if test "$ISC" = yes; then
13830     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13831   else
13832     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13833     # libraries were built with DECnet support.  And karl@cs.umb.edu says
13834     # the Alpha needs dnet_stub (dnet does not exist).
13835     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13836 echo "configure:13837: checking for dnet_ntoa in -ldnet" >&5
13837 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13838 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13839   echo $ac_n "(cached) $ac_c" 1>&6
13840 else
13841   ac_save_LIBS="$LIBS"
13842 LIBS="-ldnet  $LIBS"
13843 cat > conftest.$ac_ext <<EOF
13844 #line 13845 "configure"
13845 #include "confdefs.h"
13846 /* Override any gcc2 internal prototype to avoid an error.  */
13847 /* We use char because int might match the return type of a gcc2
13848     builtin and then its argument prototype would still apply.  */
13849 char dnet_ntoa();
13850
13851 int main() {
13852 dnet_ntoa()
13853 ; return 0; }
13854 EOF
13855 if { (eval echo configure:13856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13856   rm -rf conftest*
13857   eval "ac_cv_lib_$ac_lib_var=yes"
13858 else
13859   echo "configure: failed program was:" >&5
13860   cat conftest.$ac_ext >&5
13861   rm -rf conftest*
13862   eval "ac_cv_lib_$ac_lib_var=no"
13863 fi
13864 rm -f conftest*
13865 LIBS="$ac_save_LIBS"
13866
13867 fi
13868 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13869   echo "$ac_t""yes" 1>&6
13870   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13871 else
13872   echo "$ac_t""no" 1>&6
13873 fi
13874
13875     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13876       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13877 echo "configure:13878: checking for dnet_ntoa in -ldnet_stub" >&5
13878 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13880   echo $ac_n "(cached) $ac_c" 1>&6
13881 else
13882   ac_save_LIBS="$LIBS"
13883 LIBS="-ldnet_stub  $LIBS"
13884 cat > conftest.$ac_ext <<EOF
13885 #line 13886 "configure"
13886 #include "confdefs.h"
13887 /* Override any gcc2 internal prototype to avoid an error.  */
13888 /* We use char because int might match the return type of a gcc2
13889     builtin and then its argument prototype would still apply.  */
13890 char dnet_ntoa();
13891
13892 int main() {
13893 dnet_ntoa()
13894 ; return 0; }
13895 EOF
13896 if { (eval echo configure:13897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13897   rm -rf conftest*
13898   eval "ac_cv_lib_$ac_lib_var=yes"
13899 else
13900   echo "configure: failed program was:" >&5
13901   cat conftest.$ac_ext >&5
13902   rm -rf conftest*
13903   eval "ac_cv_lib_$ac_lib_var=no"
13904 fi
13905 rm -f conftest*
13906 LIBS="$ac_save_LIBS"
13907
13908 fi
13909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13910   echo "$ac_t""yes" 1>&6
13911   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13912 else
13913   echo "$ac_t""no" 1>&6
13914 fi
13915
13916     fi
13917
13918     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13919     # to get the SysV transport functions.
13920     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13921     # needs -lnsl.
13922     # The nsl library prevents programs from opening the X display
13923     # on Irix 5.2, according to dickey@clark.net.
13924     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13925 echo "configure:13926: checking for gethostbyname" >&5
13926 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13927   echo $ac_n "(cached) $ac_c" 1>&6
13928 else
13929   cat > conftest.$ac_ext <<EOF
13930 #line 13931 "configure"
13931 #include "confdefs.h"
13932 /* System header to define __stub macros and hopefully few prototypes,
13933     which can conflict with char gethostbyname(); below.  */
13934 #include <assert.h>
13935 /* Override any gcc2 internal prototype to avoid an error.  */
13936 /* We use char because int might match the return type of a gcc2
13937     builtin and then its argument prototype would still apply.  */
13938 char gethostbyname();
13939
13940 int main() {
13941
13942 /* The GNU C library defines this for functions which it implements
13943     to always fail with ENOSYS.  Some functions are actually named
13944     something starting with __ and the normal name is an alias.  */
13945 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13946 choke me
13947 #else
13948 gethostbyname();
13949 #endif
13950
13951 ; return 0; }
13952 EOF
13953 if { (eval echo configure:13954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13954   rm -rf conftest*
13955   eval "ac_cv_func_gethostbyname=yes"
13956 else
13957   echo "configure: failed program was:" >&5
13958   cat conftest.$ac_ext >&5
13959   rm -rf conftest*
13960   eval "ac_cv_func_gethostbyname=no"
13961 fi
13962 rm -f conftest*
13963 fi
13964
13965 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13966   echo "$ac_t""yes" 1>&6
13967   :
13968 else
13969   echo "$ac_t""no" 1>&6
13970 fi
13971
13972     if test $ac_cv_func_gethostbyname = no; then
13973       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13974 echo "configure:13975: checking for gethostbyname in -lnsl" >&5
13975 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13976 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13977   echo $ac_n "(cached) $ac_c" 1>&6
13978 else
13979   ac_save_LIBS="$LIBS"
13980 LIBS="-lnsl  $LIBS"
13981 cat > conftest.$ac_ext <<EOF
13982 #line 13983 "configure"
13983 #include "confdefs.h"
13984 /* Override any gcc2 internal prototype to avoid an error.  */
13985 /* We use char because int might match the return type of a gcc2
13986     builtin and then its argument prototype would still apply.  */
13987 char gethostbyname();
13988
13989 int main() {
13990 gethostbyname()
13991 ; return 0; }
13992 EOF
13993 if { (eval echo configure:13994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13994   rm -rf conftest*
13995   eval "ac_cv_lib_$ac_lib_var=yes"
13996 else
13997   echo "configure: failed program was:" >&5
13998   cat conftest.$ac_ext >&5
13999   rm -rf conftest*
14000   eval "ac_cv_lib_$ac_lib_var=no"
14001 fi
14002 rm -f conftest*
14003 LIBS="$ac_save_LIBS"
14004
14005 fi
14006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14007   echo "$ac_t""yes" 1>&6
14008   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14009 else
14010   echo "$ac_t""no" 1>&6
14011 fi
14012
14013     fi
14014
14015     # lieder@skyler.mavd.honeywell.com says without -lsocket,
14016     # socket/setsockopt and other routines are undefined under SCO ODT
14017     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
14018     # on later versions), says simon@lia.di.epfl.ch: it contains
14019     # gethostby* variants that don't use the nameserver (or something).
14020     # -lsocket must be given before -lnsl if both are needed.
14021     # We assume that if connect needs -lnsl, so does gethostbyname.
14022     echo $ac_n "checking for connect""... $ac_c" 1>&6
14023 echo "configure:14024: checking for connect" >&5
14024 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14025   echo $ac_n "(cached) $ac_c" 1>&6
14026 else
14027   cat > conftest.$ac_ext <<EOF
14028 #line 14029 "configure"
14029 #include "confdefs.h"
14030 /* System header to define __stub macros and hopefully few prototypes,
14031     which can conflict with char connect(); below.  */
14032 #include <assert.h>
14033 /* Override any gcc2 internal prototype to avoid an error.  */
14034 /* We use char because int might match the return type of a gcc2
14035     builtin and then its argument prototype would still apply.  */
14036 char connect();
14037
14038 int main() {
14039
14040 /* The GNU C library defines this for functions which it implements
14041     to always fail with ENOSYS.  Some functions are actually named
14042     something starting with __ and the normal name is an alias.  */
14043 #if defined (__stub_connect) || defined (__stub___connect)
14044 choke me
14045 #else
14046 connect();
14047 #endif
14048
14049 ; return 0; }
14050 EOF
14051 if { (eval echo configure:14052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14052   rm -rf conftest*
14053   eval "ac_cv_func_connect=yes"
14054 else
14055   echo "configure: failed program was:" >&5
14056   cat conftest.$ac_ext >&5
14057   rm -rf conftest*
14058   eval "ac_cv_func_connect=no"
14059 fi
14060 rm -f conftest*
14061 fi
14062
14063 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14064   echo "$ac_t""yes" 1>&6
14065   :
14066 else
14067   echo "$ac_t""no" 1>&6
14068 fi
14069
14070     if test $ac_cv_func_connect = no; then
14071       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14072 echo "configure:14073: checking for connect in -lsocket" >&5
14073 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14074 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14075   echo $ac_n "(cached) $ac_c" 1>&6
14076 else
14077   ac_save_LIBS="$LIBS"
14078 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14079 cat > conftest.$ac_ext <<EOF
14080 #line 14081 "configure"
14081 #include "confdefs.h"
14082 /* Override any gcc2 internal prototype to avoid an error.  */
14083 /* We use char because int might match the return type of a gcc2
14084     builtin and then its argument prototype would still apply.  */
14085 char connect();
14086
14087 int main() {
14088 connect()
14089 ; return 0; }
14090 EOF
14091 if { (eval echo configure:14092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14092   rm -rf conftest*
14093   eval "ac_cv_lib_$ac_lib_var=yes"
14094 else
14095   echo "configure: failed program was:" >&5
14096   cat conftest.$ac_ext >&5
14097   rm -rf conftest*
14098   eval "ac_cv_lib_$ac_lib_var=no"
14099 fi
14100 rm -f conftest*
14101 LIBS="$ac_save_LIBS"
14102
14103 fi
14104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14105   echo "$ac_t""yes" 1>&6
14106   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14107 else
14108   echo "$ac_t""no" 1>&6
14109 fi
14110
14111     fi
14112
14113     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14114     echo $ac_n "checking for remove""... $ac_c" 1>&6
14115 echo "configure:14116: checking for remove" >&5
14116 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14117   echo $ac_n "(cached) $ac_c" 1>&6
14118 else
14119   cat > conftest.$ac_ext <<EOF
14120 #line 14121 "configure"
14121 #include "confdefs.h"
14122 /* System header to define __stub macros and hopefully few prototypes,
14123     which can conflict with char remove(); below.  */
14124 #include <assert.h>
14125 /* Override any gcc2 internal prototype to avoid an error.  */
14126 /* We use char because int might match the return type of a gcc2
14127     builtin and then its argument prototype would still apply.  */
14128 char remove();
14129
14130 int main() {
14131
14132 /* The GNU C library defines this for functions which it implements
14133     to always fail with ENOSYS.  Some functions are actually named
14134     something starting with __ and the normal name is an alias.  */
14135 #if defined (__stub_remove) || defined (__stub___remove)
14136 choke me
14137 #else
14138 remove();
14139 #endif
14140
14141 ; return 0; }
14142 EOF
14143 if { (eval echo configure:14144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14144   rm -rf conftest*
14145   eval "ac_cv_func_remove=yes"
14146 else
14147   echo "configure: failed program was:" >&5
14148   cat conftest.$ac_ext >&5
14149   rm -rf conftest*
14150   eval "ac_cv_func_remove=no"
14151 fi
14152 rm -f conftest*
14153 fi
14154
14155 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14156   echo "$ac_t""yes" 1>&6
14157   :
14158 else
14159   echo "$ac_t""no" 1>&6
14160 fi
14161
14162     if test $ac_cv_func_remove = no; then
14163       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14164 echo "configure:14165: checking for remove in -lposix" >&5
14165 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14166 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14167   echo $ac_n "(cached) $ac_c" 1>&6
14168 else
14169   ac_save_LIBS="$LIBS"
14170 LIBS="-lposix  $LIBS"
14171 cat > conftest.$ac_ext <<EOF
14172 #line 14173 "configure"
14173 #include "confdefs.h"
14174 /* Override any gcc2 internal prototype to avoid an error.  */
14175 /* We use char because int might match the return type of a gcc2
14176     builtin and then its argument prototype would still apply.  */
14177 char remove();
14178
14179 int main() {
14180 remove()
14181 ; return 0; }
14182 EOF
14183 if { (eval echo configure:14184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14184   rm -rf conftest*
14185   eval "ac_cv_lib_$ac_lib_var=yes"
14186 else
14187   echo "configure: failed program was:" >&5
14188   cat conftest.$ac_ext >&5
14189   rm -rf conftest*
14190   eval "ac_cv_lib_$ac_lib_var=no"
14191 fi
14192 rm -f conftest*
14193 LIBS="$ac_save_LIBS"
14194
14195 fi
14196 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14197   echo "$ac_t""yes" 1>&6
14198   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14199 else
14200   echo "$ac_t""no" 1>&6
14201 fi
14202
14203     fi
14204
14205     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14206     echo $ac_n "checking for shmat""... $ac_c" 1>&6
14207 echo "configure:14208: checking for shmat" >&5
14208 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14209   echo $ac_n "(cached) $ac_c" 1>&6
14210 else
14211   cat > conftest.$ac_ext <<EOF
14212 #line 14213 "configure"
14213 #include "confdefs.h"
14214 /* System header to define __stub macros and hopefully few prototypes,
14215     which can conflict with char shmat(); below.  */
14216 #include <assert.h>
14217 /* Override any gcc2 internal prototype to avoid an error.  */
14218 /* We use char because int might match the return type of a gcc2
14219     builtin and then its argument prototype would still apply.  */
14220 char shmat();
14221
14222 int main() {
14223
14224 /* The GNU C library defines this for functions which it implements
14225     to always fail with ENOSYS.  Some functions are actually named
14226     something starting with __ and the normal name is an alias.  */
14227 #if defined (__stub_shmat) || defined (__stub___shmat)
14228 choke me
14229 #else
14230 shmat();
14231 #endif
14232
14233 ; return 0; }
14234 EOF
14235 if { (eval echo configure:14236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14236   rm -rf conftest*
14237   eval "ac_cv_func_shmat=yes"
14238 else
14239   echo "configure: failed program was:" >&5
14240   cat conftest.$ac_ext >&5
14241   rm -rf conftest*
14242   eval "ac_cv_func_shmat=no"
14243 fi
14244 rm -f conftest*
14245 fi
14246
14247 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14248   echo "$ac_t""yes" 1>&6
14249   :
14250 else
14251   echo "$ac_t""no" 1>&6
14252 fi
14253
14254     if test $ac_cv_func_shmat = no; then
14255       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14256 echo "configure:14257: checking for shmat in -lipc" >&5
14257 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14259   echo $ac_n "(cached) $ac_c" 1>&6
14260 else
14261   ac_save_LIBS="$LIBS"
14262 LIBS="-lipc  $LIBS"
14263 cat > conftest.$ac_ext <<EOF
14264 #line 14265 "configure"
14265 #include "confdefs.h"
14266 /* Override any gcc2 internal prototype to avoid an error.  */
14267 /* We use char because int might match the return type of a gcc2
14268     builtin and then its argument prototype would still apply.  */
14269 char shmat();
14270
14271 int main() {
14272 shmat()
14273 ; return 0; }
14274 EOF
14275 if { (eval echo configure:14276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14276   rm -rf conftest*
14277   eval "ac_cv_lib_$ac_lib_var=yes"
14278 else
14279   echo "configure: failed program was:" >&5
14280   cat conftest.$ac_ext >&5
14281   rm -rf conftest*
14282   eval "ac_cv_lib_$ac_lib_var=no"
14283 fi
14284 rm -f conftest*
14285 LIBS="$ac_save_LIBS"
14286
14287 fi
14288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14289   echo "$ac_t""yes" 1>&6
14290   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14291 else
14292   echo "$ac_t""no" 1>&6
14293 fi
14294
14295     fi
14296   fi
14297
14298   # Check for libraries that X11R6 Xt/Xaw programs need.
14299   ac_save_LDFLAGS="$LDFLAGS"
14300   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14301   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14302   # check for ICE first), but we must link in the order -lSM -lICE or
14303   # we get undefined symbols.  So assume we have SM if we have ICE.
14304   # These have to be linked with before -lX11, unlike the other
14305   # libraries we check for below, so use a different variable.
14306   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14307   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14308 echo "configure:14309: checking for IceConnectionNumber in -lICE" >&5
14309 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14310 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14311   echo $ac_n "(cached) $ac_c" 1>&6
14312 else
14313   ac_save_LIBS="$LIBS"
14314 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14315 cat > conftest.$ac_ext <<EOF
14316 #line 14317 "configure"
14317 #include "confdefs.h"
14318 /* Override any gcc2 internal prototype to avoid an error.  */
14319 /* We use char because int might match the return type of a gcc2
14320     builtin and then its argument prototype would still apply.  */
14321 char IceConnectionNumber();
14322
14323 int main() {
14324 IceConnectionNumber()
14325 ; return 0; }
14326 EOF
14327 if { (eval echo configure:14328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14328   rm -rf conftest*
14329   eval "ac_cv_lib_$ac_lib_var=yes"
14330 else
14331   echo "configure: failed program was:" >&5
14332   cat conftest.$ac_ext >&5
14333   rm -rf conftest*
14334   eval "ac_cv_lib_$ac_lib_var=no"
14335 fi
14336 rm -f conftest*
14337 LIBS="$ac_save_LIBS"
14338
14339 fi
14340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14341   echo "$ac_t""yes" 1>&6
14342   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14343 else
14344   echo "$ac_t""no" 1>&6
14345 fi
14346
14347   LDFLAGS="$ac_save_LDFLAGS"
14348
14349 fi
14350
14351
14352         if test "$no_x" = "yes"; then
14353           { echo "configure: error: X11 not found" 1>&2; exit 1; }
14354         fi
14355
14356         GUI_TK_LIBRARY="$X_LIBS"
14357         TOOLKIT_INCLUDE="$X_CFLAGS"
14358         AFMINSTALL=afminstall
14359         COMPILED_X_PROGRAM=0
14360
14361         echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
14362 echo "configure:14363: checking for Motif/Lesstif headers" >&5
14363         
14364 ac_find_includes=
14365 for ac_dir in $SEARCH_INCLUDE;
14366   do
14367     if test -f "$ac_dir/Xm/Xm.h"; then
14368       ac_find_includes=$ac_dir
14369       break
14370     fi
14371   done
14372
14373         if test "$ac_find_includes" != "" ; then
14374             echo "$ac_t""found $ac_find_includes" 1>&6
14375         else
14376             cat > conftest.$ac_ext <<EOF
14377 #line 14378 "configure"
14378 #include "confdefs.h"
14379
14380                     #include <Xm/Xm.h>
14381                 
14382 int main() {
14383
14384                     int version;
14385                     version = xmUseVersion;
14386                 
14387 ; return 0; }
14388 EOF
14389 if { (eval echo configure:14390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14390   rm -rf conftest*
14391   
14392                     echo "$ac_t""found in default search path" 1>&6
14393                     COMPILED_X_PROGRAM=1
14394                 
14395 else
14396   echo "configure: failed program was:" >&5
14397   cat conftest.$ac_ext >&5
14398   rm -rf conftest*
14399   
14400                     echo "$ac_t""no" 1>&6
14401                     { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
14402                 
14403             
14404 fi
14405 rm -f conftest*
14406         fi
14407
14408         if test "$COMPILED_X_PROGRAM" = 0; then
14409             echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
14410 echo "configure:14411: checking for Motif/Lesstif library" >&5
14411             
14412 ac_find_libraries=
14413 for ac_dir in $SEARCH_LIB;
14414   do
14415     for ac_extension in a so sl dylib; do
14416       if test -f "$ac_dir/libXm.$ac_extension"; then
14417         ac_find_libraries=$ac_dir
14418         break 2
14419       fi
14420     done
14421   done
14422
14423             if test "$ac_find_libraries" != "" ; then
14424                 
14425   ac_path_to_include=$ac_find_includes
14426   echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
14427   result=$?
14428   if test $result = 0; then
14429     ac_path_to_include=""
14430   else
14431     ac_path_to_include=" -I$ac_find_includes"
14432   fi
14433
14434                 
14435   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14436   result=$?
14437   if test $result = 0; then
14438     ac_path_to_link=""
14439   else
14440     ac_path_to_link=" -L$ac_find_libraries"
14441   fi
14442
14443
14444                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14445                 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
14446                 echo "$ac_t""found at $ac_find_libraries" 1>&6
14447             else
14448                                                                 cat > conftest.$ac_ext <<EOF
14449 #line 14450 "configure"
14450 #include "confdefs.h"
14451
14452                         #include <Xm/Xm.h>
14453                     
14454 int main() {
14455
14456                         int version;
14457                         version = xmUseVersion;
14458                     
14459 ; return 0; }
14460 EOF
14461 if { (eval echo configure:14462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14462   rm -rf conftest*
14463   
14464                         echo "$ac_t""found in default search path" 1>&6
14465                         COMPILED_X_PROGRAM=1
14466                     
14467 else
14468   echo "configure: failed program was:" >&5
14469   cat conftest.$ac_ext >&5
14470   rm -rf conftest*
14471   
14472                         echo "$ac_t""no" 1>&6
14473                         { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
14474                     
14475                 
14476 fi
14477 rm -f conftest*
14478             fi
14479         fi
14480
14481         xpm_link=
14482         echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14483 echo "configure:14484: checking for Xpm library" >&5
14484         
14485 ac_find_libraries=
14486 for ac_dir in $SEARCH_LIB;
14487   do
14488     for ac_extension in a so sl dylib; do
14489       if test -f "$ac_dir/libXpm.$ac_extension"; then
14490         ac_find_libraries=$ac_dir
14491         break 2
14492       fi
14493     done
14494   done
14495
14496         if test "$ac_find_libraries" != "" ; then
14497             
14498   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14499   result=$?
14500   if test $result = 0; then
14501     ac_path_to_link=""
14502   else
14503     ac_path_to_link=" -L$ac_find_libraries"
14504   fi
14505
14506             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14507             xpm_link=" -lXpm"
14508             cat >> confdefs.h <<\EOF
14509 #define wxHAVE_LIB_XPM 1
14510 EOF
14511
14512             echo "$ac_t""found at $ac_find_libraries" 1>&6
14513         else
14514             cat > conftest.$ac_ext <<EOF
14515 #line 14516 "configure"
14516 #include "confdefs.h"
14517
14518                     #include <X11/xpm.h>
14519                 
14520 int main() {
14521
14522                     int version;
14523                     version = XpmLibraryVersion();
14524                 
14525 ; return 0; }
14526 EOF
14527 if { (eval echo configure:14528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14528   rm -rf conftest*
14529   
14530                     xpm_link=" -lXpm"
14531                     cat >> confdefs.h <<\EOF
14532 #define wxHAVE_LIB_XPM 1
14533 EOF
14534
14535                     echo "$ac_t""found in default search path" 1>&6
14536                     COMPILED_X_PROGRAM=0
14537                 
14538 else
14539   echo "configure: failed program was:" >&5
14540   cat conftest.$ac_ext >&5
14541   rm -rf conftest*
14542   
14543                     echo "$ac_t""no" 1>&6
14544                     echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14545                 
14546             
14547 fi
14548 rm -f conftest*
14549         fi
14550
14551                         xt_needs_sm_ice=
14552         case "${host}" in
14553           *-*-cygwin* )
14554             xt_needs_sm_ice=" -lSM -lICE"
14555             ;;
14556         esac
14557
14558         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt${xt_needs_sm_ice} -lX11"
14559         TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
14560         TOOLKIT=MOTIF
14561         GUIDIST=MOTIF_DIST
14562     fi
14563
14564     if test "$wxUSE_MAC" = 1; then
14565         if test "$wxUSE_PRECOMP" = "yes"; then
14566             CPPFLAGS="$CPPFLAGS -cpp-precomp"
14567         else
14568             CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
14569         fi
14570         CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
14571         CFLAGS="$CFLAGS -fpascal-strings"
14572         CXXFLAGS="$CXXFLAGS -fpascal-strings"
14573
14574         TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
14575         TOOLKIT=MAC
14576                 GUIDIST=MACX_DIST
14577     fi
14578
14579     if test "$wxUSE_PM" = 1; then
14580         TOOLKIT=PM
14581         GUIDIST=GTK_DIST
14582     fi
14583
14584         if test "$TOOLKIT" = "PM" ; then
14585         TOOLKIT_DIR="os2"
14586     else
14587         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
14588     fi
14589
14590         PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
14591
14592     if test "$wxUSE_UNIVERSAL" = "yes"; then
14593         ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
14594
14595                                 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
14596         ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
14597
14598         PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
14599         if test "$wxUSE_X11" = 1; then
14600             TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
14601         else
14602             TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
14603         fi
14604         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
14605         WIDGET_SET=univ
14606     else
14607         ALL_OBJECTS="\$(GUIOBJS)"
14608         ALL_SOURCES="\$(ALL_SOURCES)"
14609         ALL_HEADERS="\$(ALL_HEADERS)"
14610     fi
14611
14612     ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
14613
14614     if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
14615         ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
14616     fi
14617
14618     if test "$wxUSE_HTML" = "yes"; then
14619         ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
14620     fi
14621
14622     if test "$wxUSE_LIBJPEG" = "builtin" ; then
14623         ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
14624     fi
14625     if test "$wxUSE_LIBTIFF" = "builtin" ; then
14626         ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
14627     fi
14628     if test "$wxUSE_LIBPNG" = "builtin" ; then
14629         ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
14630     fi
14631
14632         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
14633     DISTDIR="wx\$(TOOLKIT)"
14634 else
14635     USE_GUI=0
14636
14637             TOOLKIT_DIR="base"
14638
14639         if test "$USE_WIN32" = 1 ; then
14640         ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
14641         TOOLKIT_VPATH="\${top_srcdir}/src/msw"
14642
14643                         TOOLKIT="MSW"
14644     else
14645         ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
14646         TOOLKIT_VPATH="\${top_srcdir}/src/unix"
14647     fi
14648
14649     ALL_SOURCES="\$(ALL_SOURCES)"
14650     ALL_HEADERS="\$(ALL_HEADERS)"
14651
14652     PORT_FILES="\${top_srcdir}/src/files.lst"
14653
14654         GUIDIST="BASE_DIST"
14655     DISTDIR="wxBase"
14656 fi
14657
14658
14659 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
14660     ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
14661 fi
14662
14663 if test "$wxUSE_REGEX" = "builtin" ; then
14664     ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
14665 fi
14666 if test "$wxUSE_ZLIB" = "builtin" ; then
14667     ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
14668 fi
14669
14670
14671 if test "$wxUSE_OPENGL" = "yes"; then
14672     if test "$wxUSE_MAC" = 1; then
14673         OPENGL_LIBS="-framework OpenGL -framework AGL"
14674     elif test "$wxUSE_MSW" = 1; then
14675         OPENGL_LIBS="-lopengl32 -lglu32"
14676     else
14677         ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14678 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
14679 echo "configure:14680: checking for GL/gl.h" >&5
14680 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14681   echo $ac_n "(cached) $ac_c" 1>&6
14682 else
14683   cat > conftest.$ac_ext <<EOF
14684 #line 14685 "configure"
14685 #include "confdefs.h"
14686 #include <GL/gl.h>
14687 EOF
14688 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14689 { (eval echo configure:14690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14690 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14691 if test -z "$ac_err"; then
14692   rm -rf conftest*
14693   eval "ac_cv_header_$ac_safe=yes"
14694 else
14695   echo "$ac_err" >&5
14696   echo "configure: failed program was:" >&5
14697   cat conftest.$ac_ext >&5
14698   rm -rf conftest*
14699   eval "ac_cv_header_$ac_safe=no"
14700 fi
14701 rm -f conftest*
14702 fi
14703 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14704   echo "$ac_t""yes" 1>&6
14705   
14706                 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
14707 echo "configure:14708: checking for -lGL" >&5
14708                 
14709 ac_find_libraries=
14710 for ac_dir in $SEARCH_LIB;
14711   do
14712     for ac_extension in a so sl dylib; do
14713       if test -f "$ac_dir/libGL.$ac_extension"; then
14714         ac_find_libraries=$ac_dir
14715         break 2
14716       fi
14717     done
14718   done
14719
14720                 if test "$ac_find_libraries" != "" ; then
14721                     
14722   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14723   result=$?
14724   if test $result = 0; then
14725     ac_path_to_link=""
14726   else
14727     ac_path_to_link=" -L$ac_find_libraries"
14728   fi
14729
14730                     if test "$ac_path_to_link" = " -L/usr/lib" ; then
14731                         LDFLAGS_GL="$LDFLAGS"
14732                     else
14733                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14734                     fi
14735                     OPENGL_LIBS="-lGL -lGLU"
14736                     echo "$ac_t""yes" 1>&6
14737                 else
14738                     echo "$ac_t""no" 1>&6
14739                     echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
14740 echo "configure:14741: checking for -lMesaGL" >&5
14741                     
14742 ac_find_libraries=
14743 for ac_dir in $SEARCH_LIB;
14744   do
14745     for ac_extension in a so sl dylib; do
14746       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
14747         ac_find_libraries=$ac_dir
14748         break 2
14749       fi
14750     done
14751   done
14752
14753                     if test "$ac_find_libraries" != "" ; then
14754                         
14755   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14756   result=$?
14757   if test $result = 0; then
14758     ac_path_to_link=""
14759   else
14760     ac_path_to_link=" -L$ac_find_libraries"
14761   fi
14762
14763                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14764                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
14765                         echo "$ac_t""yes" 1>&6
14766                     else
14767                         echo "$ac_t""no" 1>&6
14768                     fi
14769                 fi
14770             
14771 else
14772   echo "$ac_t""no" 1>&6
14773 fi
14774
14775
14776         if test "x$OPENGL_LIBS" = "x"; then
14777                                                 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
14778         fi
14779     fi
14780
14781     if test "$wxUSE_OPENGL" = "yes"; then
14782         cat >> confdefs.h <<\EOF
14783 #define wxUSE_OPENGL 1
14784 EOF
14785
14786         cat >> confdefs.h <<\EOF
14787 #define wxUSE_GLCANVAS 1
14788 EOF
14789
14790         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
14791     fi
14792 fi
14793
14794 if test -z "$TOOLKIT_VPATH" ; then
14795     TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
14796 fi
14797
14798 if test -n "$TOOLKIT" ; then
14799     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
14800 fi
14801
14802 lib_unicode_suffix=
14803 if test "$wxUSE_UNICODE" = "yes"; then
14804     lib_unicode_suffix=u
14805 fi
14806
14807 lib_debug_suffix=
14808 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
14809     lib_debug_suffix=d
14810 fi
14811
14812 TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
14813 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
14814
14815 if test "$cross_compiling" = "yes"; then
14816     TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
14817     TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
14818 fi
14819
14820 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
14821 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
14822
14823 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14824 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14825
14826 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
14827 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
14828 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
14829 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14830
14831 case "${host}" in
14832     *-*-cygwin* | *-*-mingw32* )
14833
14834                         
14835         
14836         if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
14837             WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14838             WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14839             WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
14840             WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
14841         else
14842             WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
14843             WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14844         fi
14845         ;;
14846
14847     *-*-darwin* )
14848                         if test "$wxUSE_MAC" = 1; then
14849                         WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r" 
14850             WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
14851         fi
14852         ;;
14853 esac
14854
14855 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
14856 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
14857
14858 WXCONFIG_LIBS="-l${WX_LIBRARY}"
14859 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
14860
14861 if test "$wxUSE_OPENGL" = "yes"; then
14862     WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
14863     WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
14864 fi
14865
14866
14867
14868 if test "$wxUSE_SHARED" = "yes"; then
14869     case "${host}" in
14870       *-pc-os2_emx | *-pc-os2-emx | \
14871       *-pc-msdosdjgpp )
14872                 wxUSE_SHARED=no
14873         echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
14874       ;;
14875     esac
14876 fi
14877
14878 if test "$wxUSE_SHARED" = "yes"; then
14879
14880         if test "$wxUSE_OPENGL" = "yes"; then
14881         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
14882         WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
14883     else
14884         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
14885         WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
14886     fi
14887
14888         if test "$GCC" = "yes"; then
14889                 PIC_FLAG="-fPIC"
14890     fi
14891
14892         SHARED_LD="${CXX} -shared -o"
14893
14894     case "${host}" in
14895       *-hp-hpux* )
14896                 if test "$GCC" == "yes"; then
14897             SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
14898         else
14899                         LDFLAGS="$LDFLAGS -L/usr/lib"
14900
14901             SHARED_LD="${CXX} -b -o"
14902             PIC_FLAG="+Z"
14903         fi
14904
14905                 if test "$wxUSE_OPENGL" = "yes"; then
14906             WX_ALL_INSTALLED="preinstall_gl"
14907             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
14908         else
14909             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
14910         fi
14911       ;;
14912
14913       *-*-linux* )
14914         if test "$GCC" != "yes"; then
14915             echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
14916 echo "configure:14917: checking for Intel compiler" >&5
14917 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
14918   echo $ac_n "(cached) $ac_c" 1>&6
14919 else
14920   
14921                 cat > conftest.$ac_ext <<EOF
14922 #line 14923 "configure"
14923 #include "confdefs.h"
14924
14925 int main() {
14926
14927                         #ifndef __INTEL_COMPILER
14928                         #error Not icc
14929                         #endif
14930                     
14931 ; return 0; }
14932 EOF
14933 if { (eval echo configure:14934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14934   rm -rf conftest*
14935   wx_cv_prog_icc=yes
14936 else
14937   echo "configure: failed program was:" >&5
14938   cat conftest.$ac_ext >&5
14939   rm -rf conftest*
14940   wx_cv_prog_icc=no
14941                 
14942 fi
14943 rm -f conftest*
14944             
14945 fi
14946
14947 echo "$ac_t""$wx_cv_prog_icc" 1>&6
14948             if test "$wx_cv_prog_icc" = "yes"; then
14949                 PIC_FLAG="-KPIC"
14950             fi
14951         fi
14952
14953         if test "$wxUSE_SONAME" = "yes" ; then
14954             SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
14955             SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
14956                         WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
14957         fi
14958       ;;
14959
14960       *-*-solaris2* )
14961         if test "$GCC" = yes ; then
14962                                     CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
14963         else
14964             SHARED_LD="${CXX} -G -o"
14965             PIC_FLAG="-KPIC"
14966             SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
14967             SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
14968         fi
14969       ;;
14970
14971       *-*-darwin* )
14972                         CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
14973         CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
14974                                         SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
14975         PIC_FLAG="-dynamic -fPIC"
14976         SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
14977         SONAME_FLAGS_GL=${SONAME_FLAGS}
14978       ;;
14979
14980       *-*-aix* )
14981                         # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
14982 set dummy makeC++SharedLib; ac_word=$2
14983 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14984 echo "configure:14985: checking for $ac_word" >&5
14985 if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
14986   echo $ac_n "(cached) $ac_c" 1>&6
14987 else
14988   if test -n "$AIX_CXX_LD"; then
14989   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
14990 else
14991   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
14992   ac_dummy="$PATH"
14993   for ac_dir in $ac_dummy; do
14994     test -z "$ac_dir" && ac_dir=.
14995     if test -f $ac_dir/$ac_word; then
14996       ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
14997       break
14998     fi
14999   done
15000   IFS="$ac_save_ifs"
15001   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
15002 fi
15003 fi
15004 AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
15005 if test -n "$AIX_CXX_LD"; then
15006   echo "$ac_t""$AIX_CXX_LD" 1>&6
15007 else
15008   echo "$ac_t""no" 1>&6
15009 fi
15010
15011
15012         SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
15013       ;;
15014
15015       *-*-cygwin* | *-*-mingw32* )
15016
15017         WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
15018
15019         SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
15020         TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
15021
15022         PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
15023
15024                 if test "$wxUSE_OPENGL" = "yes"; then
15025             WX_ALL_INSTALLED="preinstall_gl"
15026             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15027         else
15028             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15029         fi
15030       ;;
15031
15032       *-*-beos* )
15033                         SHARED_LD="${LD} -shared -o"
15034       ;;
15035
15036       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
15037       *-*-sunos4* | \
15038       *-*-irix5* | *-*-irix6* | \
15039       *-*-osf* | \
15040       *-*-dgux5* | \
15041       *-*-sysv5* )
15042               ;;
15043
15044       *)
15045         { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
15046     esac
15047
15048         if test "x$WX_TARGET_LIBRARY" = "x"; then
15049         WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
15050         WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
15051     fi
15052
15053         WX_TARGET_LIBRARY_TYPE="so"
15054     INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
15055 fi
15056
15057 if test "$wxUSE_SHARED" = "no"; then
15058
15059         if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
15060                 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15061     fi
15062
15063     if test "$wxUSE_MAC" = 1; then
15064         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15065     fi
15066
15067     if test "$wxUSE_OPENGL" = "yes"; then
15068         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
15069         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
15070     else
15071         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
15072     fi
15073
15074     WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
15075     WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
15076
15077     WX_TARGET_LIBRARY_TYPE="a"
15078     INSTALL_LIBRARY='$(INSTALL_DATA)'
15079 fi
15080
15081 if test "$wxUSE_MAC" = 1; then
15082         LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
15083     WX_ALL="${WX_ALL} ${LIBWXMACRES}"
15084     WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
15085     # Extract the first word of "Rez", so it can be a program name with args.
15086 set dummy Rez; ac_word=$2
15087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15088 echo "configure:15089: checking for $ac_word" >&5
15089 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
15090   echo $ac_n "(cached) $ac_c" 1>&6
15091 else
15092   if test -n "$RESCOMP"; then
15093   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
15094 else
15095   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
15096   ac_dummy="$PATH"
15097   for ac_dir in $ac_dummy; do
15098     test -z "$ac_dir" && ac_dir=.
15099     if test -f $ac_dir/$ac_word; then
15100       ac_cv_prog_RESCOMP="Rez"
15101       break
15102     fi
15103   done
15104   IFS="$ac_save_ifs"
15105   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
15106 fi
15107 fi
15108 RESCOMP="$ac_cv_prog_RESCOMP"
15109 if test -n "$RESCOMP"; then
15110   echo "$ac_t""$RESCOMP" 1>&6
15111 else
15112   echo "$ac_t""no" 1>&6
15113 fi
15114
15115     # Extract the first word of "DeRez", so it can be a program name with args.
15116 set dummy DeRez; ac_word=$2
15117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15118 echo "configure:15119: checking for $ac_word" >&5
15119 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
15120   echo $ac_n "(cached) $ac_c" 1>&6
15121 else
15122   if test -n "$DEREZ"; then
15123   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
15124 else
15125   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
15126   ac_dummy="$PATH"
15127   for ac_dir in $ac_dummy; do
15128     test -z "$ac_dir" && ac_dir=.
15129     if test -f $ac_dir/$ac_word; then
15130       ac_cv_prog_DEREZ="DeRez"
15131       break
15132     fi
15133   done
15134   IFS="$ac_save_ifs"
15135   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
15136 fi
15137 fi
15138 DEREZ="$ac_cv_prog_DEREZ"
15139 if test -n "$DEREZ"; then
15140   echo "$ac_t""$DEREZ" 1>&6
15141 else
15142   echo "$ac_t""no" 1>&6
15143 fi
15144
15145     MACOSX_BUNDLE="bundle"
15146     if test "$wxUSE_SHARED" = "yes"; then
15147                 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
15148         LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
15149     else
15150                 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
15151         LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
15152     fi
15153 else
15154     if test "$wxUSE_PM" = 1; then
15155         LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
15156     fi
15157 fi
15158
15159
15160 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
15161 echo "configure:15162: checking for ANSI C header files" >&5
15162 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
15163   echo $ac_n "(cached) $ac_c" 1>&6
15164 else
15165   cat > conftest.$ac_ext <<EOF
15166 #line 15167 "configure"
15167 #include "confdefs.h"
15168 #include <stdlib.h>
15169 #include <stdarg.h>
15170 #include <string.h>
15171 #include <float.h>
15172 EOF
15173 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15174 { (eval echo configure:15175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15175 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15176 if test -z "$ac_err"; then
15177   rm -rf conftest*
15178   ac_cv_header_stdc=yes
15179 else
15180   echo "$ac_err" >&5
15181   echo "configure: failed program was:" >&5
15182   cat conftest.$ac_ext >&5
15183   rm -rf conftest*
15184   ac_cv_header_stdc=no
15185 fi
15186 rm -f conftest*
15187
15188 if test $ac_cv_header_stdc = yes; then
15189   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15190 cat > conftest.$ac_ext <<EOF
15191 #line 15192 "configure"
15192 #include "confdefs.h"
15193 #include <string.h>
15194 EOF
15195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15196   egrep "memchr" >/dev/null 2>&1; then
15197   :
15198 else
15199   rm -rf conftest*
15200   ac_cv_header_stdc=no
15201 fi
15202 rm -f conftest*
15203
15204 fi
15205
15206 if test $ac_cv_header_stdc = yes; then
15207   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15208 cat > conftest.$ac_ext <<EOF
15209 #line 15210 "configure"
15210 #include "confdefs.h"
15211 #include <stdlib.h>
15212 EOF
15213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15214   egrep "free" >/dev/null 2>&1; then
15215   :
15216 else
15217   rm -rf conftest*
15218   ac_cv_header_stdc=no
15219 fi
15220 rm -f conftest*
15221
15222 fi
15223
15224 if test $ac_cv_header_stdc = yes; then
15225   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15226 if test "$cross_compiling" = yes; then
15227   :
15228 else
15229   cat > conftest.$ac_ext <<EOF
15230 #line 15231 "configure"
15231 #include "confdefs.h"
15232 #include <ctype.h>
15233 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15234 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15235 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15236 int main () { int i; for (i = 0; i < 256; i++)
15237 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15238 exit (0); }
15239
15240 EOF
15241 if { (eval echo configure:15242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15242 then
15243   :
15244 else
15245   echo "configure: failed program was:" >&5
15246   cat conftest.$ac_ext >&5
15247   rm -fr conftest*
15248   ac_cv_header_stdc=no
15249 fi
15250 rm -fr conftest*
15251 fi
15252
15253 fi
15254 fi
15255
15256 echo "$ac_t""$ac_cv_header_stdc" 1>&6
15257 if test $ac_cv_header_stdc = yes; then
15258   cat >> confdefs.h <<\EOF
15259 #define STDC_HEADERS 1
15260 EOF
15261
15262 fi
15263
15264 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
15265 echo "configure:15266: checking for mode_t" >&5
15266 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
15267   echo $ac_n "(cached) $ac_c" 1>&6
15268 else
15269   cat > conftest.$ac_ext <<EOF
15270 #line 15271 "configure"
15271 #include "confdefs.h"
15272 #include <sys/types.h>
15273 #if STDC_HEADERS
15274 #include <stdlib.h>
15275 #include <stddef.h>
15276 #endif
15277 EOF
15278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15279   egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15280   rm -rf conftest*
15281   ac_cv_type_mode_t=yes
15282 else
15283   rm -rf conftest*
15284   ac_cv_type_mode_t=no
15285 fi
15286 rm -f conftest*
15287
15288 fi
15289 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
15290 if test $ac_cv_type_mode_t = no; then
15291   cat >> confdefs.h <<\EOF
15292 #define mode_t int
15293 EOF
15294
15295 fi
15296
15297 echo $ac_n "checking for off_t""... $ac_c" 1>&6
15298 echo "configure:15299: checking for off_t" >&5
15299 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
15300   echo $ac_n "(cached) $ac_c" 1>&6
15301 else
15302   cat > conftest.$ac_ext <<EOF
15303 #line 15304 "configure"
15304 #include "confdefs.h"
15305 #include <sys/types.h>
15306 #if STDC_HEADERS
15307 #include <stdlib.h>
15308 #include <stddef.h>
15309 #endif
15310 EOF
15311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15312   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15313   rm -rf conftest*
15314   ac_cv_type_off_t=yes
15315 else
15316   rm -rf conftest*
15317   ac_cv_type_off_t=no
15318 fi
15319 rm -f conftest*
15320
15321 fi
15322 echo "$ac_t""$ac_cv_type_off_t" 1>&6
15323 if test $ac_cv_type_off_t = no; then
15324   cat >> confdefs.h <<\EOF
15325 #define off_t long
15326 EOF
15327
15328 fi
15329
15330 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
15331 echo "configure:15332: checking for pid_t" >&5
15332 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
15333   echo $ac_n "(cached) $ac_c" 1>&6
15334 else
15335   cat > conftest.$ac_ext <<EOF
15336 #line 15337 "configure"
15337 #include "confdefs.h"
15338 #include <sys/types.h>
15339 #if STDC_HEADERS
15340 #include <stdlib.h>
15341 #include <stddef.h>
15342 #endif
15343 EOF
15344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15345   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15346   rm -rf conftest*
15347   ac_cv_type_pid_t=yes
15348 else
15349   rm -rf conftest*
15350   ac_cv_type_pid_t=no
15351 fi
15352 rm -f conftest*
15353
15354 fi
15355 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
15356 if test $ac_cv_type_pid_t = no; then
15357   cat >> confdefs.h <<\EOF
15358 #define pid_t int
15359 EOF
15360
15361 fi
15362
15363 echo $ac_n "checking for size_t""... $ac_c" 1>&6
15364 echo "configure:15365: checking for size_t" >&5
15365 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
15366   echo $ac_n "(cached) $ac_c" 1>&6
15367 else
15368   cat > conftest.$ac_ext <<EOF
15369 #line 15370 "configure"
15370 #include "confdefs.h"
15371 #include <sys/types.h>
15372 #if STDC_HEADERS
15373 #include <stdlib.h>
15374 #include <stddef.h>
15375 #endif
15376 EOF
15377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15378   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15379   rm -rf conftest*
15380   ac_cv_type_size_t=yes
15381 else
15382   rm -rf conftest*
15383   ac_cv_type_size_t=no
15384 fi
15385 rm -f conftest*
15386
15387 fi
15388 echo "$ac_t""$ac_cv_type_size_t" 1>&6
15389 if test $ac_cv_type_size_t = no; then
15390   cat >> confdefs.h <<\EOF
15391 #define size_t unsigned
15392 EOF
15393
15394 fi
15395
15396 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
15397 echo "configure:15398: checking for uid_t in sys/types.h" >&5
15398 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
15399   echo $ac_n "(cached) $ac_c" 1>&6
15400 else
15401   cat > conftest.$ac_ext <<EOF
15402 #line 15403 "configure"
15403 #include "confdefs.h"
15404 #include <sys/types.h>
15405 EOF
15406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15407   egrep "uid_t" >/dev/null 2>&1; then
15408   rm -rf conftest*
15409   ac_cv_type_uid_t=yes
15410 else
15411   rm -rf conftest*
15412   ac_cv_type_uid_t=no
15413 fi
15414 rm -f conftest*
15415
15416 fi
15417
15418 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15419 if test $ac_cv_type_uid_t = no; then
15420   cat >> confdefs.h <<\EOF
15421 #define uid_t int
15422 EOF
15423
15424   cat >> confdefs.h <<\EOF
15425 #define gid_t int
15426 EOF
15427
15428 fi
15429
15430
15431
15432 ac_ext=C
15433 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15434 ac_cpp='$CXXCPP $CPPFLAGS'
15435 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15436 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15437 cross_compiling=$ac_cv_prog_cxx_cross
15438
15439 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
15440 echo "configure:15441: checking if size_t is unsigned int" >&5
15441 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
15442   echo $ac_n "(cached) $ac_c" 1>&6
15443 else
15444                           cat > conftest.$ac_ext <<EOF
15445 #line 15446 "configure"
15446 #include "confdefs.h"
15447 #include <stddef.h>
15448 int main() {
15449
15450             return 0; }
15451
15452             struct Foo { void foo(size_t); void foo(unsigned int); };
15453
15454             int bar() {
15455         
15456 ; return 0; }
15457 EOF
15458 if { (eval echo configure:15459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15459   rm -rf conftest*
15460   wx_cv_size_t_is_uint=no
15461 else
15462   echo "configure: failed program was:" >&5
15463   cat conftest.$ac_ext >&5
15464   rm -rf conftest*
15465   wx_cv_size_t_is_uint=yes
15466     
15467 fi
15468 rm -f conftest*
15469
15470 fi
15471
15472 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
15473
15474 if test "$wx_cv_size_t_is_uint" = "yes"; then
15475     cat >> confdefs.h <<\EOF
15476 #define wxSIZE_T_IS_UINT 1
15477 EOF
15478
15479 else
15480     echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
15481 echo "configure:15482: checking if size_t is unsigned long" >&5
15482 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
15483   echo $ac_n "(cached) $ac_c" 1>&6
15484 else
15485   cat > conftest.$ac_ext <<EOF
15486 #line 15487 "configure"
15487 #include "confdefs.h"
15488 #include <stddef.h>
15489 int main() {
15490
15491                 return 0; }
15492
15493                 struct Foo { void foo(size_t); void foo(unsigned long); };
15494
15495                 int bar() {
15496             
15497 ; return 0; }
15498 EOF
15499 if { (eval echo configure:15500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15500   rm -rf conftest*
15501   wx_cv_size_t_is_ulong=no
15502 else
15503   echo "configure: failed program was:" >&5
15504   cat conftest.$ac_ext >&5
15505   rm -rf conftest*
15506   wx_cv_size_t_is_ulong=yes
15507         
15508 fi
15509 rm -f conftest*
15510     
15511 fi
15512
15513 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
15514
15515     if test "$wx_cv_size_t_is_ulong" = "yes"; then
15516         cat >> confdefs.h <<\EOF
15517 #define wxSIZE_T_IS_ULONG 1
15518 EOF
15519
15520     fi
15521 fi
15522
15523 ac_ext=c
15524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15525 ac_cpp='$CPP $CPPFLAGS'
15526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15527 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15528 cross_compiling=$ac_cv_prog_cc_cross
15529
15530
15531
15532 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
15533 echo "configure:15534: checking for pw_gecos in struct passwd" >&5
15534 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
15535   echo $ac_n "(cached) $ac_c" 1>&6
15536 else
15537   
15538         cat > conftest.$ac_ext <<EOF
15539 #line 15540 "configure"
15540 #include "confdefs.h"
15541 #include <pwd.h>
15542 int main() {
15543
15544                 char *p;
15545                 struct passwd *pw;
15546                 p = pw->pw_gecos;
15547              
15548 ; return 0; }
15549 EOF
15550 if { (eval echo configure:15551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15551   rm -rf conftest*
15552   
15553                 wx_cv_struct_pw_gecos=yes
15554              
15555 else
15556   echo "configure: failed program was:" >&5
15557   cat conftest.$ac_ext >&5
15558   rm -rf conftest*
15559   
15560                 wx_cv_struct_pw_gecos=no
15561              
15562         
15563 fi
15564 rm -f conftest*
15565     
15566
15567 fi
15568
15569 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
15570
15571 if test "$wx_cv_struct_pw_gecos" = "yes"; then
15572     cat >> confdefs.h <<\EOF
15573 #define HAVE_PW_GECOS 1
15574 EOF
15575
15576 fi
15577
15578
15579 WCHAR_OK=0
15580 if test "$wx_cv_sizeof_wchar_t" != "0"; then
15581         WCHAR_LINK=
15582     for ac_func in wcslen
15583 do
15584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15585 echo "configure:15586: checking for $ac_func" >&5
15586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15587   echo $ac_n "(cached) $ac_c" 1>&6
15588 else
15589   cat > conftest.$ac_ext <<EOF
15590 #line 15591 "configure"
15591 #include "confdefs.h"
15592 /* System header to define __stub macros and hopefully few prototypes,
15593     which can conflict with char $ac_func(); below.  */
15594 #include <assert.h>
15595 /* Override any gcc2 internal prototype to avoid an error.  */
15596 /* We use char because int might match the return type of a gcc2
15597     builtin and then its argument prototype would still apply.  */
15598 char $ac_func();
15599
15600 int main() {
15601
15602 /* The GNU C library defines this for functions which it implements
15603     to always fail with ENOSYS.  Some functions are actually named
15604     something starting with __ and the normal name is an alias.  */
15605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15606 choke me
15607 #else
15608 $ac_func();
15609 #endif
15610
15611 ; return 0; }
15612 EOF
15613 if { (eval echo configure:15614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15614   rm -rf conftest*
15615   eval "ac_cv_func_$ac_func=yes"
15616 else
15617   echo "configure: failed program was:" >&5
15618   cat conftest.$ac_ext >&5
15619   rm -rf conftest*
15620   eval "ac_cv_func_$ac_func=no"
15621 fi
15622 rm -f conftest*
15623 fi
15624
15625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15626   echo "$ac_t""yes" 1>&6
15627     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15628   cat >> confdefs.h <<EOF
15629 #define $ac_tr_func 1
15630 EOF
15631  
15632                     cat >> confdefs.h <<\EOF
15633 #define HAVE_WCSLEN 1
15634 EOF
15635
15636                     WCHAR_OK=1
15637                   
15638 else
15639   echo "$ac_t""no" 1>&6
15640 fi
15641 done
15642
15643
15644     if test "$WCHAR_OK" = 0; then
15645         if test "$TOOLKIT" = "MSW"; then
15646             echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
15647 echo "configure:15648: checking for wcslen in -lmsvcrt" >&5
15648 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
15649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15650   echo $ac_n "(cached) $ac_c" 1>&6
15651 else
15652   ac_save_LIBS="$LIBS"
15653 LIBS="-lmsvcrt  $LIBS"
15654 cat > conftest.$ac_ext <<EOF
15655 #line 15656 "configure"
15656 #include "confdefs.h"
15657 /* Override any gcc2 internal prototype to avoid an error.  */
15658 /* We use char because int might match the return type of a gcc2
15659     builtin and then its argument prototype would still apply.  */
15660 char wcslen();
15661
15662 int main() {
15663 wcslen()
15664 ; return 0; }
15665 EOF
15666 if { (eval echo configure:15667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15667   rm -rf conftest*
15668   eval "ac_cv_lib_$ac_lib_var=yes"
15669 else
15670   echo "configure: failed program was:" >&5
15671   cat conftest.$ac_ext >&5
15672   rm -rf conftest*
15673   eval "ac_cv_lib_$ac_lib_var=no"
15674 fi
15675 rm -f conftest*
15676 LIBS="$ac_save_LIBS"
15677
15678 fi
15679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15680   echo "$ac_t""yes" 1>&6
15681   
15682                 cat >> confdefs.h <<\EOF
15683 #define HAVE_WCSLEN 1
15684 EOF
15685
15686                 WCHAR_OK=1
15687             
15688 else
15689   echo "$ac_t""no" 1>&6
15690 fi
15691
15692         else
15693             echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
15694 echo "configure:15695: checking for wcslen in -lw" >&5
15695 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
15696 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15697   echo $ac_n "(cached) $ac_c" 1>&6
15698 else
15699   ac_save_LIBS="$LIBS"
15700 LIBS="-lw  $LIBS"
15701 cat > conftest.$ac_ext <<EOF
15702 #line 15703 "configure"
15703 #include "confdefs.h"
15704 /* Override any gcc2 internal prototype to avoid an error.  */
15705 /* We use char because int might match the return type of a gcc2
15706     builtin and then its argument prototype would still apply.  */
15707 char wcslen();
15708
15709 int main() {
15710 wcslen()
15711 ; return 0; }
15712 EOF
15713 if { (eval echo configure:15714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15714   rm -rf conftest*
15715   eval "ac_cv_lib_$ac_lib_var=yes"
15716 else
15717   echo "configure: failed program was:" >&5
15718   cat conftest.$ac_ext >&5
15719   rm -rf conftest*
15720   eval "ac_cv_lib_$ac_lib_var=no"
15721 fi
15722 rm -f conftest*
15723 LIBS="$ac_save_LIBS"
15724
15725 fi
15726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15727   echo "$ac_t""yes" 1>&6
15728   
15729                             cat >> confdefs.h <<\EOF
15730 #define HAVE_WCSLEN 1
15731 EOF
15732
15733                             WCHAR_LINK=" -lw"
15734                             WCHAR_OK=1
15735                         
15736 else
15737   echo "$ac_t""no" 1>&6
15738 fi
15739
15740         fi
15741     fi
15742 fi
15743
15744 if test "$WCHAR_OK" = 1; then
15745     cat >> confdefs.h <<\EOF
15746 #define wxUSE_WCHAR_T 1
15747 EOF
15748
15749
15750             for ac_func in wcsrtombs
15751 do
15752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15753 echo "configure:15754: checking for $ac_func" >&5
15754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15755   echo $ac_n "(cached) $ac_c" 1>&6
15756 else
15757   cat > conftest.$ac_ext <<EOF
15758 #line 15759 "configure"
15759 #include "confdefs.h"
15760 /* System header to define __stub macros and hopefully few prototypes,
15761     which can conflict with char $ac_func(); below.  */
15762 #include <assert.h>
15763 /* Override any gcc2 internal prototype to avoid an error.  */
15764 /* We use char because int might match the return type of a gcc2
15765     builtin and then its argument prototype would still apply.  */
15766 char $ac_func();
15767
15768 int main() {
15769
15770 /* The GNU C library defines this for functions which it implements
15771     to always fail with ENOSYS.  Some functions are actually named
15772     something starting with __ and the normal name is an alias.  */
15773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15774 choke me
15775 #else
15776 $ac_func();
15777 #endif
15778
15779 ; return 0; }
15780 EOF
15781 if { (eval echo configure:15782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15782   rm -rf conftest*
15783   eval "ac_cv_func_$ac_func=yes"
15784 else
15785   echo "configure: failed program was:" >&5
15786   cat conftest.$ac_ext >&5
15787   rm -rf conftest*
15788   eval "ac_cv_func_$ac_func=no"
15789 fi
15790 rm -f conftest*
15791 fi
15792
15793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15794   echo "$ac_t""yes" 1>&6
15795     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15796   cat >> confdefs.h <<EOF
15797 #define $ac_tr_func 1
15798 EOF
15799  
15800 else
15801   echo "$ac_t""no" 1>&6
15802 fi
15803 done
15804
15805 else
15806         if test "$USE_DARWIN" = 1; then
15807         cat >> confdefs.h <<\EOF
15808 #define wxUSE_WCHAR_T 1
15809 EOF
15810
15811     else
15812         echo "configure: warning: Wide character support is unavailable" 1>&2
15813     fi
15814 fi
15815
15816 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15817 echo "configure:15818: checking for vprintf" >&5
15818 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
15819   echo $ac_n "(cached) $ac_c" 1>&6
15820 else
15821   cat > conftest.$ac_ext <<EOF
15822 #line 15823 "configure"
15823 #include "confdefs.h"
15824 /* System header to define __stub macros and hopefully few prototypes,
15825     which can conflict with char vprintf(); below.  */
15826 #include <assert.h>
15827 /* Override any gcc2 internal prototype to avoid an error.  */
15828 /* We use char because int might match the return type of a gcc2
15829     builtin and then its argument prototype would still apply.  */
15830 char vprintf();
15831
15832 int main() {
15833
15834 /* The GNU C library defines this for functions which it implements
15835     to always fail with ENOSYS.  Some functions are actually named
15836     something starting with __ and the normal name is an alias.  */
15837 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15838 choke me
15839 #else
15840 vprintf();
15841 #endif
15842
15843 ; return 0; }
15844 EOF
15845 if { (eval echo configure:15846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15846   rm -rf conftest*
15847   eval "ac_cv_func_vprintf=yes"
15848 else
15849   echo "configure: failed program was:" >&5
15850   cat conftest.$ac_ext >&5
15851   rm -rf conftest*
15852   eval "ac_cv_func_vprintf=no"
15853 fi
15854 rm -f conftest*
15855 fi
15856
15857 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15858   echo "$ac_t""yes" 1>&6
15859   cat >> confdefs.h <<\EOF
15860 #define HAVE_VPRINTF 1
15861 EOF
15862
15863 else
15864   echo "$ac_t""no" 1>&6
15865 fi
15866
15867 if test "$ac_cv_func_vprintf" != yes; then
15868 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15869 echo "configure:15870: checking for _doprnt" >&5
15870 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
15871   echo $ac_n "(cached) $ac_c" 1>&6
15872 else
15873   cat > conftest.$ac_ext <<EOF
15874 #line 15875 "configure"
15875 #include "confdefs.h"
15876 /* System header to define __stub macros and hopefully few prototypes,
15877     which can conflict with char _doprnt(); below.  */
15878 #include <assert.h>
15879 /* Override any gcc2 internal prototype to avoid an error.  */
15880 /* We use char because int might match the return type of a gcc2
15881     builtin and then its argument prototype would still apply.  */
15882 char _doprnt();
15883
15884 int main() {
15885
15886 /* The GNU C library defines this for functions which it implements
15887     to always fail with ENOSYS.  Some functions are actually named
15888     something starting with __ and the normal name is an alias.  */
15889 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15890 choke me
15891 #else
15892 _doprnt();
15893 #endif
15894
15895 ; return 0; }
15896 EOF
15897 if { (eval echo configure:15898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15898   rm -rf conftest*
15899   eval "ac_cv_func__doprnt=yes"
15900 else
15901   echo "configure: failed program was:" >&5
15902   cat conftest.$ac_ext >&5
15903   rm -rf conftest*
15904   eval "ac_cv_func__doprnt=no"
15905 fi
15906 rm -f conftest*
15907 fi
15908
15909 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15910   echo "$ac_t""yes" 1>&6
15911   cat >> confdefs.h <<\EOF
15912 #define HAVE_DOPRNT 1
15913 EOF
15914
15915 else
15916   echo "$ac_t""no" 1>&6
15917 fi
15918
15919 fi
15920
15921
15922
15923
15924
15925
15926 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
15927 echo "configure:15928: checking for vsnprintf" >&5
15928 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
15929   echo $ac_n "(cached) $ac_c" 1>&6
15930 else
15931   
15932   cat > conftest.$ac_ext <<EOF
15933 #line 15934 "configure"
15934 #include "confdefs.h"
15935
15936                     #include <stdio.h>
15937                     #include <stdarg.h>
15938                  
15939 int main() {
15940
15941                     int wx_test_vsnprintf(const char *, ...);
15942
15943                     wx_test_vsnprintf("%s");
15944                     return 0;
15945                  }
15946
15947                  int wx_test_vsnprintf(const char *fmt, ...)
15948                  {
15949                     char *s;
15950
15951                     va_list argp;
15952                     va_start(argp, fmt);
15953                     vsnprintf(s, 42, fmt, argp);
15954                     va_end(argp);
15955                  
15956 ; return 0; }
15957 EOF
15958 if { (eval echo configure:15959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15959   rm -rf conftest*
15960   
15961                     wx_cv_func_vsnprintf=yes
15962                  
15963 else
15964   echo "configure: failed program was:" >&5
15965   cat conftest.$ac_ext >&5
15966   rm -rf conftest*
15967   
15968                     cat > conftest.$ac_ext <<EOF
15969 #line 15970 "configure"
15970 #include "confdefs.h"
15971
15972                                       #include <stdio.h>
15973                                       #include <stdarg.h>
15974                                    
15975 int main() {
15976
15977                                       int wx_test_vsnprintf(const char *, ...);
15978
15979                                       wx_test_vsnprintf("%s");
15980                                       return 0;
15981                                    }
15982
15983                                    int wx_test_vsnprintf(const char *fmt, ...)
15984                                    {
15985                                       char *s;
15986
15987                                       va_list argp;
15988                                       va_start(argp, fmt);
15989                                       _vsnprintf(s, 42, fmt, argp);
15990                                       va_end(argp);
15991                                    
15992 ; return 0; }
15993 EOF
15994 if { (eval echo configure:15995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15995   rm -rf conftest*
15996   
15997                                       wx_cv_func_vsnprintf=yes
15998                                    
15999 else
16000   echo "configure: failed program was:" >&5
16001   cat conftest.$ac_ext >&5
16002   rm -rf conftest*
16003   
16004                                       wx_cv_func_vsnprintf=no
16005                                    
16006 fi
16007 rm -f conftest*
16008                  
16009 fi
16010 rm -f conftest*
16011
16012 fi
16013
16014 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
16015
16016 if test "$wx_cv_func_vsnprintf" = yes; then
16017     cat >> confdefs.h <<\EOF
16018 #define HAVE_VSNPRINTF 1
16019 EOF
16020
16021 else
16022     echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
16023 fi
16024
16025 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
16026 echo "configure:16027: checking for vsscanf" >&5
16027 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
16028   echo $ac_n "(cached) $ac_c" 1>&6
16029 else
16030   
16031   cat > conftest.$ac_ext <<EOF
16032 #line 16033 "configure"
16033 #include "confdefs.h"
16034
16035                     #include <stdio.h>
16036                     #include <stdarg.h>
16037                 
16038 int main() {
16039
16040                     int wx_test_vsscanf(const char *, ...);
16041
16042                     wx_test_vsscanf("%d");
16043                     return 0;
16044                 }
16045
16046                 int wx_test_vsscanf(const char *fmt, ...)
16047                 {
16048                     va_list argp;
16049                     va_start(argp, fmt);
16050                     vsscanf("42", fmt, argp);
16051                     va_end(argp);
16052                 
16053 ; return 0; }
16054 EOF
16055 if { (eval echo configure:16056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16056   rm -rf conftest*
16057   
16058                     wx_cv_func_vsscanf=yes
16059                 
16060 else
16061   echo "configure: failed program was:" >&5
16062   cat conftest.$ac_ext >&5
16063   rm -rf conftest*
16064   
16065                     wx_cv_func_vsscanf=no
16066                 
16067 fi
16068 rm -f conftest*
16069
16070 fi
16071
16072 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
16073
16074 if test "$wx_cv_func_vsscanf" = yes; then
16075     cat >> confdefs.h <<\EOF
16076 #define HAVE_VSSCANF 1
16077 EOF
16078
16079 fi
16080
16081 if test "$TOOLKIT" != "MSW"; then
16082
16083
16084
16085 ac_ext=C
16086 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16087 ac_cpp='$CXXCPP $CPPFLAGS'
16088 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16089 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16090 cross_compiling=$ac_cv_prog_cxx_cross
16091
16092
16093     
16094   # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16095 if test "${with_libiconv_prefix+set}" = set; then
16096   withval="$with_libiconv_prefix"
16097   
16098     for dir in `echo "$withval" | tr : ' '`; do
16099       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
16100       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
16101     done
16102    
16103 fi
16104
16105
16106   echo $ac_n "checking for iconv""... $ac_c" 1>&6
16107 echo "configure:16108: checking for iconv" >&5
16108 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
16109   echo $ac_n "(cached) $ac_c" 1>&6
16110 else
16111   
16112     am_cv_func_iconv="no, consider installing GNU libiconv"
16113     am_cv_lib_iconv=no
16114     cat > conftest.$ac_ext <<EOF
16115 #line 16116 "configure"
16116 #include "confdefs.h"
16117 #include <stdlib.h>
16118 #include <iconv.h>
16119 int main() {
16120 iconv_t cd = iconv_open("","");
16121        iconv(cd,NULL,NULL,NULL,NULL);
16122        iconv_close(cd);
16123 ; return 0; }
16124 EOF
16125 if { (eval echo configure:16126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16126   rm -rf conftest*
16127   am_cv_func_iconv=yes
16128 else
16129   echo "configure: failed program was:" >&5
16130   cat conftest.$ac_ext >&5
16131 fi
16132 rm -f conftest*
16133     if test "$am_cv_func_iconv" != yes; then
16134       am_save_LIBS="$LIBS"
16135       LIBS="$LIBS -liconv"
16136       cat > conftest.$ac_ext <<EOF
16137 #line 16138 "configure"
16138 #include "confdefs.h"
16139 #include <stdlib.h>
16140 #include <iconv.h>
16141 int main() {
16142 iconv_t cd = iconv_open("","");
16143          iconv(cd,NULL,NULL,NULL,NULL);
16144          iconv_close(cd);
16145 ; return 0; }
16146 EOF
16147 if { (eval echo configure:16148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16148   rm -rf conftest*
16149   am_cv_lib_iconv=yes
16150         am_cv_func_iconv=yes
16151 else
16152   echo "configure: failed program was:" >&5
16153   cat conftest.$ac_ext >&5
16154 fi
16155 rm -f conftest*
16156       LIBS="$am_save_LIBS"
16157     fi
16158   
16159 fi
16160
16161 echo "$ac_t""$am_cv_func_iconv" 1>&6
16162   if test "$am_cv_func_iconv" = yes; then
16163     cat >> confdefs.h <<\EOF
16164 #define HAVE_ICONV 1
16165 EOF
16166
16167     echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
16168 echo "configure:16169: checking if iconv needs const" >&5
16169 if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
16170   echo $ac_n "(cached) $ac_c" 1>&6
16171 else
16172   cat > conftest.$ac_ext <<EOF
16173 #line 16174 "configure"
16174 #include "confdefs.h"
16175
16176 #include <stdlib.h>
16177 #include <iconv.h>
16178 extern
16179 #ifdef __cplusplus
16180 "C"
16181 #endif
16182 #if defined(__STDC__) || defined(__cplusplus)
16183 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16184 #else
16185 size_t iconv();
16186 #endif
16187         
16188 int main() {
16189
16190 ; return 0; }
16191 EOF
16192 if { (eval echo configure:16193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16193   rm -rf conftest*
16194   wx_cv_func_iconv_const="no"
16195 else
16196   echo "configure: failed program was:" >&5
16197   cat conftest.$ac_ext >&5
16198   rm -rf conftest*
16199   wx_cv_func_iconv_const="yes"
16200       
16201 fi
16202 rm -f conftest*
16203     
16204 fi
16205
16206 echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
16207
16208     iconv_const=
16209     if test "x$wx_cv_func_iconv_const" = "xyes"; then
16210         iconv_const="const"
16211     fi
16212
16213     cat >> confdefs.h <<EOF
16214 #define ICONV_CONST $iconv_const
16215 EOF
16216
16217   fi
16218   LIBICONV=
16219   if test "$am_cv_lib_iconv" = yes; then
16220     LIBICONV="-liconv"
16221   fi
16222   
16223
16224 LIBS="$LIBICONV $LIBS"
16225 ac_ext=c
16226 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16227 ac_cpp='$CPP $CPPFLAGS'
16228 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16229 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16230 cross_compiling=$ac_cv_prog_cc_cross
16231
16232
16233 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
16234     for ac_func in sigaction
16235 do
16236 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16237 echo "configure:16238: checking for $ac_func" >&5
16238 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16239   echo $ac_n "(cached) $ac_c" 1>&6
16240 else
16241   cat > conftest.$ac_ext <<EOF
16242 #line 16243 "configure"
16243 #include "confdefs.h"
16244 /* System header to define __stub macros and hopefully few prototypes,
16245     which can conflict with char $ac_func(); below.  */
16246 #include <assert.h>
16247 /* Override any gcc2 internal prototype to avoid an error.  */
16248 /* We use char because int might match the return type of a gcc2
16249     builtin and then its argument prototype would still apply.  */
16250 char $ac_func();
16251
16252 int main() {
16253
16254 /* The GNU C library defines this for functions which it implements
16255     to always fail with ENOSYS.  Some functions are actually named
16256     something starting with __ and the normal name is an alias.  */
16257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16258 choke me
16259 #else
16260 $ac_func();
16261 #endif
16262
16263 ; return 0; }
16264 EOF
16265 if { (eval echo configure:16266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16266   rm -rf conftest*
16267   eval "ac_cv_func_$ac_func=yes"
16268 else
16269   echo "configure: failed program was:" >&5
16270   cat conftest.$ac_ext >&5
16271   rm -rf conftest*
16272   eval "ac_cv_func_$ac_func=no"
16273 fi
16274 rm -f conftest*
16275 fi
16276
16277 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16278   echo "$ac_t""yes" 1>&6
16279     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16280   cat >> confdefs.h <<EOF
16281 #define $ac_tr_func 1
16282 EOF
16283  
16284 else
16285   echo "$ac_t""no" 1>&6
16286 fi
16287 done
16288
16289
16290     if test "$ac_cv_func_sigaction" = "no"; then
16291         echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
16292         wxUSE_ON_FATAL_EXCEPTION=no
16293     fi
16294
16295     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16296       
16297       ac_ext=C
16298 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16299 ac_cpp='$CXXCPP $CPPFLAGS'
16300 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16301 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16302 cross_compiling=$ac_cv_prog_cxx_cross
16303
16304
16305       echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
16306 echo "configure:16307: checking for sa_handler type" >&5
16307 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
16308   echo $ac_n "(cached) $ac_c" 1>&6
16309 else
16310   
16311         cat > conftest.$ac_ext <<EOF
16312 #line 16313 "configure"
16313 #include "confdefs.h"
16314 #include <signal.h>
16315 int main() {
16316
16317                         extern void testSigHandler(int);
16318
16319                         struct sigaction sa;
16320                         sa.sa_handler = testSigHandler;
16321                      
16322 ; return 0; }
16323 EOF
16324 if { (eval echo configure:16325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16325   rm -rf conftest*
16326   
16327                         wx_cv_type_sa_handler=int
16328                      
16329 else
16330   echo "configure: failed program was:" >&5
16331   cat conftest.$ac_ext >&5
16332   rm -rf conftest*
16333   
16334                         wx_cv_type_sa_handler=void
16335                      
16336 fi
16337 rm -f conftest*
16338       
16339 fi
16340
16341 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
16342
16343       ac_ext=c
16344 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16345 ac_cpp='$CPP $CPPFLAGS'
16346 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16347 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16348 cross_compiling=$ac_cv_prog_cc_cross
16349
16350
16351       cat >> confdefs.h <<EOF
16352 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
16353 EOF
16354
16355     fi
16356 fi
16357
16358 for ac_func in vfork
16359 do
16360 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16361 echo "configure:16362: checking for $ac_func" >&5
16362 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16363   echo $ac_n "(cached) $ac_c" 1>&6
16364 else
16365   cat > conftest.$ac_ext <<EOF
16366 #line 16367 "configure"
16367 #include "confdefs.h"
16368 /* System header to define __stub macros and hopefully few prototypes,
16369     which can conflict with char $ac_func(); below.  */
16370 #include <assert.h>
16371 /* Override any gcc2 internal prototype to avoid an error.  */
16372 /* We use char because int might match the return type of a gcc2
16373     builtin and then its argument prototype would still apply.  */
16374 char $ac_func();
16375
16376 int main() {
16377
16378 /* The GNU C library defines this for functions which it implements
16379     to always fail with ENOSYS.  Some functions are actually named
16380     something starting with __ and the normal name is an alias.  */
16381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16382 choke me
16383 #else
16384 $ac_func();
16385 #endif
16386
16387 ; return 0; }
16388 EOF
16389 if { (eval echo configure:16390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16390   rm -rf conftest*
16391   eval "ac_cv_func_$ac_func=yes"
16392 else
16393   echo "configure: failed program was:" >&5
16394   cat conftest.$ac_ext >&5
16395   rm -rf conftest*
16396   eval "ac_cv_func_$ac_func=no"
16397 fi
16398 rm -f conftest*
16399 fi
16400
16401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16402   echo "$ac_t""yes" 1>&6
16403     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16404   cat >> confdefs.h <<EOF
16405 #define $ac_tr_func 1
16406 EOF
16407  
16408 else
16409   echo "$ac_t""no" 1>&6
16410 fi
16411 done
16412
16413
16414 for ac_func in mkstemp mktemp
16415 do
16416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16417 echo "configure:16418: checking for $ac_func" >&5
16418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16419   echo $ac_n "(cached) $ac_c" 1>&6
16420 else
16421   cat > conftest.$ac_ext <<EOF
16422 #line 16423 "configure"
16423 #include "confdefs.h"
16424 /* System header to define __stub macros and hopefully few prototypes,
16425     which can conflict with char $ac_func(); below.  */
16426 #include <assert.h>
16427 /* Override any gcc2 internal prototype to avoid an error.  */
16428 /* We use char because int might match the return type of a gcc2
16429     builtin and then its argument prototype would still apply.  */
16430 char $ac_func();
16431
16432 int main() {
16433
16434 /* The GNU C library defines this for functions which it implements
16435     to always fail with ENOSYS.  Some functions are actually named
16436     something starting with __ and the normal name is an alias.  */
16437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16438 choke me
16439 #else
16440 $ac_func();
16441 #endif
16442
16443 ; return 0; }
16444 EOF
16445 if { (eval echo configure:16446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16446   rm -rf conftest*
16447   eval "ac_cv_func_$ac_func=yes"
16448 else
16449   echo "configure: failed program was:" >&5
16450   cat conftest.$ac_ext >&5
16451   rm -rf conftest*
16452   eval "ac_cv_func_$ac_func=no"
16453 fi
16454 rm -f conftest*
16455 fi
16456
16457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16458   echo "$ac_t""yes" 1>&6
16459     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16460   cat >> confdefs.h <<EOF
16461 #define $ac_tr_func 1
16462 EOF
16463  break
16464 else
16465   echo "$ac_t""no" 1>&6
16466 fi
16467 done
16468
16469
16470 echo $ac_n "checking for statfs""... $ac_c" 1>&6
16471 echo "configure:16472: checking for statfs" >&5
16472 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16473   echo $ac_n "(cached) $ac_c" 1>&6
16474 else
16475   cat > conftest.$ac_ext <<EOF
16476 #line 16477 "configure"
16477 #include "confdefs.h"
16478
16479              #if defined(__BSD__)
16480                #include <sys/param.h>
16481                #include <sys/mount.h>
16482              #else
16483                #include <sys/vfs.h>
16484              #endif
16485         
16486 int main() {
16487
16488              long l;
16489              struct statfs fs;
16490              statfs("/", &fs);
16491              l = fs.f_bsize;
16492              l += fs.f_blocks;
16493              l += fs.f_bavail;
16494         
16495 ; return 0; }
16496 EOF
16497 if { (eval echo configure:16498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16498   rm -rf conftest*
16499   
16500              wx_cv_func_statfs=yes
16501         
16502 else
16503   echo "configure: failed program was:" >&5
16504   cat conftest.$ac_ext >&5
16505   rm -rf conftest*
16506   
16507              wx_cv_func_statfs=no
16508         
16509     
16510 fi
16511 rm -f conftest*
16512
16513 fi
16514
16515 echo "$ac_t""$wx_cv_func_statfs" 1>&6
16516
16517 if test "$wx_cv_func_statfs" = "yes"; then
16518     cat >> confdefs.h <<\EOF
16519 #define HAVE_STATFS 1
16520 EOF
16521
16522 else
16523     echo $ac_n "checking for statvfs""... $ac_c" 1>&6
16524 echo "configure:16525: checking for statvfs" >&5
16525 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+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
16532                  #include <sys/statvfs.h>
16533             
16534 int main() {
16535
16536                  long l;
16537                  struct statvfs fs;
16538                  statvfs("/", &fs);
16539                  l = fs.f_bsize;
16540                  l += fs.f_blocks;
16541                  l += fs.f_bavail;
16542             
16543 ; return 0; }
16544 EOF
16545 if { (eval echo configure:16546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16546   rm -rf conftest*
16547   
16548                  wx_cv_func_statvfs=yes
16549             
16550 else
16551   echo "configure: failed program was:" >&5
16552   cat conftest.$ac_ext >&5
16553   rm -rf conftest*
16554   
16555                  wx_cv_func_statvfs=no
16556             
16557         
16558 fi
16559 rm -f conftest*
16560     
16561 fi
16562
16563 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
16564
16565     if test "$wx_cv_func_statvfs" = "yes"; then
16566         cat >> confdefs.h <<\EOF
16567 #define HAVE_STATVFS 1
16568 EOF
16569
16570     else
16571         echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16572     fi
16573 fi
16574
16575 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16576     for ac_func in fcntl flock
16577 do
16578 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16579 echo "configure:16580: checking for $ac_func" >&5
16580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16581   echo $ac_n "(cached) $ac_c" 1>&6
16582 else
16583   cat > conftest.$ac_ext <<EOF
16584 #line 16585 "configure"
16585 #include "confdefs.h"
16586 /* System header to define __stub macros and hopefully few prototypes,
16587     which can conflict with char $ac_func(); below.  */
16588 #include <assert.h>
16589 /* Override any gcc2 internal prototype to avoid an error.  */
16590 /* We use char because int might match the return type of a gcc2
16591     builtin and then its argument prototype would still apply.  */
16592 char $ac_func();
16593
16594 int main() {
16595
16596 /* The GNU C library defines this for functions which it implements
16597     to always fail with ENOSYS.  Some functions are actually named
16598     something starting with __ and the normal name is an alias.  */
16599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16600 choke me
16601 #else
16602 $ac_func();
16603 #endif
16604
16605 ; return 0; }
16606 EOF
16607 if { (eval echo configure:16608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16608   rm -rf conftest*
16609   eval "ac_cv_func_$ac_func=yes"
16610 else
16611   echo "configure: failed program was:" >&5
16612   cat conftest.$ac_ext >&5
16613   rm -rf conftest*
16614   eval "ac_cv_func_$ac_func=no"
16615 fi
16616 rm -f conftest*
16617 fi
16618
16619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16620   echo "$ac_t""yes" 1>&6
16621     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16622   cat >> confdefs.h <<EOF
16623 #define $ac_tr_func 1
16624 EOF
16625  break
16626 else
16627   echo "$ac_t""no" 1>&6
16628 fi
16629 done
16630
16631
16632     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16633         echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16634         wxUSE_SNGLINST_CHECKER=no
16635     fi
16636 fi
16637
16638 for ac_func in timegm
16639 do
16640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16641 echo "configure:16642: checking for $ac_func" >&5
16642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16643   echo $ac_n "(cached) $ac_c" 1>&6
16644 else
16645   cat > conftest.$ac_ext <<EOF
16646 #line 16647 "configure"
16647 #include "confdefs.h"
16648 /* System header to define __stub macros and hopefully few prototypes,
16649     which can conflict with char $ac_func(); below.  */
16650 #include <assert.h>
16651 /* Override any gcc2 internal prototype to avoid an error.  */
16652 /* We use char because int might match the return type of a gcc2
16653     builtin and then its argument prototype would still apply.  */
16654 char $ac_func();
16655
16656 int main() {
16657
16658 /* The GNU C library defines this for functions which it implements
16659     to always fail with ENOSYS.  Some functions are actually named
16660     something starting with __ and the normal name is an alias.  */
16661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16662 choke me
16663 #else
16664 $ac_func();
16665 #endif
16666
16667 ; return 0; }
16668 EOF
16669 if { (eval echo configure:16670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16670   rm -rf conftest*
16671   eval "ac_cv_func_$ac_func=yes"
16672 else
16673   echo "configure: failed program was:" >&5
16674   cat conftest.$ac_ext >&5
16675   rm -rf conftest*
16676   eval "ac_cv_func_$ac_func=no"
16677 fi
16678 rm -f conftest*
16679 fi
16680
16681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16682   echo "$ac_t""yes" 1>&6
16683     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16684   cat >> confdefs.h <<EOF
16685 #define $ac_tr_func 1
16686 EOF
16687  
16688 else
16689   echo "$ac_t""no" 1>&6
16690 fi
16691 done
16692
16693
16694 for ac_func in putenv setenv
16695 do
16696 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16697 echo "configure:16698: checking for $ac_func" >&5
16698 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16699   echo $ac_n "(cached) $ac_c" 1>&6
16700 else
16701   cat > conftest.$ac_ext <<EOF
16702 #line 16703 "configure"
16703 #include "confdefs.h"
16704 /* System header to define __stub macros and hopefully few prototypes,
16705     which can conflict with char $ac_func(); below.  */
16706 #include <assert.h>
16707 /* Override any gcc2 internal prototype to avoid an error.  */
16708 /* We use char because int might match the return type of a gcc2
16709     builtin and then its argument prototype would still apply.  */
16710 char $ac_func();
16711
16712 int main() {
16713
16714 /* The GNU C library defines this for functions which it implements
16715     to always fail with ENOSYS.  Some functions are actually named
16716     something starting with __ and the normal name is an alias.  */
16717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16718 choke me
16719 #else
16720 $ac_func();
16721 #endif
16722
16723 ; return 0; }
16724 EOF
16725 if { (eval echo configure:16726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16726   rm -rf conftest*
16727   eval "ac_cv_func_$ac_func=yes"
16728 else
16729   echo "configure: failed program was:" >&5
16730   cat conftest.$ac_ext >&5
16731   rm -rf conftest*
16732   eval "ac_cv_func_$ac_func=no"
16733 fi
16734 rm -f conftest*
16735 fi
16736
16737 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16738   echo "$ac_t""yes" 1>&6
16739     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16740   cat >> confdefs.h <<EOF
16741 #define $ac_tr_func 1
16742 EOF
16743  break
16744 else
16745   echo "$ac_t""no" 1>&6
16746 fi
16747 done
16748
16749
16750 HAVE_SOME_SLEEP_FUNC=0
16751 if test "$USE_BEOS" = 1; then
16752             cat >> confdefs.h <<\EOF
16753 #define HAVE_SLEEP 1
16754 EOF
16755
16756     HAVE_SOME_SLEEP_FUNC=1
16757 fi
16758
16759 if test "$USE_DARWIN" = 1; then
16760             cat >> confdefs.h <<\EOF
16761 #define HAVE_USLEEP 1
16762 EOF
16763
16764     HAVE_SOME_SLEEP_FUNC=1
16765 fi
16766
16767 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16768         POSIX4_LINK=
16769     for ac_func in nanosleep
16770 do
16771 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16772 echo "configure:16773: checking for $ac_func" >&5
16773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16774   echo $ac_n "(cached) $ac_c" 1>&6
16775 else
16776   cat > conftest.$ac_ext <<EOF
16777 #line 16778 "configure"
16778 #include "confdefs.h"
16779 /* System header to define __stub macros and hopefully few prototypes,
16780     which can conflict with char $ac_func(); below.  */
16781 #include <assert.h>
16782 /* Override any gcc2 internal prototype to avoid an error.  */
16783 /* We use char because int might match the return type of a gcc2
16784     builtin and then its argument prototype would still apply.  */
16785 char $ac_func();
16786
16787 int main() {
16788
16789 /* The GNU C library defines this for functions which it implements
16790     to always fail with ENOSYS.  Some functions are actually named
16791     something starting with __ and the normal name is an alias.  */
16792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16793 choke me
16794 #else
16795 $ac_func();
16796 #endif
16797
16798 ; return 0; }
16799 EOF
16800 if { (eval echo configure:16801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16801   rm -rf conftest*
16802   eval "ac_cv_func_$ac_func=yes"
16803 else
16804   echo "configure: failed program was:" >&5
16805   cat conftest.$ac_ext >&5
16806   rm -rf conftest*
16807   eval "ac_cv_func_$ac_func=no"
16808 fi
16809 rm -f conftest*
16810 fi
16811
16812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16813   echo "$ac_t""yes" 1>&6
16814     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16815   cat >> confdefs.h <<EOF
16816 #define $ac_tr_func 1
16817 EOF
16818  cat >> confdefs.h <<\EOF
16819 #define HAVE_NANOSLEEP 1
16820 EOF
16821
16822 else
16823   echo "$ac_t""no" 1>&6
16824 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
16825 echo "configure:16826: checking for nanosleep in -lposix4" >&5
16826 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
16827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16828   echo $ac_n "(cached) $ac_c" 1>&6
16829 else
16830   ac_save_LIBS="$LIBS"
16831 LIBS="-lposix4  $LIBS"
16832 cat > conftest.$ac_ext <<EOF
16833 #line 16834 "configure"
16834 #include "confdefs.h"
16835 /* Override any gcc2 internal prototype to avoid an error.  */
16836 /* We use char because int might match the return type of a gcc2
16837     builtin and then its argument prototype would still apply.  */
16838 char nanosleep();
16839
16840 int main() {
16841 nanosleep()
16842 ; return 0; }
16843 EOF
16844 if { (eval echo configure:16845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16845   rm -rf conftest*
16846   eval "ac_cv_lib_$ac_lib_var=yes"
16847 else
16848   echo "configure: failed program was:" >&5
16849   cat conftest.$ac_ext >&5
16850   rm -rf conftest*
16851   eval "ac_cv_lib_$ac_lib_var=no"
16852 fi
16853 rm -f conftest*
16854 LIBS="$ac_save_LIBS"
16855
16856 fi
16857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16858   echo "$ac_t""yes" 1>&6
16859   
16860                     cat >> confdefs.h <<\EOF
16861 #define HAVE_NANOSLEEP 1
16862 EOF
16863
16864                     POSIX4_LINK=" -lposix4"
16865                 
16866 else
16867   echo "$ac_t""no" 1>&6
16868
16869                     for ac_func in usleep
16870 do
16871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16872 echo "configure:16873: checking for $ac_func" >&5
16873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16874   echo $ac_n "(cached) $ac_c" 1>&6
16875 else
16876   cat > conftest.$ac_ext <<EOF
16877 #line 16878 "configure"
16878 #include "confdefs.h"
16879 /* System header to define __stub macros and hopefully few prototypes,
16880     which can conflict with char $ac_func(); below.  */
16881 #include <assert.h>
16882 /* Override any gcc2 internal prototype to avoid an error.  */
16883 /* We use char because int might match the return type of a gcc2
16884     builtin and then its argument prototype would still apply.  */
16885 char $ac_func();
16886
16887 int main() {
16888
16889 /* The GNU C library defines this for functions which it implements
16890     to always fail with ENOSYS.  Some functions are actually named
16891     something starting with __ and the normal name is an alias.  */
16892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16893 choke me
16894 #else
16895 $ac_func();
16896 #endif
16897
16898 ; return 0; }
16899 EOF
16900 if { (eval echo configure:16901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16901   rm -rf conftest*
16902   eval "ac_cv_func_$ac_func=yes"
16903 else
16904   echo "configure: failed program was:" >&5
16905   cat conftest.$ac_ext >&5
16906   rm -rf conftest*
16907   eval "ac_cv_func_$ac_func=no"
16908 fi
16909 rm -f conftest*
16910 fi
16911
16912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16913   echo "$ac_t""yes" 1>&6
16914     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16915   cat >> confdefs.h <<EOF
16916 #define $ac_tr_func 1
16917 EOF
16918  cat >> confdefs.h <<\EOF
16919 #define HAVE_USLEEP 1
16920 EOF
16921
16922 else
16923   echo "$ac_t""no" 1>&6
16924 echo "configure: warning: wxSleep() function will not work" 1>&2
16925                     
16926 fi
16927 done
16928
16929                 
16930             
16931 fi
16932
16933         
16934     
16935 fi
16936 done
16937
16938 fi
16939
16940 for ac_func in uname gethostname
16941 do
16942 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16943 echo "configure:16944: checking for $ac_func" >&5
16944 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16945   echo $ac_n "(cached) $ac_c" 1>&6
16946 else
16947   cat > conftest.$ac_ext <<EOF
16948 #line 16949 "configure"
16949 #include "confdefs.h"
16950 /* System header to define __stub macros and hopefully few prototypes,
16951     which can conflict with char $ac_func(); below.  */
16952 #include <assert.h>
16953 /* Override any gcc2 internal prototype to avoid an error.  */
16954 /* We use char because int might match the return type of a gcc2
16955     builtin and then its argument prototype would still apply.  */
16956 char $ac_func();
16957
16958 int main() {
16959
16960 /* The GNU C library defines this for functions which it implements
16961     to always fail with ENOSYS.  Some functions are actually named
16962     something starting with __ and the normal name is an alias.  */
16963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16964 choke me
16965 #else
16966 $ac_func();
16967 #endif
16968
16969 ; return 0; }
16970 EOF
16971 if { (eval echo configure:16972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16972   rm -rf conftest*
16973   eval "ac_cv_func_$ac_func=yes"
16974 else
16975   echo "configure: failed program was:" >&5
16976   cat conftest.$ac_ext >&5
16977   rm -rf conftest*
16978   eval "ac_cv_func_$ac_func=no"
16979 fi
16980 rm -f conftest*
16981 fi
16982
16983 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16984   echo "$ac_t""yes" 1>&6
16985     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16986   cat >> confdefs.h <<EOF
16987 #define $ac_tr_func 1
16988 EOF
16989  break
16990 else
16991   echo "$ac_t""no" 1>&6
16992 fi
16993 done
16994
16995
16996
16997 ac_ext=C
16998 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16999 ac_cpp='$CXXCPP $CPPFLAGS'
17000 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17001 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17002 cross_compiling=$ac_cv_prog_cxx_cross
17003
17004
17005 for ac_func in strtok_r
17006 do
17007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17008 echo "configure:17009: checking for $ac_func" >&5
17009 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17010   echo $ac_n "(cached) $ac_c" 1>&6
17011 else
17012   cat > conftest.$ac_ext <<EOF
17013 #line 17014 "configure"
17014 #include "confdefs.h"
17015 /* System header to define __stub macros and hopefully few prototypes,
17016     which can conflict with char $ac_func(); below.  */
17017 #include <assert.h>
17018 /* Override any gcc2 internal prototype to avoid an error.  */
17019 #ifdef __cplusplus
17020 extern "C"
17021 #endif
17022 /* We use char because int might match the return type of a gcc2
17023     builtin and then its argument prototype would still apply.  */
17024 char $ac_func();
17025
17026 int main() {
17027
17028 /* The GNU C library defines this for functions which it implements
17029     to always fail with ENOSYS.  Some functions are actually named
17030     something starting with __ and the normal name is an alias.  */
17031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17032 choke me
17033 #else
17034 $ac_func();
17035 #endif
17036
17037 ; return 0; }
17038 EOF
17039 if { (eval echo configure:17040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17040   rm -rf conftest*
17041   eval "ac_cv_func_$ac_func=yes"
17042 else
17043   echo "configure: failed program was:" >&5
17044   cat conftest.$ac_ext >&5
17045   rm -rf conftest*
17046   eval "ac_cv_func_$ac_func=no"
17047 fi
17048 rm -f conftest*
17049 fi
17050
17051 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17052   echo "$ac_t""yes" 1>&6
17053     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17054   cat >> confdefs.h <<EOF
17055 #define $ac_tr_func 1
17056 EOF
17057  
17058 else
17059   echo "$ac_t""no" 1>&6
17060 fi
17061 done
17062
17063
17064 ac_ext=c
17065 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17066 ac_cpp='$CPP $CPPFLAGS'
17067 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17068 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17069 cross_compiling=$ac_cv_prog_cc_cross
17070
17071
17072 INET_LINK=
17073 for ac_func in inet_addr
17074 do
17075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17076 echo "configure:17077: checking for $ac_func" >&5
17077 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17078   echo $ac_n "(cached) $ac_c" 1>&6
17079 else
17080   cat > conftest.$ac_ext <<EOF
17081 #line 17082 "configure"
17082 #include "confdefs.h"
17083 /* System header to define __stub macros and hopefully few prototypes,
17084     which can conflict with char $ac_func(); below.  */
17085 #include <assert.h>
17086 /* Override any gcc2 internal prototype to avoid an error.  */
17087 /* We use char because int might match the return type of a gcc2
17088     builtin and then its argument prototype would still apply.  */
17089 char $ac_func();
17090
17091 int main() {
17092
17093 /* The GNU C library defines this for functions which it implements
17094     to always fail with ENOSYS.  Some functions are actually named
17095     something starting with __ and the normal name is an alias.  */
17096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17097 choke me
17098 #else
17099 $ac_func();
17100 #endif
17101
17102 ; return 0; }
17103 EOF
17104 if { (eval echo configure:17105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17105   rm -rf conftest*
17106   eval "ac_cv_func_$ac_func=yes"
17107 else
17108   echo "configure: failed program was:" >&5
17109   cat conftest.$ac_ext >&5
17110   rm -rf conftest*
17111   eval "ac_cv_func_$ac_func=no"
17112 fi
17113 rm -f conftest*
17114 fi
17115
17116 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17117   echo "$ac_t""yes" 1>&6
17118     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17119   cat >> confdefs.h <<EOF
17120 #define $ac_tr_func 1
17121 EOF
17122  cat >> confdefs.h <<\EOF
17123 #define HAVE_INET_ADDR 1
17124 EOF
17125
17126 else
17127   echo "$ac_t""no" 1>&6
17128 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
17129 echo "configure:17130: checking for inet_addr in -lnsl" >&5
17130 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
17131 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17132   echo $ac_n "(cached) $ac_c" 1>&6
17133 else
17134   ac_save_LIBS="$LIBS"
17135 LIBS="-lnsl  $LIBS"
17136 cat > conftest.$ac_ext <<EOF
17137 #line 17138 "configure"
17138 #include "confdefs.h"
17139 /* Override any gcc2 internal prototype to avoid an error.  */
17140 /* We use char because int might match the return type of a gcc2
17141     builtin and then its argument prototype would still apply.  */
17142 char inet_addr();
17143
17144 int main() {
17145 inet_addr()
17146 ; return 0; }
17147 EOF
17148 if { (eval echo configure:17149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17149   rm -rf conftest*
17150   eval "ac_cv_lib_$ac_lib_var=yes"
17151 else
17152   echo "configure: failed program was:" >&5
17153   cat conftest.$ac_ext >&5
17154   rm -rf conftest*
17155   eval "ac_cv_lib_$ac_lib_var=no"
17156 fi
17157 rm -f conftest*
17158 LIBS="$ac_save_LIBS"
17159
17160 fi
17161 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17162   echo "$ac_t""yes" 1>&6
17163   INET_LINK="nsl"
17164 else
17165   echo "$ac_t""no" 1>&6
17166 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
17167 echo "configure:17168: checking for inet_addr in -lresolv" >&5
17168 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
17169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17170   echo $ac_n "(cached) $ac_c" 1>&6
17171 else
17172   ac_save_LIBS="$LIBS"
17173 LIBS="-lresolv  $LIBS"
17174 cat > conftest.$ac_ext <<EOF
17175 #line 17176 "configure"
17176 #include "confdefs.h"
17177 /* Override any gcc2 internal prototype to avoid an error.  */
17178 /* We use char because int might match the return type of a gcc2
17179     builtin and then its argument prototype would still apply.  */
17180 char inet_addr();
17181
17182 int main() {
17183 inet_addr()
17184 ; return 0; }
17185 EOF
17186 if { (eval echo configure:17187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17187   rm -rf conftest*
17188   eval "ac_cv_lib_$ac_lib_var=yes"
17189 else
17190   echo "configure: failed program was:" >&5
17191   cat conftest.$ac_ext >&5
17192   rm -rf conftest*
17193   eval "ac_cv_lib_$ac_lib_var=no"
17194 fi
17195 rm -f conftest*
17196 LIBS="$ac_save_LIBS"
17197
17198 fi
17199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17200   echo "$ac_t""yes" 1>&6
17201   INET_LINK="resolv"
17202 else
17203   echo "$ac_t""no" 1>&6
17204 echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
17205 echo "configure:17206: checking for inet_addr in -lsocket" >&5
17206 ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
17207 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17208   echo $ac_n "(cached) $ac_c" 1>&6
17209 else
17210   ac_save_LIBS="$LIBS"
17211 LIBS="-lsocket  $LIBS"
17212 cat > conftest.$ac_ext <<EOF
17213 #line 17214 "configure"
17214 #include "confdefs.h"
17215 /* Override any gcc2 internal prototype to avoid an error.  */
17216 /* We use char because int might match the return type of a gcc2
17217     builtin and then its argument prototype would still apply.  */
17218 char inet_addr();
17219
17220 int main() {
17221 inet_addr()
17222 ; return 0; }
17223 EOF
17224 if { (eval echo configure:17225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17225   rm -rf conftest*
17226   eval "ac_cv_lib_$ac_lib_var=yes"
17227 else
17228   echo "configure: failed program was:" >&5
17229   cat conftest.$ac_ext >&5
17230   rm -rf conftest*
17231   eval "ac_cv_lib_$ac_lib_var=no"
17232 fi
17233 rm -f conftest*
17234 LIBS="$ac_save_LIBS"
17235
17236 fi
17237 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17238   echo "$ac_t""yes" 1>&6
17239   INET_LINK="socket"
17240                 
17241 else
17242   echo "$ac_t""no" 1>&6
17243 fi
17244
17245             
17246 fi
17247
17248         
17249 fi
17250
17251     
17252
17253 fi
17254 done
17255
17256
17257 for ac_func in inet_aton
17258 do
17259 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17260 echo "configure:17261: checking for $ac_func" >&5
17261 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17262   echo $ac_n "(cached) $ac_c" 1>&6
17263 else
17264   cat > conftest.$ac_ext <<EOF
17265 #line 17266 "configure"
17266 #include "confdefs.h"
17267 /* System header to define __stub macros and hopefully few prototypes,
17268     which can conflict with char $ac_func(); below.  */
17269 #include <assert.h>
17270 /* Override any gcc2 internal prototype to avoid an error.  */
17271 /* We use char because int might match the return type of a gcc2
17272     builtin and then its argument prototype would still apply.  */
17273 char $ac_func();
17274
17275 int main() {
17276
17277 /* The GNU C library defines this for functions which it implements
17278     to always fail with ENOSYS.  Some functions are actually named
17279     something starting with __ and the normal name is an alias.  */
17280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17281 choke me
17282 #else
17283 $ac_func();
17284 #endif
17285
17286 ; return 0; }
17287 EOF
17288 if { (eval echo configure:17289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17289   rm -rf conftest*
17290   eval "ac_cv_func_$ac_func=yes"
17291 else
17292   echo "configure: failed program was:" >&5
17293   cat conftest.$ac_ext >&5
17294   rm -rf conftest*
17295   eval "ac_cv_func_$ac_func=no"
17296 fi
17297 rm -f conftest*
17298 fi
17299
17300 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17301   echo "$ac_t""yes" 1>&6
17302     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17303   cat >> confdefs.h <<EOF
17304 #define $ac_tr_func 1
17305 EOF
17306  cat >> confdefs.h <<\EOF
17307 #define HAVE_INET_ATON 1
17308 EOF
17309
17310 else
17311   echo "$ac_t""no" 1>&6
17312             echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
17313 echo "configure:17314: checking for inet_aton in -l$INET_LINK" >&5
17314 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
17315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17316   echo $ac_n "(cached) $ac_c" 1>&6
17317 else
17318   ac_save_LIBS="$LIBS"
17319 LIBS="-l$INET_LINK  $LIBS"
17320 cat > conftest.$ac_ext <<EOF
17321 #line 17322 "configure"
17322 #include "confdefs.h"
17323 /* Override any gcc2 internal prototype to avoid an error.  */
17324 /* We use char because int might match the return type of a gcc2
17325     builtin and then its argument prototype would still apply.  */
17326 char inet_aton();
17327
17328 int main() {
17329 inet_aton()
17330 ; return 0; }
17331 EOF
17332 if { (eval echo configure:17333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17333   rm -rf conftest*
17334   eval "ac_cv_lib_$ac_lib_var=yes"
17335 else
17336   echo "configure: failed program was:" >&5
17337   cat conftest.$ac_ext >&5
17338   rm -rf conftest*
17339   eval "ac_cv_lib_$ac_lib_var=no"
17340 fi
17341 rm -f conftest*
17342 LIBS="$ac_save_LIBS"
17343
17344 fi
17345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17346   echo "$ac_t""yes" 1>&6
17347   cat >> confdefs.h <<\EOF
17348 #define HAVE_INET_ATON 1
17349 EOF
17350
17351 else
17352   echo "$ac_t""no" 1>&6
17353 fi
17354
17355         
17356 fi
17357 done
17358
17359
17360 if test "x$INET_LINK" != "x"; then
17361     cat >> confdefs.h <<\EOF
17362 #define HAVE_INET_ADDR 1
17363 EOF
17364
17365     INET_LINK=" -l$INET_LINK"
17366 fi
17367
17368 fi
17369
17370
17371 cat > confcache <<\EOF
17372 # This file is a shell script that caches the results of configure
17373 # tests run on this system so they can be shared between configure
17374 # scripts and configure runs.  It is not useful on other systems.
17375 # If it contains results you don't want to keep, you may remove or edit it.
17376 #
17377 # By default, configure uses ./config.cache as the cache file,
17378 # creating it if it does not exist already.  You can give configure
17379 # the --cache-file=FILE option to use a different cache file; that is
17380 # what configure does when it calls configure scripts in
17381 # subdirectories, so they share the cache.
17382 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17383 # config.status only pays attention to the cache file if you give it the
17384 # --recheck option to rerun configure.
17385 #
17386 EOF
17387 # The following way of writing the cache mishandles newlines in values,
17388 # but we know of no workaround that is simple, portable, and efficient.
17389 # So, don't put newlines in cache variables' values.
17390 # Ultrix sh set writes to stderr and can't be redirected directly,
17391 # and sets the high bit in the cache file unless we assign to the vars.
17392 (set) 2>&1 |
17393   case `(ac_space=' '; set | grep ac_space) 2>&1` in
17394   *ac_space=\ *)
17395     # `set' does not quote correctly, so add quotes (double-quote substitution
17396     # turns \\\\ into \\, and sed turns \\ into \).
17397     sed -n \
17398       -e "s/'/'\\\\''/g" \
17399       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17400     ;;
17401   *)
17402     # `set' quotes correctly as required by POSIX, so do not add quotes.
17403     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17404     ;;
17405   esac >> confcache
17406 if cmp -s $cache_file confcache; then
17407   :
17408 else
17409   if test -w $cache_file; then
17410     echo "updating cache $cache_file"
17411     cat confcache > $cache_file
17412   else
17413     echo "not updating unwritable cache $cache_file"
17414   fi
17415 fi
17416 rm -f confcache
17417
17418
17419
17420 CPP_MT_FLAG=
17421 if test "$TOOLKIT" != "MSW"; then
17422
17423                             
17424     THREADS_LINK=
17425     THREADS_CFLAGS=
17426
17427     if test "$wxUSE_THREADS" = "yes" ; then
17428         if test "$wxUSE_WINE" = 1 ; then
17429             echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
17430             wxUSE_THREADS="no"
17431         elif test "$USE_BEOS" = 1; then
17432             echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
17433             wxUSE_THREADS="no"
17434         fi
17435     fi
17436
17437     if test "$wxUSE_THREADS" = "yes" ; then
17438                                                         
17439         
17440                                 THREAD_OPTS="-pthread"
17441         case "${host}" in
17442           *-*-solaris2* | *-*-sunos4* )
17443                 if test "x$GCC" = "xyes"; then
17444                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
17445                 else
17446                     THREAD_OPTS="-mt $THREAD_OPTS"
17447                 fi
17448                 ;;
17449           *-*-freebsd*)
17450                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
17451                 ;;
17452           *-*-darwin* | *-*-cygwin* )
17453                                                 THREAD_OPTS=""
17454                 ;;
17455           *-*-aix*)
17456                                 THREAD_OPTS="pthreads"
17457                 ;;
17458         esac
17459
17460                                 THREAD_OPTS="$THREAD_OPTS pthread none"
17461
17462                 THREADS_OK=no
17463         for flag in $THREAD_OPTS; do
17464             case $flag in
17465                 none)
17466                     echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
17467 echo "configure:17468: checking whether pthreads work without any flags" >&5
17468                     ;;
17469
17470                 -*)
17471                     echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
17472 echo "configure:17473: checking whether pthreads work with $flag" >&5
17473                     THREADS_CFLAGS="$flag"
17474                     ;;
17475
17476                 *)
17477                     echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
17478 echo "configure:17479: checking for the pthreads library -l$flag" >&5
17479                     THREADS_LINK="-l$flag"
17480                     ;;
17481               esac
17482
17483               save_LIBS="$LIBS"
17484               save_CFLAGS="$CFLAGS"
17485               LIBS="$THREADS_LINK $LIBS"
17486               CFLAGS="$THREADS_CFLAGS $CFLAGS"
17487
17488               cat > conftest.$ac_ext <<EOF
17489 #line 17490 "configure"
17490 #include "confdefs.h"
17491 #include <pthread.h>
17492 int main() {
17493 pthread_create(0,0,0,0);
17494 ; return 0; }
17495 EOF
17496 if { (eval echo configure:17497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17497   rm -rf conftest*
17498   THREADS_OK=yes
17499 else
17500   echo "configure: failed program was:" >&5
17501   cat conftest.$ac_ext >&5
17502 fi
17503 rm -f conftest*
17504
17505               LIBS="$save_LIBS"
17506               CFLAGS="$save_CFLAGS"
17507
17508               echo "$ac_t""$THREADS_OK" 1>&6
17509               if test "x$THREADS_OK" = "xyes"; then
17510                       break;
17511               fi
17512
17513               THREADS_LINK=""
17514               THREADS_CFLAGS=""
17515       done
17516
17517       if test "x$THREADS_OK" != "xyes"; then
17518           wxUSE_THREADS=no
17519           echo "configure: warning: No thread support on this system... disabled" 1>&2
17520       else
17521                               LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
17522
17523           echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
17524 echo "configure:17525: checking if more special flags are required for pthreads" >&5
17525           flag=no
17526           case "${host}" in
17527             *-aix* | *-freebsd*)
17528                 flag="-D_THREAD_SAFE"
17529                 ;;
17530             *solaris* | alpha*-osf*)
17531                 flag="-D_REENTRANT"
17532                 ;;
17533           esac
17534           echo "$ac_t""${flag}" 1>&6
17535           if test "x$flag" != xno; then
17536               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
17537           fi
17538
17539           if test "x$THREADS_CFLAGS" != "x"; then
17540                         CFLAGS="$CFLAGS $THREADS_CFLAGS"
17541             CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
17542           fi
17543       fi
17544     fi
17545
17546         if test "$wxUSE_THREADS" = "yes" ; then
17547       for ac_func in thr_setconcurrency
17548 do
17549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17550 echo "configure:17551: checking for $ac_func" >&5
17551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17552   echo $ac_n "(cached) $ac_c" 1>&6
17553 else
17554   cat > conftest.$ac_ext <<EOF
17555 #line 17556 "configure"
17556 #include "confdefs.h"
17557 /* System header to define __stub macros and hopefully few prototypes,
17558     which can conflict with char $ac_func(); below.  */
17559 #include <assert.h>
17560 /* Override any gcc2 internal prototype to avoid an error.  */
17561 /* We use char because int might match the return type of a gcc2
17562     builtin and then its argument prototype would still apply.  */
17563 char $ac_func();
17564
17565 int main() {
17566
17567 /* The GNU C library defines this for functions which it implements
17568     to always fail with ENOSYS.  Some functions are actually named
17569     something starting with __ and the normal name is an alias.  */
17570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17571 choke me
17572 #else
17573 $ac_func();
17574 #endif
17575
17576 ; return 0; }
17577 EOF
17578 if { (eval echo configure:17579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17579   rm -rf conftest*
17580   eval "ac_cv_func_$ac_func=yes"
17581 else
17582   echo "configure: failed program was:" >&5
17583   cat conftest.$ac_ext >&5
17584   rm -rf conftest*
17585   eval "ac_cv_func_$ac_func=no"
17586 fi
17587 rm -f conftest*
17588 fi
17589
17590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17591   echo "$ac_t""yes" 1>&6
17592     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17593   cat >> confdefs.h <<EOF
17594 #define $ac_tr_func 1
17595 EOF
17596  
17597 else
17598   echo "$ac_t""no" 1>&6
17599 fi
17600 done
17601
17602
17603       for ac_hdr in sched.h
17604 do
17605 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17606 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17607 echo "configure:17608: checking for $ac_hdr" >&5
17608 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17609   echo $ac_n "(cached) $ac_c" 1>&6
17610 else
17611   cat > conftest.$ac_ext <<EOF
17612 #line 17613 "configure"
17613 #include "confdefs.h"
17614 #include <$ac_hdr>
17615 EOF
17616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17617 { (eval echo configure:17618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17619 if test -z "$ac_err"; then
17620   rm -rf conftest*
17621   eval "ac_cv_header_$ac_safe=yes"
17622 else
17623   echo "$ac_err" >&5
17624   echo "configure: failed program was:" >&5
17625   cat conftest.$ac_ext >&5
17626   rm -rf conftest*
17627   eval "ac_cv_header_$ac_safe=no"
17628 fi
17629 rm -f conftest*
17630 fi
17631 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17632   echo "$ac_t""yes" 1>&6
17633     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17634   cat >> confdefs.h <<EOF
17635 #define $ac_tr_hdr 1
17636 EOF
17637  
17638 else
17639   echo "$ac_t""no" 1>&6
17640 fi
17641 done
17642
17643       if test "$ac_cv_header_sched_h" = "yes"; then
17644           echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
17645 echo "configure:17646: checking for sched_yield" >&5
17646 if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
17647   echo $ac_n "(cached) $ac_c" 1>&6
17648 else
17649   cat > conftest.$ac_ext <<EOF
17650 #line 17651 "configure"
17651 #include "confdefs.h"
17652 /* System header to define __stub macros and hopefully few prototypes,
17653     which can conflict with char sched_yield(); below.  */
17654 #include <assert.h>
17655 /* Override any gcc2 internal prototype to avoid an error.  */
17656 /* We use char because int might match the return type of a gcc2
17657     builtin and then its argument prototype would still apply.  */
17658 char sched_yield();
17659
17660 int main() {
17661
17662 /* The GNU C library defines this for functions which it implements
17663     to always fail with ENOSYS.  Some functions are actually named
17664     something starting with __ and the normal name is an alias.  */
17665 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
17666 choke me
17667 #else
17668 sched_yield();
17669 #endif
17670
17671 ; return 0; }
17672 EOF
17673 if { (eval echo configure:17674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17674   rm -rf conftest*
17675   eval "ac_cv_func_sched_yield=yes"
17676 else
17677   echo "configure: failed program was:" >&5
17678   cat conftest.$ac_ext >&5
17679   rm -rf conftest*
17680   eval "ac_cv_func_sched_yield=no"
17681 fi
17682 rm -f conftest*
17683 fi
17684
17685 if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
17686   echo "$ac_t""yes" 1>&6
17687   cat >> confdefs.h <<\EOF
17688 #define HAVE_SCHED_YIELD 1
17689 EOF
17690
17691 else
17692   echo "$ac_t""no" 1>&6
17693
17694                 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
17695 echo "configure:17696: checking for sched_yield in -lposix4" >&5
17696 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17697 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17698   echo $ac_n "(cached) $ac_c" 1>&6
17699 else
17700   ac_save_LIBS="$LIBS"
17701 LIBS="-lposix4  $LIBS"
17702 cat > conftest.$ac_ext <<EOF
17703 #line 17704 "configure"
17704 #include "confdefs.h"
17705 /* Override any gcc2 internal prototype to avoid an error.  */
17706 /* We use char because int might match the return type of a gcc2
17707     builtin and then its argument prototype would still apply.  */
17708 char sched_yield();
17709
17710 int main() {
17711 sched_yield()
17712 ; return 0; }
17713 EOF
17714 if { (eval echo configure:17715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17715   rm -rf conftest*
17716   eval "ac_cv_lib_$ac_lib_var=yes"
17717 else
17718   echo "configure: failed program was:" >&5
17719   cat conftest.$ac_ext >&5
17720   rm -rf conftest*
17721   eval "ac_cv_lib_$ac_lib_var=no"
17722 fi
17723 rm -f conftest*
17724 LIBS="$ac_save_LIBS"
17725
17726 fi
17727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17728   echo "$ac_t""yes" 1>&6
17729   cat >> confdefs.h <<\EOF
17730 #define HAVE_SCHED_YIELD 1
17731 EOF
17732  POSIX4_LINK=" -lposix4"
17733 else
17734   echo "$ac_t""no" 1>&6
17735 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
17736                 
17737 fi
17738
17739             
17740           
17741 fi
17742
17743       fi
17744
17745                                           HAVE_PRIOR_FUNCS=0
17746       echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
17747 echo "configure:17748: checking for pthread_attr_getschedpolicy" >&5
17748 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
17749   echo $ac_n "(cached) $ac_c" 1>&6
17750 else
17751   cat > conftest.$ac_ext <<EOF
17752 #line 17753 "configure"
17753 #include "confdefs.h"
17754 /* System header to define __stub macros and hopefully few prototypes,
17755     which can conflict with char pthread_attr_getschedpolicy(); below.  */
17756 #include <assert.h>
17757 /* Override any gcc2 internal prototype to avoid an error.  */
17758 /* We use char because int might match the return type of a gcc2
17759     builtin and then its argument prototype would still apply.  */
17760 char pthread_attr_getschedpolicy();
17761
17762 int main() {
17763
17764 /* The GNU C library defines this for functions which it implements
17765     to always fail with ENOSYS.  Some functions are actually named
17766     something starting with __ and the normal name is an alias.  */
17767 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
17768 choke me
17769 #else
17770 pthread_attr_getschedpolicy();
17771 #endif
17772
17773 ; return 0; }
17774 EOF
17775 if { (eval echo configure:17776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17776   rm -rf conftest*
17777   eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
17778 else
17779   echo "configure: failed program was:" >&5
17780   cat conftest.$ac_ext >&5
17781   rm -rf conftest*
17782   eval "ac_cv_func_pthread_attr_getschedpolicy=no"
17783 fi
17784 rm -f conftest*
17785 fi
17786
17787 if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
17788   echo "$ac_t""yes" 1>&6
17789   echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
17790 echo "configure:17791: checking for pthread_attr_setschedparam" >&5
17791 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
17792   echo $ac_n "(cached) $ac_c" 1>&6
17793 else
17794   cat > conftest.$ac_ext <<EOF
17795 #line 17796 "configure"
17796 #include "confdefs.h"
17797 /* System header to define __stub macros and hopefully few prototypes,
17798     which can conflict with char pthread_attr_setschedparam(); below.  */
17799 #include <assert.h>
17800 /* Override any gcc2 internal prototype to avoid an error.  */
17801 /* We use char because int might match the return type of a gcc2
17802     builtin and then its argument prototype would still apply.  */
17803 char pthread_attr_setschedparam();
17804
17805 int main() {
17806
17807 /* The GNU C library defines this for functions which it implements
17808     to always fail with ENOSYS.  Some functions are actually named
17809     something starting with __ and the normal name is an alias.  */
17810 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
17811 choke me
17812 #else
17813 pthread_attr_setschedparam();
17814 #endif
17815
17816 ; return 0; }
17817 EOF
17818 if { (eval echo configure:17819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17819   rm -rf conftest*
17820   eval "ac_cv_func_pthread_attr_setschedparam=yes"
17821 else
17822   echo "configure: failed program was:" >&5
17823   cat conftest.$ac_ext >&5
17824   rm -rf conftest*
17825   eval "ac_cv_func_pthread_attr_setschedparam=no"
17826 fi
17827 rm -f conftest*
17828 fi
17829
17830 if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
17831   echo "$ac_t""yes" 1>&6
17832   echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
17833 echo "configure:17834: checking for sched_get_priority_max" >&5
17834 if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
17835   echo $ac_n "(cached) $ac_c" 1>&6
17836 else
17837   cat > conftest.$ac_ext <<EOF
17838 #line 17839 "configure"
17839 #include "confdefs.h"
17840 /* System header to define __stub macros and hopefully few prototypes
17841 else
17842   echo "$ac_t""no" 1>&6
17843 which can conflict with char sched_get_priority_max(); below.  */
17844 #include <assert.h>
17845 /* Override any gcc2 internal prototype to avoid an error.  */
17846 /* We use char because int might match the return type of a gcc2
17847     builtin and then its argument prototype would still apply.  */
17848 char sched_get_priority_max();
17849
17850 int main() {
17851
17852 /* The GNU C library defines this for functions which it implements
17853     to always fail with ENOSYS.  Some functions are actually named
17854     something starting with __ and the normal name is an alias.  */
17855 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
17856 choke me
17857 #else
17858 sched_get_priority_max();
17859 #endif
17860
17861 ; return 0; }
17862 EOF
17863 if { (eval echo configure:17864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17864   rm -rf conftest*
17865   eval "ac_cv_func_sched_get_priority_max=yes"
17866 else
17867   echo "configure: failed program was:" >&5
17868   cat conftest.$ac_ext >&5
17869   rm -rf conftest*
17870   eval "ac_cv_func_sched_get_priority_max=no"
17871 fi
17872 rm -f conftest*
17873 fi
17874
17875 if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
17876   echo "$ac_t""yes" 1>&6
17877   HAVE_PRIOR_FUNCS=1
17878 else
17879   echo "$ac_t""no" 1>&6
17880 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
17881 echo "configure:17882: checking for sched_get_priority_max in -lposix4" >&5
17882 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
17883 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17884   echo $ac_n "(cached) $ac_c" 1>&6
17885 else
17886   ac_save_LIBS="$LIBS"
17887 LIBS="-lposix4  $LIBS"
17888 cat > conftest.$ac_ext <<EOF
17889 #line 17890 "configure"
17890 #include "confdefs.h"
17891 /* Override any gcc2 internal prototype to avoid an error.  */
17892 /* We use char because int might match the return type of a gcc2
17893     builtin and then its argument prototype would still apply.  */
17894 char sched_get_priority_max();
17895
17896 int main() {
17897 sched_get_priority_max()
17898 ; return 0; }
17899 EOF
17900 if { (eval echo configure:17901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17901   rm -rf conftest*
17902   eval "ac_cv_lib_$ac_lib_var=yes"
17903 else
17904   echo "configure: failed program was:" >&5
17905   cat conftest.$ac_ext >&5
17906   rm -rf conftest*
17907   eval "ac_cv_lib_$ac_lib_var=no"
17908 fi
17909 rm -f conftest*
17910 LIBS="$ac_save_LIBS"
17911
17912 fi
17913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17914   echo "$ac_t""yes" 1>&6
17915   
17916                                 HAVE_PRIOR_FUNCS=1
17917                                 POSIX4_LINK=" -lposix4"
17918                              
17919 else
17920   echo "$ac_t""no" 1>&6
17921 fi
17922
17923                        
17924 fi
17925
17926                      
17927 else
17928   echo "$ac_t""no" 1>&6
17929 fi
17930
17931                    
17932 fi
17933
17934
17935       if test "$HAVE_PRIOR_FUNCS" = 1; then
17936         cat >> confdefs.h <<\EOF
17937 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
17938 EOF
17939
17940       else
17941         echo "configure: warning: Setting thread priority will not work" 1>&2
17942       fi
17943
17944       echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
17945 echo "configure:17946: checking for pthread_cancel" >&5
17946 if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
17947   echo $ac_n "(cached) $ac_c" 1>&6
17948 else
17949   cat > conftest.$ac_ext <<EOF
17950 #line 17951 "configure"
17951 #include "confdefs.h"
17952 /* System header to define __stub macros and hopefully few prototypes,
17953     which can conflict with char pthread_cancel(); below.  */
17954 #include <assert.h>
17955 /* Override any gcc2 internal prototype to avoid an error.  */
17956 /* We use char because int might match the return type of a gcc2
17957     builtin and then its argument prototype would still apply.  */
17958 char pthread_cancel();
17959
17960 int main() {
17961
17962 /* The GNU C library defines this for functions which it implements
17963     to always fail with ENOSYS.  Some functions are actually named
17964     something starting with __ and the normal name is an alias.  */
17965 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
17966 choke me
17967 #else
17968 pthread_cancel();
17969 #endif
17970
17971 ; return 0; }
17972 EOF
17973 if { (eval echo configure:17974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17974   rm -rf conftest*
17975   eval "ac_cv_func_pthread_cancel=yes"
17976 else
17977   echo "configure: failed program was:" >&5
17978   cat conftest.$ac_ext >&5
17979   rm -rf conftest*
17980   eval "ac_cv_func_pthread_cancel=no"
17981 fi
17982 rm -f conftest*
17983 fi
17984
17985 if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
17986   echo "$ac_t""yes" 1>&6
17987   cat >> confdefs.h <<\EOF
17988 #define HAVE_PTHREAD_CANCEL 1
17989 EOF
17990
17991 else
17992   echo "$ac_t""no" 1>&6
17993 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
17994 fi
17995
17996
17997       echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
17998 echo "configure:17999: checking for pthread_cleanup_push/pop" >&5
17999 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
18000   echo $ac_n "(cached) $ac_c" 1>&6
18001 else
18002   
18003         cat > conftest.$ac_ext <<EOF
18004 #line 18005 "configure"
18005 #include "confdefs.h"
18006 #include <pthread.h>
18007 int main() {
18008
18009                         pthread_cleanup_push(NULL, NULL);
18010                         pthread_cleanup_pop(0);
18011                      
18012 ; return 0; }
18013 EOF
18014 if { (eval echo configure:18015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18015   rm -rf conftest*
18016   
18017                         wx_cv_func_pthread_cleanup_push=yes
18018                      
18019 else
18020   echo "configure: failed program was:" >&5
18021   cat conftest.$ac_ext >&5
18022   rm -rf conftest*
18023   
18024                         wx_cv_func_pthread_cleanup_push=no
18025                      
18026 fi
18027 rm -f conftest*
18028       
18029 fi
18030
18031 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
18032
18033       if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
18034           cat >> confdefs.h <<\EOF
18035 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
18036 EOF
18037
18038       fi
18039
18040                                                 
18041                               if test "x$wx_cv_lib_glibc21" = "xyes"; then
18042           CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
18043       fi
18044
18045       echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
18046 echo "configure:18047: checking for pthread_mutexattr_t" >&5
18047 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
18048   echo $ac_n "(cached) $ac_c" 1>&6
18049 else
18050   
18051         cat > conftest.$ac_ext <<EOF
18052 #line 18053 "configure"
18053 #include "confdefs.h"
18054 #include <pthread.h>
18055 int main() {
18056
18057                pthread_mutexattr_t attr;
18058                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
18059             
18060 ; return 0; }
18061 EOF
18062 if { (eval echo configure:18063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18063   rm -rf conftest*
18064   
18065                wx_cv_type_pthread_mutexattr_t=yes
18066             
18067 else
18068   echo "configure: failed program was:" >&5
18069   cat conftest.$ac_ext >&5
18070   rm -rf conftest*
18071   
18072                wx_cv_type_pthread_mutexattr_t=no
18073             
18074         
18075 fi
18076 rm -f conftest*
18077       
18078 fi
18079
18080 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
18081
18082       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
18083         cat >> confdefs.h <<\EOF
18084 #define HAVE_PTHREAD_MUTEXATTR_T 1
18085 EOF
18086
18087       else
18088                 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
18089 echo "configure:18090: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
18090 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
18091   echo $ac_n "(cached) $ac_c" 1>&6
18092 else
18093   
18094             cat > conftest.$ac_ext <<EOF
18095 #line 18096 "configure"
18096 #include "confdefs.h"
18097 #include <pthread.h>
18098 int main() {
18099
18100                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
18101                 
18102 ; return 0; }
18103 EOF
18104 if { (eval echo configure:18105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18105   rm -rf conftest*
18106   
18107                     wx_cv_type_pthread_rec_mutex_init=yes
18108                 
18109 else
18110   echo "configure: failed program was:" >&5
18111   cat conftest.$ac_ext >&5
18112   rm -rf conftest*
18113   
18114                     wx_cv_type_pthread_rec_mutex_init=no
18115                 
18116             
18117 fi
18118 rm -f conftest*
18119         
18120 fi
18121
18122 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
18123         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
18124           cat >> confdefs.h <<\EOF
18125 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
18126 EOF
18127
18128         else
18129                     echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
18130         fi
18131       fi
18132     fi
18133
18134 fi
18135
18136 if test "$wxUSE_THREADS" = "yes"; then
18137   cat >> confdefs.h <<\EOF
18138 #define wxUSE_THREADS 1
18139 EOF
18140
18141
18142   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
18143 else
18144       if test "$ac_cv_func_strtok_r" = "yes"; then
18145     echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
18146 echo "configure:18147: checking if -D_REENTRANT is needed" >&5
18147     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
18148         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
18149         echo "$ac_t""yes" 1>&6
18150     else
18151         echo "$ac_t""no" 1>&6
18152     fi
18153   fi
18154 fi
18155
18156 if test "$WXGTK20" = 1 ; then
18157   cat >> confdefs.h <<EOF
18158 #define __WXGTK20__ $WXGTK20
18159 EOF
18160
18161   WXGTK12=1
18162 fi
18163
18164 if test "$WXGTK12" = 1 ; then
18165   cat >> confdefs.h <<EOF
18166 #define __WXGTK12__ $WXGTK12
18167 EOF
18168
18169 fi
18170
18171 if test "$WXGTK127" = 1 ; then
18172   cat >> confdefs.h <<EOF
18173 #define __WXGTK127__ $WXGTK127
18174 EOF
18175
18176 fi
18177
18178 WXDEBUG=
18179
18180 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
18181     WXDEBUG="-g"
18182     wxUSE_OPTIMISE=no
18183 fi
18184
18185 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
18186     wxUSE_DEBUG_INFO=yes
18187     WXDEBUG="-ggdb"
18188 fi
18189
18190 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
18191     cat >> confdefs.h <<\EOF
18192 #define WXDEBUG 1
18193 EOF
18194
18195     WXDEBUG_DEFINE="-D__WXDEBUG__"
18196 else
18197     if test "$wxUSE_GTK" = 1 ; then
18198         WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
18199     fi
18200 fi
18201
18202 if test "$wxUSE_MEM_TRACING" = "yes" ; then
18203     cat >> confdefs.h <<\EOF
18204 #define wxUSE_MEMORY_TRACING 1
18205 EOF
18206
18207     cat >> confdefs.h <<\EOF
18208 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
18209 EOF
18210
18211     cat >> confdefs.h <<\EOF
18212 #define wxUSE_DEBUG_NEW_ALWAYS 1
18213 EOF
18214
18215     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
18216 fi
18217
18218 if test "$wxUSE_DMALLOC" = "yes" ; then
18219     DMALLOC_LIBS="-ldmalloc"
18220 fi
18221
18222 PROFILE=
18223 if test "$wxUSE_PROFILE" = "yes" ; then
18224     PROFILE=" -pg"
18225 fi
18226
18227 CODE_GEN_FLAGS=
18228 CODE_GEN_FLAGS_CXX=
18229 if test "$GCC" = "yes" ; then
18230     if test "$wxUSE_NO_RTTI" = "yes" ; then
18231         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
18232     fi
18233     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
18234         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
18235     fi
18236     if test "$wxUSE_PERMISSIVE" = "yes" ; then
18237         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
18238     fi
18239     if test "$USE_WIN32" = 1 ; then
18240         # I'm not even really sure what this was ever added to solve,
18241         # but someone added it for mingw native builds, so I guess
18242         # they had a reason, right??
18243         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
18244     fi
18245
18246                             case "${host}" in
18247       powerpc*-*-aix* )
18248         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
18249         ;;
18250     esac
18251 fi
18252
18253 if test "$wxUSE_OPTIMISE" = "no" ; then
18254     OPTIMISE=
18255 else
18256     if test "$GCC" = yes ; then
18257         OPTIMISE="-O2"
18258         case "${host}" in
18259             i586-*-*|i686-*-* )
18260             OPTIMISE="${OPTIMISE} "
18261         ;;
18262         esac
18263     else
18264         OPTIMISE="-O"
18265     fi
18266 fi
18267
18268 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
18269     cat >> confdefs.h <<\EOF
18270 #define WXWIN_COMPATIBILITY_2 1
18271 EOF
18272
18273
18274     WXWIN_COMPATIBILITY_2_2="yes"
18275 fi
18276
18277 if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
18278     cat >> confdefs.h <<\EOF
18279 #define WXWIN_COMPATIBILITY_2_2 1
18280 EOF
18281
18282 fi
18283
18284
18285 if test "$wxUSE_GUI" = "yes"; then
18286   cat >> confdefs.h <<\EOF
18287 #define wxUSE_GUI 1
18288 EOF
18289
18290
18291                       else
18292   cat >> confdefs.h <<\EOF
18293 #define wxUSE_NOGUI 1
18294 EOF
18295
18296 fi
18297
18298
18299 if test "$wxUSE_UNIX" = "yes"; then
18300   cat >> confdefs.h <<\EOF
18301 #define wxUSE_UNIX 1
18302 EOF
18303
18304 fi
18305
18306
18307 if test "$wxUSE_APPLE_IEEE" = "yes"; then
18308   cat >> confdefs.h <<\EOF
18309 #define wxUSE_APPLE_IEEE 1
18310 EOF
18311
18312 fi
18313
18314 if test "$wxUSE_TIMER" = "yes"; then
18315   cat >> confdefs.h <<\EOF
18316 #define wxUSE_TIMER 1
18317 EOF
18318
18319 fi
18320
18321 if test "$wxUSE_WAVE" = "yes"; then
18322   cat >> confdefs.h <<\EOF
18323 #define wxUSE_WAVE 1
18324 EOF
18325
18326 fi
18327
18328 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
18329   cat >> confdefs.h <<\EOF
18330 #define wxUSE_CMDLINE_PARSER 1
18331 EOF
18332
18333 fi
18334
18335 if test "$wxUSE_STOPWATCH" = "yes"; then
18336   cat >> confdefs.h <<\EOF
18337 #define wxUSE_STOPWATCH 1
18338 EOF
18339
18340 fi
18341
18342 if test "$wxUSE_DATETIME" = "yes"; then
18343   cat >> confdefs.h <<\EOF
18344 #define wxUSE_DATETIME 1
18345 EOF
18346
18347 fi
18348
18349 if test "$wxUSE_TIMEDATE" = "yes"; then
18350   cat >> confdefs.h <<\EOF
18351 #define wxUSE_TIMEDATE 1
18352 EOF
18353
18354 fi
18355
18356 if test "$wxUSE_FILE" = "yes"; then
18357   cat >> confdefs.h <<\EOF
18358 #define wxUSE_FILE 1
18359 EOF
18360
18361 fi
18362
18363 if test "$wxUSE_FFILE" = "yes"; then
18364   cat >> confdefs.h <<\EOF
18365 #define wxUSE_FFILE 1
18366 EOF
18367
18368 fi
18369
18370 if test "$wxUSE_FILESYSTEM" = "yes"; then
18371   cat >> confdefs.h <<\EOF
18372 #define wxUSE_FILESYSTEM 1
18373 EOF
18374
18375 fi
18376
18377 if test "$wxUSE_FS_INET" = "yes"; then
18378   cat >> confdefs.h <<\EOF
18379 #define wxUSE_FS_INET 1
18380 EOF
18381
18382 fi
18383
18384 if test "$wxUSE_FS_ZIP" = "yes"; then
18385   cat >> confdefs.h <<\EOF
18386 #define wxUSE_FS_ZIP 1
18387 EOF
18388
18389 fi
18390
18391 if test "$wxUSE_ZIPSTREAM" = "yes"; then
18392   cat >> confdefs.h <<\EOF
18393 #define wxUSE_ZIPSTREAM 1
18394 EOF
18395
18396 fi
18397
18398 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18399   cat >> confdefs.h <<\EOF
18400 #define wxUSE_ON_FATAL_EXCEPTION 1
18401 EOF
18402
18403 fi
18404
18405 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
18406   cat >> confdefs.h <<\EOF
18407 #define wxUSE_SNGLINST_CHECKER 1
18408 EOF
18409
18410 fi
18411
18412 if test "$wxUSE_BUSYINFO" = "yes"; then
18413   cat >> confdefs.h <<\EOF
18414 #define wxUSE_BUSYINFO 1
18415 EOF
18416
18417 fi
18418
18419 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
18420   cat >> confdefs.h <<\EOF
18421 #define wxUSE_STD_IOSTREAM 1
18422 EOF
18423
18424 fi
18425
18426 if test "$wxUSE_TEXTBUFFER" = "yes"; then
18427     cat >> confdefs.h <<\EOF
18428 #define wxUSE_TEXTBUFFER 1
18429 EOF
18430
18431 fi
18432
18433 if test "$wxUSE_TEXTFILE" = "yes"; then
18434   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
18435     echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
18436   else
18437     cat >> confdefs.h <<\EOF
18438 #define wxUSE_TEXTFILE 1
18439 EOF
18440
18441   fi
18442 fi
18443
18444 if test "$wxUSE_CONFIG" = "yes" ; then
18445   if test "$wxUSE_TEXTFILE" != "yes"; then
18446     echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
18447   else
18448     cat >> confdefs.h <<\EOF
18449 #define wxUSE_CONFIG 1
18450 EOF
18451
18452     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18453   fi
18454 fi
18455
18456 if test "$wxUSE_INTL" = "yes" ; then
18457   if test "$wxUSE_FILE" != "yes"; then
18458     echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
18459   else
18460     cat >> confdefs.h <<\EOF
18461 #define wxUSE_INTL 1
18462 EOF
18463
18464     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
18465     GUIDIST="$GUIDIST INTL_DIST"
18466   fi
18467 fi
18468
18469 if test "$wxUSE_LOG" = "yes"; then
18470   cat >> confdefs.h <<\EOF
18471 #define wxUSE_LOG 1
18472 EOF
18473
18474
18475     if test "$wxUSE_LOGGUI" = "yes"; then
18476       cat >> confdefs.h <<\EOF
18477 #define wxUSE_LOGGUI 1
18478 EOF
18479
18480     fi
18481
18482     if test "$wxUSE_LOGWINDOW" = "yes"; then
18483       cat >> confdefs.h <<\EOF
18484 #define wxUSE_LOGWINDOW 1
18485 EOF
18486
18487     fi
18488
18489     if test "$wxUSE_LOGDIALOG" = "yes"; then
18490       cat >> confdefs.h <<\EOF
18491 #define wxUSE_LOG_DIALOG 1
18492 EOF
18493
18494     fi
18495 fi
18496
18497 if test "$wxUSE_LONGLONG" = "yes"; then
18498   cat >> confdefs.h <<\EOF
18499 #define wxUSE_LONGLONG 1
18500 EOF
18501
18502 fi
18503
18504 if test "$wxUSE_GEOMETRY" = "yes"; then
18505   cat >> confdefs.h <<\EOF
18506 #define wxUSE_GEOMETRY 1
18507 EOF
18508
18509 fi
18510
18511 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
18512   cat >> confdefs.h <<\EOF
18513 #define wxUSE_DIALUP_MANAGER 1
18514 EOF
18515
18516   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
18517 fi
18518
18519 if test "$wxUSE_STREAMS" = "yes" ; then
18520   cat >> confdefs.h <<\EOF
18521 #define wxUSE_STREAMS 1
18522 EOF
18523
18524 fi
18525
18526
18527 if test "$wxUSE_DATETIME" = "yes"; then
18528         for ac_func in strptime
18529 do
18530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18531 echo "configure:18532: checking for $ac_func" >&5
18532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18533   echo $ac_n "(cached) $ac_c" 1>&6
18534 else
18535   cat > conftest.$ac_ext <<EOF
18536 #line 18537 "configure"
18537 #include "confdefs.h"
18538 /* System header to define __stub macros and hopefully few prototypes,
18539     which can conflict with char $ac_func(); below.  */
18540 #include <assert.h>
18541 /* Override any gcc2 internal prototype to avoid an error.  */
18542 /* We use char because int might match the return type of a gcc2
18543     builtin and then its argument prototype would still apply.  */
18544 char $ac_func();
18545
18546 int main() {
18547
18548 /* The GNU C library defines this for functions which it implements
18549     to always fail with ENOSYS.  Some functions are actually named
18550     something starting with __ and the normal name is an alias.  */
18551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18552 choke me
18553 #else
18554 $ac_func();
18555 #endif
18556
18557 ; return 0; }
18558 EOF
18559 if { (eval echo configure:18560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18560   rm -rf conftest*
18561   eval "ac_cv_func_$ac_func=yes"
18562 else
18563   echo "configure: failed program was:" >&5
18564   cat conftest.$ac_ext >&5
18565   rm -rf conftest*
18566   eval "ac_cv_func_$ac_func=no"
18567 fi
18568 rm -f conftest*
18569 fi
18570
18571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18572   echo "$ac_t""yes" 1>&6
18573     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18574   cat >> confdefs.h <<EOF
18575 #define $ac_tr_func 1
18576 EOF
18577  
18578 else
18579   echo "$ac_t""no" 1>&6
18580 fi
18581 done
18582
18583
18584             echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
18585 echo "configure:18586: checking for timezone variable in <time.h>" >&5
18586 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18587   echo $ac_n "(cached) $ac_c" 1>&6
18588 else
18589   
18590                         cat > conftest.$ac_ext <<EOF
18591 #line 18592 "configure"
18592 #include "confdefs.h"
18593
18594                                 #include <time.h>
18595                             
18596 int main() {
18597
18598                                 int tz;
18599                                 tz = timezone;
18600                             
18601 ; return 0; }
18602 EOF
18603 if { (eval echo configure:18604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18604   rm -rf conftest*
18605   
18606                                 wx_cv_var_timezone=timezone
18607                             
18608 else
18609   echo "configure: failed program was:" >&5
18610   cat conftest.$ac_ext >&5
18611   rm -rf conftest*
18612   
18613                                 cat > conftest.$ac_ext <<EOF
18614 #line 18615 "configure"
18615 #include "confdefs.h"
18616
18617                                         #include <time.h>
18618                                     
18619 int main() {
18620
18621                                         int tz;
18622                                         tz = _timezone;
18623                                     
18624 ; return 0; }
18625 EOF
18626 if { (eval echo configure:18627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18627   rm -rf conftest*
18628   
18629                                         wx_cv_var_timezone=_timezone
18630                                     
18631 else
18632   echo "configure: failed program was:" >&5
18633   cat conftest.$ac_ext >&5
18634   rm -rf conftest*
18635   
18636                                         cat > conftest.$ac_ext <<EOF
18637 #line 18638 "configure"
18638 #include "confdefs.h"
18639
18640                                                 #include <time.h>
18641                                             
18642 int main() {
18643
18644                                                 int tz;
18645                                                 tz = __timezone;
18646                                             
18647 ; return 0; }
18648 EOF
18649 if { (eval echo configure:18650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18650   rm -rf conftest*
18651   
18652                                                 wx_cv_var_timezone=__timezone
18653                                             
18654 else
18655   echo "configure: failed program was:" >&5
18656   cat conftest.$ac_ext >&5
18657   rm -rf conftest*
18658   
18659                                                 if test "$USE_DOS" = 0 ; then
18660                                                     echo "configure: warning: no timezone variable" 1>&2
18661                                                 fi
18662                                             
18663                                         
18664 fi
18665 rm -f conftest*
18666                                     
18667                                 
18668 fi
18669 rm -f conftest*
18670                             
18671                         
18672 fi
18673 rm -f conftest*
18674                    
18675     
18676 fi
18677
18678 echo "$ac_t""$wx_cv_var_timezone" 1>&6
18679
18680         if test "x$wx_cv_var_timezone" != x ; then
18681         cat >> confdefs.h <<EOF
18682 #define WX_TIMEZONE $wx_cv_var_timezone
18683 EOF
18684
18685     fi
18686
18687         for ac_func in localtime
18688 do
18689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18690 echo "configure:18691: checking for $ac_func" >&5
18691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18692   echo $ac_n "(cached) $ac_c" 1>&6
18693 else
18694   cat > conftest.$ac_ext <<EOF
18695 #line 18696 "configure"
18696 #include "confdefs.h"
18697 /* System header to define __stub macros and hopefully few prototypes,
18698     which can conflict with char $ac_func(); below.  */
18699 #include <assert.h>
18700 /* Override any gcc2 internal prototype to avoid an error.  */
18701 /* We use char because int might match the return type of a gcc2
18702     builtin and then its argument prototype would still apply.  */
18703 char $ac_func();
18704
18705 int main() {
18706
18707 /* The GNU C library defines this for functions which it implements
18708     to always fail with ENOSYS.  Some functions are actually named
18709     something starting with __ and the normal name is an alias.  */
18710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18711 choke me
18712 #else
18713 $ac_func();
18714 #endif
18715
18716 ; return 0; }
18717 EOF
18718 if { (eval echo configure:18719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18719   rm -rf conftest*
18720   eval "ac_cv_func_$ac_func=yes"
18721 else
18722   echo "configure: failed program was:" >&5
18723   cat conftest.$ac_ext >&5
18724   rm -rf conftest*
18725   eval "ac_cv_func_$ac_func=no"
18726 fi
18727 rm -f conftest*
18728 fi
18729
18730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18731   echo "$ac_t""yes" 1>&6
18732     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18733   cat >> confdefs.h <<EOF
18734 #define $ac_tr_func 1
18735 EOF
18736  
18737 else
18738   echo "$ac_t""no" 1>&6
18739 fi
18740 done
18741
18742
18743     if test "$ac_cv_func_localtime" = "yes"; then
18744         echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
18745 echo "configure:18746: checking for tm_gmtoff in struct tm" >&5
18746 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18747   echo $ac_n "(cached) $ac_c" 1>&6
18748 else
18749   
18750             cat > conftest.$ac_ext <<EOF
18751 #line 18752 "configure"
18752 #include "confdefs.h"
18753
18754                     #include <time.h>
18755                 
18756 int main() {
18757
18758                     struct tm tm;
18759                     tm.tm_gmtoff++;
18760                 
18761 ; return 0; }
18762 EOF
18763 if { (eval echo configure:18764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18764   rm -rf conftest*
18765   
18766                     wx_cv_struct_tm_has_gmtoff=yes
18767                 
18768 else
18769   echo "configure: failed program was:" >&5
18770   cat conftest.$ac_ext >&5
18771   rm -rf conftest*
18772   wx_cv_struct_tm_has_gmtoff=no
18773             
18774 fi
18775 rm -f conftest*
18776         
18777 fi
18778
18779 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
18780     fi
18781
18782     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
18783         cat >> confdefs.h <<\EOF
18784 #define WX_GMTOFF_IN_TM 1
18785 EOF
18786
18787     fi
18788
18789             for ac_func in gettimeofday ftime
18790 do
18791 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18792 echo "configure:18793: checking for $ac_func" >&5
18793 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18794   echo $ac_n "(cached) $ac_c" 1>&6
18795 else
18796   cat > conftest.$ac_ext <<EOF
18797 #line 18798 "configure"
18798 #include "confdefs.h"
18799 /* System header to define __stub macros and hopefully few prototypes,
18800     which can conflict with char $ac_func(); below.  */
18801 #include <assert.h>
18802 /* Override any gcc2 internal prototype to avoid an error.  */
18803 /* We use char because int might match the return type of a gcc2
18804     builtin and then its argument prototype would still apply.  */
18805 char $ac_func();
18806
18807 int main() {
18808
18809 /* The GNU C library defines this for functions which it implements
18810     to always fail with ENOSYS.  Some functions are actually named
18811     something starting with __ and the normal name is an alias.  */
18812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18813 choke me
18814 #else
18815 $ac_func();
18816 #endif
18817
18818 ; return 0; }
18819 EOF
18820 if { (eval echo configure:18821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18821   rm -rf conftest*
18822   eval "ac_cv_func_$ac_func=yes"
18823 else
18824   echo "configure: failed program was:" >&5
18825   cat conftest.$ac_ext >&5
18826   rm -rf conftest*
18827   eval "ac_cv_func_$ac_func=no"
18828 fi
18829 rm -f conftest*
18830 fi
18831
18832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18833   echo "$ac_t""yes" 1>&6
18834     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18835   cat >> confdefs.h <<EOF
18836 #define $ac_tr_func 1
18837 EOF
18838  break
18839 else
18840   echo "$ac_t""no" 1>&6
18841 fi
18842 done
18843
18844
18845     if test "$ac_cv_func_gettimeofday" = "yes"; then
18846         echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
18847 echo "configure:18848: checking whether gettimeofday takes two arguments" >&5
18848 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
18849   echo $ac_n "(cached) $ac_c" 1>&6
18850 else
18851   
18852                         
18853             ac_ext=C
18854 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18855 ac_cpp='$CXXCPP $CPPFLAGS'
18856 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18857 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18858 cross_compiling=$ac_cv_prog_cxx_cross
18859
18860
18861             cat > conftest.$ac_ext <<EOF
18862 #line 18863 "configure"
18863 #include "confdefs.h"
18864
18865                     #include <sys/time.h>
18866                     #include <unistd.h>
18867                 
18868 int main() {
18869
18870                     struct timeval tv;
18871                     gettimeofday(&tv, NULL);
18872                 
18873 ; return 0; }
18874 EOF
18875 if { (eval echo configure:18876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18876   rm -rf conftest*
18877   wx_cv_func_gettimeofday_has_2_args=yes
18878 else
18879   echo "configure: failed program was:" >&5
18880   cat conftest.$ac_ext >&5
18881   rm -rf conftest*
18882   cat > conftest.$ac_ext <<EOF
18883 #line 18884 "configure"
18884 #include "confdefs.h"
18885
18886                         #include <sys/time.h>
18887                         #include <unistd.h>
18888                     
18889 int main() {
18890
18891                         struct timeval tv;
18892                         gettimeofday(&tv);
18893                     
18894 ; return 0; }
18895 EOF
18896 if { (eval echo configure:18897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18897   rm -rf conftest*
18898   wx_cv_func_gettimeofday_has_2_args=no
18899 else
18900   echo "configure: failed program was:" >&5
18901   cat conftest.$ac_ext >&5
18902   rm -rf conftest*
18903   
18904                         echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
18905                         wx_cv_func_gettimeofday_has_2_args=unknown
18906                     
18907                 
18908 fi
18909 rm -f conftest*
18910             
18911 fi
18912 rm -f conftest*
18913             ac_ext=c
18914 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18915 ac_cpp='$CPP $CPPFLAGS'
18916 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18917 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18918 cross_compiling=$ac_cv_prog_cc_cross
18919
18920         
18921 fi
18922
18923 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
18924
18925         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
18926             cat >> confdefs.h <<\EOF
18927 #define WX_GETTIMEOFDAY_NO_TZ 1
18928 EOF
18929
18930         fi
18931     fi
18932
18933     cat >> confdefs.h <<\EOF
18934 #define wxUSE_TIMEDATE 1
18935 EOF
18936
18937     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
18938 fi
18939
18940
18941 if test "$wxUSE_SOCKETS" = "yes"; then
18942     if test "$wxUSE_X11" = "1"; then
18943         echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2
18944         wxUSE_SOCKETS="no"
18945     fi
18946
18947     if test "$wxUSE_MGL" = "1"; then
18948         echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
18949         wxUSE_SOCKETS="no"
18950     fi
18951 fi
18952
18953 if test "$wxUSE_SOCKETS" = "yes"; then
18954         if test "$TOOLKIT" != "MSW"; then
18955                 echo $ac_n "checking for socket""... $ac_c" 1>&6
18956 echo "configure:18957: checking for socket" >&5
18957 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
18958   echo $ac_n "(cached) $ac_c" 1>&6
18959 else
18960   cat > conftest.$ac_ext <<EOF
18961 #line 18962 "configure"
18962 #include "confdefs.h"
18963 /* System header to define __stub macros and hopefully few prototypes,
18964     which can conflict with char socket(); below.  */
18965 #include <assert.h>
18966 /* Override any gcc2 internal prototype to avoid an error.  */
18967 /* We use char because int might match the return type of a gcc2
18968     builtin and then its argument prototype would still apply.  */
18969 char socket();
18970
18971 int main() {
18972
18973 /* The GNU C library defines this for functions which it implements
18974     to always fail with ENOSYS.  Some functions are actually named
18975     something starting with __ and the normal name is an alias.  */
18976 #if defined (__stub_socket) || defined (__stub___socket)
18977 choke me
18978 #else
18979 socket();
18980 #endif
18981
18982 ; return 0; }
18983 EOF
18984 if { (eval echo configure:18985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18985   rm -rf conftest*
18986   eval "ac_cv_func_socket=yes"
18987 else
18988   echo "configure: failed program was:" >&5
18989   cat conftest.$ac_ext >&5
18990   rm -rf conftest*
18991   eval "ac_cv_func_socket=no"
18992 fi
18993 rm -f conftest*
18994 fi
18995
18996 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
18997   echo "$ac_t""yes" 1>&6
18998   :
18999 else
19000   echo "$ac_t""no" 1>&6
19001 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
19002 echo "configure:19003: checking for socket in -lsocket" >&5
19003 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
19004 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19005   echo $ac_n "(cached) $ac_c" 1>&6
19006 else
19007   ac_save_LIBS="$LIBS"
19008 LIBS="-lsocket  $LIBS"
19009 cat > conftest.$ac_ext <<EOF
19010 #line 19011 "configure"
19011 #include "confdefs.h"
19012 /* Override any gcc2 internal prototype to avoid an error.  */
19013 /* We use char because int might match the return type of a gcc2
19014     builtin and then its argument prototype would still apply.  */
19015 char socket();
19016
19017 int main() {
19018 socket()
19019 ; return 0; }
19020 EOF
19021 if { (eval echo configure:19022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19022   rm -rf conftest*
19023   eval "ac_cv_lib_$ac_lib_var=yes"
19024 else
19025   echo "configure: failed program was:" >&5
19026   cat conftest.$ac_ext >&5
19027   rm -rf conftest*
19028   eval "ac_cv_lib_$ac_lib_var=no"
19029 fi
19030 rm -f conftest*
19031 LIBS="$ac_save_LIBS"
19032
19033 fi
19034 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19035   echo "$ac_t""yes" 1>&6
19036   if test "$INET_LINK" != " -lsocket"; then
19037                     INET_LINK="$INET_LINK -lsocket"
19038                 fi
19039 else
19040   echo "$ac_t""no" 1>&6
19041
19042                     echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
19043                     wxUSE_SOCKETS=no
19044                 
19045             
19046 fi
19047
19048         
19049 fi
19050
19051     fi
19052 fi
19053
19054 if test "$wxUSE_SOCKETS" = "yes" ; then
19055                 if test "$TOOLKIT" != "MSW"; then
19056                 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
19057 echo "configure:19058: checking what is the type of the third argument of getsockname" >&5
19058 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
19059   echo $ac_n "(cached) $ac_c" 1>&6
19060 else
19061   
19062                 
19063                 ac_ext=C
19064 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19065 ac_cpp='$CXXCPP $CPPFLAGS'
19066 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19067 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19068 cross_compiling=$ac_cv_prog_cxx_cross
19069
19070
19071                 cat > conftest.$ac_ext <<EOF
19072 #line 19073 "configure"
19073 #include "confdefs.h"
19074
19075                         #include <sys/types.h>
19076                         #include <sys/socket.h>
19077                     
19078 int main() {
19079
19080                         socklen_t len;
19081                         getsockname(0, 0, &len);
19082                     
19083 ; return 0; }
19084 EOF
19085 if { (eval echo configure:19086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19086   rm -rf conftest*
19087   wx_cv_type_getsockname3=socklen_t
19088 else
19089   echo "configure: failed program was:" >&5
19090   cat conftest.$ac_ext >&5
19091   rm -rf conftest*
19092   cat > conftest.$ac_ext <<EOF
19093 #line 19094 "configure"
19094 #include "confdefs.h"
19095
19096                             #include <sys/types.h>
19097                             #include <sys/socket.h>
19098                         
19099 int main() {
19100
19101                             size_t len;
19102                             getsockname(0, 0, &len);
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   wx_cv_type_getsockname3=size_t
19109 else
19110   echo "configure: failed program was:" >&5
19111   cat conftest.$ac_ext >&5
19112   rm -rf conftest*
19113   cat > conftest.$ac_ext <<EOF
19114 #line 19115 "configure"
19115 #include "confdefs.h"
19116
19117                                 #include <sys/types.h>
19118                                 #include <sys/socket.h>
19119                             
19120 int main() {
19121
19122                                 int len;
19123                                 getsockname(0, 0, &len);
19124                             
19125 ; return 0; }
19126 EOF
19127 if { (eval echo configure:19128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19128   rm -rf conftest*
19129   wx_cv_type_getsockname3=int
19130 else
19131   echo "configure: failed program was:" >&5
19132   cat conftest.$ac_ext >&5
19133   rm -rf conftest*
19134   wx_cv_type_getsockname3=unknown
19135                         
19136 fi
19137 rm -f conftest*
19138                     
19139 fi
19140 rm -f conftest*
19141                 
19142 fi
19143 rm -f conftest*
19144
19145                 ac_ext=c
19146 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19147 ac_cpp='$CPP $CPPFLAGS'
19148 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19149 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19150 cross_compiling=$ac_cv_prog_cc_cross
19151
19152             
19153 fi
19154
19155 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
19156
19157         if test "$wx_cv_type_getsockname3" = "unknown"; then
19158             wxUSE_SOCKETS=no
19159             echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
19160         else
19161             cat >> confdefs.h <<EOF
19162 #define SOCKLEN_T $wx_cv_type_getsockname3
19163 EOF
19164
19165         fi
19166     fi
19167 fi
19168
19169 if test "$wxUSE_SOCKETS" = "yes" ; then
19170     cat >> confdefs.h <<\EOF
19171 #define wxUSE_SOCKETS 1
19172 EOF
19173
19174     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
19175 fi
19176
19177
19178 if test "$wxUSE_GUI" = "yes"; then
19179
19180     if test "$TOOLKIT" = "MAC"; then
19181         echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
19182         wxUSE_JOYSTICK=no
19183      fi
19184     if test "$TOOLKIT" = "MOTIF"; then
19185         echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
19186         wxUSE_JOYSTICK=no
19187      fi
19188     if test "$TOOLKIT" = "X11"; then
19189         echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
19190         wxUSE_JOYSTICK=no
19191      fi
19192
19193         if test "$TOOLKIT" != "MSW"; then
19194         if test "$wxUSE_JOYSTICK" = "yes"; then
19195                         for ac_hdr in linux/joystick.h
19196 do
19197 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19198 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19199 echo "configure:19200: checking for $ac_hdr" >&5
19200 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19201   echo $ac_n "(cached) $ac_c" 1>&6
19202 else
19203   cat > conftest.$ac_ext <<EOF
19204 #line 19205 "configure"
19205 #include "confdefs.h"
19206 #include <$ac_hdr>
19207 EOF
19208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19209 { (eval echo configure:19210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19211 if test -z "$ac_err"; then
19212   rm -rf conftest*
19213   eval "ac_cv_header_$ac_safe=yes"
19214 else
19215   echo "$ac_err" >&5
19216   echo "configure: failed program was:" >&5
19217   cat conftest.$ac_ext >&5
19218   rm -rf conftest*
19219   eval "ac_cv_header_$ac_safe=no"
19220 fi
19221 rm -f conftest*
19222 fi
19223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19224   echo "$ac_t""yes" 1>&6
19225     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19226   cat >> confdefs.h <<EOF
19227 #define $ac_tr_hdr 1
19228 EOF
19229  
19230 else
19231   echo "$ac_t""no" 1>&6
19232 fi
19233 done
19234
19235             if test "$ac_cv_header_linux_joystick_h" != "yes"; then
19236                 wxUSE_JOYSTICK=no
19237                 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
19238             fi
19239         fi
19240     fi
19241
19242     if test "$wxUSE_JOYSTICK" = "yes"; then
19243         cat >> confdefs.h <<\EOF
19244 #define wxUSE_JOYSTICK 1
19245 EOF
19246
19247         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
19248     fi
19249 fi
19250
19251
19252 if test "$TOOLKIT" != "MSW"; then
19253
19254     HAVE_DL_FUNCS=0
19255     HAVE_SHL_FUNCS=0
19256     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19257         if test "$USE_DARWIN" = 1; then
19258                         HAVE_DL_FUNCS=1
19259         else
19260                                                 for ac_func in dlopen
19261 do
19262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19263 echo "configure:19264: checking for $ac_func" >&5
19264 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19265   echo $ac_n "(cached) $ac_c" 1>&6
19266 else
19267   cat > conftest.$ac_ext <<EOF
19268 #line 19269 "configure"
19269 #include "confdefs.h"
19270 /* System header to define __stub macros and hopefully few prototypes,
19271     which can conflict with char $ac_func(); below.  */
19272 #include <assert.h>
19273 /* Override any gcc2 internal prototype to avoid an error.  */
19274 /* We use char because int might match the return type of a gcc2
19275     builtin and then its argument prototype would still apply.  */
19276 char $ac_func();
19277
19278 int main() {
19279
19280 /* The GNU C library defines this for functions which it implements
19281     to always fail with ENOSYS.  Some functions are actually named
19282     something starting with __ and the normal name is an alias.  */
19283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19284 choke me
19285 #else
19286 $ac_func();
19287 #endif
19288
19289 ; return 0; }
19290 EOF
19291 if { (eval echo configure:19292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19292   rm -rf conftest*
19293   eval "ac_cv_func_$ac_func=yes"
19294 else
19295   echo "configure: failed program was:" >&5
19296   cat conftest.$ac_ext >&5
19297   rm -rf conftest*
19298   eval "ac_cv_func_$ac_func=no"
19299 fi
19300 rm -f conftest*
19301 fi
19302
19303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19304   echo "$ac_t""yes" 1>&6
19305     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19306   cat >> confdefs.h <<EOF
19307 #define $ac_tr_func 1
19308 EOF
19309  
19310                 cat >> confdefs.h <<\EOF
19311 #define HAVE_DLOPEN 1
19312 EOF
19313
19314                 HAVE_DL_FUNCS=1
19315             
19316 else
19317   echo "$ac_t""no" 1>&6
19318 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
19319 echo "configure:19320: checking for dlopen in -ldl" >&5
19320 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
19321 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19322   echo $ac_n "(cached) $ac_c" 1>&6
19323 else
19324   ac_save_LIBS="$LIBS"
19325 LIBS="-ldl  $LIBS"
19326 cat > conftest.$ac_ext <<EOF
19327 #line 19328 "configure"
19328 #include "confdefs.h"
19329 /* Override any gcc2 internal prototype to avoid an error.  */
19330 /* We use char because int might match the return type of a gcc2
19331     builtin and then its argument prototype would still apply.  */
19332 char dlopen();
19333
19334 int main() {
19335 dlopen()
19336 ; return 0; }
19337 EOF
19338 if { (eval echo configure:19339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19339   rm -rf conftest*
19340   eval "ac_cv_lib_$ac_lib_var=yes"
19341 else
19342   echo "configure: failed program was:" >&5
19343   cat conftest.$ac_ext >&5
19344   rm -rf conftest*
19345   eval "ac_cv_lib_$ac_lib_var=no"
19346 fi
19347 rm -f conftest*
19348 LIBS="$ac_save_LIBS"
19349
19350 fi
19351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19352   echo "$ac_t""yes" 1>&6
19353   
19354                                 cat >> confdefs.h <<\EOF
19355 #define HAVE_DLOPEN 1
19356 EOF
19357
19358                                 HAVE_DL_FUNCS=1
19359                                 DL_LINK=" -ldl$DL_LINK"
19360                             
19361 else
19362   echo "$ac_t""no" 1>&6
19363
19364                                 for ac_func in shl_load
19365 do
19366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19367 echo "configure:19368: checking for $ac_func" >&5
19368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19369   echo $ac_n "(cached) $ac_c" 1>&6
19370 else
19371   cat > conftest.$ac_ext <<EOF
19372 #line 19373 "configure"
19373 #include "confdefs.h"
19374 /* System header to define __stub macros and hopefully few prototypes,
19375     which can conflict with char $ac_func(); below.  */
19376 #include <assert.h>
19377 /* Override any gcc2 internal prototype to avoid an error.  */
19378 /* We use char because int might match the return type of a gcc2
19379     builtin and then its argument prototype would still apply.  */
19380 char $ac_func();
19381
19382 int main() {
19383
19384 /* The GNU C library defines this for functions which it implements
19385     to always fail with ENOSYS.  Some functions are actually named
19386     something starting with __ and the normal name is an alias.  */
19387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19388 choke me
19389 #else
19390 $ac_func();
19391 #endif
19392
19393 ; return 0; }
19394 EOF
19395 if { (eval echo configure:19396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19396   rm -rf conftest*
19397   eval "ac_cv_func_$ac_func=yes"
19398 else
19399   echo "configure: failed program was:" >&5
19400   cat conftest.$ac_ext >&5
19401   rm -rf conftest*
19402   eval "ac_cv_func_$ac_func=no"
19403 fi
19404 rm -f conftest*
19405 fi
19406
19407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19408   echo "$ac_t""yes" 1>&6
19409     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19410   cat >> confdefs.h <<EOF
19411 #define $ac_tr_func 1
19412 EOF
19413  
19414                                                 cat >> confdefs.h <<\EOF
19415 #define HAVE_SHL_LOAD 1
19416 EOF
19417
19418                                                 HAVE_SHL_FUNCS=1
19419                                               
19420 else
19421   echo "$ac_t""no" 1>&6
19422 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
19423 echo "configure:19424: checking for dld in -lshl_load" >&5
19424 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19425 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19426   echo $ac_n "(cached) $ac_c" 1>&6
19427 else
19428   ac_save_LIBS="$LIBS"
19429 LIBS="-lshl_load  $LIBS"
19430 cat > conftest.$ac_ext <<EOF
19431 #line 19432 "configure"
19432 #include "confdefs.h"
19433 /* Override any gcc2 internal prototype to avoid an error.  */
19434 /* We use char because int might match the return type of a gcc2
19435     builtin and then its argument prototype would still apply.  */
19436 char dld();
19437
19438 int main() {
19439 dld()
19440 ; return 0; }
19441 EOF
19442 if { (eval echo configure:19443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19443   rm -rf conftest*
19444   eval "ac_cv_lib_$ac_lib_var=yes"
19445 else
19446   echo "configure: failed program was:" >&5
19447   cat conftest.$ac_ext >&5
19448   rm -rf conftest*
19449   eval "ac_cv_lib_$ac_lib_var=no"
19450 fi
19451 rm -f conftest*
19452 LIBS="$ac_save_LIBS"
19453
19454 fi
19455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19456   echo "$ac_t""yes" 1>&6
19457   
19458                                                                 HAVE_SHL_FUNCS=1
19459                                                                 DL_LINK=" -ldld$DL_LINK"
19460                                                              
19461 else
19462   echo "$ac_t""no" 1>&6
19463 fi
19464
19465                                               
19466 fi
19467 done
19468
19469                             
19470 fi
19471
19472             
19473 fi
19474 done
19475
19476
19477                 if test "$HAVE_DL_FUNCS" = 1; then
19478             for ac_func in dlerror
19479 do
19480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19481 echo "configure:19482: checking for $ac_func" >&5
19482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19483   echo $ac_n "(cached) $ac_c" 1>&6
19484 else
19485   cat > conftest.$ac_ext <<EOF
19486 #line 19487 "configure"
19487 #include "confdefs.h"
19488 /* System header to define __stub macros and hopefully few prototypes,
19489     which can conflict with char $ac_func(); below.  */
19490 #include <assert.h>
19491 /* Override any gcc2 internal prototype to avoid an error.  */
19492 /* We use char because int might match the return type of a gcc2
19493     builtin and then its argument prototype would still apply.  */
19494 char $ac_func();
19495
19496 int main() {
19497
19498 /* The GNU C library defines this for functions which it implements
19499     to always fail with ENOSYS.  Some functions are actually named
19500     something starting with __ and the normal name is an alias.  */
19501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19502 choke me
19503 #else
19504 $ac_func();
19505 #endif
19506
19507 ; return 0; }
19508 EOF
19509 if { (eval echo configure:19510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19510   rm -rf conftest*
19511   eval "ac_cv_func_$ac_func=yes"
19512 else
19513   echo "configure: failed program was:" >&5
19514   cat conftest.$ac_ext >&5
19515   rm -rf conftest*
19516   eval "ac_cv_func_$ac_func=no"
19517 fi
19518 rm -f conftest*
19519 fi
19520
19521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19522   echo "$ac_t""yes" 1>&6
19523     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19524   cat >> confdefs.h <<EOF
19525 #define $ac_tr_func 1
19526 EOF
19527  cat >> confdefs.h <<\EOF
19528 #define HAVE_DLERROR 1
19529 EOF
19530
19531 else
19532   echo "$ac_t""no" 1>&6
19533 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
19534 echo "configure:19535: checking for dlerror in -ldl" >&5
19535 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19536 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19537   echo $ac_n "(cached) $ac_c" 1>&6
19538 else
19539   ac_save_LIBS="$LIBS"
19540 LIBS="-ldl  $LIBS"
19541 cat > conftest.$ac_ext <<EOF
19542 #line 19543 "configure"
19543 #include "confdefs.h"
19544 /* Override any gcc2 internal prototype to avoid an error.  */
19545 /* We use char because int might match the return type of a gcc2
19546     builtin and then its argument prototype would still apply.  */
19547 char dlerror();
19548
19549 int main() {
19550 dlerror()
19551 ; return 0; }
19552 EOF
19553 if { (eval echo configure:19554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19554   rm -rf conftest*
19555   eval "ac_cv_lib_$ac_lib_var=yes"
19556 else
19557   echo "configure: failed program was:" >&5
19558   cat conftest.$ac_ext >&5
19559   rm -rf conftest*
19560   eval "ac_cv_lib_$ac_lib_var=no"
19561 fi
19562 rm -f conftest*
19563 LIBS="$ac_save_LIBS"
19564
19565 fi
19566 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19567   echo "$ac_t""yes" 1>&6
19568   cat >> confdefs.h <<\EOF
19569 #define HAVE_DLERROR 1
19570 EOF
19571
19572 else
19573   echo "$ac_t""no" 1>&6
19574 fi
19575
19576 fi
19577 done
19578
19579         fi
19580         fi
19581
19582         if test "$HAVE_DL_FUNCS" = 0; then
19583             if test "$HAVE_SHL_FUNCS" = 0; then
19584               if test "$USE_UNIX" = 1; then
19585                   echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
19586                   wxUSE_DYNAMIC_LOADER=no
19587                   wxUSE_DYNLIB_CLASS=no
19588               else
19589                   echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19590               fi
19591             fi
19592         fi
19593     fi
19594 fi
19595
19596 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19597     cat >> confdefs.h <<\EOF
19598 #define wxUSE_DYNAMIC_LOADER 1
19599 EOF
19600
19601 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19602     cat >> confdefs.h <<\EOF
19603 #define wxUSE_DYNLIB_CLASS 1
19604 EOF
19605
19606 fi
19607
19608
19609 if test "$wxUSE_FONTMAP" = "yes" ; then
19610   cat >> confdefs.h <<\EOF
19611 #define wxUSE_FONTMAP 1
19612 EOF
19613
19614 fi
19615
19616 if test "$wxUSE_UNICODE" = "yes" ; then
19617   cat >> confdefs.h <<\EOF
19618 #define wxUSE_UNICODE 1
19619 EOF
19620
19621   
19622   if test "$wxUSE_MSW" != 1; then
19623       wxUSE_UNICODE_MSLU=no
19624   fi
19625
19626   if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19627         echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
19628 echo "configure:19629: checking for main in -lunicows" >&5
19629 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19630 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19631   echo $ac_n "(cached) $ac_c" 1>&6
19632 else
19633   ac_save_LIBS="$LIBS"
19634 LIBS="-lunicows  $LIBS"
19635 cat > conftest.$ac_ext <<EOF
19636 #line 19637 "configure"
19637 #include "confdefs.h"
19638
19639 int main() {
19640 main()
19641 ; return 0; }
19642 EOF
19643 if { (eval echo configure:19644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19644   rm -rf conftest*
19645   eval "ac_cv_lib_$ac_lib_var=yes"
19646 else
19647   echo "configure: failed program was:" >&5
19648   cat conftest.$ac_ext >&5
19649   rm -rf conftest*
19650   eval "ac_cv_lib_$ac_lib_var=no"
19651 fi
19652 rm -f conftest*
19653 LIBS="$ac_save_LIBS"
19654
19655 fi
19656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19657   echo "$ac_t""yes" 1>&6
19658   
19659                 cat >> confdefs.h <<\EOF
19660 #define wxUSE_UNICODE_MSLU 1
19661 EOF
19662
19663             
19664 else
19665   echo "$ac_t""no" 1>&6
19666
19667                 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19668                              Applications will only run on Windows NT/2000/XP!" 1>&2
19669                 wxUSE_UNICODE_MSLU=no
19670             
19671 fi
19672
19673     fi
19674 fi
19675
19676 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
19677   cat >> confdefs.h <<\EOF
19678 #define wxUSE_EXPERIMENTAL_PRINTF 1
19679 EOF
19680
19681 fi
19682
19683
19684
19685 IODBC_C_SRC=""
19686 if test "$wxUSE_ODBC" = "yes" ; then
19687     cat >> confdefs.h <<\EOF
19688 #define wxUSE_ODBC 1
19689 EOF
19690
19691     WXODBCFLAG="-D_IODBC_"
19692     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
19693 fi
19694
19695
19696 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
19697   cat >> confdefs.h <<\EOF
19698 #define wxUSE_POSTSCRIPT 1
19699 EOF
19700
19701 fi
19702
19703 cat >> confdefs.h <<\EOF
19704 #define wxUSE_AFM_FOR_POSTSCRIPT 1
19705 EOF
19706
19707
19708 cat >> confdefs.h <<\EOF
19709 #define wxUSE_NORMALIZED_PS_FONTS 1
19710 EOF
19711
19712
19713
19714 if test "$wxUSE_CONSTRAINTS" = "yes"; then
19715     cat >> confdefs.h <<\EOF
19716 #define wxUSE_CONSTRAINTS 1
19717 EOF
19718
19719     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19720 fi
19721
19722 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19723     if test "$wxUSE_UNIVERSAL" = "yes"; then
19724         echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2
19725         wxUSE_MDI_ARCHITECTURE=no
19726     fi
19727
19728     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19729         cat >> confdefs.h <<\EOF
19730 #define wxUSE_MDI_ARCHITECTURE 1
19731 EOF
19732
19733         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19734     fi
19735 fi
19736
19737 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
19738     cat >> confdefs.h <<\EOF
19739 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
19740 EOF
19741
19742     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19743     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19744         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19745     fi
19746 fi
19747
19748 if test "$wxUSE_HELP" = "yes"; then
19749     cat >> confdefs.h <<\EOF
19750 #define wxUSE_HELP 1
19751 EOF
19752
19753     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
19754
19755     if test "$wxUSE_MSW" = 1; then
19756       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
19757         cat >> confdefs.h <<\EOF
19758 #define wxUSE_MS_HTML_HELP 1
19759 EOF
19760
19761       fi
19762     fi
19763
19764     if test "$wxUSE_WXHTML_HELP" = "yes"; then
19765       if test "$wxUSE_HTML" = "yes"; then
19766         cat >> confdefs.h <<\EOF
19767 #define wxUSE_WXHTML_HELP 1
19768 EOF
19769
19770       else
19771         echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19772         wxUSE_WXHTML_HELP=no
19773       fi
19774     fi
19775 fi
19776
19777 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19778     if test "$wxUSE_CONSTRAINTS" != "yes"; then
19779         echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
19780     else
19781         cat >> confdefs.h <<\EOF
19782 #define wxUSE_PRINTING_ARCHITECTURE 1
19783 EOF
19784
19785     fi
19786     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19787 fi
19788
19789 if test "$wxUSE_PROLOGIO" = "yes" ; then
19790     cat >> confdefs.h <<\EOF
19791 #define wxUSE_PROLOGIO 1
19792 EOF
19793
19794 fi
19795
19796 if test "$wxUSE_RESOURCES" = "yes" ; then
19797     if test "$wxUSE_NANOX" = "yes"; then
19798         echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
19799         else
19800                 cat >> confdefs.h <<\EOF
19801 #define wxUSE_RESOURCES 1
19802 EOF
19803
19804                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19805     fi
19806 fi
19807
19808 if test "$wxUSE_X_RESOURCES" = "yes"; then
19809     cat >> confdefs.h <<\EOF
19810 #define wxUSE_X_RESOURCES 1
19811 EOF
19812
19813 fi
19814
19815
19816 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
19817                           -o "$wxUSE_CLIPBOARD"     = "yes" \
19818                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
19819     for ac_hdr in ole2.h
19820 do
19821 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19822 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19823 echo "configure:19824: checking for $ac_hdr" >&5
19824 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19825   echo $ac_n "(cached) $ac_c" 1>&6
19826 else
19827   cat > conftest.$ac_ext <<EOF
19828 #line 19829 "configure"
19829 #include "confdefs.h"
19830 #include <$ac_hdr>
19831 EOF
19832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19833 { (eval echo configure:19834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19834 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19835 if test -z "$ac_err"; then
19836   rm -rf conftest*
19837   eval "ac_cv_header_$ac_safe=yes"
19838 else
19839   echo "$ac_err" >&5
19840   echo "configure: failed program was:" >&5
19841   cat conftest.$ac_ext >&5
19842   rm -rf conftest*
19843   eval "ac_cv_header_$ac_safe=no"
19844 fi
19845 rm -f conftest*
19846 fi
19847 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19848   echo "$ac_t""yes" 1>&6
19849     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19850   cat >> confdefs.h <<EOF
19851 #define $ac_tr_hdr 1
19852 EOF
19853  
19854 else
19855   echo "$ac_t""no" 1>&6
19856 fi
19857 done
19858
19859
19860     if test "$ac_cv_header_ole2_h" = "yes" ; then
19861         if test "$GCC" = yes ; then
19862             ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
19863             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
19864             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
19865             cat >> confdefs.h <<\EOF
19866 #define wxUSE_OLE 1
19867 EOF
19868
19869
19870         fi
19871
19872                 cat >> confdefs.h <<\EOF
19873 #define wxUSE_DATAOBJ 1
19874 EOF
19875
19876     else
19877         echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
19878
19879         wxUSE_CLIPBOARD=no
19880         wxUSE_DRAG_AND_DROP=no
19881         wxUSE_DATAOBJ=no
19882     fi
19883
19884     if test "$wxUSE_METAFILE" = "yes"; then
19885         cat >> confdefs.h <<\EOF
19886 #define wxUSE_METAFILE 1
19887 EOF
19888
19889
19890                 cat >> confdefs.h <<\EOF
19891 #define wxUSE_ENH_METAFILE 1
19892 EOF
19893
19894     fi
19895 fi
19896
19897 if test "$wxUSE_IPC" = "yes"; then
19898     if test "$wxUSE_SOCKETS" != "yes"; then
19899         echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
19900     fi
19901
19902     cat >> confdefs.h <<\EOF
19903 #define wxUSE_IPC 1
19904 EOF
19905
19906 fi
19907
19908 if test "$wxUSE_CLIPBOARD" = "yes"; then
19909     if test "$wxUSE_MGL" = 1; then
19910         echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
19911         wxUSE_CLIPBOARD=no
19912     fi
19913
19914     if test "$wxUSE_CLIPBOARD" = "yes"; then
19915         cat >> confdefs.h <<\EOF
19916 #define wxUSE_CLIPBOARD 1
19917 EOF
19918
19919
19920                 cat >> confdefs.h <<\EOF
19921 #define wxUSE_DATAOBJ 1
19922 EOF
19923
19924     fi
19925 fi
19926
19927 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
19928     if test "$wxUSE_GTK" = 1; then
19929         if test "$WXGTK12" != 1; then
19930             echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
19931             wxUSE_DRAG_AND_DROP=no
19932         fi
19933     fi
19934
19935     if test "$wxUSE_MOTIF" = 1; then
19936         echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
19937         wxUSE_DRAG_AND_DROP=no
19938     fi
19939
19940     if test "$wxUSE_X11" = 1; then
19941         echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
19942         wxUSE_DRAG_AND_DROP=no
19943     fi
19944
19945     if test "$wxUSE_MGL" = 1; then
19946         echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
19947         wxUSE_DRAG_AND_DROP=no
19948     fi
19949
19950     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
19951         cat >> confdefs.h <<\EOF
19952 #define wxUSE_DRAG_AND_DROP 1
19953 EOF
19954
19955         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
19956     fi
19957
19958 fi
19959
19960 if test "$wxUSE_SPLINES" = "yes" ; then
19961   cat >> confdefs.h <<\EOF
19962 #define wxUSE_SPLINES 1
19963 EOF
19964
19965 fi
19966
19967
19968 USES_CONTROLS=0
19969 if test "$wxUSE_CONTROLS" = "yes"; then
19970   USES_CONTROLS=1
19971 fi
19972
19973 if test "$wxUSE_ACCEL" = "yes"; then
19974   cat >> confdefs.h <<\EOF
19975 #define wxUSE_ACCEL 1
19976 EOF
19977
19978   USES_CONTROLS=1
19979 fi
19980
19981 if test "$wxUSE_BUTTON" = "yes"; then
19982   cat >> confdefs.h <<\EOF
19983 #define wxUSE_BUTTON 1
19984 EOF
19985
19986   USES_CONTROLS=1
19987 fi
19988
19989 if test "$wxUSE_BMPBUTTON" = "yes"; then
19990   cat >> confdefs.h <<\EOF
19991 #define wxUSE_BMPBUTTON 1
19992 EOF
19993
19994   USES_CONTROLS=1
19995 fi
19996
19997 if test "$wxUSE_CALCTRL" = "yes"; then
19998   cat >> confdefs.h <<\EOF
19999 #define wxUSE_CALENDARCTRL 1
20000 EOF
20001
20002   USES_CONTROLS=1
20003   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
20004 fi
20005
20006 if test "$wxUSE_CARET" = "yes"; then
20007   cat >> confdefs.h <<\EOF
20008 #define wxUSE_CARET 1
20009 EOF
20010
20011   USES_CONTROLS=1
20012   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
20013 fi
20014
20015 if test "$wxUSE_COMBOBOX" = "yes"; then
20016   cat >> confdefs.h <<\EOF
20017 #define wxUSE_COMBOBOX 1
20018 EOF
20019
20020   USES_CONTROLS=1
20021 fi
20022
20023 if test "$wxUSE_CHOICE" = "yes"; then
20024   cat >> confdefs.h <<\EOF
20025 #define wxUSE_CHOICE 1
20026 EOF
20027
20028   USES_CONTROLS=1
20029 fi
20030
20031 if test "$wxUSE_CHECKBOX" = "yes"; then
20032   cat >> confdefs.h <<\EOF
20033 #define wxUSE_CHECKBOX 1
20034 EOF
20035
20036   USES_CONTROLS=1
20037 fi
20038
20039 if test "$wxUSE_CHECKLST" = "yes"; then
20040   cat >> confdefs.h <<\EOF
20041 #define wxUSE_CHECKLISTBOX 1
20042 EOF
20043
20044   USES_CONTROLS=1
20045   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
20046 fi
20047
20048 if test "$wxUSE_GAUGE" = "yes"; then
20049   cat >> confdefs.h <<\EOF
20050 #define wxUSE_GAUGE 1
20051 EOF
20052
20053   USES_CONTROLS=1
20054 fi
20055
20056 if test "$wxUSE_NEW_GRID" = "yes"; then
20057   wxUSE_GRID="yes"
20058   cat >> confdefs.h <<\EOF
20059 #define wxUSE_NEW_GRID 1
20060 EOF
20061
20062   USES_CONTROLS=1
20063   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
20064 fi
20065
20066 if test "$wxUSE_GRID" = "yes"; then
20067   cat >> confdefs.h <<\EOF
20068 #define wxUSE_GRID 1
20069 EOF
20070
20071   USES_CONTROLS=1
20072   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
20073 fi
20074
20075 if test "$wxUSE_IMAGLIST" = "yes"; then
20076     cat >> confdefs.h <<\EOF
20077 #define wxUSE_IMAGLIST 1
20078 EOF
20079
20080 fi
20081
20082 if test "$wxUSE_LISTBOX" = "yes"; then
20083     cat >> confdefs.h <<\EOF
20084 #define wxUSE_LISTBOX 1
20085 EOF
20086
20087     USES_CONTROLS=1
20088 fi
20089
20090 if test "$wxUSE_LISTCTRL" = "yes"; then
20091     if test "$wxUSE_IMAGLIST" = "yes"; then
20092         cat >> confdefs.h <<\EOF
20093 #define wxUSE_LISTCTRL 1
20094 EOF
20095
20096         USES_CONTROLS=1
20097         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
20098     else
20099         echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
20100     fi
20101 fi
20102
20103 if test "$wxUSE_NOTEBOOK" = "yes"; then
20104     cat >> confdefs.h <<\EOF
20105 #define wxUSE_NOTEBOOK 1
20106 EOF
20107
20108     USES_CONTROLS=1
20109     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
20110 fi
20111
20112 if test "$wxUSE_PROPSHEET" = "yes"; then
20113     cat >> confdefs.h <<\EOF
20114 #define wxUSE_PROPSHEET 1
20115 EOF
20116
20117     USES_CONTROLS=1
20118     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
20119 fi
20120
20121 if test "$wxUSE_RADIOBOX" = "yes"; then
20122     cat >> confdefs.h <<\EOF
20123 #define wxUSE_RADIOBOX 1
20124 EOF
20125
20126     USES_CONTROLS=1
20127 fi
20128
20129 if test "$wxUSE_RADIOBTN" = "yes"; then
20130     cat >> confdefs.h <<\EOF
20131 #define wxUSE_RADIOBTN 1
20132 EOF
20133
20134     USES_CONTROLS=1
20135 fi
20136
20137 if test "$wxUSE_SASH" = "yes"; then
20138     cat >> confdefs.h <<\EOF
20139 #define wxUSE_SASH 1
20140 EOF
20141
20142     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
20143 fi
20144
20145 if test "$wxUSE_SCROLLBAR" = "yes"; then
20146     cat >> confdefs.h <<\EOF
20147 #define wxUSE_SCROLLBAR 1
20148 EOF
20149
20150     USES_CONTROLS=1
20151     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
20152 fi
20153
20154 if test "$wxUSE_SLIDER" = "yes"; then
20155     cat >> confdefs.h <<\EOF
20156 #define wxUSE_SLIDER 1
20157 EOF
20158
20159     USES_CONTROLS=1
20160 fi
20161
20162 if test "$wxUSE_SPINBTN" = "yes"; then
20163     cat >> confdefs.h <<\EOF
20164 #define wxUSE_SPINBTN 1
20165 EOF
20166
20167     USES_CONTROLS=1
20168 fi
20169
20170 if test "$wxUSE_SPINCTRL" = "yes"; then
20171     cat >> confdefs.h <<\EOF
20172 #define wxUSE_SPINCTRL 1
20173 EOF
20174
20175     USES_CONTROLS=1
20176 fi
20177
20178 if test "$wxUSE_SPLITTER" = "yes"; then
20179     cat >> confdefs.h <<\EOF
20180 #define wxUSE_SPLITTER 1
20181 EOF
20182
20183     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
20184 fi
20185
20186 if test "$wxUSE_STATBMP" = "yes"; then
20187     cat >> confdefs.h <<\EOF
20188 #define wxUSE_STATBMP 1
20189 EOF
20190
20191     USES_CONTROLS=1
20192 fi
20193
20194 if test "$wxUSE_STATBOX" = "yes"; then
20195     cat >> confdefs.h <<\EOF
20196 #define wxUSE_STATBOX 1
20197 EOF
20198
20199     USES_CONTROLS=1
20200 fi
20201
20202 if test "$wxUSE_STATTEXT" = "yes"; then
20203     cat >> confdefs.h <<\EOF
20204 #define wxUSE_STATTEXT 1
20205 EOF
20206
20207     USES_CONTROLS=1
20208 fi
20209
20210 if test "$wxUSE_STATLINE" = "yes"; then
20211     if test "$wxUSE_WINE" = 1 ; then
20212         echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
20213     else
20214         cat >> confdefs.h <<\EOF
20215 #define wxUSE_STATLINE 1
20216 EOF
20217
20218         USES_CONTROLS=1
20219     fi
20220 fi
20221
20222 if test "$wxUSE_STATUSBAR" = "yes"; then
20223     cat >> confdefs.h <<\EOF
20224 #define wxUSE_STATUSBAR 1
20225 EOF
20226
20227     USES_CONTROLS=1
20228
20229     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
20230 fi
20231
20232 if test "$wxUSE_TABDIALOG" = "yes"; then
20233     cat >> confdefs.h <<\EOF
20234 #define wxUSE_TAB_DIALOG 1
20235 EOF
20236
20237     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
20238 fi
20239
20240 if test "$wxUSE_TEXTCTRL" = "yes"; then
20241     cat >> confdefs.h <<\EOF
20242 #define wxUSE_TEXTCTRL 1
20243 EOF
20244
20245     USES_CONTROLS=1
20246     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
20247 fi
20248
20249 if test "$wxUSE_TOGGLEBTN" = "yes"; then
20250     if test "$wxUSE_MAC" = 1; then
20251         echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
20252         wxUSE_TOGGLEBTN=no
20253     fi
20254     if test "$wxUSE_UNIVERSAL" = "yes"; then
20255         echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
20256         wxUSE_TOGGLEBTN=no
20257     fi
20258
20259     if test "$wxUSE_TOGGLEBTN" = "yes"; then
20260         cat >> confdefs.h <<\EOF
20261 #define wxUSE_TOGGLEBTN 1
20262 EOF
20263
20264         USES_CONTROLS=1
20265     fi
20266 fi
20267
20268 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
20269     cat >> confdefs.h <<\EOF
20270 #define wxUSE_TOOLBAR_SIMPLE 1
20271 EOF
20272
20273     wxUSE_TOOLBAR="yes"
20274     USES_CONTROLS=1
20275 fi
20276
20277 if test "$wxUSE_TOOLBAR" = "yes"; then
20278     cat >> confdefs.h <<\EOF
20279 #define wxUSE_TOOLBAR 1
20280 EOF
20281
20282     USES_CONTROLS=1
20283
20284         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
20285         wxUSE_TOOLBAR_NATIVE="yes"
20286     fi
20287
20288     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
20289         cat >> confdefs.h <<\EOF
20290 #define wxUSE_TOOLBAR_NATIVE 1
20291 EOF
20292
20293         USES_CONTROLS=1
20294     fi
20295
20296     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
20297 fi
20298
20299 if test "$wxUSE_TOOLTIPS" = "yes"; then
20300     if test "$wxUSE_MOTIF" = 1; then
20301         echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
20302     else
20303         if test "$wxUSE_WINE" = 1; then
20304             echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
20305         else
20306             if test "$wxUSE_UNIVERSAL" = "yes"; then
20307                 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
20308             else
20309                 cat >> confdefs.h <<\EOF
20310 #define wxUSE_TOOLTIPS 1
20311 EOF
20312
20313             fi
20314         fi
20315     fi
20316 fi
20317
20318 if test "$wxUSE_TREECTRL" = "yes"; then
20319     if test "$wxUSE_IMAGLIST" = "yes"; then
20320         cat >> confdefs.h <<\EOF
20321 #define wxUSE_TREECTRL 1
20322 EOF
20323
20324         USES_CONTROLS=1
20325         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20326     else
20327         echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
20328     fi
20329 fi
20330
20331 if test "$wxUSE_POPUPWIN" = "yes"; then
20332     if test "$wxUSE_MAC" = 1; then
20333         echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
20334     else
20335         if test "$wxUSE_MOTIF" = 1; then
20336             echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
20337         else
20338             if test "$wxUSE_PM" = 1; then
20339                 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
20340             else 
20341                 cat >> confdefs.h <<\EOF
20342 #define wxUSE_POPUPWIN 1
20343 EOF
20344
20345
20346                 USES_CONTROLS=1
20347             fi
20348         fi
20349     fi
20350 fi
20351
20352 if test "$wxUSE_TIPWINDOW" = "yes"; then
20353     if test "$wxUSE_PM" = 1; then
20354         echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
20355     else 
20356         cat >> confdefs.h <<\EOF
20357 #define wxUSE_TIPWINDOW 1
20358 EOF
20359
20360     fi
20361 fi
20362
20363 if test "$USES_CONTROLS" = 1; then
20364     cat >> confdefs.h <<\EOF
20365 #define wxUSE_CONTROLS 1
20366 EOF
20367
20368 fi
20369
20370
20371 if test "$wxUSE_TREELAYOUT" = "yes"; then
20372     cat >> confdefs.h <<\EOF
20373 #define wxUSE_TREELAYOUT 1
20374 EOF
20375
20376     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20377 fi
20378
20379 if test "$wxUSE_DRAGIMAGE" = "yes"; then
20380     cat >> confdefs.h <<\EOF
20381 #define wxUSE_DRAGIMAGE 1
20382 EOF
20383
20384     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20385 fi
20386
20387 if test "$wxUSE_MENUS" = "yes"; then
20388     cat >> confdefs.h <<\EOF
20389 #define wxUSE_MENUS 1
20390 EOF
20391
20392     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
20393 fi
20394
20395 if test "$wxUSE_METAFILE" = "yes"; then
20396     cat >> confdefs.h <<\EOF
20397 #define wxUSE_METAFILE 1
20398 EOF
20399
20400 fi
20401
20402 if test "$wxUSE_MIMETYPE" = "yes"; then
20403     cat >> confdefs.h <<\EOF
20404 #define wxUSE_MIMETYPE 1
20405 EOF
20406
20407 fi
20408
20409 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
20410     cat >> confdefs.h <<\EOF
20411 #define wxUSE_SYSTEM_OPTIONS 1
20412 EOF
20413
20414 if test "$TOOLKIT" = "MSW"; then
20415     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
20416 fi
20417
20418 fi
20419
20420 if test "$wxUSE_PROTOCOL" = "yes"; then
20421     if test "$wxUSE_SOCKETS" != "yes"; then
20422         echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
20423         wxUSE_PROTOCOL=no
20424     fi
20425
20426     if test "$wxUSE_PROTOCOL" = "yes"; then
20427         cat >> confdefs.h <<\EOF
20428 #define wxUSE_PROTOCOL 1
20429 EOF
20430
20431
20432         if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
20433             cat >> confdefs.h <<\EOF
20434 #define wxUSE_PROTOCOL_HTTP 1
20435 EOF
20436
20437         fi
20438         if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
20439             cat >> confdefs.h <<\EOF
20440 #define wxUSE_PROTOCOL_FTP 1
20441 EOF
20442
20443         fi
20444         if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
20445             cat >> confdefs.h <<\EOF
20446 #define wxUSE_PROTOCOL_FILE 1
20447 EOF
20448
20449         fi
20450     fi
20451 fi
20452
20453 if test "$wxUSE_URL" = "yes"; then
20454     if test "$wxUSE_PROTOCOL" != "yes"; then
20455         echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20456         wxUSE_URL=no
20457     fi
20458     if test "$wxUSE_URL" = "yes"; then
20459         cat >> confdefs.h <<\EOF
20460 #define wxUSE_URL 1
20461 EOF
20462
20463     fi
20464 fi
20465
20466 if test "$wxUSE_MINIFRAME" = "yes"; then
20467     cat >> confdefs.h <<\EOF
20468 #define wxUSE_MINIFRAME 1
20469 EOF
20470
20471     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20472 fi
20473
20474 if test "$wxUSE_HTML" = "yes"; then
20475     cat >> confdefs.h <<\EOF
20476 #define wxUSE_HTML 1
20477 EOF
20478
20479     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
20480 fi
20481
20482 if test "$wxUSE_VALIDATORS" = "yes"; then
20483     cat >> confdefs.h <<\EOF
20484 #define wxUSE_VALIDATORS 1
20485 EOF
20486
20487     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20488 fi
20489
20490 if test "$wxUSE_PALETTE" = "yes" ; then
20491   cat >> confdefs.h <<\EOF
20492 #define wxUSE_PALETTE 1
20493 EOF
20494
20495 fi
20496
20497 if test "$wxUSE_IMAGE" = "yes" ; then
20498   cat >> confdefs.h <<\EOF
20499 #define wxUSE_IMAGE 1
20500 EOF
20501
20502 fi
20503
20504 if test "$wxUSE_GIF" = "yes" ; then
20505   cat >> confdefs.h <<\EOF
20506 #define wxUSE_GIF 1
20507 EOF
20508
20509 fi
20510
20511 if test "$wxUSE_PCX" = "yes" ; then
20512   cat >> confdefs.h <<\EOF
20513 #define wxUSE_PCX 1
20514 EOF
20515
20516 fi
20517
20518 if test "$wxUSE_IFF" = "yes" ; then
20519   cat >> confdefs.h <<\EOF
20520 #define wxUSE_IFF 1
20521 EOF
20522
20523 fi
20524
20525 if test "$wxUSE_PNM" = "yes" ; then
20526   cat >> confdefs.h <<\EOF
20527 #define wxUSE_PNM 1
20528 EOF
20529
20530 fi
20531
20532 if test "$wxUSE_XPM" = "yes" ; then
20533   cat >> confdefs.h <<\EOF
20534 #define wxUSE_XPM 1
20535 EOF
20536
20537 fi
20538
20539 if test "$wxUSE_ICO_CUR" = "yes" ; then
20540   cat >> confdefs.h <<\EOF
20541 #define wxUSE_ICO_CUR 1
20542 EOF
20543
20544 fi
20545
20546 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20547     LIBS=" -lunicows $LIBS"
20548 fi
20549
20550
20551 if test "$wxUSE_CHOICEDLG" = "yes"; then
20552     cat >> confdefs.h <<\EOF
20553 #define wxUSE_CHOICEDLG 1
20554 EOF
20555
20556 fi
20557
20558 if test "$wxUSE_COLOURDLG" = "yes"; then
20559     cat >> confdefs.h <<\EOF
20560 #define wxUSE_COLOURDLG 1
20561 EOF
20562
20563 fi
20564
20565 if test "$wxUSE_FILEDLG" = "yes"; then
20566     cat >> confdefs.h <<\EOF
20567 #define wxUSE_FILEDLG 1
20568 EOF
20569
20570 fi
20571
20572 if test "$wxUSE_FINDREPLDLG" = "yes"; then
20573     cat >> confdefs.h <<\EOF
20574 #define wxUSE_FINDREPLDLG 1
20575 EOF
20576
20577 fi
20578
20579 if test "$wxUSE_FONTDLG" = "yes"; then
20580     cat >> confdefs.h <<\EOF
20581 #define wxUSE_FONTDLG 1
20582 EOF
20583
20584 fi
20585
20586 if test "$wxUSE_DIRDLG" = "yes"; then
20587     if test "$wxUSE_TREECTRL" != "yes"; then
20588         echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
20589     else
20590         cat >> confdefs.h <<\EOF
20591 #define wxUSE_DIRDLG 1
20592 EOF
20593
20594     fi
20595 fi
20596
20597 if test "$wxUSE_MSGDLG" = "yes"; then
20598     cat >> confdefs.h <<\EOF
20599 #define wxUSE_MSGDLG 1
20600 EOF
20601
20602 fi
20603
20604 if test "$wxUSE_NUMBERDLG" = "yes"; then
20605     cat >> confdefs.h <<\EOF
20606 #define wxUSE_NUMBERDLG 1
20607 EOF
20608
20609 fi
20610
20611 if test "$wxUSE_PROGRESSDLG" = "yes"; then
20612     if test "$wxUSE_CONSTRAINTS" != "yes"; then
20613        echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20614     else
20615         cat >> confdefs.h <<\EOF
20616 #define wxUSE_PROGRESSDLG 1
20617 EOF
20618
20619     fi
20620 fi
20621
20622 if test "$wxUSE_SPLASH" = "yes"; then
20623     cat >> confdefs.h <<\EOF
20624 #define wxUSE_SPLASH 1
20625 EOF
20626
20627 fi
20628
20629 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20630     if test "$wxUSE_CONSTRAINTS" != "yes"; then
20631        echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20632     else
20633         cat >> confdefs.h <<\EOF
20634 #define wxUSE_STARTUP_TIPS 1
20635 EOF
20636
20637     fi
20638 fi
20639
20640 if test "$wxUSE_TEXTDLG" = "yes"; then
20641     cat >> confdefs.h <<\EOF
20642 #define wxUSE_TEXTDLG 1
20643 EOF
20644
20645 fi
20646
20647 if test "$wxUSE_WIZARDDLG" = "yes"; then
20648     cat >> confdefs.h <<\EOF
20649 #define wxUSE_WIZARDDLG 1
20650 EOF
20651
20652     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20653 fi
20654
20655
20656 if test "$cross_compiling" = "yes"; then
20657         OSINFO="\"$host\""
20658 else
20659         OSINFO=`uname -s -r -m`
20660     OSINFO="\"$OSINFO\""
20661 fi
20662
20663 cat >> confdefs.h <<EOF
20664 #define WXWIN_OS_DESCRIPTION $OSINFO
20665 EOF
20666
20667
20668
20669 if test "x$prefix" != "xNONE"; then
20670     wxPREFIX=$prefix
20671 else
20672     wxPREFIX=$ac_default_prefix
20673 fi
20674
20675 cat >> confdefs.h <<EOF
20676 #define wxINSTALL_PREFIX "$wxPREFIX"
20677 EOF
20678
20679
20680
20681
20682
20683 if test "$wxUSE_MAC" = 1 ; then
20684     LDFLAGS="$LDFLAGS -framework Carbon -framework System"
20685 fi
20686
20687
20688 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
20689
20690 if test "$wxUSE_GUI" = "yes"; then
20691
20692     LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
20693
20694         
20695             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
20696                      drawing dynamic erase event exec font image \
20697                      minimal richedit rotate widgets"
20698
20699         CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20700 else
20701     SAMPLES_SUBDIRS="console"
20702 fi
20703
20704
20705 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
20706 -I\${top_srcdir}/include \
20707 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
20708 $TOOLKIT_INCLUDE"
20709
20710 if test "$wxUSE_GTK" = 1; then
20711     WXCONFIG_INCLUDE=
20712 else
20713     WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20714 fi
20715
20716 if test "$GXX" = yes ; then
20717         CXXWARNINGS="-Wall"
20718         
20719             if test "$wxUSE_NO_DEPS" = "no" ; then
20720         CFLAGS="-MMD $CFLAGS"
20721         CXXFLAGS="-MMD $CXXFLAGS"
20722     fi
20723 fi
20724
20725 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
20726
20727 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20728 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
20729 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
20730
20731 LDFLAGS="$LDFLAGS $PROFILE"
20732
20733 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
20824 echo "configure:20825: checking whether ${MAKE-make} sets \${MAKE}" >&5
20825 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20826 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20827   echo $ac_n "(cached) $ac_c" 1>&6
20828 else
20829   cat > conftestmake <<\EOF
20830 all:
20831         @echo 'ac_maketemp="${MAKE}"'
20832 EOF
20833 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20834 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
20835 if test -n "$ac_maketemp"; then
20836   eval ac_cv_prog_make_${ac_make}_set=yes
20837 else
20838   eval ac_cv_prog_make_${ac_make}_set=no
20839 fi
20840 rm -f conftestmake
20841 fi
20842 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20843   echo "$ac_t""yes" 1>&6
20844   SET_MAKE=
20845 else
20846   echo "$ac_t""no" 1>&6
20847   SET_MAKE="MAKE=${MAKE-make}"
20848 fi
20849
20850
20851 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
20852     mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
20853 fi
20854
20855
20856
20857 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
20858 wx_cv_if_gnu_make=$IF_GNU_MAKE
20859 wx_cv_path_ifs=$PATH_IFS
20860 wx_cv_program_ext=$PROGRAM_EXT
20861 wx_cv_target_library=$WX_TARGET_LIBRARY
20862 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
20863 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
20864 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
20865        wx_cv_path_ifs wx_cv_program_ext \
20866        wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
20867
20868 subdirs="demos samples utils contrib"
20869
20870
20871 trap '' 1 2 15
20872 cat > confcache <<\EOF
20873 # This file is a shell script that caches the results of configure
20874 # tests run on this system so they can be shared between configure
20875 # scripts and configure runs.  It is not useful on other systems.
20876 # If it contains results you don't want to keep, you may remove or edit it.
20877 #
20878 # By default, configure uses ./config.cache as the cache file,
20879 # creating it if it does not exist already.  You can give configure
20880 # the --cache-file=FILE option to use a different cache file; that is
20881 # what configure does when it calls configure scripts in
20882 # subdirectories, so they share the cache.
20883 # Giving --cache-file=/dev/null disables caching, for debugging configure.
20884 # config.status only pays attention to the cache file if you give it the
20885 # --recheck option to rerun configure.
20886 #
20887 EOF
20888 # The following way of writing the cache mishandles newlines in values,
20889 # but we know of no workaround that is simple, portable, and efficient.
20890 # So, don't put newlines in cache variables' values.
20891 # Ultrix sh set writes to stderr and can't be redirected directly,
20892 # and sets the high bit in the cache file unless we assign to the vars.
20893 (set) 2>&1 |
20894   case `(ac_space=' '; set | grep ac_space) 2>&1` in
20895   *ac_space=\ *)
20896     # `set' does not quote correctly, so add quotes (double-quote substitution
20897     # turns \\\\ into \\, and sed turns \\ into \).
20898     sed -n \
20899       -e "s/'/'\\\\''/g" \
20900       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20901     ;;
20902   *)
20903     # `set' quotes correctly as required by POSIX, so do not add quotes.
20904     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20905     ;;
20906   esac >> confcache
20907 if cmp -s $cache_file confcache; then
20908   :
20909 else
20910   if test -w $cache_file; then
20911     echo "updating cache $cache_file"
20912     cat confcache > $cache_file
20913   else
20914     echo "not updating unwritable cache $cache_file"
20915   fi
20916 fi
20917 rm -f confcache
20918
20919 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20920
20921 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20922 # Let make expand exec_prefix.
20923 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20924
20925 # Any assignment to VPATH causes Sun make to only execute
20926 # the first set of double-colon rules, so remove it if not needed.
20927 # If there is a colon in the path, we need to keep it.
20928 if test "x$srcdir" = x.; then
20929   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
20930 fi
20931
20932 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20933
20934 DEFS=-DHAVE_CONFIG_H
20935
20936 # Without the "./", some shells look in PATH for config.status.
20937 : ${CONFIG_STATUS=./config.status}
20938
20939 echo creating $CONFIG_STATUS
20940 rm -f $CONFIG_STATUS
20941 cat > $CONFIG_STATUS <<EOF
20942 #! /bin/sh
20943 # Generated automatically by configure.
20944 # Run this file to recreate the current configuration.
20945 # This directory was configured as follows,
20946 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20947 #
20948 # $0 $ac_configure_args
20949 #
20950 # Compiler output produced by configure, useful for debugging
20951 # configure, is in ./config.log if it exists.
20952
20953 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20954 for ac_option
20955 do
20956   case "\$ac_option" in
20957   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20958     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
20959     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
20960   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
20961     echo "$CONFIG_STATUS generated by autoconf version 2.13"
20962     exit 0 ;;
20963   -help | --help | --hel | --he | --h)
20964     echo "\$ac_cs_usage"; exit 0 ;;
20965   *) echo "\$ac_cs_usage"; exit 1 ;;
20966   esac
20967 done
20968
20969 ac_given_srcdir=$srcdir
20970 ac_given_INSTALL="$INSTALL"
20971
20972 trap 'rm -fr `echo "
20973             wx-config
20974             src/make.env
20975             src/makeprog.env
20976             src/makelib.env
20977             Makefile
20978            setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
20979 EOF
20980 cat >> $CONFIG_STATUS <<EOF
20981
20982 # Protect against being on the right side of a sed subst in config.status.
20983 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
20984  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
20985 $ac_vpsub
20986 $extrasub
20987 s%@SHELL@%$SHELL%g
20988 s%@CFLAGS@%$CFLAGS%g
20989 s%@CPPFLAGS@%$CPPFLAGS%g
20990 s%@CXXFLAGS@%$CXXFLAGS%g
20991 s%@FFLAGS@%$FFLAGS%g
20992 s%@DEFS@%$DEFS%g
20993 s%@LDFLAGS@%$LDFLAGS%g
20994 s%@LIBS@%$LIBS%g
20995 s%@exec_prefix@%$exec_prefix%g
20996 s%@prefix@%$prefix%g
20997 s%@program_transform_name@%$program_transform_name%g
20998 s%@bindir@%$bindir%g
20999 s%@sbindir@%$sbindir%g
21000 s%@libexecdir@%$libexecdir%g
21001 s%@datadir@%$datadir%g
21002 s%@sysconfdir@%$sysconfdir%g
21003 s%@sharedstatedir@%$sharedstatedir%g
21004 s%@localstatedir@%$localstatedir%g
21005 s%@libdir@%$libdir%g
21006 s%@includedir@%$includedir%g
21007 s%@oldincludedir@%$oldincludedir%g
21008 s%@infodir@%$infodir%g
21009 s%@mandir@%$mandir%g
21010 s%@host@%$host%g
21011 s%@host_alias@%$host_alias%g
21012 s%@host_cpu@%$host_cpu%g
21013 s%@host_vendor@%$host_vendor%g
21014 s%@host_os@%$host_os%g
21015 s%@target@%$target%g
21016 s%@target_alias@%$target_alias%g
21017 s%@target_cpu@%$target_cpu%g
21018 s%@target_vendor@%$target_vendor%g
21019 s%@target_os@%$target_os%g
21020 s%@build@%$build%g
21021 s%@build_alias@%$build_alias%g
21022 s%@build_cpu@%$build_cpu%g
21023 s%@build_vendor@%$build_vendor%g
21024 s%@build_os@%$build_os%g
21025 s%@CC@%$CC%g
21026 s%@CPP@%$CPP%g
21027 s%@CXX@%$CXX%g
21028 s%@RANLIB@%$RANLIB%g
21029 s%@AR@%$AR%g
21030 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
21031 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
21032 s%@INSTALL_DATA@%$INSTALL_DATA%g
21033 s%@STRIP@%$STRIP%g
21034 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
21035 s%@YACC@%$YACC%g
21036 s%@LEX@%$LEX%g
21037 s%@LEXLIB@%$LEXLIB%g
21038 s%@LN_S@%$LN_S%g
21039 s%@CXXCPP@%$CXXCPP%g
21040 s%@PKG_CONFIG@%$PKG_CONFIG%g
21041 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
21042 s%@GTK_LIBS@%$GTK_LIBS%g
21043 s%@GTK_CONFIG@%$GTK_CONFIG%g
21044 s%@X_CFLAGS@%$X_CFLAGS%g
21045 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
21046 s%@X_LIBS@%$X_LIBS%g
21047 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
21048 s%@AIX_CXX_LD@%$AIX_CXX_LD%g
21049 s%@RESCOMP@%$RESCOMP%g
21050 s%@DEREZ@%$DEREZ%g
21051 s%@LIBICONV@%$LIBICONV%g
21052 s%@LEX_STEM@%$LEX_STEM%g
21053 s%@PATH_IFS@%$PATH_IFS%g
21054 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
21055 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
21056 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
21057 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
21058 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
21059 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
21060 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
21061 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
21062 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
21063 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
21064 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
21065 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
21066 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
21067 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
21068 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
21069 s%@WX_ALL@%$WX_ALL%g
21070 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
21071 s%@SHARED_LD@%$SHARED_LD%g
21072 s%@PIC_FLAG@%$PIC_FLAG%g
21073 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
21074 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
21075 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
21076 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
21077 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
21078 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
21079 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
21080 s%@USE_GUI@%$USE_GUI%g
21081 s%@AFMINSTALL@%$AFMINSTALL%g
21082 s%@TOOLKIT@%$TOOLKIT%g
21083 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
21084 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
21085 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
21086 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
21087 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
21088 s%@cross_compiling@%$cross_compiling%g
21089 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
21090 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
21091 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
21092 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
21093 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
21094 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
21095 s%@ALL_HEADERS@%$ALL_HEADERS%g
21096 s%@ALL_SOURCES@%$ALL_SOURCES%g
21097 s%@GUIDIST@%$GUIDIST%g
21098 s%@PORT_FILES@%$PORT_FILES%g
21099 s%@DISTDIR@%$DISTDIR%g
21100 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
21101 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
21102 s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
21103 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
21104 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
21105 s%@EXTRADEFS@%$EXTRADEFS%g
21106 s%@RESFLAGS@%$RESFLAGS%g
21107 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
21108 s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
21109 s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
21110 s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
21111 s%@LIBWXMACRES@%$LIBWXMACRES%g
21112 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
21113 s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
21114 s%@DLLTOOL@%$DLLTOOL%g
21115 s%@AS@%$AS%g
21116 s%@NM@%$NM%g
21117 s%@LD@%$LD%g
21118 s%@MAKEINFO@%$MAKEINFO%g
21119 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
21120 s%@SET_MAKE@%$SET_MAKE%g
21121 s%@subdirs@%$subdirs%g
21122
21123 CEOF
21124 EOF
21125
21126 cat >> $CONFIG_STATUS <<\EOF
21127
21128 # Split the substitutions into bite-sized pieces for seds with
21129 # small command number limits, like on Digital OSF/1 and HP-UX.
21130 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
21131 ac_file=1 # Number of current file.
21132 ac_beg=1 # First line for current file.
21133 ac_end=$ac_max_sed_cmds # Line after last line for current file.
21134 ac_more_lines=:
21135 ac_sed_cmds=""
21136 while $ac_more_lines; do
21137   if test $ac_beg -gt 1; then
21138     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
21139   else
21140     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
21141   fi
21142   if test ! -s conftest.s$ac_file; then
21143     ac_more_lines=false
21144     rm -f conftest.s$ac_file
21145   else
21146     if test -z "$ac_sed_cmds"; then
21147       ac_sed_cmds="sed -f conftest.s$ac_file"
21148     else
21149       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
21150     fi
21151     ac_file=`expr $ac_file + 1`
21152     ac_beg=$ac_end
21153     ac_end=`expr $ac_end + $ac_max_sed_cmds`
21154   fi
21155 done
21156 if test -z "$ac_sed_cmds"; then
21157   ac_sed_cmds=cat
21158 fi
21159 EOF
21160
21161 cat >> $CONFIG_STATUS <<EOF
21162
21163 CONFIG_FILES=\${CONFIG_FILES-"wx-config
21164             src/make.env
21165             src/makeprog.env
21166             src/makelib.env
21167             Makefile
21168           "}
21169 EOF
21170 cat >> $CONFIG_STATUS <<\EOF
21171 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
21172   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21173   case "$ac_file" in
21174   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21175        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21176   *) ac_file_in="${ac_file}.in" ;;
21177   esac
21178
21179   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
21180
21181   # Remove last slash and all that follows it.  Not all systems have dirname.
21182   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21183   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21184     # The file is in a subdirectory.
21185     test ! -d "$ac_dir" && mkdir "$ac_dir"
21186     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
21187     # A "../" for each directory in $ac_dir_suffix.
21188     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
21189   else
21190     ac_dir_suffix= ac_dots=
21191   fi
21192
21193   case "$ac_given_srcdir" in
21194   .)  srcdir=.
21195       if test -z "$ac_dots"; then top_srcdir=.
21196       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
21197   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
21198   *) # Relative path.
21199     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21200     top_srcdir="$ac_dots$ac_given_srcdir" ;;
21201   esac
21202
21203   case "$ac_given_INSTALL" in
21204   [/$]*) INSTALL="$ac_given_INSTALL" ;;
21205   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21206   esac
21207
21208   echo creating "$ac_file"
21209   rm -f "$ac_file"
21210   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21211   case "$ac_file" in
21212   *Makefile*) ac_comsub="1i\\
21213 # $configure_input" ;;
21214   *) ac_comsub= ;;
21215   esac
21216
21217   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21218   sed -e "$ac_comsub
21219 s%@configure_input@%$configure_input%g
21220 s%@srcdir@%$srcdir%g
21221 s%@top_srcdir@%$top_srcdir%g
21222 s%@INSTALL@%$INSTALL%g
21223 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21224 fi; done
21225 rm -f conftest.s*
21226
21227 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21228 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21229 #
21230 # ac_d sets the value in "#define NAME VALUE" lines.
21231 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
21232 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
21233 ac_dC='\3'
21234 ac_dD='%g'
21235 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21236 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21237 ac_uB='\([      ]\)%\1#\2define\3'
21238 ac_uC=' '
21239 ac_uD='\4%g'
21240 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21241 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21242 ac_eB='$%\1#\2define\3'
21243 ac_eC=' '
21244 ac_eD='%g'
21245
21246 if test "${CONFIG_HEADERS+set}" != set; then
21247 EOF
21248 cat >> $CONFIG_STATUS <<EOF
21249   CONFIG_HEADERS="setup.h:setup.h.in"
21250 EOF
21251 cat >> $CONFIG_STATUS <<\EOF
21252 fi
21253 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
21254   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21255   case "$ac_file" in
21256   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21257        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21258   *) ac_file_in="${ac_file}.in" ;;
21259   esac
21260
21261   echo creating $ac_file
21262
21263   rm -f conftest.frag conftest.in conftest.out
21264   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21265   cat $ac_file_inputs > conftest.in
21266
21267 EOF
21268
21269 # Transform confdefs.h into a sed script conftest.vals that substitutes
21270 # the proper values into config.h.in to produce config.h.  And first:
21271 # Protect against being on the right side of a sed subst in config.status.
21272 # Protect against being in an unquoted here document in config.status.
21273 rm -f conftest.vals
21274 cat > conftest.hdr <<\EOF
21275 s/[\\&%]/\\&/g
21276 s%[\\$`]%\\&%g
21277 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21278 s%ac_d%ac_u%gp
21279 s%ac_u%ac_e%gp
21280 EOF
21281 sed -n -f conftest.hdr confdefs.h > conftest.vals
21282 rm -f conftest.hdr
21283
21284 # This sed command replaces #undef with comments.  This is necessary, for
21285 # example, in the case of _POSIX_SOURCE, which is predefined and required
21286 # on some systems where configure will not decide to define it.
21287 cat >> conftest.vals <<\EOF
21288 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
21289 EOF
21290
21291 # Break up conftest.vals because some shells have a limit on
21292 # the size of here documents, and old seds have small limits too.
21293
21294 rm -f conftest.tail
21295 while :
21296 do
21297   ac_lines=`grep -c . conftest.vals`
21298   # grep -c gives empty output for an empty file on some AIX systems.
21299   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21300   # Write a limited-size here document to conftest.frag.
21301   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21302   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
21303   echo 'CEOF
21304   sed -f conftest.frag conftest.in > conftest.out
21305   rm -f conftest.in
21306   mv conftest.out conftest.in
21307 ' >> $CONFIG_STATUS
21308   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21309   rm -f conftest.vals
21310   mv conftest.tail conftest.vals
21311 done
21312 rm -f conftest.vals
21313
21314 cat >> $CONFIG_STATUS <<\EOF
21315   rm -f conftest.frag conftest.h
21316   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
21317   cat conftest.in >> conftest.h
21318   rm -f conftest.in
21319   if cmp -s $ac_file conftest.h 2>/dev/null; then
21320     echo "$ac_file is unchanged"
21321     rm -f conftest.h
21322   else
21323     # Remove last slash and all that follows it.  Not all systems have dirname.
21324       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21325       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21326       # The file is in a subdirectory.
21327       test ! -d "$ac_dir" && mkdir "$ac_dir"
21328     fi
21329     rm -f $ac_file
21330     mv conftest.h $ac_file
21331   fi
21332 fi; done
21333
21334 EOF
21335 cat >> $CONFIG_STATUS <<EOF
21336
21337             TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
21338             LN_S="${LN_S}"
21339           
21340          
21341 EOF
21342 cat >> $CONFIG_STATUS <<\EOF
21343
21344                                                                                                 if test ! -h wx-config; then
21345                 chmod +x wx-config
21346                 mv wx-config wx${TOOLCHAIN_NAME}-config
21347                 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
21348             fi
21349
21350             if test ! -d lib; then
21351               mkdir lib
21352             fi
21353             if test ! -d lib/wx; then
21354               mkdir lib/wx
21355             fi
21356             if test ! -d lib/wx/include; then
21357               mkdir lib/wx/include
21358             fi
21359             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21360               mkdir lib/wx/include/${TOOLCHAIN_NAME}
21361             fi
21362             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21363               mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
21364             fi
21365             if test -f setup.h; then
21366               mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
21367             fi
21368           
21369 exit 0
21370 EOF
21371 chmod +x $CONFIG_STATUS
21372 rm -fr confdefs* $ac_clean_files
21373 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
21374
21375 if test "$no_recursion" != yes; then
21376
21377   # Remove --cache-file and --srcdir arguments so they do not pile up.
21378   ac_sub_configure_args=
21379   ac_prev=
21380   for ac_arg in $ac_configure_args; do
21381     if test -n "$ac_prev"; then
21382       ac_prev=
21383       continue
21384     fi
21385     case "$ac_arg" in
21386     -cache-file | --cache-file | --cache-fil | --cache-fi \
21387     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21388       ac_prev=cache_file ;;
21389     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21390     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
21391       ;;
21392     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21393       ac_prev=srcdir ;;
21394     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21395       ;;
21396     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21397     esac
21398   done
21399
21400   for ac_config_dir in demos samples utils contrib; do
21401
21402     # Do not complain, so a configure script can configure whichever
21403     # parts of a large source tree are present.
21404     if test ! -d $srcdir/$ac_config_dir; then
21405       continue
21406     fi
21407
21408     echo configuring in $ac_config_dir
21409
21410     case "$srcdir" in
21411     .) ;;
21412     *)
21413       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21414       else
21415         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21416       fi
21417       ;;
21418     esac
21419
21420     ac_popdir=`pwd`
21421     cd $ac_config_dir
21422
21423       # A "../" for each directory in /$ac_config_dir.
21424       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
21425
21426     case "$srcdir" in
21427     .) # No --srcdir option.  We are building in place.
21428       ac_sub_srcdir=$srcdir ;;
21429     /*) # Absolute path.
21430       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
21431     *) # Relative path.
21432       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
21433     esac
21434
21435     # Check for guested configure; otherwise get Cygnus style configure.
21436     if test -f $ac_sub_srcdir/configure; then
21437       ac_sub_configure=$ac_sub_srcdir/configure
21438     elif test -f $ac_sub_srcdir/configure.in; then
21439       ac_sub_configure=$ac_configure
21440     else
21441       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
21442       ac_sub_configure=
21443     fi
21444
21445     # The recursion is here.
21446     if test -n "$ac_sub_configure"; then
21447
21448       # Make the cache file name correct relative to the subdirectory.
21449       case "$cache_file" in
21450       /*) ac_sub_cache_file=$cache_file ;;
21451       *) # Relative path.
21452         ac_sub_cache_file="$ac_dots$cache_file" ;;
21453       esac
21454   case "$ac_given_INSTALL" in
21455         [/$]*) INSTALL="$ac_given_INSTALL" ;;
21456         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21457         esac
21458
21459       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
21460       # The eval makes quoting arguments work.
21461       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21462       then :
21463       else
21464         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21465       fi
21466     fi
21467
21468     cd $ac_popdir
21469   done
21470 fi
21471
21472