DEFAULT_wxUSE_TABDIALOG=yes for wxCocoa (Generic notebook)
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65 # Configure paths for GTK+
66 # Owen Taylor     1997-2001
67
68
69
70 # Configure paths for GTK+
71 # Owen Taylor     97-11-3
72
73
74
75
76
77
78
79
80 # Guess values for system-dependent variables and create Makefiles.
81 # Generated automatically using autoconf version 2.13 
82 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
83 #
84 # This configure script is free software; the Free Software Foundation
85 # gives unlimited permission to copy, distribute and modify it.
86
87 # Defaults:
88 ac_help=
89 ac_default_prefix=/usr/local
90 # Any additions from configure.in:
91 ac_help="$ac_help
92   --enable-gui            use GUI classes"
93 ac_help="$ac_help
94   --enable-universal      use wxWindows GUI controls instead of native ones"
95 ac_help="$ac_help
96   --with-gtk              use GTK+"
97 ac_help="$ac_help
98   --with-motif            use Motif/Lesstif"
99 ac_help="$ac_help
100   --with-mac              use Mac OS X"
101 ac_help="$ac_help
102   --with-cocoa            use Cocoa"
103 ac_help="$ac_help
104   --with-wine             use Wine"
105 ac_help="$ac_help
106   --with-msw              use MS-Windows"
107 ac_help="$ac_help
108   --with-pm               use OS/2 Presentation Manager"
109 ac_help="$ac_help
110   --with-mgl              use SciTech MGL"
111 ac_help="$ac_help
112   --with-microwin         use MicroWindows"
113 ac_help="$ac_help
114   --with-x11              use X11"
115 ac_help="$ac_help
116   --enable-nanox          use NanoX"
117 ac_help="$ac_help
118   --enable-gtk2           use GTK+ 2.0 if available (EXPERIMENTAL)"
119 ac_help="$ac_help
120   --with-libpng           use libpng (PNG image format)"
121 ac_help="$ac_help
122   --with-libjpeg          use libjpeg (JPEG file format)"
123 ac_help="$ac_help
124   --with-libtiff          use libtiff (TIFF file format)"
125 ac_help="$ac_help
126   --with-opengl           use OpenGL (or Mesa)"
127 ac_help="$ac_help
128   --with-dmalloc          use dmalloc library (http://dmalloc.com/)"
129 ac_help="$ac_help
130   --with-regex            enable support for wxRegEx class"
131 ac_help="$ac_help
132   --with-zlib             use zlib for LZW compression"
133 ac_help="$ac_help
134   --with-odbc             use the IODBC and wxODBC classes"
135 ac_help="$ac_help
136   --enable-shared         create shared library code"
137 ac_help="$ac_help
138   --enable-soname         set the DT_SONAME field in ELF shared libraries"
139 ac_help="$ac_help
140   --enable-optimise       create optimised code"
141 ac_help="$ac_help
142   --enable-debug          same as debug_flag and debug_info"
143 ac_help="$ac_help
144   --enable-precomp        enable use of precompiled headers (Mac OS X/Darwin)"
145 ac_help="$ac_help
146   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)"
147 ac_help="$ac_help
148   --enable-debug_info     create code with debugging information"
149 ac_help="$ac_help
150   --enable-debug_gdb      create code with extra GDB debugging information"
151 ac_help="$ac_help
152   --enable-debug_cntxt    use wxDebugContext"
153 ac_help="$ac_help
154   --enable-mem_tracing    create code with memory tracing"
155 ac_help="$ac_help
156   --enable-profile        create code with profiling information"
157 ac_help="$ac_help
158   --enable-no_rtti        create code without RTTI information"
159 ac_help="$ac_help
160   --enable-no_exceptions  create code without C++ exceptions handling"
161 ac_help="$ac_help
162   --enable-permissive     compile code disregarding strict ANSI"
163 ac_help="$ac_help
164   --enable-no_deps        create code without dependency information"
165 ac_help="$ac_help
166   --enable-compat20       enable wxWindows 2.0 compatibility"
167 ac_help="$ac_help
168   --enable-compat22       enable wxWindows 2.2 compatibility"
169 ac_help="$ac_help
170   --disable-compat24      disable wxWindows 2.4 compatibility"
171 ac_help="$ac_help
172   --enable-rpath=DIR      output the rpath flag from wx-config"
173 ac_help="$ac_help
174   --enable-intl           use internationalization system"
175 ac_help="$ac_help
176   --enable-config         use wxConfig (and derived) classes"
177 ac_help="$ac_help
178   --enable-protocols      use wxProtocol and derived classes"
179 ac_help="$ac_help
180   --enable-ftp            use wxFTP (requires wxProtocol"
181 ac_help="$ac_help
182   --enable-http           use wxHTTP (requires wxProtocol"
183 ac_help="$ac_help
184   --enable-fileproto      use wxFileProto class (requires wxProtocol"
185 ac_help="$ac_help
186   --enable-sockets        use socket/network classes"
187 ac_help="$ac_help
188   --enable-ole            use OLE classes"
189 ac_help="$ac_help
190   --enable-dataobj        use data object classes"
191 ac_help="$ac_help
192   --enable-ipc            use interprocess communication (wxSocket etc.)"
193 ac_help="$ac_help
194   --enable-cmdline        use wxCmdLineParser class"
195 ac_help="$ac_help
196   --enable-datetime       use wxDateTime class"
197 ac_help="$ac_help
198   --enable-stopwatch      use wxStopWatch class"
199 ac_help="$ac_help
200   --enable-dialupman      use dialup network classes"
201 ac_help="$ac_help
202   --enable-apple_ieee     use the Apple IEEE codec"
203 ac_help="$ac_help
204   --enable-timer          use wxTimer class"
205 ac_help="$ac_help
206   --enable-wave           use wxWave class"
207 ac_help="$ac_help
208   --enable-fraction       use wxFraction class"
209 ac_help="$ac_help
210   --enable-dynlib         use wxLibrary class for DLL loading"
211 ac_help="$ac_help
212   --enable-dynamicloader  use (new) wxDynamicLibrary class"
213 ac_help="$ac_help
214   --enable-longlong       use wxLongLong class"
215 ac_help="$ac_help
216   --enable-geometry       use geometry class"
217 ac_help="$ac_help
218   --enable-log            use logging system"
219 ac_help="$ac_help
220   --enable-streams        use wxStream etc classes"
221 ac_help="$ac_help
222   --enable-file           use wxFile classes"
223 ac_help="$ac_help
224   --enable-ffile          use wxFFile classes"
225 ac_help="$ac_help
226   --enable-textbuf        use wxTextBuffer class"
227 ac_help="$ac_help
228   --enable-textfile       use wxTextFile class"
229 ac_help="$ac_help
230   --enable-fontmap        use font encodings conversion classes"
231 ac_help="$ac_help
232   --enable-unicode        compile wxString with Unicode support"
233 ac_help="$ac_help
234   --enable-mslu           use MS Layer for Unicode on Windows 9x (win32 only)"
235 ac_help="$ac_help
236   --enable-wxprintfv      use wxWindows implementation of vprintf()"
237 ac_help="$ac_help
238   --enable-std_iostreams  use standard C++ stream classes"
239 ac_help="$ac_help
240   --enable-filesystem     use virtual file systems classes"
241 ac_help="$ac_help
242   --enable-fs_inet        use virtual HTTP/FTP filesystems"
243 ac_help="$ac_help
244   --enable-fs_zip         use virtual ZIP filesystems"
245 ac_help="$ac_help
246   --enable-zipstream      use wxZipInputStream"
247 ac_help="$ac_help
248   --enable-catch_segvs    catch signals and pass them to wxApp::OnFatalException"
249 ac_help="$ac_help
250   --enable-snglinst       use wxSingleInstanceChecker class"
251 ac_help="$ac_help
252   --enable-mimetype       use wxMimeTypesManager"
253 ac_help="$ac_help
254   --enable-sysoptions     use wxSystemOptions"
255 ac_help="$ac_help
256   --enable-url            use wxURL class"
257 ac_help="$ac_help
258   --enable-protocol       use wxProtocol class"
259 ac_help="$ac_help
260   --enable-protocol-http  HTTP support in wxProtocol"
261 ac_help="$ac_help
262   --enable-protocol-ftp   FTP support in wxProtocol"
263 ac_help="$ac_help
264   --enable-protocol-file  FILE support in wxProtocol"
265 ac_help="$ac_help
266   --enable-threads        use threads"
267 ac_help="$ac_help
268   --enable-docview        use document view architecture"
269 ac_help="$ac_help
270   --enable-help           use help subsystem"
271 ac_help="$ac_help
272   --enable-mshtmlhelp     use MS HTML Help (win32)"
273 ac_help="$ac_help
274   --enable-html           use wxHTML sub-library"
275 ac_help="$ac_help
276   --enable-htmlhelp       use wxHTML-based help"
277 ac_help="$ac_help
278   --enable-constraints    use layout-constraints system"
279 ac_help="$ac_help
280   --enable-printarch      use printing architecture"
281 ac_help="$ac_help
282   --enable-mdi            use multiple document interface architecture"
283 ac_help="$ac_help
284   --enable-loggui         use standard GUI logger"
285 ac_help="$ac_help
286   --enable-logwin         use wxLogWindow"
287 ac_help="$ac_help
288   --enable-logdialog      use wxLogDialog"
289 ac_help="$ac_help
290   --enable-postscript     use wxPostscriptDC device context (default for gtk+)"
291 ac_help="$ac_help
292   --enable-prologio       not available; see contrib"
293 ac_help="$ac_help
294   --enable-resources      not available; see contrib"
295 ac_help="$ac_help
296   --enable-clipboard      use wxClipboard class"
297 ac_help="$ac_help
298   --enable-dnd            use Drag'n'Drop classes"
299 ac_help="$ac_help
300   --enable-metafile       use win32 metafiles"
301 ac_help="$ac_help
302   --enable-controls       use all usual controls"
303 ac_help="$ac_help
304   --enable-accel          use accelerators"
305 ac_help="$ac_help
306   --enable-button         use wxButton class"
307 ac_help="$ac_help
308   --enable-bmpbutton      use wxBitmapButton class"
309 ac_help="$ac_help
310   --enable-calendar       use wxCalendarCtrl class"
311 ac_help="$ac_help
312   --enable-caret          use wxCaret class"
313 ac_help="$ac_help
314   --enable-checkbox       use wxCheckBox class"
315 ac_help="$ac_help
316   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class"
317 ac_help="$ac_help
318   --enable-choice         use wxChoice class"
319 ac_help="$ac_help
320   --enable-combobox       use wxComboBox class"
321 ac_help="$ac_help
322   --enable-display        use wxDisplay class"
323 ac_help="$ac_help
324   --enable-gauge          use wxGauge class"
325 ac_help="$ac_help
326   --enable-grid           use wxGrid class"
327 ac_help="$ac_help
328   --enable-imaglist       use wxImageList class"
329 ac_help="$ac_help
330   --enable-listbox        use wxListBox class"
331 ac_help="$ac_help
332   --enable-listctrl       use wxListCtrl class"
333 ac_help="$ac_help
334   --enable-notebook       use wxNotebook class"
335 ac_help="$ac_help
336   --enable-radiobox       use wxRadioBox class"
337 ac_help="$ac_help
338   --enable-radiobtn       use wxRadioButton class"
339 ac_help="$ac_help
340   --enable-sash           use wxSashWindow class"
341 ac_help="$ac_help
342   --enable-scrollbar      use wxScrollBar class and scrollable windows"
343 ac_help="$ac_help
344   --enable-slider         use wxSlider class"
345 ac_help="$ac_help
346   --enable-spinbtn        use wxSpinButton class"
347 ac_help="$ac_help
348   --enable-spinctrl       use wxSpinCtrl class"
349 ac_help="$ac_help
350   --enable-splitter       use wxSplitterWindow class"
351 ac_help="$ac_help
352   --enable-statbmp        use wxStaticBitmap class"
353 ac_help="$ac_help
354   --enable-statbox        use wxStaticBox class"
355 ac_help="$ac_help
356   --enable-statline       use wxStaticLine class"
357 ac_help="$ac_help
358   --enable-stattext       use wxStaticText class"
359 ac_help="$ac_help
360   --enable-statusbar      use wxStatusBar class"
361 ac_help="$ac_help
362   --enable-tabdialog      use wxTabControl class"
363 ac_help="$ac_help
364   --enable-textctrl       use wxTextCtrl class"
365 ac_help="$ac_help
366   --enable-togglebtn      use wxToggleButton class"
367 ac_help="$ac_help
368   --enable-toolbar        use wxToolBar class"
369 ac_help="$ac_help
370   --enable-tbarnative     use native wxToolBar class"
371 ac_help="$ac_help
372   --enable-tbarsmpl       use wxToolBarSimple class"
373 ac_help="$ac_help
374   --enable-treectrl       use wxTreeCtrl class"
375 ac_help="$ac_help
376   --enable-tipwindow      use wxTipWindow class"
377 ac_help="$ac_help
378   --enable-popupwin       use wxPopUpWindow class"
379 ac_help="$ac_help
380   --enable-commondlg      use all common dialogs"
381 ac_help="$ac_help
382   --enable-choicedlg      use wxChoiceDialog"
383 ac_help="$ac_help
384   --enable-coldlg         use wxColourDialog"
385 ac_help="$ac_help
386   --enable-filedlg        use wxFileDialog"
387 ac_help="$ac_help
388   --enable-finddlg        use wxFindReplaceDialog"
389 ac_help="$ac_help
390   --enable-fontdlg        use wxFontDialog"
391 ac_help="$ac_help
392   --enable-dirdlg         use wxDirDialog"
393 ac_help="$ac_help
394   --enable-msgdlg         use wxMessageDialog"
395 ac_help="$ac_help
396   --enable-numberdlg      use wxNumberEntryDialog"
397 ac_help="$ac_help
398   --enable-splash         use wxSplashScreen"
399 ac_help="$ac_help
400   --enable-textdlg        use wxTextDialog"
401 ac_help="$ac_help
402   --enable-tipdlg         use startup tips"
403 ac_help="$ac_help
404   --enable-progressdlg    use wxProgressDialog"
405 ac_help="$ac_help
406   --enable-wizarddlg      use wxWizard"
407 ac_help="$ac_help
408   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes"
409 ac_help="$ac_help
410   --enable-miniframe      use wxMiniFrame class"
411 ac_help="$ac_help
412   --enable-tooltips       use wxToolTip class"
413 ac_help="$ac_help
414   --enable-splines        use spline drawing code"
415 ac_help="$ac_help
416   --enable-validators     use wxValidator and derived classes"
417 ac_help="$ac_help
418   --enable-busyinfo       use wxBusyInfo"
419 ac_help="$ac_help
420   --enable-joystick       use wxJoystick (Linux only)"
421 ac_help="$ac_help
422   --enable-metafiles      use wxMetaFile (Windows only)"
423 ac_help="$ac_help
424   --enable-dragimage      use wxDragImage"
425 ac_help="$ac_help
426   --enable-accessibility  enable accessibility support"
427 ac_help="$ac_help
428   --enable-palette        use wxPalette class"
429 ac_help="$ac_help
430   --enable-image          use wxImage class"
431 ac_help="$ac_help
432   --enable-gif            use gif images (GIF file format)"
433 ac_help="$ac_help
434   --enable-pcx            use pcx images (PCX file format)"
435 ac_help="$ac_help
436   --enable-iff            use iff images (IFF file format)"
437 ac_help="$ac_help
438   --enable-pnm            use pnm images (PNM file format)"
439 ac_help="$ac_help
440   --enable-xpm            use xpm images (XPM file format)"
441 ac_help="$ac_help
442   --enable-icocur         use Windows ICO and CUR formats"
443 ac_help="$ac_help
444   --disable-largefile     omit support for large files"
445 ac_help="$ac_help
446   --disable-gtktest       do not try to compile and run a test GTK+ program"
447 ac_help="$ac_help
448   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
449 ac_help="$ac_help
450   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
451 ac_help="$ac_help
452   --disable-gtktest       Do not try to compile and run a test GTK program"
453 ac_help="$ac_help
454   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
455 ac_help="$ac_help
456   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
457 ac_help="$ac_help
458   --disable-gtktest       Do not try to compile and run a test GTK program"
459 ac_help="$ac_help
460   --with-x                use the X Window System"
461 ac_help="$ac_help
462   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib"
463
464 # Initialize some variables set by options.
465 # The variables have the same names as the options, with
466 # dashes changed to underlines.
467 build=NONE
468 cache_file=./config.cache
469 exec_prefix=NONE
470 host=NONE
471 no_create=
472 nonopt=NONE
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 target=NONE
482 verbose=
483 x_includes=NONE
484 x_libraries=NONE
485 bindir='${exec_prefix}/bin'
486 sbindir='${exec_prefix}/sbin'
487 libexecdir='${exec_prefix}/libexec'
488 datadir='${prefix}/share'
489 sysconfdir='${prefix}/etc'
490 sharedstatedir='${prefix}/com'
491 localstatedir='${prefix}/var'
492 libdir='${exec_prefix}/lib'
493 includedir='${prefix}/include'
494 oldincludedir='/usr/include'
495 infodir='${prefix}/info'
496 mandir='${prefix}/man'
497
498 # Initialize some other variables.
499 subdirs=
500 MFLAGS= MAKEFLAGS=
501 SHELL=${CONFIG_SHELL-/bin/sh}
502 # Maximum number of lines to put in a shell here document.
503 ac_max_here_lines=12
504
505 ac_prev=
506 for ac_option
507 do
508
509   # If the previous option needs an argument, assign it.
510   if test -n "$ac_prev"; then
511     eval "$ac_prev=\$ac_option"
512     ac_prev=
513     continue
514   fi
515
516   case "$ac_option" in
517   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
518   *) ac_optarg= ;;
519   esac
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case "$ac_option" in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir="$ac_optarg" ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build="$ac_optarg" ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file="$ac_optarg" ;;
541
542   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
543     ac_prev=datadir ;;
544   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
545   | --da=*)
546     datadir="$ac_optarg" ;;
547
548   -disable-* | --disable-*)
549     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
550     # Reject names that are not valid shell variable names.
551     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
552       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
553     fi
554     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
555     eval "enable_${ac_feature}=no" ;;
556
557   -enable-* | --enable-*)
558     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
559     # Reject names that are not valid shell variable names.
560     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
561       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
562     fi
563     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
564     case "$ac_option" in
565       *=*) ;;
566       *) ac_optarg=yes ;;
567     esac
568     eval "enable_${ac_feature}='$ac_optarg'" ;;
569
570   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572   | --exec | --exe | --ex)
573     ac_prev=exec_prefix ;;
574   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576   | --exec=* | --exe=* | --ex=*)
577     exec_prefix="$ac_optarg" ;;
578
579   -gas | --gas | --ga | --g)
580     # Obsolete; use --with-gas.
581     with_gas=yes ;;
582
583   -help | --help | --hel | --he)
584     # Omit some internal or obsolete options to make the list less imposing.
585     # This message is too long to be a string in the A/UX 3.1 sh.
586     cat << EOF
587 Usage: configure [options] [host]
588 Options: [defaults in brackets after descriptions]
589 Configuration:
590   --cache-file=FILE       cache test results in FILE
591   --help                  print this message
592   --no-create             do not create output files
593   --quiet, --silent       do not print \`checking...' messages
594   --version               print the version of autoconf that created configure
595 Directory and file names:
596   --prefix=PREFIX         install architecture-independent files in PREFIX
597                           [$ac_default_prefix]
598   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
599                           [same as prefix]
600   --bindir=DIR            user executables in DIR [EPREFIX/bin]
601   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
602   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
603   --datadir=DIR           read-only architecture-independent data in DIR
604                           [PREFIX/share]
605   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
606   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
607                           [PREFIX/com]
608   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
609   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
610   --includedir=DIR        C header files in DIR [PREFIX/include]
611   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
612   --infodir=DIR           info documentation in DIR [PREFIX/info]
613   --mandir=DIR            man documentation in DIR [PREFIX/man]
614   --srcdir=DIR            find the sources in DIR [configure dir or ..]
615   --program-prefix=PREFIX prepend PREFIX to installed program names
616   --program-suffix=SUFFIX append SUFFIX to installed program names
617   --program-transform-name=PROGRAM
618                           run sed PROGRAM on installed program names
619 EOF
620     cat << EOF
621 Host type:
622   --build=BUILD           configure for building on BUILD [BUILD=HOST]
623   --host=HOST             configure for HOST [guessed]
624   --target=TARGET         configure for TARGET [TARGET=HOST]
625 Features and packages:
626   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
627   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
628   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
629   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
630   --x-includes=DIR        X include files are in DIR
631   --x-libraries=DIR       X library files are in DIR
632 EOF
633     if test -n "$ac_help"; then
634       echo "--enable and --with options recognized:$ac_help"
635     fi
636     exit 0 ;;
637
638   -host | --host | --hos | --ho)
639     ac_prev=host ;;
640   -host=* | --host=* | --hos=* | --ho=*)
641     host="$ac_optarg" ;;
642
643   -includedir | --includedir | --includedi | --included | --include \
644   | --includ | --inclu | --incl | --inc)
645     ac_prev=includedir ;;
646   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
647   | --includ=* | --inclu=* | --incl=* | --inc=*)
648     includedir="$ac_optarg" ;;
649
650   -infodir | --infodir | --infodi | --infod | --info | --inf)
651     ac_prev=infodir ;;
652   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
653     infodir="$ac_optarg" ;;
654
655   -libdir | --libdir | --libdi | --libd)
656     ac_prev=libdir ;;
657   -libdir=* | --libdir=* | --libdi=* | --libd=*)
658     libdir="$ac_optarg" ;;
659
660   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
661   | --libexe | --libex | --libe)
662     ac_prev=libexecdir ;;
663   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
664   | --libexe=* | --libex=* | --libe=*)
665     libexecdir="$ac_optarg" ;;
666
667   -localstatedir | --localstatedir | --localstatedi | --localstated \
668   | --localstate | --localstat | --localsta | --localst \
669   | --locals | --local | --loca | --loc | --lo)
670     ac_prev=localstatedir ;;
671   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
672   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
673   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
674     localstatedir="$ac_optarg" ;;
675
676   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
677     ac_prev=mandir ;;
678   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
679     mandir="$ac_optarg" ;;
680
681   -nfp | --nfp | --nf)
682     # Obsolete; use --without-fp.
683     with_fp=no ;;
684
685   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
686   | --no-cr | --no-c)
687     no_create=yes ;;
688
689   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
690   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
691     no_recursion=yes ;;
692
693   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
694   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
695   | --oldin | --oldi | --old | --ol | --o)
696     ac_prev=oldincludedir ;;
697   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
698   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
699   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
700     oldincludedir="$ac_optarg" ;;
701
702   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
703     ac_prev=prefix ;;
704   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
705     prefix="$ac_optarg" ;;
706
707   -program-prefix | --program-prefix | --program-prefi | --program-pref \
708   | --program-pre | --program-pr | --program-p)
709     ac_prev=program_prefix ;;
710   -program-prefix=* | --program-prefix=* | --program-prefi=* \
711   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
712     program_prefix="$ac_optarg" ;;
713
714   -program-suffix | --program-suffix | --program-suffi | --program-suff \
715   | --program-suf | --program-su | --program-s)
716     ac_prev=program_suffix ;;
717   -program-suffix=* | --program-suffix=* | --program-suffi=* \
718   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
719     program_suffix="$ac_optarg" ;;
720
721   -program-transform-name | --program-transform-name \
722   | --program-transform-nam | --program-transform-na \
723   | --program-transform-n | --program-transform- \
724   | --program-transform | --program-transfor \
725   | --program-transfo | --program-transf \
726   | --program-trans | --program-tran \
727   | --progr-tra | --program-tr | --program-t)
728     ac_prev=program_transform_name ;;
729   -program-transform-name=* | --program-transform-name=* \
730   | --program-transform-nam=* | --program-transform-na=* \
731   | --program-transform-n=* | --program-transform-=* \
732   | --program-transform=* | --program-transfor=* \
733   | --program-transfo=* | --program-transf=* \
734   | --program-trans=* | --program-tran=* \
735   | --progr-tra=* | --program-tr=* | --program-t=*)
736     program_transform_name="$ac_optarg" ;;
737
738   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
739   | -silent | --silent | --silen | --sile | --sil)
740     silent=yes ;;
741
742   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
743     ac_prev=sbindir ;;
744   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
745   | --sbi=* | --sb=*)
746     sbindir="$ac_optarg" ;;
747
748   -sharedstatedir | --sharedstatedir | --sharedstatedi \
749   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
750   | --sharedst | --shareds | --shared | --share | --shar \
751   | --sha | --sh)
752     ac_prev=sharedstatedir ;;
753   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
754   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
755   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
756   | --sha=* | --sh=*)
757     sharedstatedir="$ac_optarg" ;;
758
759   -site | --site | --sit)
760     ac_prev=site ;;
761   -site=* | --site=* | --sit=*)
762     site="$ac_optarg" ;;
763
764   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
765     ac_prev=srcdir ;;
766   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
767     srcdir="$ac_optarg" ;;
768
769   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
770   | --syscon | --sysco | --sysc | --sys | --sy)
771     ac_prev=sysconfdir ;;
772   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
773   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
774     sysconfdir="$ac_optarg" ;;
775
776   -target | --target | --targe | --targ | --tar | --ta | --t)
777     ac_prev=target ;;
778   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
779     target="$ac_optarg" ;;
780
781   -v | -verbose | --verbose | --verbos | --verbo | --verb)
782     verbose=yes ;;
783
784   -version | --version | --versio | --versi | --vers)
785     echo "configure generated by autoconf version 2.13"
786     exit 0 ;;
787
788   -with-* | --with-*)
789     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
790     # Reject names that are not valid shell variable names.
791     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
792       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
793     fi
794     ac_package=`echo $ac_package| sed 's/-/_/g'`
795     case "$ac_option" in
796       *=*) ;;
797       *) ac_optarg=yes ;;
798     esac
799     eval "with_${ac_package}='$ac_optarg'" ;;
800
801   -without-* | --without-*)
802     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
803     # Reject names that are not valid shell variable names.
804     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
805       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
806     fi
807     ac_package=`echo $ac_package| sed 's/-/_/g'`
808     eval "with_${ac_package}=no" ;;
809
810   --x)
811     # Obsolete; use --with-x.
812     with_x=yes ;;
813
814   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
815   | --x-incl | --x-inc | --x-in | --x-i)
816     ac_prev=x_includes ;;
817   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
818   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
819     x_includes="$ac_optarg" ;;
820
821   -x-libraries | --x-libraries | --x-librarie | --x-librari \
822   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
823     ac_prev=x_libraries ;;
824   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
825   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
826     x_libraries="$ac_optarg" ;;
827
828   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
829     ;;
830
831   *)
832     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
833       echo "configure: warning: $ac_option: invalid host type" 1>&2
834     fi
835     if test "x$nonopt" != xNONE; then
836       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
837     fi
838     nonopt="$ac_option"
839     ;;
840
841   esac
842 done
843
844 if test -n "$ac_prev"; then
845   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
846 fi
847
848 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
849
850 # File descriptor usage:
851 # 0 standard input
852 # 1 file creation
853 # 2 errors and warnings
854 # 3 some systems may open it to /dev/tty
855 # 4 used on the Kubota Titan
856 # 6 checking for... messages and results
857 # 5 compiler messages saved in config.log
858 if test "$silent" = yes; then
859   exec 6>/dev/null
860 else
861   exec 6>&1
862 fi
863 exec 5>./config.log
864
865 echo "\
866 This file contains any messages produced by compilers while
867 running configure, to aid debugging if configure makes a mistake.
868 " 1>&5
869
870 # Strip out --no-create and --no-recursion so they do not pile up.
871 # Also quote any args containing shell metacharacters.
872 ac_configure_args=
873 for ac_arg
874 do
875   case "$ac_arg" in
876   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
877   | --no-cr | --no-c) ;;
878   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
879   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
880   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
881   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
882   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
883   esac
884 done
885
886 # NLS nuisances.
887 # Only set these to C if already set.  These must not be set unconditionally
888 # because not all systems understand e.g. LANG=C (notably SCO).
889 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
890 # Non-C LC_CTYPE values break the ctype check.
891 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
892 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
893 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
894 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
895
896 # confdefs.h avoids OS command line length limits that DEFS can exceed.
897 rm -rf conftest* confdefs.h
898 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
899 echo > confdefs.h
900
901 # A filename unique to this package, relative to the directory that
902 # configure is in, which we can look for to find out if srcdir is correct.
903 ac_unique_file=wx-config.in
904
905 # Find the source files, if location was not specified.
906 if test -z "$srcdir"; then
907   ac_srcdir_defaulted=yes
908   # Try the directory containing this script, then its parent.
909   ac_prog=$0
910   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
911   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
912   srcdir=$ac_confdir
913   if test ! -r $srcdir/$ac_unique_file; then
914     srcdir=..
915   fi
916 else
917   ac_srcdir_defaulted=no
918 fi
919 if test ! -r $srcdir/$ac_unique_file; then
920   if test "$ac_srcdir_defaulted" = yes; then
921     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
922   else
923     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
924   fi
925 fi
926 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
927
928 # Prefer explicitly selected file to automatically selected ones.
929 if test -z "$CONFIG_SITE"; then
930   if test "x$prefix" != xNONE; then
931     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
932   else
933     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
934   fi
935 fi
936 for ac_site_file in $CONFIG_SITE; do
937   if test -r "$ac_site_file"; then
938     echo "loading site script $ac_site_file"
939     . "$ac_site_file"
940   fi
941 done
942
943 if test -r "$cache_file"; then
944   echo "loading cache $cache_file"
945   . $cache_file
946 else
947   echo "creating cache $cache_file"
948   > $cache_file
949 fi
950
951 ac_ext=c
952 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
953 ac_cpp='$CPP $CPPFLAGS'
954 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
955 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
956 cross_compiling=$ac_cv_prog_cc_cross
957
958 ac_exeext=
959 ac_objext=o
960 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
961   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
962   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
963     ac_n= ac_c='
964 ' ac_t='        '
965   else
966     ac_n=-n ac_c= ac_t=
967   fi
968 else
969   ac_n= ac_c='\c' ac_t=
970 fi
971
972
973
974 ac_aux_dir=
975 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
976   if test -f $ac_dir/install-sh; then
977     ac_aux_dir=$ac_dir
978     ac_install_sh="$ac_aux_dir/install-sh -c"
979     break
980   elif test -f $ac_dir/install.sh; then
981     ac_aux_dir=$ac_dir
982     ac_install_sh="$ac_aux_dir/install.sh -c"
983     break
984   fi
985 done
986 if test -z "$ac_aux_dir"; then
987   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
988 fi
989 ac_config_guess=$ac_aux_dir/config.guess
990 ac_config_sub=$ac_aux_dir/config.sub
991 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
992
993
994 # Do some error checking and defaulting for the host and target type.
995 # The inputs are:
996 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
997 #
998 # The rules are:
999 # 1. You are not allowed to specify --host, --target, and nonopt at the
1000 #    same time.
1001 # 2. Host defaults to nonopt.
1002 # 3. If nonopt is not specified, then host defaults to the current host,
1003 #    as determined by config.guess.
1004 # 4. Target and build default to nonopt.
1005 # 5. If nonopt is not specified, then target and build default to host.
1006
1007 # The aliases save the names the user supplied, while $host etc.
1008 # will get canonicalized.
1009 case $host---$target---$nonopt in
1010 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1011 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1012 esac
1013
1014
1015 # Make sure we can run config.sub.
1016 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1017 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1018 fi
1019
1020 echo $ac_n "checking host system type""... $ac_c" 1>&6
1021 echo "configure:1022: checking host system type" >&5
1022
1023 host_alias=$host
1024 case "$host_alias" in
1025 NONE)
1026   case $nonopt in
1027   NONE)
1028     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1029     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1030     fi ;;
1031   *) host_alias=$nonopt ;;
1032   esac ;;
1033 esac
1034
1035 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1036 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1037 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1038 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1039 echo "$ac_t""$host" 1>&6
1040
1041 echo $ac_n "checking target system type""... $ac_c" 1>&6
1042 echo "configure:1043: checking target system type" >&5
1043
1044 target_alias=$target
1045 case "$target_alias" in
1046 NONE)
1047   case $nonopt in
1048   NONE) target_alias=$host_alias ;;
1049   *) target_alias=$nonopt ;;
1050   esac ;;
1051 esac
1052
1053 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1054 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1055 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1056 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1057 echo "$ac_t""$target" 1>&6
1058
1059 echo $ac_n "checking build system type""... $ac_c" 1>&6
1060 echo "configure:1061: checking build system type" >&5
1061
1062 build_alias=$build
1063 case "$build_alias" in
1064 NONE)
1065   case $nonopt in
1066   NONE) build_alias=$host_alias ;;
1067   *) build_alias=$nonopt ;;
1068   esac ;;
1069 esac
1070
1071 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1072 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1073 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1074 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1075 echo "$ac_t""$build" 1>&6
1076
1077 test "$host_alias" != "$target_alias" &&
1078   test "$program_prefix$program_suffix$program_transform_name" = \
1079     NONENONEs,x,x, &&
1080   program_prefix=${target_alias}-
1081
1082
1083
1084 WX_MAJOR_VERSION_NUMBER=2
1085 WX_MINOR_VERSION_NUMBER=5
1086 WX_RELEASE_NUMBER=0
1087
1088 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1089 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1090
1091 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1092
1093 WX_CURRENT=0
1094 WX_REVISION=0
1095 WX_AGE=0
1096
1097
1098
1099 USE_UNIX=1
1100 USE_WIN32=0
1101 USE_DOS=0
1102 USE_BEOS=0
1103 USE_MAC=0
1104
1105 USE_AIX=
1106 USE_BSD=
1107 USE_DARWIN=
1108 USE_FREEBSD=
1109 USE_HPUX=
1110 USE_LINUX=
1111 USE_NETBSD=
1112 USE_OPENBSD=
1113 USE_OSF=
1114 USE_SGI=
1115 USE_SOLARIS=
1116 USE_SUN=
1117 USE_SUNOS=
1118 USE_SVR4=
1119 USE_SYSV=
1120 USE_VMS=
1121 USE_ULTRIX=
1122 USE_UNIXWARE=
1123
1124 USE_ALPHA=
1125
1126 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1127
1128 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1129
1130 DEFAULT_wxUSE_COCOA=0
1131 DEFAULT_wxUSE_GTK=0
1132 DEFAULT_wxUSE_MAC=0
1133 DEFAULT_wxUSE_MGL=0
1134 DEFAULT_wxUSE_MICROWIN=0
1135 DEFAULT_wxUSE_MOTIF=0
1136 DEFAULT_wxUSE_MSW=0
1137 DEFAULT_wxUSE_PM=0
1138 DEFAULT_wxUSE_X11=0
1139
1140 DEFAULT_DEFAULT_wxUSE_COCOA=0
1141 DEFAULT_DEFAULT_wxUSE_GTK=0
1142 DEFAULT_DEFAULT_wxUSE_MAC=0
1143 DEFAULT_DEFAULT_wxUSE_MGL=0
1144 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1145 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1146 DEFAULT_DEFAULT_wxUSE_MSW=0
1147 DEFAULT_DEFAULT_wxUSE_PM=0
1148 DEFAULT_DEFAULT_wxUSE_X11=0
1149
1150 PROGRAM_EXT=
1151 SO_SUFFIX=so
1152
1153 case "${host}" in
1154   *-hp-hpux* )
1155     USE_HPUX=1
1156     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1157     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1158     SO_SUFFIX=sl
1159     cat >> confdefs.h <<\EOF
1160 #define __HPUX__ 1
1161 EOF
1162
1163   ;;
1164   *-*-linux* )
1165     USE_LINUX=1
1166     cat >> confdefs.h <<\EOF
1167 #define __LINUX__ 1
1168 EOF
1169
1170     TMP=`uname -m`
1171     if test "x$TMP" = "xalpha"; then
1172       USE_ALPHA=1
1173       cat >> confdefs.h <<\EOF
1174 #define __ALPHA__ 1
1175 EOF
1176
1177     fi
1178     DEFAULT_DEFAULT_wxUSE_GTK=1
1179   ;;
1180   *-*-irix5* | *-*-irix6* )
1181     USE_SGI=1
1182     USE_SVR4=1
1183     cat >> confdefs.h <<\EOF
1184 #define __SGI__ 1
1185 EOF
1186
1187     cat >> confdefs.h <<\EOF
1188 #define __SVR4__ 1
1189 EOF
1190
1191     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1192   ;;
1193   *-*-solaris2* )
1194     USE_SUN=1
1195     USE_SOLARIS=1
1196     USE_SVR4=1
1197     cat >> confdefs.h <<\EOF
1198 #define __SUN__ 1
1199 EOF
1200
1201     cat >> confdefs.h <<\EOF
1202 #define __SOLARIS__ 1
1203 EOF
1204
1205     cat >> confdefs.h <<\EOF
1206 #define __SVR4__ 1
1207 EOF
1208
1209     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1210     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1211   ;;
1212   *-*-sunos4* )
1213     USE_SUN=1
1214     USE_SUNOS=1
1215     USE_BSD=1
1216     cat >> confdefs.h <<\EOF
1217 #define __SUN__ 1
1218 EOF
1219
1220     cat >> confdefs.h <<\EOF
1221 #define __SUNOS__ 1
1222 EOF
1223
1224     cat >> confdefs.h <<\EOF
1225 #define __BSD__ 1
1226 EOF
1227
1228     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1229   ;;
1230   *-*-freebsd*)
1231     USE_BSD=1
1232     USE_FREEBSD=1
1233     cat >> confdefs.h <<\EOF
1234 #define __FREEBSD__ 1
1235 EOF
1236
1237     cat >> confdefs.h <<\EOF
1238 #define __BSD__ 1
1239 EOF
1240
1241     DEFAULT_DEFAULT_wxUSE_GTK=1
1242   ;;
1243   *-*-openbsd*)
1244     USE_BSD=1
1245     USE_OPENBSD=1
1246     cat >> confdefs.h <<\EOF
1247 #define __OPENBSD__ 1
1248 EOF
1249
1250     cat >> confdefs.h <<\EOF
1251 #define __BSD__ 1
1252 EOF
1253
1254     DEFAULT_DEFAULT_wxUSE_GTK=1
1255   ;;
1256   *-*-netbsd*)
1257     USE_BSD=1
1258     USE_NETBSD=1
1259     cat >> confdefs.h <<\EOF
1260 #define __NETBSD__ 1
1261 EOF
1262
1263     cat >> confdefs.h <<\EOF
1264 #define __BSD__ 1
1265 EOF
1266
1267     DEFAULT_DEFAULT_wxUSE_GTK=1
1268   ;;
1269   *-*-osf* )
1270     USE_ALPHA=1
1271     USE_OSF=1
1272     cat >> confdefs.h <<\EOF
1273 #define __ALPHA__ 1
1274 EOF
1275
1276     cat >> confdefs.h <<\EOF
1277 #define __OSF__ 1
1278 EOF
1279
1280     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1281     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1282   ;;
1283   *-*-dgux5* )
1284     USE_ALPHA=1
1285     USE_SVR4=1
1286     cat >> confdefs.h <<\EOF
1287 #define __ALPHA__ 1
1288 EOF
1289
1290     cat >> confdefs.h <<\EOF
1291 #define __SVR4__ 1
1292 EOF
1293
1294     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1295   ;;
1296   *-*-sysv5* )
1297     USE_SYSV=1
1298     USE_SVR4=1
1299     cat >> confdefs.h <<\EOF
1300 #define __SYSV__ 1
1301 EOF
1302
1303     cat >> confdefs.h <<\EOF
1304 #define __SVR4__ 1
1305 EOF
1306
1307     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1308   ;;
1309   *-*-aix* )
1310     USE_AIX=1
1311     USE_SYSV=1
1312     USE_SVR4=1
1313                         SO_SUFFIX=a
1314     cat >> confdefs.h <<\EOF
1315 #define __AIX__ 1
1316 EOF
1317
1318     cat >> confdefs.h <<\EOF
1319 #define __SYSV__ 1
1320 EOF
1321
1322     cat >> confdefs.h <<\EOF
1323 #define __SVR4__ 1
1324 EOF
1325
1326     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1327   ;;
1328
1329   *-*-*UnixWare*)
1330     USE_SYSV=1
1331     USE_SVR4=1
1332     USE_UNIXWARE=1
1333     cat >> confdefs.h <<\EOF
1334 #define __UNIXWARE__ 1
1335 EOF
1336
1337   ;;
1338
1339   *-*-cygwin* | *-*-mingw32* )
1340                 SO_SUFFIX=dll
1341     PROGRAM_EXT=".exe"
1342     RESCOMP=windres
1343     DEFAULT_DEFAULT_wxUSE_MSW=1
1344   ;;
1345
1346   *-pc-msdosdjgpp )
1347     USE_UNIX=0
1348     USE_DOS=1
1349     cat >> confdefs.h <<\EOF
1350 #define __DOS__ 1
1351 EOF
1352
1353     PROGRAM_EXT=".exe"
1354     DEFAULT_DEFAULT_wxUSE_MGL=1
1355         LIBS="$LIBS -lstdc++"
1356   ;;
1357
1358   *-pc-os2_emx | *-pc-os2-emx )
1359     cat >> confdefs.h <<\EOF
1360 #define __EMX__ 1
1361 EOF
1362
1363     PROGRAM_EXT=".exe"
1364     DEFAULT_DEFAULT_wxUSE_PM=1
1365   ;;
1366
1367   powerpc-*-darwin* )
1368         USE_BSD=1
1369     USE_DARWIN=1
1370     SO_SUFFIX=dylib
1371     cat >> confdefs.h <<\EOF
1372 #define __BSD__ 1
1373 EOF
1374
1375     cat >> confdefs.h <<\EOF
1376 #define __DARWIN__ 1
1377 EOF
1378
1379     cat >> confdefs.h <<\EOF
1380 #define __POWERPC__ 1
1381 EOF
1382
1383     cat >> confdefs.h <<\EOF
1384 #define TARGET_CARBON 1
1385 EOF
1386
1387     DEFAULT_DEFAULT_wxUSE_MAC=1
1388   ;;
1389
1390   *-*-beos* )
1391         USE_BEOS=1
1392     cat >> confdefs.h <<\EOF
1393 #define __BEOS__ 1
1394 EOF
1395
1396   ;;
1397
1398   *)
1399     { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1400 esac
1401
1402
1403
1404
1405           wx_arg_cache_file="configarg.cache"
1406           echo "loading argument cache $wx_arg_cache_file"
1407           rm -f ${wx_arg_cache_file}.tmp
1408           touch ${wx_arg_cache_file}.tmp
1409           touch ${wx_arg_cache_file}
1410         
1411
1412 DEBUG_CONFIGURE=0
1413 if test $DEBUG_CONFIGURE = 1; then
1414   DEFAULT_wxUSE_UNIVERSAL=no
1415
1416   DEFAULT_wxUSE_NANOX=no
1417
1418   DEFAULT_wxUSE_THREADS=yes
1419
1420   DEFAULT_wxUSE_SHARED=yes
1421   DEFAULT_wxUSE_SONAME=no
1422   DEFAULT_wxUSE_OPTIMISE=no
1423   DEFAULT_wxUSE_PROFILE=no
1424   DEFAULT_wxUSE_NO_DEPS=no
1425   DEFAULT_wxUSE_NO_RTTI=no
1426   DEFAULT_wxUSE_NO_EXCEPTIONS=no
1427   DEFAULT_wxUSE_PERMISSIVE=no
1428   DEFAULT_wxUSE_DEBUG_FLAG=yes
1429   DEFAULT_wxUSE_DEBUG_INFO=yes
1430   DEFAULT_wxUSE_DEBUG_GDB=yes
1431   DEFAULT_wxUSE_MEM_TRACING=no
1432   DEFAULT_wxUSE_DEBUG_CONTEXT=no
1433   DEFAULT_wxUSE_DMALLOC=no
1434   DEFAULT_wxUSE_PRECOMP=no
1435   DEFAULT_wxUSE_APPLE_IEEE=no
1436
1437   DEFAULT_wxUSE_LOG=yes
1438   DEFAULT_wxUSE_LOGWINDOW=no
1439   DEFAULT_wxUSE_LOGGUI=no
1440   DEFAULT_wxUSE_LOGDIALOG=no
1441
1442   DEFAULT_wxUSE_GUI=yes
1443   DEFAULT_wxUSE_CONTROLS=no
1444
1445   DEFAULT_wxUSE_REGEX=no
1446   DEFAULT_wxUSE_ZLIB=no
1447   DEFAULT_wxUSE_LIBPNG=no
1448   DEFAULT_wxUSE_LIBJPEG=no
1449   DEFAULT_wxUSE_LIBTIFF=no
1450   DEFAULT_wxUSE_ODBC=no
1451   DEFAULT_wxUSE_OPENGL=no
1452
1453   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1454   DEFAULT_wxUSE_SNGLINST_CHECKER=no
1455   DEFAULT_wxUSE_STD_IOSTREAM=no
1456   DEFAULT_wxUSE_CMDLINE_PARSER=no
1457   DEFAULT_wxUSE_DATETIME=no
1458   DEFAULT_wxUSE_TIMER=no
1459   DEFAULT_wxUSE_STOPWATCH=no
1460   DEFAULT_wxUSE_FILE=no
1461   DEFAULT_wxUSE_FFILE=no
1462   DEFAULT_wxUSE_TEXTBUFFER=no
1463   DEFAULT_wxUSE_TEXTFILE=no
1464   DEFAULT_wxUSE_WAVE=no
1465   DEFAULT_wxUSE_INTL=no
1466   DEFAULT_wxUSE_CONFIG=no
1467   DEFAULT_wxUSE_FONTMAP=no
1468   DEFAULT_wxUSE_STREAMS=no
1469   DEFAULT_wxUSE_SOCKETS=no
1470   DEFAULT_wxUSE_OLE=no
1471   DEFAULT_wxUSE_DATAOBJ=no
1472   DEFAULT_wxUSE_DIALUP_MANAGER=no
1473   DEFAULT_wxUSE_JOYSTICK=no
1474   DEFAULT_wxUSE_DYNLIB_CLASS=no
1475   DEFAULT_wxUSE_DYNAMIC_LOADER=no
1476   DEFAULT_wxUSE_LONGLONG=no
1477   DEFAULT_wxUSE_GEOMETRY=no
1478
1479   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1480   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1481   DEFAULT_wxUSE_POSTSCRIPT=no
1482
1483   DEFAULT_wxUSE_CLIPBOARD=no
1484   DEFAULT_wxUSE_TOOLTIPS=no
1485   DEFAULT_wxUSE_DRAG_AND_DROP=no
1486   DEFAULT_wxUSE_DRAGIMAGE=no
1487   DEFAULT_wxUSE_SPLINES=no
1488
1489   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1490   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1491   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1492
1493   DEFAULT_wxUSE_RESOURCES=no
1494   DEFAULT_wxUSE_CONSTRAINTS=no
1495   DEFAULT_wxUSE_IPC=no
1496   DEFAULT_wxUSE_HELP=no
1497   DEFAULT_wxUSE_MS_HTML_HELP=no
1498   DEFAULT_wxUSE_WXHTML_HELP=no
1499   DEFAULT_wxUSE_TREELAYOUT=no
1500   DEFAULT_wxUSE_METAFILE=no
1501   DEFAULT_wxUSE_MIMETYPE=no
1502   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1503   DEFAULT_wxUSE_PROTOCOL=no
1504   DEFAULT_wxUSE_PROTOCOL_HTTP=no
1505   DEFAULT_wxUSE_PROTOCOL_FTP=no
1506   DEFAULT_wxUSE_PROTOCOL_FILE=no
1507   DEFAULT_wxUSE_URL=no
1508
1509   DEFAULT_wxUSE_COMMONDLGS=no
1510   DEFAULT_wxUSE_CHOICEDLG=no
1511   DEFAULT_wxUSE_COLOURDLG=no
1512   DEFAULT_wxUSE_DIRDLG=no
1513   DEFAULT_wxUSE_FILEDLG=no
1514   DEFAULT_wxUSE_FINDREPLDLG=no
1515   DEFAULT_wxUSE_FONTDLG=no
1516   DEFAULT_wxUSE_MSGDLG=no
1517   DEFAULT_wxUSE_NUMBERDLG=no
1518   DEFAULT_wxUSE_TEXTDLG=no
1519   DEFAULT_wxUSE_SPLASH=no
1520   DEFAULT_wxUSE_STARTUP_TIPS=no
1521   DEFAULT_wxUSE_PROGRESSDLG=no
1522   DEFAULT_wxUSE_WIZARDDLG=no
1523
1524   DEFAULT_wxUSE_MENUS=no
1525   DEFAULT_wxUSE_MINIFRAME=no
1526   DEFAULT_wxUSE_HTML=no
1527   DEFAULT_wxUSE_FILESYSTEM=no
1528   DEFAULT_wxUSE_FS_INET=no
1529   DEFAULT_wxUSE_FS_ZIP=no
1530   DEFAULT_wxUSE_BUSYINFO=no
1531   DEFAULT_wxUSE_ZIPSTREAM=no
1532   DEFAULT_wxUSE_VALIDATORS=no
1533
1534   DEFAULT_wxUSE_ACCEL=no
1535   DEFAULT_wxUSE_BUTTON=no
1536   DEFAULT_wxUSE_BMPBUTTON=no
1537   DEFAULT_wxUSE_CALCTRL=no
1538   DEFAULT_wxUSE_CARET=no
1539   DEFAULT_wxUSE_CHECKBOX=no
1540   DEFAULT_wxUSE_CHECKLST=no
1541   DEFAULT_wxUSE_CHOICE=no
1542   DEFAULT_wxUSE_COMBOBOX=no
1543   DEFAULT_wxUSE_DISPLAY=no
1544   DEFAULT_wxUSE_GAUGE=no
1545   DEFAULT_wxUSE_GRID=no
1546   DEFAULT_wxUSE_IMAGLIST=no
1547   DEFAULT_wxUSE_LISTBOX=no
1548   DEFAULT_wxUSE_LISTCTRL=no
1549   DEFAULT_wxUSE_NOTEBOOK=no
1550   DEFAULT_wxUSE_RADIOBOX=no
1551   DEFAULT_wxUSE_RADIOBTN=no
1552   DEFAULT_wxUSE_SASH=no
1553   DEFAULT_wxUSE_SCROLLBAR=no
1554   DEFAULT_wxUSE_SLIDER=no
1555   DEFAULT_wxUSE_SPINBTN=no
1556   DEFAULT_wxUSE_SPINCTRL=no
1557   DEFAULT_wxUSE_SPLITTER=no
1558   DEFAULT_wxUSE_STATBMP=no
1559   DEFAULT_wxUSE_STATBOX=no
1560   DEFAULT_wxUSE_STATLINE=no
1561   DEFAULT_wxUSE_STATTEXT=no
1562   DEFAULT_wxUSE_STATUSBAR=yes
1563   DEFAULT_wxUSE_TABDIALOG=no
1564   DEFAULT_wxUSE_TEXTCTRL=no
1565   DEFAULT_wxUSE_TOGGLEBTN=no
1566   DEFAULT_wxUSE_TOOLBAR=no
1567   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1568   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1569   DEFAULT_wxUSE_TREECTRL=no
1570   DEFAULT_wxUSE_POPUPWIN=no
1571   DEFAULT_wxUSE_TIPWINDOW=no
1572
1573   DEFAULT_wxUSE_UNICODE=no
1574   DEFAULT_wxUSE_UNICODE_MSLU=no
1575   DEFAULT_wxUSE_WCSRTOMBS=no
1576
1577   DEFAULT_wxUSE_PALETTE=no
1578   DEFAULT_wxUSE_IMAGE=no
1579   DEFAULT_wxUSE_GIF=no
1580   DEFAULT_wxUSE_PCX=no
1581   DEFAULT_wxUSE_PNM=no
1582   DEFAULT_wxUSE_IFF=no
1583   DEFAULT_wxUSE_XPM=no
1584   DEFAULT_wxUSE_ICO_CUR=no
1585   DEFAULT_wxUSE_ACCESSIBILITY=no
1586 else
1587   DEFAULT_wxUSE_UNIVERSAL=no
1588
1589   DEFAULT_wxUSE_NANOX=no
1590
1591   DEFAULT_wxUSE_THREADS=yes
1592
1593   DEFAULT_wxUSE_SHARED=yes
1594   DEFAULT_wxUSE_SONAME=no
1595   DEFAULT_wxUSE_OPTIMISE=yes
1596   DEFAULT_wxUSE_PROFILE=no
1597   DEFAULT_wxUSE_NO_DEPS=no
1598   DEFAULT_wxUSE_NO_RTTI=no
1599   DEFAULT_wxUSE_NO_EXCEPTIONS=no
1600   DEFAULT_wxUSE_PERMISSIVE=no
1601   DEFAULT_wxUSE_DEBUG_FLAG=no
1602   DEFAULT_wxUSE_DEBUG_INFO=no
1603   DEFAULT_wxUSE_DEBUG_GDB=no
1604   DEFAULT_wxUSE_MEM_TRACING=no
1605   DEFAULT_wxUSE_DEBUG_CONTEXT=no
1606   DEFAULT_wxUSE_DMALLOC=no
1607   DEFAULT_wxUSE_PRECOMP=no
1608   DEFAULT_wxUSE_APPLE_IEEE=yes
1609
1610   DEFAULT_wxUSE_LOG=yes
1611   DEFAULT_wxUSE_LOGWINDOW=yes
1612   DEFAULT_wxUSE_LOGGUI=yes
1613   DEFAULT_wxUSE_LOGDIALOG=yes
1614
1615   DEFAULT_wxUSE_GUI=yes
1616
1617   DEFAULT_wxUSE_REGEX=yes
1618   DEFAULT_wxUSE_ZLIB=yes
1619   DEFAULT_wxUSE_LIBPNG=yes
1620   DEFAULT_wxUSE_LIBJPEG=yes
1621   DEFAULT_wxUSE_LIBTIFF=yes
1622   DEFAULT_wxUSE_ODBC=no
1623   DEFAULT_wxUSE_OPENGL=no
1624
1625   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1626   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1627   DEFAULT_wxUSE_STD_IOSTREAM=no
1628   DEFAULT_wxUSE_CMDLINE_PARSER=yes
1629   DEFAULT_wxUSE_DATETIME=yes
1630   DEFAULT_wxUSE_TIMER=yes
1631   DEFAULT_wxUSE_STOPWATCH=yes
1632   DEFAULT_wxUSE_FILE=yes
1633   DEFAULT_wxUSE_FFILE=yes
1634   DEFAULT_wxUSE_TEXTBUFFER=yes
1635   DEFAULT_wxUSE_TEXTFILE=yes
1636   DEFAULT_wxUSE_WAVE=no
1637   DEFAULT_wxUSE_INTL=yes
1638   DEFAULT_wxUSE_CONFIG=yes
1639   DEFAULT_wxUSE_FONTMAP=yes
1640   DEFAULT_wxUSE_STREAMS=yes
1641   DEFAULT_wxUSE_SOCKETS=yes
1642   DEFAULT_wxUSE_OLE=yes
1643   DEFAULT_wxUSE_DATAOBJ=yes
1644   DEFAULT_wxUSE_DIALUP_MANAGER=yes
1645   DEFAULT_wxUSE_JOYSTICK=yes
1646   DEFAULT_wxUSE_DYNLIB_CLASS=yes
1647   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1648   DEFAULT_wxUSE_LONGLONG=yes
1649   DEFAULT_wxUSE_GEOMETRY=yes
1650
1651   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1652   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1653   DEFAULT_wxUSE_POSTSCRIPT=yes
1654
1655   DEFAULT_wxUSE_CLIPBOARD=yes
1656   DEFAULT_wxUSE_TOOLTIPS=yes
1657   DEFAULT_wxUSE_DRAG_AND_DROP=yes
1658   DEFAULT_wxUSE_DRAGIMAGE=yes
1659   DEFAULT_wxUSE_SPLINES=yes
1660
1661   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1662   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1663   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1664
1665   DEFAULT_wxUSE_RESOURCES=no
1666   DEFAULT_wxUSE_CONSTRAINTS=yes
1667   DEFAULT_wxUSE_IPC=yes
1668   DEFAULT_wxUSE_HELP=yes
1669   DEFAULT_wxUSE_MS_HTML_HELP=yes
1670   DEFAULT_wxUSE_WXHTML_HELP=yes
1671   DEFAULT_wxUSE_TREELAYOUT=yes
1672   DEFAULT_wxUSE_METAFILE=yes
1673   DEFAULT_wxUSE_MIMETYPE=yes
1674   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1675   DEFAULT_wxUSE_PROTOCOL=yes
1676   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1677   DEFAULT_wxUSE_PROTOCOL_FTP=yes
1678   DEFAULT_wxUSE_PROTOCOL_FILE=yes
1679   DEFAULT_wxUSE_URL=yes
1680
1681   DEFAULT_wxUSE_COMMONDLGS=yes
1682   DEFAULT_wxUSE_CHOICEDLG=yes
1683   DEFAULT_wxUSE_COLOURDLG=yes
1684   DEFAULT_wxUSE_DIRDLG=yes
1685   DEFAULT_wxUSE_FILEDLG=yes
1686   DEFAULT_wxUSE_FINDREPLDLG=yes
1687   DEFAULT_wxUSE_FONTDLG=yes
1688   DEFAULT_wxUSE_MSGDLG=yes
1689   DEFAULT_wxUSE_NUMBERDLG=yes
1690   DEFAULT_wxUSE_TEXTDLG=yes
1691   DEFAULT_wxUSE_SPLASH=yes
1692   DEFAULT_wxUSE_STARTUP_TIPS=yes
1693   DEFAULT_wxUSE_PROGRESSDLG=yes
1694   DEFAULT_wxUSE_WIZARDDLG=yes
1695
1696   DEFAULT_wxUSE_MENUS=yes
1697   DEFAULT_wxUSE_MINIFRAME=yes
1698   DEFAULT_wxUSE_HTML=yes
1699   DEFAULT_wxUSE_FILESYSTEM=yes
1700   DEFAULT_wxUSE_FS_INET=yes
1701   DEFAULT_wxUSE_FS_ZIP=yes
1702   DEFAULT_wxUSE_BUSYINFO=yes
1703   DEFAULT_wxUSE_ZIPSTREAM=yes
1704   DEFAULT_wxUSE_VALIDATORS=yes
1705
1706   DEFAULT_wxUSE_ACCEL=yes
1707   DEFAULT_wxUSE_BUTTON=yes
1708   DEFAULT_wxUSE_BMPBUTTON=yes
1709   DEFAULT_wxUSE_CALCTRL=yes
1710   DEFAULT_wxUSE_CARET=yes
1711   DEFAULT_wxUSE_CHECKBOX=yes
1712   DEFAULT_wxUSE_CHECKLST=yes
1713   DEFAULT_wxUSE_CHOICE=yes
1714   DEFAULT_wxUSE_COMBOBOX=yes
1715   DEFAULT_wxUSE_DISPLAY=no
1716   DEFAULT_wxUSE_GAUGE=yes
1717   DEFAULT_wxUSE_GRID=yes
1718   DEFAULT_wxUSE_IMAGLIST=yes
1719   DEFAULT_wxUSE_LISTBOX=yes
1720   DEFAULT_wxUSE_LISTCTRL=yes
1721   DEFAULT_wxUSE_NOTEBOOK=yes
1722   DEFAULT_wxUSE_RADIOBOX=yes
1723   DEFAULT_wxUSE_RADIOBTN=yes
1724   DEFAULT_wxUSE_SASH=yes
1725   DEFAULT_wxUSE_SCROLLBAR=yes
1726   DEFAULT_wxUSE_SLIDER=yes
1727   DEFAULT_wxUSE_SPINBTN=yes
1728   DEFAULT_wxUSE_SPINCTRL=yes
1729   DEFAULT_wxUSE_SPLITTER=yes
1730   DEFAULT_wxUSE_STATBMP=yes
1731   DEFAULT_wxUSE_STATBOX=yes
1732   DEFAULT_wxUSE_STATLINE=yes
1733   DEFAULT_wxUSE_STATTEXT=yes
1734   DEFAULT_wxUSE_STATUSBAR=yes
1735   DEFAULT_wxUSE_TABDIALOG=no
1736   DEFAULT_wxUSE_TEXTCTRL=yes
1737   DEFAULT_wxUSE_TOGGLEBTN=yes
1738   DEFAULT_wxUSE_TOOLBAR=yes
1739   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1740   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1741   DEFAULT_wxUSE_TREECTRL=yes
1742   DEFAULT_wxUSE_POPUPWIN=yes
1743   DEFAULT_wxUSE_TIPWINDOW=yes
1744
1745   DEFAULT_wxUSE_UNICODE=no
1746   DEFAULT_wxUSE_UNICODE_MSLU=yes
1747   DEFAULT_wxUSE_WCSRTOMBS=no
1748
1749   DEFAULT_wxUSE_PALETTE=yes
1750   DEFAULT_wxUSE_IMAGE=yes
1751   DEFAULT_wxUSE_GIF=yes
1752   DEFAULT_wxUSE_PCX=yes
1753   DEFAULT_wxUSE_IFF=no
1754   DEFAULT_wxUSE_PNM=yes
1755   DEFAULT_wxUSE_XPM=yes
1756   DEFAULT_wxUSE_ICO_CUR=yes
1757   DEFAULT_wxUSE_ACCESSIBILITY=no
1758 fi
1759
1760
1761
1762 for toolkit in `echo $ALL_TOOLKITS`; do
1763   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1764   if test "x$LINE" != "x" ; then
1765     has_toolkit_in_cache=1
1766     eval "DEFAULT_$LINE"
1767     eval "CACHE_$toolkit=1"
1768   fi
1769 done
1770
1771
1772
1773           enablestring=
1774           echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
1775 echo "configure:1776: checking for --${enablestring:-enable}-gui" >&5
1776           no_cache=0
1777           # Check whether --enable-gui or --disable-gui was given.
1778 if test "${enable_gui+set}" = set; then
1779   enableval="$enable_gui"
1780   
1781                           if test "$enableval" = yes; then
1782                             ac_cv_use_gui='wxUSE_GUI=yes'
1783                           else
1784                             ac_cv_use_gui='wxUSE_GUI=no'
1785                           fi
1786                         
1787 else
1788   
1789                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1790                           if test "x$LINE" != x ; then
1791                             eval "DEFAULT_$LINE"
1792                           else
1793                             no_cache=1
1794                           fi
1795
1796                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1797                         
1798 fi
1799
1800
1801           eval "$ac_cv_use_gui"
1802           if test "$no_cache" != 1; then
1803             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1804           fi
1805
1806           if test "$wxUSE_GUI" = yes; then
1807             echo "$ac_t""yes" 1>&6
1808           else
1809             echo "$ac_t""no" 1>&6
1810           fi
1811         
1812
1813 if test "$wxUSE_GUI" = "yes"; then
1814
1815
1816           enablestring=
1817           echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
1818 echo "configure:1819: checking for --${enablestring:-enable}-universal" >&5
1819           no_cache=0
1820           # Check whether --enable-universal or --disable-universal was given.
1821 if test "${enable_universal+set}" = set; then
1822   enableval="$enable_universal"
1823   
1824                           if test "$enableval" = yes; then
1825                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1826                           else
1827                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1828                           fi
1829                         
1830 else
1831   
1832                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1833                           if test "x$LINE" != x ; then
1834                             eval "DEFAULT_$LINE"
1835                           else
1836                             no_cache=1
1837                           fi
1838
1839                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1840                         
1841 fi
1842
1843
1844           eval "$ac_cv_use_universal"
1845           if test "$no_cache" != 1; then
1846             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1847           fi
1848
1849           if test "$wxUSE_UNIVERSAL" = yes; then
1850             echo "$ac_t""yes" 1>&6
1851           else
1852             echo "$ac_t""no" 1>&6
1853           fi
1854         
1855 # Check whether --with-gtk or --without-gtk was given.
1856 if test "${with_gtk+set}" = set; then
1857   withval="$with_gtk"
1858   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1859 fi
1860
1861 # Check whether --with-motif or --without-motif was given.
1862 if test "${with_motif+set}" = set; then
1863   withval="$with_motif"
1864   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1865 fi
1866
1867 # Check whether --with-mac or --without-mac was given.
1868 if test "${with_mac+set}" = set; then
1869   withval="$with_mac"
1870   wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1871 fi
1872
1873 # Check whether --with-cocoa or --without-cocoa was given.
1874 if test "${with_cocoa+set}" = set; then
1875   withval="$with_cocoa"
1876   wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
1877 fi
1878
1879 # Check whether --with-wine or --without-wine was given.
1880 if test "${with_wine+set}" = set; then
1881   withval="$with_wine"
1882   wxUSE_WINE="$withval" CACHE_WINE=1
1883 fi
1884
1885 # Check whether --with-msw or --without-msw was given.
1886 if test "${with_msw+set}" = set; then
1887   withval="$with_msw"
1888   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1889 fi
1890
1891 # Check whether --with-pm or --without-pm was given.
1892 if test "${with_pm+set}" = set; then
1893   withval="$with_pm"
1894   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1895 fi
1896
1897 # Check whether --with-mgl or --without-mgl was given.
1898 if test "${with_mgl+set}" = set; then
1899   withval="$with_mgl"
1900   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1901 fi
1902
1903 # Check whether --with-microwin or --without-microwin was given.
1904 if test "${with_microwin+set}" = set; then
1905   withval="$with_microwin"
1906   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1907 fi
1908
1909 # Check whether --with-x11 or --without-x11 was given.
1910 if test "${with_x11+set}" = set; then
1911   withval="$with_x11"
1912   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1913 fi
1914
1915
1916           enablestring=
1917           echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
1918 echo "configure:1919: checking for --${enablestring:-enable}-nanox" >&5
1919           no_cache=0
1920           # Check whether --enable-nanox or --disable-nanox was given.
1921 if test "${enable_nanox+set}" = set; then
1922   enableval="$enable_nanox"
1923   
1924                           if test "$enableval" = yes; then
1925                             ac_cv_use_nanox='wxUSE_NANOX=yes'
1926                           else
1927                             ac_cv_use_nanox='wxUSE_NANOX=no'
1928                           fi
1929                         
1930 else
1931   
1932                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1933                           if test "x$LINE" != x ; then
1934                             eval "DEFAULT_$LINE"
1935                           else
1936                             no_cache=1
1937                           fi
1938
1939                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1940                         
1941 fi
1942
1943
1944           eval "$ac_cv_use_nanox"
1945           if test "$no_cache" != 1; then
1946             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1947           fi
1948
1949           if test "$wxUSE_NANOX" = yes; then
1950             echo "$ac_t""yes" 1>&6
1951           else
1952             echo "$ac_t""no" 1>&6
1953           fi
1954         
1955
1956
1957           enablestring=
1958           echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
1959 echo "configure:1960: checking for --${enablestring:-enable}-gtk2" >&5
1960           no_cache=0
1961           # Check whether --enable-gtk2 or --disable-gtk2 was given.
1962 if test "${enable_gtk2+set}" = set; then
1963   enableval="$enable_gtk2"
1964   
1965                           if test "$enableval" = yes; then
1966                             ac_cv_use_gtk2='wxUSE_GTK2=yes'
1967                           else
1968                             ac_cv_use_gtk2='wxUSE_GTK2=no'
1969                           fi
1970                         
1971 else
1972   
1973                           LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1974                           if test "x$LINE" != x ; then
1975                             eval "DEFAULT_$LINE"
1976                           else
1977                             no_cache=1
1978                           fi
1979
1980                           ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
1981                         
1982 fi
1983
1984
1985           eval "$ac_cv_use_gtk2"
1986           if test "$no_cache" != 1; then
1987             echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1988           fi
1989
1990           if test "$wxUSE_GTK2" = yes; then
1991             echo "$ac_t""yes" 1>&6
1992           else
1993             echo "$ac_t""no" 1>&6
1994           fi
1995         
1996
1997
1998           echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1999 echo "configure:2000: checking for --with-libpng" >&5
2000           no_cache=0
2001           # Check whether --with-libpng or --without-libpng was given.
2002 if test "${with_libpng+set}" = set; then
2003   withval="$with_libpng"
2004   
2005                         if test "$withval" = yes; then
2006                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2007                         elif test "$withval" = no; then
2008                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
2009                         elif test "$withval" = sys; then
2010                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2011                         elif test "$withval" = builtin; then
2012                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2013                         else
2014                           { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2015                         fi
2016                       
2017 else
2018   
2019                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2020                         if test "x$LINE" != x ; then
2021                           eval "DEFAULT_$LINE"
2022                         else
2023                           no_cache=1
2024                         fi
2025
2026                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2027                       
2028 fi
2029
2030
2031           eval "$ac_cv_use_libpng"
2032           if test "$no_cache" != 1; then
2033             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2034           fi
2035
2036           if test "$wxUSE_LIBPNG" = yes; then
2037             echo "$ac_t""yes" 1>&6
2038           elif test "$wxUSE_LIBPNG" = no; then
2039             echo "$ac_t""no" 1>&6
2040           elif test "$wxUSE_LIBPNG" = sys; then
2041             echo "$ac_t""system version" 1>&6
2042           elif test "$wxUSE_LIBPNG" = builtin; then
2043             echo "$ac_t""builtin version" 1>&6
2044           else
2045             { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2046           fi
2047         
2048
2049           echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2050 echo "configure:2051: checking for --with-libjpeg" >&5
2051           no_cache=0
2052           # Check whether --with-libjpeg or --without-libjpeg was given.
2053 if test "${with_libjpeg+set}" = set; then
2054   withval="$with_libjpeg"
2055   
2056                         if test "$withval" = yes; then
2057                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2058                         elif test "$withval" = no; then
2059                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2060                         elif test "$withval" = sys; then
2061                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2062                         elif test "$withval" = builtin; then
2063                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2064                         else
2065                           { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2066                         fi
2067                       
2068 else
2069   
2070                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2071                         if test "x$LINE" != x ; then
2072                           eval "DEFAULT_$LINE"
2073                         else
2074                           no_cache=1
2075                         fi
2076
2077                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2078                       
2079 fi
2080
2081
2082           eval "$ac_cv_use_libjpeg"
2083           if test "$no_cache" != 1; then
2084             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2085           fi
2086
2087           if test "$wxUSE_LIBJPEG" = yes; then
2088             echo "$ac_t""yes" 1>&6
2089           elif test "$wxUSE_LIBJPEG" = no; then
2090             echo "$ac_t""no" 1>&6
2091           elif test "$wxUSE_LIBJPEG" = sys; then
2092             echo "$ac_t""system version" 1>&6
2093           elif test "$wxUSE_LIBJPEG" = builtin; then
2094             echo "$ac_t""builtin version" 1>&6
2095           else
2096             { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2097           fi
2098         
2099
2100           echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2101 echo "configure:2102: checking for --with-libtiff" >&5
2102           no_cache=0
2103           # Check whether --with-libtiff or --without-libtiff was given.
2104 if test "${with_libtiff+set}" = set; then
2105   withval="$with_libtiff"
2106   
2107                         if test "$withval" = yes; then
2108                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2109                         elif test "$withval" = no; then
2110                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2111                         elif test "$withval" = sys; then
2112                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2113                         elif test "$withval" = builtin; then
2114                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2115                         else
2116                           { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2117                         fi
2118                       
2119 else
2120   
2121                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2122                         if test "x$LINE" != x ; then
2123                           eval "DEFAULT_$LINE"
2124                         else
2125                           no_cache=1
2126                         fi
2127
2128                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2129                       
2130 fi
2131
2132
2133           eval "$ac_cv_use_libtiff"
2134           if test "$no_cache" != 1; then
2135             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2136           fi
2137
2138           if test "$wxUSE_LIBTIFF" = yes; then
2139             echo "$ac_t""yes" 1>&6
2140           elif test "$wxUSE_LIBTIFF" = no; then
2141             echo "$ac_t""no" 1>&6
2142           elif test "$wxUSE_LIBTIFF" = sys; then
2143             echo "$ac_t""system version" 1>&6
2144           elif test "$wxUSE_LIBTIFF" = builtin; then
2145             echo "$ac_t""builtin version" 1>&6
2146           else
2147             { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2148           fi
2149         
2150
2151           echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2152 echo "configure:2153: checking for --with-opengl" >&5
2153           no_cache=0
2154           # Check whether --with-opengl or --without-opengl was given.
2155 if test "${with_opengl+set}" = set; then
2156   withval="$with_opengl"
2157   
2158                         if test "$withval" = yes; then
2159                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
2160                         else
2161                           ac_cv_use_opengl='wxUSE_OPENGL=no'
2162                         fi
2163                       
2164 else
2165   
2166                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2167                         if test "x$LINE" != x ; then
2168                           eval "DEFAULT_$LINE"
2169                         else
2170                           no_cache=1
2171                         fi
2172
2173                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2174                       
2175 fi
2176
2177
2178           eval "$ac_cv_use_opengl"
2179           if test "$no_cache" != 1; then
2180             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2181           fi
2182
2183           if test "$wxUSE_OPENGL" = yes; then
2184             echo "$ac_t""yes" 1>&6
2185           else
2186             echo "$ac_t""no" 1>&6
2187           fi
2188         
2189
2190 fi
2191
2192
2193           echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2194 echo "configure:2195: checking for --with-dmalloc" >&5
2195           no_cache=0
2196           # Check whether --with-dmalloc or --without-dmalloc was given.
2197 if test "${with_dmalloc+set}" = set; then
2198   withval="$with_dmalloc"
2199   
2200                         if test "$withval" = yes; then
2201                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2202                         else
2203                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2204                         fi
2205                       
2206 else
2207   
2208                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2209                         if test "x$LINE" != x ; then
2210                           eval "DEFAULT_$LINE"
2211                         else
2212                           no_cache=1
2213                         fi
2214
2215                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2216                       
2217 fi
2218
2219
2220           eval "$ac_cv_use_dmalloc"
2221           if test "$no_cache" != 1; then
2222             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2223           fi
2224
2225           if test "$wxUSE_DMALLOC" = yes; then
2226             echo "$ac_t""yes" 1>&6
2227           else
2228             echo "$ac_t""no" 1>&6
2229           fi
2230         
2231
2232           echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2233 echo "configure:2234: checking for --with-regex" >&5
2234           no_cache=0
2235           # Check whether --with-regex or --without-regex was given.
2236 if test "${with_regex+set}" = set; then
2237   withval="$with_regex"
2238   
2239                         if test "$withval" = yes; then
2240                           ac_cv_use_regex='wxUSE_REGEX=yes'
2241                         elif test "$withval" = no; then
2242                           ac_cv_use_regex='wxUSE_REGEX=no'
2243                         elif test "$withval" = sys; then
2244                           ac_cv_use_regex='wxUSE_REGEX=sys'
2245                         elif test "$withval" = builtin; then
2246                           ac_cv_use_regex='wxUSE_REGEX=builtin'
2247                         else
2248                           { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2249                         fi
2250                       
2251 else
2252   
2253                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2254                         if test "x$LINE" != x ; then
2255                           eval "DEFAULT_$LINE"
2256                         else
2257                           no_cache=1
2258                         fi
2259
2260                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2261                       
2262 fi
2263
2264
2265           eval "$ac_cv_use_regex"
2266           if test "$no_cache" != 1; then
2267             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2268           fi
2269
2270           if test "$wxUSE_REGEX" = yes; then
2271             echo "$ac_t""yes" 1>&6
2272           elif test "$wxUSE_REGEX" = no; then
2273             echo "$ac_t""no" 1>&6
2274           elif test "$wxUSE_REGEX" = sys; then
2275             echo "$ac_t""system version" 1>&6
2276           elif test "$wxUSE_REGEX" = builtin; then
2277             echo "$ac_t""builtin version" 1>&6
2278           else
2279             { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2280           fi
2281         
2282
2283           echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2284 echo "configure:2285: checking for --with-zlib" >&5
2285           no_cache=0
2286           # Check whether --with-zlib or --without-zlib was given.
2287 if test "${with_zlib+set}" = set; then
2288   withval="$with_zlib"
2289   
2290                         if test "$withval" = yes; then
2291                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
2292                         elif test "$withval" = no; then
2293                           ac_cv_use_zlib='wxUSE_ZLIB=no'
2294                         elif test "$withval" = sys; then
2295                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
2296                         elif test "$withval" = builtin; then
2297                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2298                         else
2299                           { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2300                         fi
2301                       
2302 else
2303   
2304                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2305                         if test "x$LINE" != x ; then
2306                           eval "DEFAULT_$LINE"
2307                         else
2308                           no_cache=1
2309                         fi
2310
2311                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2312                       
2313 fi
2314
2315
2316           eval "$ac_cv_use_zlib"
2317           if test "$no_cache" != 1; then
2318             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2319           fi
2320
2321           if test "$wxUSE_ZLIB" = yes; then
2322             echo "$ac_t""yes" 1>&6
2323           elif test "$wxUSE_ZLIB" = no; then
2324             echo "$ac_t""no" 1>&6
2325           elif test "$wxUSE_ZLIB" = sys; then
2326             echo "$ac_t""system version" 1>&6
2327           elif test "$wxUSE_ZLIB" = builtin; then
2328             echo "$ac_t""builtin version" 1>&6
2329           else
2330             { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2331           fi
2332         
2333
2334           echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2335 echo "configure:2336: checking for --with-odbc" >&5
2336           no_cache=0
2337           # Check whether --with-odbc or --without-odbc was given.
2338 if test "${with_odbc+set}" = set; then
2339   withval="$with_odbc"
2340   
2341                         if test "$withval" = yes; then
2342                           ac_cv_use_odbc='wxUSE_ODBC=yes'
2343                         elif test "$withval" = no; then
2344                           ac_cv_use_odbc='wxUSE_ODBC=no'
2345                         elif test "$withval" = sys; then
2346                           ac_cv_use_odbc='wxUSE_ODBC=sys'
2347                         elif test "$withval" = builtin; then
2348                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
2349                         else
2350                           { echo "configure: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2351                         fi
2352                       
2353 else
2354   
2355                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2356                         if test "x$LINE" != x ; then
2357                           eval "DEFAULT_$LINE"
2358                         else
2359                           no_cache=1
2360                         fi
2361
2362                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2363                       
2364 fi
2365
2366
2367           eval "$ac_cv_use_odbc"
2368           if test "$no_cache" != 1; then
2369             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2370           fi
2371
2372           if test "$wxUSE_ODBC" = yes; then
2373             echo "$ac_t""yes" 1>&6
2374           elif test "$wxUSE_ODBC" = no; then
2375             echo "$ac_t""no" 1>&6
2376           elif test "$wxUSE_ODBC" = sys; then
2377             echo "$ac_t""system version" 1>&6
2378           elif test "$wxUSE_ODBC" = builtin; then
2379             echo "$ac_t""builtin version" 1>&6
2380           else
2381             { echo "configure: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2382           fi
2383         
2384
2385
2386
2387           enablestring=
2388           echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
2389 echo "configure:2390: checking for --${enablestring:-enable}-shared" >&5
2390           no_cache=0
2391           # Check whether --enable-shared or --disable-shared was given.
2392 if test "${enable_shared+set}" = set; then
2393   enableval="$enable_shared"
2394   
2395                           if test "$enableval" = yes; then
2396                             ac_cv_use_shared='wxUSE_SHARED=yes'
2397                           else
2398                             ac_cv_use_shared='wxUSE_SHARED=no'
2399                           fi
2400                         
2401 else
2402   
2403                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2404                           if test "x$LINE" != x ; then
2405                             eval "DEFAULT_$LINE"
2406                           else
2407                             no_cache=1
2408                           fi
2409
2410                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2411                         
2412 fi
2413
2414
2415           eval "$ac_cv_use_shared"
2416           if test "$no_cache" != 1; then
2417             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2418           fi
2419
2420           if test "$wxUSE_SHARED" = yes; then
2421             echo "$ac_t""yes" 1>&6
2422           else
2423             echo "$ac_t""no" 1>&6
2424           fi
2425         
2426
2427           enablestring=
2428           echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
2429 echo "configure:2430: checking for --${enablestring:-enable}-soname" >&5
2430           no_cache=0
2431           # Check whether --enable-soname or --disable-soname was given.
2432 if test "${enable_soname+set}" = set; then
2433   enableval="$enable_soname"
2434   
2435                           if test "$enableval" = yes; then
2436                             ac_cv_use_soname='wxUSE_SONAME=yes'
2437                           else
2438                             ac_cv_use_soname='wxUSE_SONAME=no'
2439                           fi
2440                         
2441 else
2442   
2443                           LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2444                           if test "x$LINE" != x ; then
2445                             eval "DEFAULT_$LINE"
2446                           else
2447                             no_cache=1
2448                           fi
2449
2450                           ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2451                         
2452 fi
2453
2454
2455           eval "$ac_cv_use_soname"
2456           if test "$no_cache" != 1; then
2457             echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2458           fi
2459
2460           if test "$wxUSE_SONAME" = yes; then
2461             echo "$ac_t""yes" 1>&6
2462           else
2463             echo "$ac_t""no" 1>&6
2464           fi
2465         
2466
2467           enablestring=
2468           echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
2469 echo "configure:2470: checking for --${enablestring:-enable}-optimise" >&5
2470           no_cache=0
2471           # Check whether --enable-optimise or --disable-optimise was given.
2472 if test "${enable_optimise+set}" = set; then
2473   enableval="$enable_optimise"
2474   
2475                           if test "$enableval" = yes; then
2476                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2477                           else
2478                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2479                           fi
2480                         
2481 else
2482   
2483                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2484                           if test "x$LINE" != x ; then
2485                             eval "DEFAULT_$LINE"
2486                           else
2487                             no_cache=1
2488                           fi
2489
2490                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2491                         
2492 fi
2493
2494
2495           eval "$ac_cv_use_optimise"
2496           if test "$no_cache" != 1; then
2497             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2498           fi
2499
2500           if test "$wxUSE_OPTIMISE" = yes; then
2501             echo "$ac_t""yes" 1>&6
2502           else
2503             echo "$ac_t""no" 1>&6
2504           fi
2505         
2506
2507           enablestring=
2508           echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
2509 echo "configure:2510: checking for --${enablestring:-enable}-debug" >&5
2510           no_cache=0
2511           # Check whether --enable-debug or --disable-debug was given.
2512 if test "${enable_debug+set}" = set; then
2513   enableval="$enable_debug"
2514   
2515                           if test "$enableval" = yes; then
2516                             ac_cv_use_debug='wxUSE_DEBUG=yes'
2517                           else
2518                             ac_cv_use_debug='wxUSE_DEBUG=no'
2519                           fi
2520                         
2521 else
2522   
2523                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2524                           if test "x$LINE" != x ; then
2525                             eval "DEFAULT_$LINE"
2526                           else
2527                             no_cache=1
2528                           fi
2529
2530                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2531                         
2532 fi
2533
2534
2535           eval "$ac_cv_use_debug"
2536           if test "$no_cache" != 1; then
2537             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2538           fi
2539
2540           if test "$wxUSE_DEBUG" = yes; then
2541             echo "$ac_t""yes" 1>&6
2542           else
2543             echo "$ac_t""no" 1>&6
2544           fi
2545         
2546
2547
2548           enablestring=
2549           echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
2550 echo "configure:2551: checking for --${enablestring:-enable}-precomp" >&5
2551           no_cache=0
2552           # Check whether --enable-precomp or --disable-precomp was given.
2553 if test "${enable_precomp+set}" = set; then
2554   enableval="$enable_precomp"
2555   
2556                           if test "$enableval" = yes; then
2557                             ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2558                           else
2559                             ac_cv_use_precomp='wxUSE_PRECOMP=no'
2560                           fi
2561                         
2562 else
2563   
2564                           LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2565                           if test "x$LINE" != x ; then
2566                             eval "DEFAULT_$LINE"
2567                           else
2568                             no_cache=1
2569                           fi
2570
2571                           ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2572                         
2573 fi
2574
2575
2576           eval "$ac_cv_use_precomp"
2577           if test "$no_cache" != 1; then
2578             echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2579           fi
2580
2581           if test "$wxUSE_PRECOMP" = yes; then
2582             echo "$ac_t""yes" 1>&6
2583           else
2584             echo "$ac_t""no" 1>&6
2585           fi
2586         
2587
2588 if test "$wxUSE_DEBUG" = "yes"; then
2589   DEFAULT_wxUSE_DEBUG_FLAG=yes
2590   DEFAULT_wxUSE_DEBUG_INFO=yes
2591 elif test "$wxUSE_DEBUG" = "no"; then
2592   DEFAULT_wxUSE_DEBUG_FLAG=no
2593   DEFAULT_wxUSE_DEBUG_INFO=no
2594 fi
2595
2596
2597           enablestring=
2598           echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
2599 echo "configure:2600: checking for --${enablestring:-enable}-debug_flag" >&5
2600           no_cache=0
2601           # Check whether --enable-debug_flag or --disable-debug_flag was given.
2602 if test "${enable_debug_flag+set}" = set; then
2603   enableval="$enable_debug_flag"
2604   
2605                           if test "$enableval" = yes; then
2606                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2607                           else
2608                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2609                           fi
2610                         
2611 else
2612   
2613                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2614                           if test "x$LINE" != x ; then
2615                             eval "DEFAULT_$LINE"
2616                           else
2617                             no_cache=1
2618                           fi
2619
2620                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2621                         
2622 fi
2623
2624
2625           eval "$ac_cv_use_debug_flag"
2626           if test "$no_cache" != 1; then
2627             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2628           fi
2629
2630           if test "$wxUSE_DEBUG_FLAG" = yes; then
2631             echo "$ac_t""yes" 1>&6
2632           else
2633             echo "$ac_t""no" 1>&6
2634           fi
2635         
2636
2637           enablestring=
2638           echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
2639 echo "configure:2640: checking for --${enablestring:-enable}-debug_info" >&5
2640           no_cache=0
2641           # Check whether --enable-debug_info or --disable-debug_info was given.
2642 if test "${enable_debug_info+set}" = set; then
2643   enableval="$enable_debug_info"
2644   
2645                           if test "$enableval" = yes; then
2646                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2647                           else
2648                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2649                           fi
2650                         
2651 else
2652   
2653                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2654                           if test "x$LINE" != x ; then
2655                             eval "DEFAULT_$LINE"
2656                           else
2657                             no_cache=1
2658                           fi
2659
2660                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2661                         
2662 fi
2663
2664
2665           eval "$ac_cv_use_debug_info"
2666           if test "$no_cache" != 1; then
2667             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2668           fi
2669
2670           if test "$wxUSE_DEBUG_INFO" = yes; then
2671             echo "$ac_t""yes" 1>&6
2672           else
2673             echo "$ac_t""no" 1>&6
2674           fi
2675         
2676
2677           enablestring=
2678           echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
2679 echo "configure:2680: checking for --${enablestring:-enable}-debug_gdb" >&5
2680           no_cache=0
2681           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2682 if test "${enable_debug_gdb+set}" = set; then
2683   enableval="$enable_debug_gdb"
2684   
2685                           if test "$enableval" = yes; then
2686                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2687                           else
2688                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2689                           fi
2690                         
2691 else
2692   
2693                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2694                           if test "x$LINE" != x ; then
2695                             eval "DEFAULT_$LINE"
2696                           else
2697                             no_cache=1
2698                           fi
2699
2700                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2701                         
2702 fi
2703
2704
2705           eval "$ac_cv_use_debug_gdb"
2706           if test "$no_cache" != 1; then
2707             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2708           fi
2709
2710           if test "$wxUSE_DEBUG_GDB" = yes; then
2711             echo "$ac_t""yes" 1>&6
2712           else
2713             echo "$ac_t""no" 1>&6
2714           fi
2715         
2716
2717           enablestring=
2718           echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
2719 echo "configure:2720: checking for --${enablestring:-enable}-debug_cntxt" >&5
2720           no_cache=0
2721           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2722 if test "${enable_debug_cntxt+set}" = set; then
2723   enableval="$enable_debug_cntxt"
2724   
2725                           if test "$enableval" = yes; then
2726                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2727                           else
2728                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2729                           fi
2730                         
2731 else
2732   
2733                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2734                           if test "x$LINE" != x ; then
2735                             eval "DEFAULT_$LINE"
2736                           else
2737                             no_cache=1
2738                           fi
2739
2740                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2741                         
2742 fi
2743
2744
2745           eval "$ac_cv_use_debug_cntxt"
2746           if test "$no_cache" != 1; then
2747             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2748           fi
2749
2750           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2751             echo "$ac_t""yes" 1>&6
2752           else
2753             echo "$ac_t""no" 1>&6
2754           fi
2755         
2756
2757           enablestring=
2758           echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
2759 echo "configure:2760: checking for --${enablestring:-enable}-mem_tracing" >&5
2760           no_cache=0
2761           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2762 if test "${enable_mem_tracing+set}" = set; then
2763   enableval="$enable_mem_tracing"
2764   
2765                           if test "$enableval" = yes; then
2766                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2767                           else
2768                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2769                           fi
2770                         
2771 else
2772   
2773                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2774                           if test "x$LINE" != x ; then
2775                             eval "DEFAULT_$LINE"
2776                           else
2777                             no_cache=1
2778                           fi
2779
2780                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2781                         
2782 fi
2783
2784
2785           eval "$ac_cv_use_mem_tracing"
2786           if test "$no_cache" != 1; then
2787             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2788           fi
2789
2790           if test "$wxUSE_MEM_TRACING" = yes; then
2791             echo "$ac_t""yes" 1>&6
2792           else
2793             echo "$ac_t""no" 1>&6
2794           fi
2795         
2796
2797           enablestring=
2798           echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
2799 echo "configure:2800: checking for --${enablestring:-enable}-profile" >&5
2800           no_cache=0
2801           # Check whether --enable-profile or --disable-profile was given.
2802 if test "${enable_profile+set}" = set; then
2803   enableval="$enable_profile"
2804   
2805                           if test "$enableval" = yes; then
2806                             ac_cv_use_profile='wxUSE_PROFILE=yes'
2807                           else
2808                             ac_cv_use_profile='wxUSE_PROFILE=no'
2809                           fi
2810                         
2811 else
2812   
2813                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2814                           if test "x$LINE" != x ; then
2815                             eval "DEFAULT_$LINE"
2816                           else
2817                             no_cache=1
2818                           fi
2819
2820                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2821                         
2822 fi
2823
2824
2825           eval "$ac_cv_use_profile"
2826           if test "$no_cache" != 1; then
2827             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2828           fi
2829
2830           if test "$wxUSE_PROFILE" = yes; then
2831             echo "$ac_t""yes" 1>&6
2832           else
2833             echo "$ac_t""no" 1>&6
2834           fi
2835         
2836
2837           enablestring=
2838           echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
2839 echo "configure:2840: checking for --${enablestring:-enable}-no_rtti" >&5
2840           no_cache=0
2841           # Check whether --enable-no_rtti or --disable-no_rtti was given.
2842 if test "${enable_no_rtti+set}" = set; then
2843   enableval="$enable_no_rtti"
2844   
2845                           if test "$enableval" = yes; then
2846                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2847                           else
2848                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2849                           fi
2850                         
2851 else
2852   
2853                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2854                           if test "x$LINE" != x ; then
2855                             eval "DEFAULT_$LINE"
2856                           else
2857                             no_cache=1
2858                           fi
2859
2860                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2861                         
2862 fi
2863
2864
2865           eval "$ac_cv_use_no_rtti"
2866           if test "$no_cache" != 1; then
2867             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2868           fi
2869
2870           if test "$wxUSE_NO_RTTI" = yes; then
2871             echo "$ac_t""yes" 1>&6
2872           else
2873             echo "$ac_t""no" 1>&6
2874           fi
2875         
2876
2877           enablestring=
2878           echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
2879 echo "configure:2880: checking for --${enablestring:-enable}-no_exceptions" >&5
2880           no_cache=0
2881           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2882 if test "${enable_no_exceptions+set}" = set; then
2883   enableval="$enable_no_exceptions"
2884   
2885                           if test "$enableval" = yes; then
2886                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2887                           else
2888                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2889                           fi
2890                         
2891 else
2892   
2893                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2894                           if test "x$LINE" != x ; then
2895                             eval "DEFAULT_$LINE"
2896                           else
2897                             no_cache=1
2898                           fi
2899
2900                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2901                         
2902 fi
2903
2904
2905           eval "$ac_cv_use_no_exceptions"
2906           if test "$no_cache" != 1; then
2907             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2908           fi
2909
2910           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2911             echo "$ac_t""yes" 1>&6
2912           else
2913             echo "$ac_t""no" 1>&6
2914           fi
2915         
2916
2917           enablestring=
2918           echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
2919 echo "configure:2920: checking for --${enablestring:-enable}-permissive" >&5
2920           no_cache=0
2921           # Check whether --enable-permissive or --disable-permissive was given.
2922 if test "${enable_permissive+set}" = set; then
2923   enableval="$enable_permissive"
2924   
2925                           if test "$enableval" = yes; then
2926                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2927                           else
2928                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2929                           fi
2930                         
2931 else
2932   
2933                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2934                           if test "x$LINE" != x ; then
2935                             eval "DEFAULT_$LINE"
2936                           else
2937                             no_cache=1
2938                           fi
2939
2940                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2941                         
2942 fi
2943
2944
2945           eval "$ac_cv_use_permissive"
2946           if test "$no_cache" != 1; then
2947             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2948           fi
2949
2950           if test "$wxUSE_PERMISSIVE" = yes; then
2951             echo "$ac_t""yes" 1>&6
2952           else
2953             echo "$ac_t""no" 1>&6
2954           fi
2955         
2956
2957           enablestring=
2958           echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
2959 echo "configure:2960: checking for --${enablestring:-enable}-no_deps" >&5
2960           no_cache=0
2961           # Check whether --enable-no_deps or --disable-no_deps was given.
2962 if test "${enable_no_deps+set}" = set; then
2963   enableval="$enable_no_deps"
2964   
2965                           if test "$enableval" = yes; then
2966                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2967                           else
2968                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2969                           fi
2970                         
2971 else
2972   
2973                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2974                           if test "x$LINE" != x ; then
2975                             eval "DEFAULT_$LINE"
2976                           else
2977                             no_cache=1
2978                           fi
2979
2980                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2981                         
2982 fi
2983
2984
2985           eval "$ac_cv_use_no_deps"
2986           if test "$no_cache" != 1; then
2987             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2988           fi
2989
2990           if test "$wxUSE_NO_DEPS" = yes; then
2991             echo "$ac_t""yes" 1>&6
2992           else
2993             echo "$ac_t""no" 1>&6
2994           fi
2995         
2996
2997
2998           enablestring=
2999           echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
3000 echo "configure:3001: checking for --${enablestring:-enable}-compat20" >&5
3001           no_cache=0
3002           # Check whether --enable-compat20 or --disable-compat20 was given.
3003 if test "${enable_compat20+set}" = set; then
3004   enableval="$enable_compat20"
3005   
3006                           if test "$enableval" = yes; then
3007                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3008                           else
3009                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3010                           fi
3011                         
3012 else
3013   
3014                           LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3015                           if test "x$LINE" != x ; then
3016                             eval "DEFAULT_$LINE"
3017                           else
3018                             no_cache=1
3019                           fi
3020
3021                           ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
3022                         
3023 fi
3024
3025
3026           eval "$ac_cv_use_compat20"
3027           if test "$no_cache" != 1; then
3028             echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3029           fi
3030
3031           if test "$WXWIN_COMPATIBILITY_2" = yes; then
3032             echo "$ac_t""yes" 1>&6
3033           else
3034             echo "$ac_t""no" 1>&6
3035           fi
3036         
3037
3038           enablestring=
3039           echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
3040 echo "configure:3041: checking for --${enablestring:-enable}-compat22" >&5
3041           no_cache=0
3042           # Check whether --enable-compat22 or --disable-compat22 was given.
3043 if test "${enable_compat22+set}" = set; then
3044   enableval="$enable_compat22"
3045   
3046                           if test "$enableval" = yes; then
3047                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3048                           else
3049                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3050                           fi
3051                         
3052 else
3053   
3054                           LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3055                           if test "x$LINE" != x ; then
3056                             eval "DEFAULT_$LINE"
3057                           else
3058                             no_cache=1
3059                           fi
3060
3061                           ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3062                         
3063 fi
3064
3065
3066           eval "$ac_cv_use_compat22"
3067           if test "$no_cache" != 1; then
3068             echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3069           fi
3070
3071           if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3072             echo "$ac_t""yes" 1>&6
3073           else
3074             echo "$ac_t""no" 1>&6
3075           fi
3076         
3077
3078           enablestring=disable
3079           echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
3080 echo "configure:3081: checking for --${enablestring:-enable}-compat24" >&5
3081           no_cache=0
3082           # Check whether --enable-compat24 or --disable-compat24 was given.
3083 if test "${enable_compat24+set}" = set; then
3084   enableval="$enable_compat24"
3085   
3086                           if test "$enableval" = yes; then
3087                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3088                           else
3089                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3090                           fi
3091                         
3092 else
3093   
3094                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3095                           if test "x$LINE" != x ; then
3096                             eval "DEFAULT_$LINE"
3097                           else
3098                             no_cache=1
3099                           fi
3100
3101                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3102                         
3103 fi
3104
3105
3106           eval "$ac_cv_use_compat24"
3107           if test "$no_cache" != 1; then
3108             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3109           fi
3110
3111           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3112             echo "$ac_t""yes" 1>&6
3113           else
3114             echo "$ac_t""no" 1>&6
3115           fi
3116         
3117
3118 # Check whether --enable-rpath or --disable-rpath was given.
3119 if test "${enable_rpath+set}" = set; then
3120   enableval="$enable_rpath"
3121   wxRPATH_DIR="$enableval"
3122 fi
3123
3124
3125 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3126    WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3127 fi
3128
3129
3130
3131
3132           enablestring=
3133           echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
3134 echo "configure:3135: checking for --${enablestring:-enable}-intl" >&5
3135           no_cache=0
3136           # Check whether --enable-intl or --disable-intl was given.
3137 if test "${enable_intl+set}" = set; then
3138   enableval="$enable_intl"
3139   
3140                           if test "$enableval" = yes; then
3141                             ac_cv_use_intl='wxUSE_INTL=yes'
3142                           else
3143                             ac_cv_use_intl='wxUSE_INTL=no'
3144                           fi
3145                         
3146 else
3147   
3148                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3149                           if test "x$LINE" != x ; then
3150                             eval "DEFAULT_$LINE"
3151                           else
3152                             no_cache=1
3153                           fi
3154
3155                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3156                         
3157 fi
3158
3159
3160           eval "$ac_cv_use_intl"
3161           if test "$no_cache" != 1; then
3162             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3163           fi
3164
3165           if test "$wxUSE_INTL" = yes; then
3166             echo "$ac_t""yes" 1>&6
3167           else
3168             echo "$ac_t""no" 1>&6
3169           fi
3170         
3171
3172           enablestring=
3173           echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
3174 echo "configure:3175: checking for --${enablestring:-enable}-config" >&5
3175           no_cache=0
3176           # Check whether --enable-config or --disable-config was given.
3177 if test "${enable_config+set}" = set; then
3178   enableval="$enable_config"
3179   
3180                           if test "$enableval" = yes; then
3181                             ac_cv_use_config='wxUSE_CONFIG=yes'
3182                           else
3183                             ac_cv_use_config='wxUSE_CONFIG=no'
3184                           fi
3185                         
3186 else
3187   
3188                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3189                           if test "x$LINE" != x ; then
3190                             eval "DEFAULT_$LINE"
3191                           else
3192                             no_cache=1
3193                           fi
3194
3195                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3196                         
3197 fi
3198
3199
3200           eval "$ac_cv_use_config"
3201           if test "$no_cache" != 1; then
3202             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3203           fi
3204
3205           if test "$wxUSE_CONFIG" = yes; then
3206             echo "$ac_t""yes" 1>&6
3207           else
3208             echo "$ac_t""no" 1>&6
3209           fi
3210         
3211
3212
3213           enablestring=
3214           echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
3215 echo "configure:3216: checking for --${enablestring:-enable}-protocols" >&5
3216           no_cache=0
3217           # Check whether --enable-protocols or --disable-protocols was given.
3218 if test "${enable_protocols+set}" = set; then
3219   enableval="$enable_protocols"
3220   
3221                           if test "$enableval" = yes; then
3222                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3223                           else
3224                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3225                           fi
3226                         
3227 else
3228   
3229                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3230                           if test "x$LINE" != x ; then
3231                             eval "DEFAULT_$LINE"
3232                           else
3233                             no_cache=1
3234                           fi
3235
3236                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3237                         
3238 fi
3239
3240
3241           eval "$ac_cv_use_protocols"
3242           if test "$no_cache" != 1; then
3243             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3244           fi
3245
3246           if test "$wxUSE_PROTOCOL" = yes; then
3247             echo "$ac_t""yes" 1>&6
3248           else
3249             echo "$ac_t""no" 1>&6
3250           fi
3251         
3252
3253           enablestring=
3254           echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
3255 echo "configure:3256: checking for --${enablestring:-enable}-ftp" >&5
3256           no_cache=0
3257           # Check whether --enable-ftp or --disable-ftp was given.
3258 if test "${enable_ftp+set}" = set; then
3259   enableval="$enable_ftp"
3260   
3261                           if test "$enableval" = yes; then
3262                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3263                           else
3264                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3265                           fi
3266                         
3267 else
3268   
3269                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3270                           if test "x$LINE" != x ; then
3271                             eval "DEFAULT_$LINE"
3272                           else
3273                             no_cache=1
3274                           fi
3275
3276                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3277                         
3278 fi
3279
3280
3281           eval "$ac_cv_use_ftp"
3282           if test "$no_cache" != 1; then
3283             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3284           fi
3285
3286           if test "$wxUSE_PROTOCOL_FTP" = yes; then
3287             echo "$ac_t""yes" 1>&6
3288           else
3289             echo "$ac_t""no" 1>&6
3290           fi
3291         
3292
3293           enablestring=
3294           echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
3295 echo "configure:3296: checking for --${enablestring:-enable}-http" >&5
3296           no_cache=0
3297           # Check whether --enable-http or --disable-http was given.
3298 if test "${enable_http+set}" = set; then
3299   enableval="$enable_http"
3300   
3301                           if test "$enableval" = yes; then
3302                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3303                           else
3304                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3305                           fi
3306                         
3307 else
3308   
3309                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3310                           if test "x$LINE" != x ; then
3311                             eval "DEFAULT_$LINE"
3312                           else
3313                             no_cache=1
3314                           fi
3315
3316                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3317                         
3318 fi
3319
3320
3321           eval "$ac_cv_use_http"
3322           if test "$no_cache" != 1; then
3323             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3324           fi
3325
3326           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3327             echo "$ac_t""yes" 1>&6
3328           else
3329             echo "$ac_t""no" 1>&6
3330           fi
3331         
3332
3333           enablestring=
3334           echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
3335 echo "configure:3336: checking for --${enablestring:-enable}-fileproto" >&5
3336           no_cache=0
3337           # Check whether --enable-fileproto or --disable-fileproto was given.
3338 if test "${enable_fileproto+set}" = set; then
3339   enableval="$enable_fileproto"
3340   
3341                           if test "$enableval" = yes; then
3342                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3343                           else
3344                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3345                           fi
3346                         
3347 else
3348   
3349                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3350                           if test "x$LINE" != x ; then
3351                             eval "DEFAULT_$LINE"
3352                           else
3353                             no_cache=1
3354                           fi
3355
3356                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3357                         
3358 fi
3359
3360
3361           eval "$ac_cv_use_fileproto"
3362           if test "$no_cache" != 1; then
3363             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3364           fi
3365
3366           if test "$wxUSE_PROTOCOL_FILE" = yes; then
3367             echo "$ac_t""yes" 1>&6
3368           else
3369             echo "$ac_t""no" 1>&6
3370           fi
3371         
3372
3373           enablestring=
3374           echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
3375 echo "configure:3376: checking for --${enablestring:-enable}-sockets" >&5
3376           no_cache=0
3377           # Check whether --enable-sockets or --disable-sockets was given.
3378 if test "${enable_sockets+set}" = set; then
3379   enableval="$enable_sockets"
3380   
3381                           if test "$enableval" = yes; then
3382                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3383                           else
3384                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
3385                           fi
3386                         
3387 else
3388   
3389                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3390                           if test "x$LINE" != x ; then
3391                             eval "DEFAULT_$LINE"
3392                           else
3393                             no_cache=1
3394                           fi
3395
3396                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3397                         
3398 fi
3399
3400
3401           eval "$ac_cv_use_sockets"
3402           if test "$no_cache" != 1; then
3403             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3404           fi
3405
3406           if test "$wxUSE_SOCKETS" = yes; then
3407             echo "$ac_t""yes" 1>&6
3408           else
3409             echo "$ac_t""no" 1>&6
3410           fi
3411         
3412
3413           enablestring=
3414           echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
3415 echo "configure:3416: checking for --${enablestring:-enable}-ole" >&5
3416           no_cache=0
3417           # Check whether --enable-ole or --disable-ole was given.
3418 if test "${enable_ole+set}" = set; then
3419   enableval="$enable_ole"
3420   
3421                           if test "$enableval" = yes; then
3422                             ac_cv_use_ole='wxUSE_OLE=yes'
3423                           else
3424                             ac_cv_use_ole='wxUSE_OLE=no'
3425                           fi
3426                         
3427 else
3428   
3429                           LINE=`grep "wxUSE_OLE" ${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_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3437                         
3438 fi
3439
3440
3441           eval "$ac_cv_use_ole"
3442           if test "$no_cache" != 1; then
3443             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3444           fi
3445
3446           if test "$wxUSE_OLE" = yes; then
3447             echo "$ac_t""yes" 1>&6
3448           else
3449             echo "$ac_t""no" 1>&6
3450           fi
3451         
3452
3453           enablestring=
3454           echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
3455 echo "configure:3456: checking for --${enablestring:-enable}-dataobj" >&5
3456           no_cache=0
3457           # Check whether --enable-dataobj or --disable-dataobj was given.
3458 if test "${enable_dataobj+set}" = set; then
3459   enableval="$enable_dataobj"
3460   
3461                           if test "$enableval" = yes; then
3462                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3463                           else
3464                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3465                           fi
3466                         
3467 else
3468   
3469                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3470                           if test "x$LINE" != x ; then
3471                             eval "DEFAULT_$LINE"
3472                           else
3473                             no_cache=1
3474                           fi
3475
3476                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3477                         
3478 fi
3479
3480
3481           eval "$ac_cv_use_dataobj"
3482           if test "$no_cache" != 1; then
3483             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3484           fi
3485
3486           if test "$wxUSE_DATAOBJ" = yes; then
3487             echo "$ac_t""yes" 1>&6
3488           else
3489             echo "$ac_t""no" 1>&6
3490           fi
3491         
3492
3493
3494           enablestring=
3495           echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
3496 echo "configure:3497: checking for --${enablestring:-enable}-ipc" >&5
3497           no_cache=0
3498           # Check whether --enable-ipc or --disable-ipc was given.
3499 if test "${enable_ipc+set}" = set; then
3500   enableval="$enable_ipc"
3501   
3502                           if test "$enableval" = yes; then
3503                             ac_cv_use_ipc='wxUSE_IPC=yes'
3504                           else
3505                             ac_cv_use_ipc='wxUSE_IPC=no'
3506                           fi
3507                         
3508 else
3509   
3510                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3511                           if test "x$LINE" != x ; then
3512                             eval "DEFAULT_$LINE"
3513                           else
3514                             no_cache=1
3515                           fi
3516
3517                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3518                         
3519 fi
3520
3521
3522           eval "$ac_cv_use_ipc"
3523           if test "$no_cache" != 1; then
3524             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3525           fi
3526
3527           if test "$wxUSE_IPC" = yes; then
3528             echo "$ac_t""yes" 1>&6
3529           else
3530             echo "$ac_t""no" 1>&6
3531           fi
3532         
3533
3534
3535           enablestring=
3536           echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
3537 echo "configure:3538: checking for --${enablestring:-enable}-cmdline" >&5
3538           no_cache=0
3539           # Check whether --enable-cmdline or --disable-cmdline was given.
3540 if test "${enable_cmdline+set}" = set; then
3541   enableval="$enable_cmdline"
3542   
3543                           if test "$enableval" = yes; then
3544                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3545                           else
3546                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3547                           fi
3548                         
3549 else
3550   
3551                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3552                           if test "x$LINE" != x ; then
3553                             eval "DEFAULT_$LINE"
3554                           else
3555                             no_cache=1
3556                           fi
3557
3558                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3559                         
3560 fi
3561
3562
3563           eval "$ac_cv_use_cmdline"
3564           if test "$no_cache" != 1; then
3565             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3566           fi
3567
3568           if test "$wxUSE_CMDLINE_PARSER" = yes; then
3569             echo "$ac_t""yes" 1>&6
3570           else
3571             echo "$ac_t""no" 1>&6
3572           fi
3573         
3574
3575           enablestring=
3576           echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
3577 echo "configure:3578: checking for --${enablestring:-enable}-datetime" >&5
3578           no_cache=0
3579           # Check whether --enable-datetime or --disable-datetime was given.
3580 if test "${enable_datetime+set}" = set; then
3581   enableval="$enable_datetime"
3582   
3583                           if test "$enableval" = yes; then
3584                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
3585                           else
3586                             ac_cv_use_datetime='wxUSE_DATETIME=no'
3587                           fi
3588                         
3589 else
3590   
3591                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3592                           if test "x$LINE" != x ; then
3593                             eval "DEFAULT_$LINE"
3594                           else
3595                             no_cache=1
3596                           fi
3597
3598                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3599                         
3600 fi
3601
3602
3603           eval "$ac_cv_use_datetime"
3604           if test "$no_cache" != 1; then
3605             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3606           fi
3607
3608           if test "$wxUSE_DATETIME" = yes; then
3609             echo "$ac_t""yes" 1>&6
3610           else
3611             echo "$ac_t""no" 1>&6
3612           fi
3613         
3614
3615           enablestring=
3616           echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
3617 echo "configure:3618: checking for --${enablestring:-enable}-stopwatch" >&5
3618           no_cache=0
3619           # Check whether --enable-stopwatch or --disable-stopwatch was given.
3620 if test "${enable_stopwatch+set}" = set; then
3621   enableval="$enable_stopwatch"
3622   
3623                           if test "$enableval" = yes; then
3624                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3625                           else
3626                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3627                           fi
3628                         
3629 else
3630   
3631                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3632                           if test "x$LINE" != x ; then
3633                             eval "DEFAULT_$LINE"
3634                           else
3635                             no_cache=1
3636                           fi
3637
3638                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3639                         
3640 fi
3641
3642
3643           eval "$ac_cv_use_stopwatch"
3644           if test "$no_cache" != 1; then
3645             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3646           fi
3647
3648           if test "$wxUSE_STOPWATCH" = yes; then
3649             echo "$ac_t""yes" 1>&6
3650           else
3651             echo "$ac_t""no" 1>&6
3652           fi
3653         
3654
3655           enablestring=
3656           echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
3657 echo "configure:3658: checking for --${enablestring:-enable}-dialupman" >&5
3658           no_cache=0
3659           # Check whether --enable-dialupman or --disable-dialupman was given.
3660 if test "${enable_dialupman+set}" = set; then
3661   enableval="$enable_dialupman"
3662   
3663                           if test "$enableval" = yes; then
3664                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3665                           else
3666                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3667                           fi
3668                         
3669 else
3670   
3671                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3672                           if test "x$LINE" != x ; then
3673                             eval "DEFAULT_$LINE"
3674                           else
3675                             no_cache=1
3676                           fi
3677
3678                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3679                         
3680 fi
3681
3682
3683           eval "$ac_cv_use_dialupman"
3684           if test "$no_cache" != 1; then
3685             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3686           fi
3687
3688           if test "$wxUSE_DIALUP_MANAGER" = yes; then
3689             echo "$ac_t""yes" 1>&6
3690           else
3691             echo "$ac_t""no" 1>&6
3692           fi
3693         
3694
3695           enablestring=
3696           echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
3697 echo "configure:3698: checking for --${enablestring:-enable}-apple_ieee" >&5
3698           no_cache=0
3699           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3700 if test "${enable_apple_ieee+set}" = set; then
3701   enableval="$enable_apple_ieee"
3702   
3703                           if test "$enableval" = yes; then
3704                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3705                           else
3706                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3707                           fi
3708                         
3709 else
3710   
3711                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3712                           if test "x$LINE" != x ; then
3713                             eval "DEFAULT_$LINE"
3714                           else
3715                             no_cache=1
3716                           fi
3717
3718                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3719                         
3720 fi
3721
3722
3723           eval "$ac_cv_use_apple_ieee"
3724           if test "$no_cache" != 1; then
3725             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3726           fi
3727
3728           if test "$wxUSE_APPLE_IEEE" = yes; then
3729             echo "$ac_t""yes" 1>&6
3730           else
3731             echo "$ac_t""no" 1>&6
3732           fi
3733         
3734
3735           enablestring=
3736           echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
3737 echo "configure:3738: checking for --${enablestring:-enable}-timer" >&5
3738           no_cache=0
3739           # Check whether --enable-timer or --disable-timer was given.
3740 if test "${enable_timer+set}" = set; then
3741   enableval="$enable_timer"
3742   
3743                           if test "$enableval" = yes; then
3744                             ac_cv_use_timer='wxUSE_TIMER=yes'
3745                           else
3746                             ac_cv_use_timer='wxUSE_TIMER=no'
3747                           fi
3748                         
3749 else
3750   
3751                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3752                           if test "x$LINE" != x ; then
3753                             eval "DEFAULT_$LINE"
3754                           else
3755                             no_cache=1
3756                           fi
3757
3758                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3759                         
3760 fi
3761
3762
3763           eval "$ac_cv_use_timer"
3764           if test "$no_cache" != 1; then
3765             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3766           fi
3767
3768           if test "$wxUSE_TIMER" = yes; then
3769             echo "$ac_t""yes" 1>&6
3770           else
3771             echo "$ac_t""no" 1>&6
3772           fi
3773         
3774
3775           enablestring=
3776           echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
3777 echo "configure:3778: checking for --${enablestring:-enable}-wave" >&5
3778           no_cache=0
3779           # Check whether --enable-wave or --disable-wave was given.
3780 if test "${enable_wave+set}" = set; then
3781   enableval="$enable_wave"
3782   
3783                           if test "$enableval" = yes; then
3784                             ac_cv_use_wave='wxUSE_WAVE=yes'
3785                           else
3786                             ac_cv_use_wave='wxUSE_WAVE=no'
3787                           fi
3788                         
3789 else
3790   
3791                           LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3792                           if test "x$LINE" != x ; then
3793                             eval "DEFAULT_$LINE"
3794                           else
3795                             no_cache=1
3796                           fi
3797
3798                           ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3799                         
3800 fi
3801
3802
3803           eval "$ac_cv_use_wave"
3804           if test "$no_cache" != 1; then
3805             echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3806           fi
3807
3808           if test "$wxUSE_WAVE" = yes; then
3809             echo "$ac_t""yes" 1>&6
3810           else
3811             echo "$ac_t""no" 1>&6
3812           fi
3813         
3814
3815           enablestring=
3816           echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
3817 echo "configure:3818: checking for --${enablestring:-enable}-fraction" >&5
3818           no_cache=0
3819           # Check whether --enable-fraction or --disable-fraction was given.
3820 if test "${enable_fraction+set}" = set; then
3821   enableval="$enable_fraction"
3822   
3823                           if test "$enableval" = yes; then
3824                             ac_cv_use_fraction='wxUSE_FRACTION=yes'
3825                           else
3826                             ac_cv_use_fraction='wxUSE_FRACTION=no'
3827                           fi
3828                         
3829 else
3830   
3831                           LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3832                           if test "x$LINE" != x ; then
3833                             eval "DEFAULT_$LINE"
3834                           else
3835                             no_cache=1
3836                           fi
3837
3838                           ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3839                         
3840 fi
3841
3842
3843           eval "$ac_cv_use_fraction"
3844           if test "$no_cache" != 1; then
3845             echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3846           fi
3847
3848           if test "$wxUSE_FRACTION" = yes; then
3849             echo "$ac_t""yes" 1>&6
3850           else
3851             echo "$ac_t""no" 1>&6
3852           fi
3853         
3854
3855           enablestring=
3856           echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
3857 echo "configure:3858: checking for --${enablestring:-enable}-dynlib" >&5
3858           no_cache=0
3859           # Check whether --enable-dynlib or --disable-dynlib was given.
3860 if test "${enable_dynlib+set}" = set; then
3861   enableval="$enable_dynlib"
3862   
3863                           if test "$enableval" = yes; then
3864                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3865                           else
3866                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3867                           fi
3868                         
3869 else
3870   
3871                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3872                           if test "x$LINE" != x ; then
3873                             eval "DEFAULT_$LINE"
3874                           else
3875                             no_cache=1
3876                           fi
3877
3878                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3879                         
3880 fi
3881
3882
3883           eval "$ac_cv_use_dynlib"
3884           if test "$no_cache" != 1; then
3885             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3886           fi
3887
3888           if test "$wxUSE_DYNLIB_CLASS" = yes; then
3889             echo "$ac_t""yes" 1>&6
3890           else
3891             echo "$ac_t""no" 1>&6
3892           fi
3893         
3894
3895           enablestring=
3896           echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
3897 echo "configure:3898: checking for --${enablestring:-enable}-dynamicloader" >&5
3898           no_cache=0
3899           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3900 if test "${enable_dynamicloader+set}" = set; then
3901   enableval="$enable_dynamicloader"
3902   
3903                           if test "$enableval" = yes; then
3904                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3905                           else
3906                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3907                           fi
3908                         
3909 else
3910   
3911                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3912                           if test "x$LINE" != x ; then
3913                             eval "DEFAULT_$LINE"
3914                           else
3915                             no_cache=1
3916                           fi
3917
3918                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3919                         
3920 fi
3921
3922
3923           eval "$ac_cv_use_dynamicloader"
3924           if test "$no_cache" != 1; then
3925             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3926           fi
3927
3928           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3929             echo "$ac_t""yes" 1>&6
3930           else
3931             echo "$ac_t""no" 1>&6
3932           fi
3933         
3934
3935           enablestring=
3936           echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
3937 echo "configure:3938: checking for --${enablestring:-enable}-longlong" >&5
3938           no_cache=0
3939           # Check whether --enable-longlong or --disable-longlong was given.
3940 if test "${enable_longlong+set}" = set; then
3941   enableval="$enable_longlong"
3942   
3943                           if test "$enableval" = yes; then
3944                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3945                           else
3946                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
3947                           fi
3948                         
3949 else
3950   
3951                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3952                           if test "x$LINE" != x ; then
3953                             eval "DEFAULT_$LINE"
3954                           else
3955                             no_cache=1
3956                           fi
3957
3958                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3959                         
3960 fi
3961
3962
3963           eval "$ac_cv_use_longlong"
3964           if test "$no_cache" != 1; then
3965             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3966           fi
3967
3968           if test "$wxUSE_LONGLONG" = yes; then
3969             echo "$ac_t""yes" 1>&6
3970           else
3971             echo "$ac_t""no" 1>&6
3972           fi
3973         
3974
3975           enablestring=
3976           echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
3977 echo "configure:3978: checking for --${enablestring:-enable}-geometry" >&5
3978           no_cache=0
3979           # Check whether --enable-geometry or --disable-geometry was given.
3980 if test "${enable_geometry+set}" = set; then
3981   enableval="$enable_geometry"
3982   
3983                           if test "$enableval" = yes; then
3984                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3985                           else
3986                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3987                           fi
3988                         
3989 else
3990   
3991                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3992                           if test "x$LINE" != x ; then
3993                             eval "DEFAULT_$LINE"
3994                           else
3995                             no_cache=1
3996                           fi
3997
3998                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3999                         
4000 fi
4001
4002
4003           eval "$ac_cv_use_geometry"
4004           if test "$no_cache" != 1; then
4005             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4006           fi
4007
4008           if test "$wxUSE_GEOMETRY" = yes; then
4009             echo "$ac_t""yes" 1>&6
4010           else
4011             echo "$ac_t""no" 1>&6
4012           fi
4013         
4014
4015           enablestring=
4016           echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
4017 echo "configure:4018: checking for --${enablestring:-enable}-log" >&5
4018           no_cache=0
4019           # Check whether --enable-log or --disable-log was given.
4020 if test "${enable_log+set}" = set; then
4021   enableval="$enable_log"
4022   
4023                           if test "$enableval" = yes; then
4024                             ac_cv_use_log='wxUSE_LOG=yes'
4025                           else
4026                             ac_cv_use_log='wxUSE_LOG=no'
4027                           fi
4028                         
4029 else
4030   
4031                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4032                           if test "x$LINE" != x ; then
4033                             eval "DEFAULT_$LINE"
4034                           else
4035                             no_cache=1
4036                           fi
4037
4038                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4039                         
4040 fi
4041
4042
4043           eval "$ac_cv_use_log"
4044           if test "$no_cache" != 1; then
4045             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4046           fi
4047
4048           if test "$wxUSE_LOG" = yes; then
4049             echo "$ac_t""yes" 1>&6
4050           else
4051             echo "$ac_t""no" 1>&6
4052           fi
4053         
4054
4055           enablestring=
4056           echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
4057 echo "configure:4058: checking for --${enablestring:-enable}-streams" >&5
4058           no_cache=0
4059           # Check whether --enable-streams or --disable-streams was given.
4060 if test "${enable_streams+set}" = set; then
4061   enableval="$enable_streams"
4062   
4063                           if test "$enableval" = yes; then
4064                             ac_cv_use_streams='wxUSE_STREAMS=yes'
4065                           else
4066                             ac_cv_use_streams='wxUSE_STREAMS=no'
4067                           fi
4068                         
4069 else
4070   
4071                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4072                           if test "x$LINE" != x ; then
4073                             eval "DEFAULT_$LINE"
4074                           else
4075                             no_cache=1
4076                           fi
4077
4078                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4079                         
4080 fi
4081
4082
4083           eval "$ac_cv_use_streams"
4084           if test "$no_cache" != 1; then
4085             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4086           fi
4087
4088           if test "$wxUSE_STREAMS" = yes; then
4089             echo "$ac_t""yes" 1>&6
4090           else
4091             echo "$ac_t""no" 1>&6
4092           fi
4093         
4094
4095           enablestring=
4096           echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
4097 echo "configure:4098: checking for --${enablestring:-enable}-file" >&5
4098           no_cache=0
4099           # Check whether --enable-file or --disable-file was given.
4100 if test "${enable_file+set}" = set; then
4101   enableval="$enable_file"
4102   
4103                           if test "$enableval" = yes; then
4104                             ac_cv_use_file='wxUSE_FILE=yes'
4105                           else
4106                             ac_cv_use_file='wxUSE_FILE=no'
4107                           fi
4108                         
4109 else
4110   
4111                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4112                           if test "x$LINE" != x ; then
4113                             eval "DEFAULT_$LINE"
4114                           else
4115                             no_cache=1
4116                           fi
4117
4118                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4119                         
4120 fi
4121
4122
4123           eval "$ac_cv_use_file"
4124           if test "$no_cache" != 1; then
4125             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4126           fi
4127
4128           if test "$wxUSE_FILE" = yes; then
4129             echo "$ac_t""yes" 1>&6
4130           else
4131             echo "$ac_t""no" 1>&6
4132           fi
4133         
4134
4135           enablestring=
4136           echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
4137 echo "configure:4138: checking for --${enablestring:-enable}-ffile" >&5
4138           no_cache=0
4139           # Check whether --enable-ffile or --disable-ffile was given.
4140 if test "${enable_ffile+set}" = set; then
4141   enableval="$enable_ffile"
4142   
4143                           if test "$enableval" = yes; then
4144                             ac_cv_use_ffile='wxUSE_FFILE=yes'
4145                           else
4146                             ac_cv_use_ffile='wxUSE_FFILE=no'
4147                           fi
4148                         
4149 else
4150   
4151                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4152                           if test "x$LINE" != x ; then
4153                             eval "DEFAULT_$LINE"
4154                           else
4155                             no_cache=1
4156                           fi
4157
4158                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4159                         
4160 fi
4161
4162
4163           eval "$ac_cv_use_ffile"
4164           if test "$no_cache" != 1; then
4165             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4166           fi
4167
4168           if test "$wxUSE_FFILE" = yes; then
4169             echo "$ac_t""yes" 1>&6
4170           else
4171             echo "$ac_t""no" 1>&6
4172           fi
4173         
4174
4175           enablestring=
4176           echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
4177 echo "configure:4178: checking for --${enablestring:-enable}-textbuf" >&5
4178           no_cache=0
4179           # Check whether --enable-textbuf or --disable-textbuf was given.
4180 if test "${enable_textbuf+set}" = set; then
4181   enableval="$enable_textbuf"
4182   
4183                           if test "$enableval" = yes; then
4184                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4185                           else
4186                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4187                           fi
4188                         
4189 else
4190   
4191                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4192                           if test "x$LINE" != x ; then
4193                             eval "DEFAULT_$LINE"
4194                           else
4195                             no_cache=1
4196                           fi
4197
4198                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4199                         
4200 fi
4201
4202
4203           eval "$ac_cv_use_textbuf"
4204           if test "$no_cache" != 1; then
4205             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4206           fi
4207
4208           if test "$wxUSE_TEXTBUFFER" = yes; then
4209             echo "$ac_t""yes" 1>&6
4210           else
4211             echo "$ac_t""no" 1>&6
4212           fi
4213         
4214
4215           enablestring=
4216           echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
4217 echo "configure:4218: checking for --${enablestring:-enable}-textfile" >&5
4218           no_cache=0
4219           # Check whether --enable-textfile or --disable-textfile was given.
4220 if test "${enable_textfile+set}" = set; then
4221   enableval="$enable_textfile"
4222   
4223                           if test "$enableval" = yes; then
4224                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4225                           else
4226                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4227                           fi
4228                         
4229 else
4230   
4231                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4232                           if test "x$LINE" != x ; then
4233                             eval "DEFAULT_$LINE"
4234                           else
4235                             no_cache=1
4236                           fi
4237
4238                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4239                         
4240 fi
4241
4242
4243           eval "$ac_cv_use_textfile"
4244           if test "$no_cache" != 1; then
4245             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4246           fi
4247
4248           if test "$wxUSE_TEXTFILE" = yes; then
4249             echo "$ac_t""yes" 1>&6
4250           else
4251             echo "$ac_t""no" 1>&6
4252           fi
4253         
4254
4255           enablestring=
4256           echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
4257 echo "configure:4258: checking for --${enablestring:-enable}-fontmap" >&5
4258           no_cache=0
4259           # Check whether --enable-fontmap or --disable-fontmap was given.
4260 if test "${enable_fontmap+set}" = set; then
4261   enableval="$enable_fontmap"
4262   
4263                           if test "$enableval" = yes; then
4264                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4265                           else
4266                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4267                           fi
4268                         
4269 else
4270   
4271                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4272                           if test "x$LINE" != x ; then
4273                             eval "DEFAULT_$LINE"
4274                           else
4275                             no_cache=1
4276                           fi
4277
4278                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4279                         
4280 fi
4281
4282
4283           eval "$ac_cv_use_fontmap"
4284           if test "$no_cache" != 1; then
4285             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4286           fi
4287
4288           if test "$wxUSE_FONTMAP" = yes; then
4289             echo "$ac_t""yes" 1>&6
4290           else
4291             echo "$ac_t""no" 1>&6
4292           fi
4293         
4294
4295           enablestring=
4296           echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
4297 echo "configure:4298: checking for --${enablestring:-enable}-unicode" >&5
4298           no_cache=0
4299           # Check whether --enable-unicode or --disable-unicode was given.
4300 if test "${enable_unicode+set}" = set; then
4301   enableval="$enable_unicode"
4302   
4303                           if test "$enableval" = yes; then
4304                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
4305                           else
4306                             ac_cv_use_unicode='wxUSE_UNICODE=no'
4307                           fi
4308                         
4309 else
4310   
4311                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4312                           if test "x$LINE" != x ; then
4313                             eval "DEFAULT_$LINE"
4314                           else
4315                             no_cache=1
4316                           fi
4317
4318                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4319                         
4320 fi
4321
4322
4323           eval "$ac_cv_use_unicode"
4324           if test "$no_cache" != 1; then
4325             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4326           fi
4327
4328           if test "$wxUSE_UNICODE" = yes; then
4329             echo "$ac_t""yes" 1>&6
4330           else
4331             echo "$ac_t""no" 1>&6
4332           fi
4333         
4334
4335           enablestring=
4336           echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
4337 echo "configure:4338: checking for --${enablestring:-enable}-mslu" >&5
4338           no_cache=0
4339           # Check whether --enable-mslu or --disable-mslu was given.
4340 if test "${enable_mslu+set}" = set; then
4341   enableval="$enable_mslu"
4342   
4343                           if test "$enableval" = yes; then
4344                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4345                           else
4346                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4347                           fi
4348                         
4349 else
4350   
4351                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4352                           if test "x$LINE" != x ; then
4353                             eval "DEFAULT_$LINE"
4354                           else
4355                             no_cache=1
4356                           fi
4357
4358                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4359                         
4360 fi
4361
4362
4363           eval "$ac_cv_use_mslu"
4364           if test "$no_cache" != 1; then
4365             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4366           fi
4367
4368           if test "$wxUSE_UNICODE_MSLU" = yes; then
4369             echo "$ac_t""yes" 1>&6
4370           else
4371             echo "$ac_t""no" 1>&6
4372           fi
4373         
4374
4375           enablestring=
4376           echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
4377 echo "configure:4378: checking for --${enablestring:-enable}-wxprintfv" >&5
4378           no_cache=0
4379           # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4380 if test "${enable_wxprintfv+set}" = set; then
4381   enableval="$enable_wxprintfv"
4382   
4383                           if test "$enableval" = yes; then
4384                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4385                           else
4386                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4387                           fi
4388                         
4389 else
4390   
4391                           LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4392                           if test "x$LINE" != x ; then
4393                             eval "DEFAULT_$LINE"
4394                           else
4395                             no_cache=1
4396                           fi
4397
4398                           ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4399                         
4400 fi
4401
4402
4403           eval "$ac_cv_use_wxprintfv"
4404           if test "$no_cache" != 1; then
4405             echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4406           fi
4407
4408           if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4409             echo "$ac_t""yes" 1>&6
4410           else
4411             echo "$ac_t""no" 1>&6
4412           fi
4413         
4414
4415           enablestring=
4416           echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
4417 echo "configure:4418: checking for --${enablestring:-enable}-std_iostreams" >&5
4418           no_cache=0
4419           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4420 if test "${enable_std_iostreams+set}" = set; then
4421   enableval="$enable_std_iostreams"
4422   
4423                           if test "$enableval" = yes; then
4424                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4425                           else
4426                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4427                           fi
4428                         
4429 else
4430   
4431                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4432                           if test "x$LINE" != x ; then
4433                             eval "DEFAULT_$LINE"
4434                           else
4435                             no_cache=1
4436                           fi
4437
4438                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4439                         
4440 fi
4441
4442
4443           eval "$ac_cv_use_std_iostreams"
4444           if test "$no_cache" != 1; then
4445             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4446           fi
4447
4448           if test "$wxUSE_STD_IOSTREAM" = yes; then
4449             echo "$ac_t""yes" 1>&6
4450           else
4451             echo "$ac_t""no" 1>&6
4452           fi
4453         
4454
4455           enablestring=
4456           echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
4457 echo "configure:4458: checking for --${enablestring:-enable}-filesystem" >&5
4458           no_cache=0
4459           # Check whether --enable-filesystem or --disable-filesystem was given.
4460 if test "${enable_filesystem+set}" = set; then
4461   enableval="$enable_filesystem"
4462   
4463                           if test "$enableval" = yes; then
4464                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4465                           else
4466                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4467                           fi
4468                         
4469 else
4470   
4471                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4472                           if test "x$LINE" != x ; then
4473                             eval "DEFAULT_$LINE"
4474                           else
4475                             no_cache=1
4476                           fi
4477
4478                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4479                         
4480 fi
4481
4482
4483           eval "$ac_cv_use_filesystem"
4484           if test "$no_cache" != 1; then
4485             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4486           fi
4487
4488           if test "$wxUSE_FILESYSTEM" = yes; then
4489             echo "$ac_t""yes" 1>&6
4490           else
4491             echo "$ac_t""no" 1>&6
4492           fi
4493         
4494
4495           enablestring=
4496           echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
4497 echo "configure:4498: checking for --${enablestring:-enable}-fs_inet" >&5
4498           no_cache=0
4499           # Check whether --enable-fs_inet or --disable-fs_inet was given.
4500 if test "${enable_fs_inet+set}" = set; then
4501   enableval="$enable_fs_inet"
4502   
4503                           if test "$enableval" = yes; then
4504                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4505                           else
4506                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4507                           fi
4508                         
4509 else
4510   
4511                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4512                           if test "x$LINE" != x ; then
4513                             eval "DEFAULT_$LINE"
4514                           else
4515                             no_cache=1
4516                           fi
4517
4518                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4519                         
4520 fi
4521
4522
4523           eval "$ac_cv_use_fs_inet"
4524           if test "$no_cache" != 1; then
4525             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4526           fi
4527
4528           if test "$wxUSE_FS_INET" = yes; then
4529             echo "$ac_t""yes" 1>&6
4530           else
4531             echo "$ac_t""no" 1>&6
4532           fi
4533         
4534
4535           enablestring=
4536           echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
4537 echo "configure:4538: checking for --${enablestring:-enable}-fs_zip" >&5
4538           no_cache=0
4539           # Check whether --enable-fs_zip or --disable-fs_zip was given.
4540 if test "${enable_fs_zip+set}" = set; then
4541   enableval="$enable_fs_zip"
4542   
4543                           if test "$enableval" = yes; then
4544                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4545                           else
4546                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4547                           fi
4548                         
4549 else
4550   
4551                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4552                           if test "x$LINE" != x ; then
4553                             eval "DEFAULT_$LINE"
4554                           else
4555                             no_cache=1
4556                           fi
4557
4558                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4559                         
4560 fi
4561
4562
4563           eval "$ac_cv_use_fs_zip"
4564           if test "$no_cache" != 1; then
4565             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4566           fi
4567
4568           if test "$wxUSE_FS_ZIP" = yes; then
4569             echo "$ac_t""yes" 1>&6
4570           else
4571             echo "$ac_t""no" 1>&6
4572           fi
4573         
4574
4575           enablestring=
4576           echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
4577 echo "configure:4578: checking for --${enablestring:-enable}-zipstream" >&5
4578           no_cache=0
4579           # Check whether --enable-zipstream or --disable-zipstream was given.
4580 if test "${enable_zipstream+set}" = set; then
4581   enableval="$enable_zipstream"
4582   
4583                           if test "$enableval" = yes; then
4584                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4585                           else
4586                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4587                           fi
4588                         
4589 else
4590   
4591                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4592                           if test "x$LINE" != x ; then
4593                             eval "DEFAULT_$LINE"
4594                           else
4595                             no_cache=1
4596                           fi
4597
4598                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4599                         
4600 fi
4601
4602
4603           eval "$ac_cv_use_zipstream"
4604           if test "$no_cache" != 1; then
4605             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4606           fi
4607
4608           if test "$wxUSE_ZIPSTREAM" = yes; then
4609             echo "$ac_t""yes" 1>&6
4610           else
4611             echo "$ac_t""no" 1>&6
4612           fi
4613         
4614
4615
4616           enablestring=
4617           echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
4618 echo "configure:4619: checking for --${enablestring:-enable}-catch_segvs" >&5
4619           no_cache=0
4620           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4621 if test "${enable_catch_segvs+set}" = set; then
4622   enableval="$enable_catch_segvs"
4623   
4624                           if test "$enableval" = yes; then
4625                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4626                           else
4627                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4628                           fi
4629                         
4630 else
4631   
4632                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4633                           if test "x$LINE" != x ; then
4634                             eval "DEFAULT_$LINE"
4635                           else
4636                             no_cache=1
4637                           fi
4638
4639                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4640                         
4641 fi
4642
4643
4644           eval "$ac_cv_use_catch_segvs"
4645           if test "$no_cache" != 1; then
4646             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4647           fi
4648
4649           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4650             echo "$ac_t""yes" 1>&6
4651           else
4652             echo "$ac_t""no" 1>&6
4653           fi
4654         
4655
4656           enablestring=
4657           echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
4658 echo "configure:4659: checking for --${enablestring:-enable}-snglinst" >&5
4659           no_cache=0
4660           # Check whether --enable-snglinst or --disable-snglinst was given.
4661 if test "${enable_snglinst+set}" = set; then
4662   enableval="$enable_snglinst"
4663   
4664                           if test "$enableval" = yes; then
4665                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4666                           else
4667                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4668                           fi
4669                         
4670 else
4671   
4672                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4673                           if test "x$LINE" != x ; then
4674                             eval "DEFAULT_$LINE"
4675                           else
4676                             no_cache=1
4677                           fi
4678
4679                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4680                         
4681 fi
4682
4683
4684           eval "$ac_cv_use_snglinst"
4685           if test "$no_cache" != 1; then
4686             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4687           fi
4688
4689           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4690             echo "$ac_t""yes" 1>&6
4691           else
4692             echo "$ac_t""no" 1>&6
4693           fi
4694         
4695
4696
4697           enablestring=
4698           echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
4699 echo "configure:4700: checking for --${enablestring:-enable}-mimetype" >&5
4700           no_cache=0
4701           # Check whether --enable-mimetype or --disable-mimetype was given.
4702 if test "${enable_mimetype+set}" = set; then
4703   enableval="$enable_mimetype"
4704   
4705                           if test "$enableval" = yes; then
4706                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4707                           else
4708                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4709                           fi
4710                         
4711 else
4712   
4713                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4714                           if test "x$LINE" != x ; then
4715                             eval "DEFAULT_$LINE"
4716                           else
4717                             no_cache=1
4718                           fi
4719
4720                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4721                         
4722 fi
4723
4724
4725           eval "$ac_cv_use_mimetype"
4726           if test "$no_cache" != 1; then
4727             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4728           fi
4729
4730           if test "$wxUSE_MIMETYPE" = yes; then
4731             echo "$ac_t""yes" 1>&6
4732           else
4733             echo "$ac_t""no" 1>&6
4734           fi
4735         
4736
4737           enablestring=
4738           echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
4739 echo "configure:4740: checking for --${enablestring:-enable}-system_options" >&5
4740           no_cache=0
4741           # Check whether --enable-system_options or --disable-system_options was given.
4742 if test "${enable_system_options+set}" = set; then
4743   enableval="$enable_system_options"
4744   
4745                           if test "$enableval" = yes; then
4746                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4747                           else
4748                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4749                           fi
4750                         
4751 else
4752   
4753                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4754                           if test "x$LINE" != x ; then
4755                             eval "DEFAULT_$LINE"
4756                           else
4757                             no_cache=1
4758                           fi
4759
4760                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4761                         
4762 fi
4763
4764
4765           eval "$ac_cv_use_system_options"
4766           if test "$no_cache" != 1; then
4767             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4768           fi
4769
4770           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4771             echo "$ac_t""yes" 1>&6
4772           else
4773             echo "$ac_t""no" 1>&6
4774           fi
4775         
4776
4777
4778           enablestring=
4779           echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
4780 echo "configure:4781: checking for --${enablestring:-enable}-url" >&5
4781           no_cache=0
4782           # Check whether --enable-url or --disable-url was given.
4783 if test "${enable_url+set}" = set; then
4784   enableval="$enable_url"
4785   
4786                           if test "$enableval" = yes; then
4787                             ac_cv_use_url='wxUSE_URL=yes'
4788                           else
4789                             ac_cv_use_url='wxUSE_URL=no'
4790                           fi
4791                         
4792 else
4793   
4794                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4795                           if test "x$LINE" != x ; then
4796                             eval "DEFAULT_$LINE"
4797                           else
4798                             no_cache=1
4799                           fi
4800
4801                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4802                         
4803 fi
4804
4805
4806           eval "$ac_cv_use_url"
4807           if test "$no_cache" != 1; then
4808             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4809           fi
4810
4811           if test "$wxUSE_URL" = yes; then
4812             echo "$ac_t""yes" 1>&6
4813           else
4814             echo "$ac_t""no" 1>&6
4815           fi
4816         
4817
4818           enablestring=
4819           echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
4820 echo "configure:4821: checking for --${enablestring:-enable}-protocol" >&5
4821           no_cache=0
4822           # Check whether --enable-protocol or --disable-protocol was given.
4823 if test "${enable_protocol+set}" = set; then
4824   enableval="$enable_protocol"
4825   
4826                           if test "$enableval" = yes; then
4827                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4828                           else
4829                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4830                           fi
4831                         
4832 else
4833   
4834                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4835                           if test "x$LINE" != x ; then
4836                             eval "DEFAULT_$LINE"
4837                           else
4838                             no_cache=1
4839                           fi
4840
4841                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4842                         
4843 fi
4844
4845
4846           eval "$ac_cv_use_protocol"
4847           if test "$no_cache" != 1; then
4848             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4849           fi
4850
4851           if test "$wxUSE_PROTOCOL" = yes; then
4852             echo "$ac_t""yes" 1>&6
4853           else
4854             echo "$ac_t""no" 1>&6
4855           fi
4856         
4857
4858           enablestring=
4859           echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
4860 echo "configure:4861: checking for --${enablestring:-enable}-protocol_http" >&5
4861           no_cache=0
4862           # Check whether --enable-protocol_http or --disable-protocol_http was given.
4863 if test "${enable_protocol_http+set}" = set; then
4864   enableval="$enable_protocol_http"
4865   
4866                           if test "$enableval" = yes; then
4867                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4868                           else
4869                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4870                           fi
4871                         
4872 else
4873   
4874                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4875                           if test "x$LINE" != x ; then
4876                             eval "DEFAULT_$LINE"
4877                           else
4878                             no_cache=1
4879                           fi
4880
4881                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4882                         
4883 fi
4884
4885
4886           eval "$ac_cv_use_protocol_http"
4887           if test "$no_cache" != 1; then
4888             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4889           fi
4890
4891           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4892             echo "$ac_t""yes" 1>&6
4893           else
4894             echo "$ac_t""no" 1>&6
4895           fi
4896         
4897
4898           enablestring=
4899           echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
4900 echo "configure:4901: checking for --${enablestring:-enable}-protocol_ftp" >&5
4901           no_cache=0
4902           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4903 if test "${enable_protocol_ftp+set}" = set; then
4904   enableval="$enable_protocol_ftp"
4905   
4906                           if test "$enableval" = yes; then
4907                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4908                           else
4909                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4910                           fi
4911                         
4912 else
4913   
4914                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4915                           if test "x$LINE" != x ; then
4916                             eval "DEFAULT_$LINE"
4917                           else
4918                             no_cache=1
4919                           fi
4920
4921                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4922                         
4923 fi
4924
4925
4926           eval "$ac_cv_use_protocol_ftp"
4927           if test "$no_cache" != 1; then
4928             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4929           fi
4930
4931           if test "$wxUSE_PROTOCOL_FTP" = yes; then
4932             echo "$ac_t""yes" 1>&6
4933           else
4934             echo "$ac_t""no" 1>&6
4935           fi
4936         
4937
4938           enablestring=
4939           echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
4940 echo "configure:4941: checking for --${enablestring:-enable}-protocol_file" >&5
4941           no_cache=0
4942           # Check whether --enable-protocol_file or --disable-protocol_file was given.
4943 if test "${enable_protocol_file+set}" = set; then
4944   enableval="$enable_protocol_file"
4945   
4946                           if test "$enableval" = yes; then
4947                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4948                           else
4949                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4950                           fi
4951                         
4952 else
4953   
4954                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4955                           if test "x$LINE" != x ; then
4956                             eval "DEFAULT_$LINE"
4957                           else
4958                             no_cache=1
4959                           fi
4960
4961                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4962                         
4963 fi
4964
4965
4966           eval "$ac_cv_use_protocol_file"
4967           if test "$no_cache" != 1; then
4968             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4969           fi
4970
4971           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4972             echo "$ac_t""yes" 1>&6
4973           else
4974             echo "$ac_t""no" 1>&6
4975           fi
4976         
4977
4978
4979
4980
4981           enablestring=
4982           echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
4983 echo "configure:4984: checking for --${enablestring:-enable}-threads" >&5
4984           no_cache=0
4985           # Check whether --enable-threads or --disable-threads was given.
4986 if test "${enable_threads+set}" = set; then
4987   enableval="$enable_threads"
4988   
4989                           if test "$enableval" = yes; then
4990                             ac_cv_use_threads='wxUSE_THREADS=yes'
4991                           else
4992                             ac_cv_use_threads='wxUSE_THREADS=no'
4993                           fi
4994                         
4995 else
4996   
4997                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4998                           if test "x$LINE" != x ; then
4999                             eval "DEFAULT_$LINE"
5000                           else
5001                             no_cache=1
5002                           fi
5003
5004                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5005                         
5006 fi
5007
5008
5009           eval "$ac_cv_use_threads"
5010           if test "$no_cache" != 1; then
5011             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5012           fi
5013
5014           if test "$wxUSE_THREADS" = yes; then
5015             echo "$ac_t""yes" 1>&6
5016           else
5017             echo "$ac_t""no" 1>&6
5018           fi
5019         
5020
5021 if test "$wxUSE_GUI" = "yes"; then
5022
5023
5024
5025           enablestring=
5026           echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
5027 echo "configure:5028: checking for --${enablestring:-enable}-docview" >&5
5028           no_cache=0
5029           # Check whether --enable-docview or --disable-docview was given.
5030 if test "${enable_docview+set}" = set; then
5031   enableval="$enable_docview"
5032   
5033                           if test "$enableval" = yes; then
5034                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5035                           else
5036                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5037                           fi
5038                         
5039 else
5040   
5041                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5042                           if test "x$LINE" != x ; then
5043                             eval "DEFAULT_$LINE"
5044                           else
5045                             no_cache=1
5046                           fi
5047
5048                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5049                         
5050 fi
5051
5052
5053           eval "$ac_cv_use_docview"
5054           if test "$no_cache" != 1; then
5055             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5056           fi
5057
5058           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5059             echo "$ac_t""yes" 1>&6
5060           else
5061             echo "$ac_t""no" 1>&6
5062           fi
5063         
5064
5065           enablestring=
5066           echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
5067 echo "configure:5068: checking for --${enablestring:-enable}-help" >&5
5068           no_cache=0
5069           # Check whether --enable-help or --disable-help was given.
5070 if test "${enable_help+set}" = set; then
5071   enableval="$enable_help"
5072   
5073                           if test "$enableval" = yes; then
5074                             ac_cv_use_help='wxUSE_HELP=yes'
5075                           else
5076                             ac_cv_use_help='wxUSE_HELP=no'
5077                           fi
5078                         
5079 else
5080   
5081                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5082                           if test "x$LINE" != x ; then
5083                             eval "DEFAULT_$LINE"
5084                           else
5085                             no_cache=1
5086                           fi
5087
5088                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5089                         
5090 fi
5091
5092
5093           eval "$ac_cv_use_help"
5094           if test "$no_cache" != 1; then
5095             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5096           fi
5097
5098           if test "$wxUSE_HELP" = yes; then
5099             echo "$ac_t""yes" 1>&6
5100           else
5101             echo "$ac_t""no" 1>&6
5102           fi
5103         
5104
5105           enablestring=
5106           echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
5107 echo "configure:5108: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5108           no_cache=0
5109           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5110 if test "${enable_mshtmlhelp+set}" = set; then
5111   enableval="$enable_mshtmlhelp"
5112   
5113                           if test "$enableval" = yes; then
5114                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5115                           else
5116                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5117                           fi
5118                         
5119 else
5120   
5121                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5122                           if test "x$LINE" != x ; then
5123                             eval "DEFAULT_$LINE"
5124                           else
5125                             no_cache=1
5126                           fi
5127
5128                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5129                         
5130 fi
5131
5132
5133           eval "$ac_cv_use_mshtmlhelp"
5134           if test "$no_cache" != 1; then
5135             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5136           fi
5137
5138           if test "$wxUSE_MS_HTML_HELP" = yes; then
5139             echo "$ac_t""yes" 1>&6
5140           else
5141             echo "$ac_t""no" 1>&6
5142           fi
5143         
5144
5145           enablestring=
5146           echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
5147 echo "configure:5148: checking for --${enablestring:-enable}-html" >&5
5148           no_cache=0
5149           # Check whether --enable-html or --disable-html was given.
5150 if test "${enable_html+set}" = set; then
5151   enableval="$enable_html"
5152   
5153                           if test "$enableval" = yes; then
5154                             ac_cv_use_html='wxUSE_HTML=yes'
5155                           else
5156                             ac_cv_use_html='wxUSE_HTML=no'
5157                           fi
5158                         
5159 else
5160   
5161                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5162                           if test "x$LINE" != x ; then
5163                             eval "DEFAULT_$LINE"
5164                           else
5165                             no_cache=1
5166                           fi
5167
5168                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5169                         
5170 fi
5171
5172
5173           eval "$ac_cv_use_html"
5174           if test "$no_cache" != 1; then
5175             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5176           fi
5177
5178           if test "$wxUSE_HTML" = yes; then
5179             echo "$ac_t""yes" 1>&6
5180           else
5181             echo "$ac_t""no" 1>&6
5182           fi
5183         
5184
5185           enablestring=
5186           echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
5187 echo "configure:5188: checking for --${enablestring:-enable}-htmlhelp" >&5
5188           no_cache=0
5189           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5190 if test "${enable_htmlhelp+set}" = set; then
5191   enableval="$enable_htmlhelp"
5192   
5193                           if test "$enableval" = yes; then
5194                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5195                           else
5196                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5197                           fi
5198                         
5199 else
5200   
5201                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5202                           if test "x$LINE" != x ; then
5203                             eval "DEFAULT_$LINE"
5204                           else
5205                             no_cache=1
5206                           fi
5207
5208                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5209                         
5210 fi
5211
5212
5213           eval "$ac_cv_use_htmlhelp"
5214           if test "$no_cache" != 1; then
5215             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5216           fi
5217
5218           if test "$wxUSE_WXHTML_HELP" = yes; then
5219             echo "$ac_t""yes" 1>&6
5220           else
5221             echo "$ac_t""no" 1>&6
5222           fi
5223         
5224
5225           enablestring=
5226           echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
5227 echo "configure:5228: checking for --${enablestring:-enable}-constraints" >&5
5228           no_cache=0
5229           # Check whether --enable-constraints or --disable-constraints was given.
5230 if test "${enable_constraints+set}" = set; then
5231   enableval="$enable_constraints"
5232   
5233                           if test "$enableval" = yes; then
5234                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5235                           else
5236                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5237                           fi
5238                         
5239 else
5240   
5241                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5242                           if test "x$LINE" != x ; then
5243                             eval "DEFAULT_$LINE"
5244                           else
5245                             no_cache=1
5246                           fi
5247
5248                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5249                         
5250 fi
5251
5252
5253           eval "$ac_cv_use_constraints"
5254           if test "$no_cache" != 1; then
5255             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5256           fi
5257
5258           if test "$wxUSE_CONSTRAINTS" = yes; then
5259             echo "$ac_t""yes" 1>&6
5260           else
5261             echo "$ac_t""no" 1>&6
5262           fi
5263         
5264
5265           enablestring=
5266           echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
5267 echo "configure:5268: checking for --${enablestring:-enable}-printarch" >&5
5268           no_cache=0
5269           # Check whether --enable-printarch or --disable-printarch was given.
5270 if test "${enable_printarch+set}" = set; then
5271   enableval="$enable_printarch"
5272   
5273                           if test "$enableval" = yes; then
5274                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5275                           else
5276                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5277                           fi
5278                         
5279 else
5280   
5281                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5282                           if test "x$LINE" != x ; then
5283                             eval "DEFAULT_$LINE"
5284                           else
5285                             no_cache=1
5286                           fi
5287
5288                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5289                         
5290 fi
5291
5292
5293           eval "$ac_cv_use_printarch"
5294           if test "$no_cache" != 1; then
5295             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5296           fi
5297
5298           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5299             echo "$ac_t""yes" 1>&6
5300           else
5301             echo "$ac_t""no" 1>&6
5302           fi
5303         
5304
5305           enablestring=
5306           echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
5307 echo "configure:5308: checking for --${enablestring:-enable}-mdi" >&5
5308           no_cache=0
5309           # Check whether --enable-mdi or --disable-mdi was given.
5310 if test "${enable_mdi+set}" = set; then
5311   enableval="$enable_mdi"
5312   
5313                           if test "$enableval" = yes; then
5314                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5315                           else
5316                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5317                           fi
5318                         
5319 else
5320   
5321                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5322                           if test "x$LINE" != x ; then
5323                             eval "DEFAULT_$LINE"
5324                           else
5325                             no_cache=1
5326                           fi
5327
5328                           ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5329                         
5330 fi
5331
5332
5333           eval "$ac_cv_use_mdi"
5334           if test "$no_cache" != 1; then
5335             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5336           fi
5337
5338           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5339             echo "$ac_t""yes" 1>&6
5340           else
5341             echo "$ac_t""no" 1>&6
5342           fi
5343         
5344
5345           enablestring=
5346           echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
5347 echo "configure:5348: checking for --${enablestring:-enable}-loggui" >&5
5348           no_cache=0
5349           # Check whether --enable-loggui or --disable-loggui was given.
5350 if test "${enable_loggui+set}" = set; then
5351   enableval="$enable_loggui"
5352   
5353                           if test "$enableval" = yes; then
5354                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5355                           else
5356                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
5357                           fi
5358                         
5359 else
5360   
5361                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5362                           if test "x$LINE" != x ; then
5363                             eval "DEFAULT_$LINE"
5364                           else
5365                             no_cache=1
5366                           fi
5367
5368                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5369                         
5370 fi
5371
5372
5373           eval "$ac_cv_use_loggui"
5374           if test "$no_cache" != 1; then
5375             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5376           fi
5377
5378           if test "$wxUSE_LOGGUI" = yes; then
5379             echo "$ac_t""yes" 1>&6
5380           else
5381             echo "$ac_t""no" 1>&6
5382           fi
5383         
5384
5385           enablestring=
5386           echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
5387 echo "configure:5388: checking for --${enablestring:-enable}-logwin" >&5
5388           no_cache=0
5389           # Check whether --enable-logwin or --disable-logwin was given.
5390 if test "${enable_logwin+set}" = set; then
5391   enableval="$enable_logwin"
5392   
5393                           if test "$enableval" = yes; then
5394                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5395                           else
5396                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5397                           fi
5398                         
5399 else
5400   
5401                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5402                           if test "x$LINE" != x ; then
5403                             eval "DEFAULT_$LINE"
5404                           else
5405                             no_cache=1
5406                           fi
5407
5408                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5409                         
5410 fi
5411
5412
5413           eval "$ac_cv_use_logwin"
5414           if test "$no_cache" != 1; then
5415             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5416           fi
5417
5418           if test "$wxUSE_LOGWINDOW" = yes; then
5419             echo "$ac_t""yes" 1>&6
5420           else
5421             echo "$ac_t""no" 1>&6
5422           fi
5423         
5424
5425           enablestring=
5426           echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
5427 echo "configure:5428: checking for --${enablestring:-enable}-logdialog" >&5
5428           no_cache=0
5429           # Check whether --enable-logdialog or --disable-logdialog was given.
5430 if test "${enable_logdialog+set}" = set; then
5431   enableval="$enable_logdialog"
5432   
5433                           if test "$enableval" = yes; then
5434                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5435                           else
5436                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5437                           fi
5438                         
5439 else
5440   
5441                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5442                           if test "x$LINE" != x ; then
5443                             eval "DEFAULT_$LINE"
5444                           else
5445                             no_cache=1
5446                           fi
5447
5448                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5449                         
5450 fi
5451
5452
5453           eval "$ac_cv_use_logdialog"
5454           if test "$no_cache" != 1; then
5455             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5456           fi
5457
5458           if test "$wxUSE_LOGDIALOG" = yes; then
5459             echo "$ac_t""yes" 1>&6
5460           else
5461             echo "$ac_t""no" 1>&6
5462           fi
5463         
5464
5465
5466           enablestring=
5467           echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
5468 echo "configure:5469: checking for --${enablestring:-enable}-postscript" >&5
5469           no_cache=0
5470           # Check whether --enable-postscript or --disable-postscript was given.
5471 if test "${enable_postscript+set}" = set; then
5472   enableval="$enable_postscript"
5473   
5474                           if test "$enableval" = yes; then
5475                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5476                           else
5477                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5478                           fi
5479                         
5480 else
5481   
5482                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5483                           if test "x$LINE" != x ; then
5484                             eval "DEFAULT_$LINE"
5485                           else
5486                             no_cache=1
5487                           fi
5488
5489                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5490                         
5491 fi
5492
5493
5494           eval "$ac_cv_use_postscript"
5495           if test "$no_cache" != 1; then
5496             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5497           fi
5498
5499           if test "$wxUSE_POSTSCRIPT" = yes; then
5500             echo "$ac_t""yes" 1>&6
5501           else
5502             echo "$ac_t""no" 1>&6
5503           fi
5504         
5505
5506
5507
5508
5509           enablestring=
5510           echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6
5511 echo "configure:5512: checking for --${enablestring:-enable}-prologio" >&5
5512           no_cache=0
5513           # Check whether --enable-prologio or --disable-prologio was given.
5514 if test "${enable_prologio+set}" = set; then
5515   enableval="$enable_prologio"
5516   
5517                           if test "$enableval" = yes; then
5518                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5519                           else
5520                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5521                           fi
5522                         
5523 else
5524   
5525                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5526                           if test "x$LINE" != x ; then
5527                             eval "DEFAULT_$LINE"
5528                           else
5529                             no_cache=1
5530                           fi
5531
5532                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5533                         
5534 fi
5535
5536
5537           eval "$ac_cv_use_prologio"
5538           if test "$no_cache" != 1; then
5539             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5540           fi
5541
5542           if test "$wxUSE_PROLOGIO" = yes; then
5543             echo "$ac_t""yes" 1>&6
5544           else
5545             echo "$ac_t""no" 1>&6
5546           fi
5547         
5548
5549           enablestring=
5550           echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
5551 echo "configure:5552: checking for --${enablestring:-enable}-resources" >&5
5552           no_cache=0
5553           # Check whether --enable-resources or --disable-resources was given.
5554 if test "${enable_resources+set}" = set; then
5555   enableval="$enable_resources"
5556   
5557                           if test "$enableval" = yes; then
5558                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
5559                           else
5560                             ac_cv_use_resources='wxUSE_RESOURCES=no'
5561                           fi
5562                         
5563 else
5564   
5565                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5566                           if test "x$LINE" != x ; then
5567                             eval "DEFAULT_$LINE"
5568                           else
5569                             no_cache=1
5570                           fi
5571
5572                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5573                         
5574 fi
5575
5576
5577           eval "$ac_cv_use_resources"
5578           if test "$no_cache" != 1; then
5579             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5580           fi
5581
5582           if test "$wxUSE_RESOURCES" = yes; then
5583             echo "$ac_t""yes" 1>&6
5584           else
5585             echo "$ac_t""no" 1>&6
5586           fi
5587         
5588
5589
5590
5591           enablestring=
5592           echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
5593 echo "configure:5594: checking for --${enablestring:-enable}-clipboard" >&5
5594           no_cache=0
5595           # Check whether --enable-clipboard or --disable-clipboard was given.
5596 if test "${enable_clipboard+set}" = set; then
5597   enableval="$enable_clipboard"
5598   
5599                           if test "$enableval" = yes; then
5600                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5601                           else
5602                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5603                           fi
5604                         
5605 else
5606   
5607                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5608                           if test "x$LINE" != x ; then
5609                             eval "DEFAULT_$LINE"
5610                           else
5611                             no_cache=1
5612                           fi
5613
5614                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5615                         
5616 fi
5617
5618
5619           eval "$ac_cv_use_clipboard"
5620           if test "$no_cache" != 1; then
5621             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5622           fi
5623
5624           if test "$wxUSE_CLIPBOARD" = yes; then
5625             echo "$ac_t""yes" 1>&6
5626           else
5627             echo "$ac_t""no" 1>&6
5628           fi
5629         
5630
5631           enablestring=
5632           echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
5633 echo "configure:5634: checking for --${enablestring:-enable}-dnd" >&5
5634           no_cache=0
5635           # Check whether --enable-dnd or --disable-dnd was given.
5636 if test "${enable_dnd+set}" = set; then
5637   enableval="$enable_dnd"
5638   
5639                           if test "$enableval" = yes; then
5640                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5641                           else
5642                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5643                           fi
5644                         
5645 else
5646   
5647                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5648                           if test "x$LINE" != x ; then
5649                             eval "DEFAULT_$LINE"
5650                           else
5651                             no_cache=1
5652                           fi
5653
5654                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5655                         
5656 fi
5657
5658
5659           eval "$ac_cv_use_dnd"
5660           if test "$no_cache" != 1; then
5661             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5662           fi
5663
5664           if test "$wxUSE_DRAG_AND_DROP" = yes; then
5665             echo "$ac_t""yes" 1>&6
5666           else
5667             echo "$ac_t""no" 1>&6
5668           fi
5669         
5670
5671           enablestring=
5672           echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
5673 echo "configure:5674: checking for --${enablestring:-enable}-metafile" >&5
5674           no_cache=0
5675           # Check whether --enable-metafile or --disable-metafile was given.
5676 if test "${enable_metafile+set}" = set; then
5677   enableval="$enable_metafile"
5678   
5679                           if test "$enableval" = yes; then
5680                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
5681                           else
5682                             ac_cv_use_metafile='wxUSE_METAFILE=no'
5683                           fi
5684                         
5685 else
5686   
5687                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5688                           if test "x$LINE" != x ; then
5689                             eval "DEFAULT_$LINE"
5690                           else
5691                             no_cache=1
5692                           fi
5693
5694                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5695                         
5696 fi
5697
5698
5699           eval "$ac_cv_use_metafile"
5700           if test "$no_cache" != 1; then
5701             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5702           fi
5703
5704           if test "$wxUSE_METAFILE" = yes; then
5705             echo "$ac_t""yes" 1>&6
5706           else
5707             echo "$ac_t""no" 1>&6
5708           fi
5709         
5710
5711
5712
5713
5714           enablestring=
5715           echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
5716 echo "configure:5717: checking for --${enablestring:-enable}-controls" >&5
5717           no_cache=0
5718           # Check whether --enable-controls or --disable-controls was given.
5719 if test "${enable_controls+set}" = set; then
5720   enableval="$enable_controls"
5721   
5722                           if test "$enableval" = yes; then
5723                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
5724                           else
5725                             ac_cv_use_controls='wxUSE_CONTROLS=no'
5726                           fi
5727                         
5728 else
5729   
5730                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5731                           if test "x$LINE" != x ; then
5732                             eval "DEFAULT_$LINE"
5733                           else
5734                             no_cache=1
5735                           fi
5736
5737                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5738                         
5739 fi
5740
5741
5742           eval "$ac_cv_use_controls"
5743           if test "$no_cache" != 1; then
5744             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5745           fi
5746
5747           if test "$wxUSE_CONTROLS" = yes; then
5748             echo "$ac_t""yes" 1>&6
5749           else
5750             echo "$ac_t""no" 1>&6
5751           fi
5752         
5753
5754 if test "$wxUSE_CONTROLS" = "yes"; then
5755   DEFAULT_wxUSE_ACCEL=yes
5756   DEFAULT_wxUSE_BMPBUTTON=yes
5757   DEFAULT_wxUSE_BUTTON=yes
5758   DEFAULT_wxUSE_CALCTRL=no
5759   DEFAULT_wxUSE_CARET=yes
5760   DEFAULT_wxUSE_COMBOBOX=yes
5761   DEFAULT_wxUSE_CHECKBOX=yes
5762   DEFAULT_wxUSE_CHECKLISTBOX=yes
5763   DEFAULT_wxUSE_CHOICE=yes
5764   DEFAULT_wxUSE_GAUGE=yes
5765   DEFAULT_wxUSE_GRID=yes
5766   DEFAULT_wxUSE_IMAGLIST=yes
5767   DEFAULT_wxUSE_LISTBOX=yes
5768   DEFAULT_wxUSE_LISTCTRL=yes
5769   DEFAULT_wxUSE_NOTEBOOK=yes
5770   DEFAULT_wxUSE_RADIOBOX=yes
5771   DEFAULT_wxUSE_RADIOBTN=yes
5772   DEFAULT_wxUSE_SASH=yes
5773   DEFAULT_wxUSE_SCROLLBAR=yes
5774   DEFAULT_wxUSE_SLIDER=yes
5775   DEFAULT_wxUSE_SPINBTN=yes
5776   DEFAULT_wxUSE_SPINCTRL=yes
5777   DEFAULT_wxUSE_SPLITTER=yes
5778   DEFAULT_wxUSE_STATBMP=yes
5779   DEFAULT_wxUSE_STATBOX=yes
5780   DEFAULT_wxUSE_STATLINE=yes
5781   DEFAULT_wxUSE_STATUSBAR=yes
5782   DEFAULT_wxUSE_TAB_DIALOG=yes
5783   DEFAULT_wxUSE_TOGGLEBTN=yes
5784   DEFAULT_wxUSE_TOOLBAR=yes
5785   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5786   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5787   DEFAULT_wxUSE_TOOLTIPS=yes
5788   DEFAULT_wxUSE_TREECTRL=yes
5789   DEFAULT_wxUSE_POPUPWIN=yes
5790   DEFAULT_wxUSE_TIPWINDOW=yes
5791 elif test "$wxUSE_CONTROLS" = "no"; then
5792   DEFAULT_wxUSE_ACCEL=no
5793   DEFAULT_wxUSE_BMPBUTTON=no
5794   DEFAULT_wxUSE_BUTTON=no
5795   DEFAULT_wxUSE_CALCTRL=no
5796   DEFAULT_wxUSE_CARET=no
5797   DEFAULT_wxUSE_COMBOBOX=no
5798   DEFAULT_wxUSE_CHECKBOX=no
5799   DEFAULT_wxUSE_CHECKLISTBOX=no
5800   DEFAULT_wxUSE_CHOICE=no
5801   DEFAULT_wxUSE_GAUGE=no
5802   DEFAULT_wxUSE_GRID=no
5803   DEFAULT_wxUSE_IMAGLIST=no
5804   DEFAULT_wxUSE_LISTBOX=no
5805   DEFAULT_wxUSE_LISTCTRL=no
5806   DEFAULT_wxUSE_NOTEBOOK=no
5807   DEFAULT_wxUSE_RADIOBOX=no
5808   DEFAULT_wxUSE_RADIOBTN=no
5809   DEFAULT_wxUSE_SASH=no
5810   DEFAULT_wxUSE_SCROLLBAR=no
5811   DEFAULT_wxUSE_SLIDER=no
5812   DEFAULT_wxUSE_SPINBTN=no
5813   DEFAULT_wxUSE_SPINCTRL=no
5814   DEFAULT_wxUSE_SPLITTER=no
5815   DEFAULT_wxUSE_STATBMP=no
5816   DEFAULT_wxUSE_STATBOX=no
5817   DEFAULT_wxUSE_STATLINE=no
5818   DEFAULT_wxUSE_STATUSBAR=no
5819   DEFAULT_wxUSE_TAB_DIALOG=no
5820   DEFAULT_wxUSE_TOGGLEBTN=no
5821   DEFAULT_wxUSE_TOOLBAR=no
5822   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5823   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5824   DEFAULT_wxUSE_TOOLTIPS=no
5825   DEFAULT_wxUSE_TREECTRL=no
5826   DEFAULT_wxUSE_POPUPWIN=no
5827   DEFAULT_wxUSE_TIPWINDOW=no
5828 fi
5829
5830 ## FIXME: This is a blatant hack
5831 if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
5832   wxUSE_PRINTING_ARCHITECTURE=no
5833   wxUSE_HELP=no
5834   wxUSE_CLIPBOARD=no
5835   wxUSE_DRAG_AND_DROP=no
5836   wxUSE_DATAOBJ=no
5837   # Generic notebook requires tab dialog
5838   DEFAULT_wxUSE_TABDIALOG=yes
5839   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5840   DEFAULT_wxUSE_GAUGE=no
5841   DEFAULT_wxUSE_SCROLLBAR=no
5842   DEFAULT_wxUSE_SLIDER=no
5843   DEFAULT_wxUSE_COMBOBOX=no
5844   DEFAULT_wxUSE_CALCTRL=no
5845   DEFAULT_wxUSE_SPINBTN=no
5846   DEFAULT_wxUSE_SPINCTRL=no
5847   DEFAULT_wxUSE_TOOLTIPS=no
5848   DEFAULT_wxUSE_COLOURDLG=no
5849   DEFAULT_wxUSE_DRAGIMAGE=no
5850   DEFAULT_wxUSE_FINDREPLDLG=no
5851   DEFAULT_wxUSE_FONTDLG=no
5852   DEFAULT_wxUSE_GRID=no
5853   DEFAULT_wxUSE_NUMBERDLG=no
5854   DEFAULT_wxUSE_PROGRESSDLG=no
5855   DEFAULT_wxUSE_SASH=no
5856   DEFAULT_wxUSE_SPLITTER=no
5857   DEFAULT_wxUSE_WIZARDDLG=no
5858   DEFAULT_wxUSE_SPLITTER=no
5859   DEFAULT_wxUSE_STARTUP_TIPS=no
5860 fi
5861
5862
5863           enablestring=
5864           echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
5865 echo "configure:5866: checking for --${enablestring:-enable}-accel" >&5
5866           no_cache=0
5867           # Check whether --enable-accel or --disable-accel was given.
5868 if test "${enable_accel+set}" = set; then
5869   enableval="$enable_accel"
5870   
5871                           if test "$enableval" = yes; then
5872                             ac_cv_use_accel='wxUSE_ACCEL=yes'
5873                           else
5874                             ac_cv_use_accel='wxUSE_ACCEL=no'
5875                           fi
5876                         
5877 else
5878   
5879                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5880                           if test "x$LINE" != x ; then
5881                             eval "DEFAULT_$LINE"
5882                           else
5883                             no_cache=1
5884                           fi
5885
5886                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5887                         
5888 fi
5889
5890
5891           eval "$ac_cv_use_accel"
5892           if test "$no_cache" != 1; then
5893             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5894           fi
5895
5896           if test "$wxUSE_ACCEL" = yes; then
5897             echo "$ac_t""yes" 1>&6
5898           else
5899             echo "$ac_t""no" 1>&6
5900           fi
5901         
5902
5903           enablestring=
5904           echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
5905 echo "configure:5906: checking for --${enablestring:-enable}-button" >&5
5906           no_cache=0
5907           # Check whether --enable-button or --disable-button was given.
5908 if test "${enable_button+set}" = set; then
5909   enableval="$enable_button"
5910   
5911                           if test "$enableval" = yes; then
5912                             ac_cv_use_button='wxUSE_BUTTON=yes'
5913                           else
5914                             ac_cv_use_button='wxUSE_BUTTON=no'
5915                           fi
5916                         
5917 else
5918   
5919                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5920                           if test "x$LINE" != x ; then
5921                             eval "DEFAULT_$LINE"
5922                           else
5923                             no_cache=1
5924                           fi
5925
5926                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5927                         
5928 fi
5929
5930
5931           eval "$ac_cv_use_button"
5932           if test "$no_cache" != 1; then
5933             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5934           fi
5935
5936           if test "$wxUSE_BUTTON" = yes; then
5937             echo "$ac_t""yes" 1>&6
5938           else
5939             echo "$ac_t""no" 1>&6
5940           fi
5941         
5942
5943           enablestring=
5944           echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
5945 echo "configure:5946: checking for --${enablestring:-enable}-bmpbutton" >&5
5946           no_cache=0
5947           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5948 if test "${enable_bmpbutton+set}" = set; then
5949   enableval="$enable_bmpbutton"
5950   
5951                           if test "$enableval" = yes; then
5952                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5953                           else
5954                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5955                           fi
5956                         
5957 else
5958   
5959                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5960                           if test "x$LINE" != x ; then
5961                             eval "DEFAULT_$LINE"
5962                           else
5963                             no_cache=1
5964                           fi
5965
5966                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5967                         
5968 fi
5969
5970
5971           eval "$ac_cv_use_bmpbutton"
5972           if test "$no_cache" != 1; then
5973             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5974           fi
5975
5976           if test "$wxUSE_BMPBUTTON" = yes; then
5977             echo "$ac_t""yes" 1>&6
5978           else
5979             echo "$ac_t""no" 1>&6
5980           fi
5981         
5982
5983           enablestring=
5984           echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
5985 echo "configure:5986: checking for --${enablestring:-enable}-calendar" >&5
5986           no_cache=0
5987           # Check whether --enable-calendar or --disable-calendar was given.
5988 if test "${enable_calendar+set}" = set; then
5989   enableval="$enable_calendar"
5990   
5991                           if test "$enableval" = yes; then
5992                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5993                           else
5994                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
5995                           fi
5996                         
5997 else
5998   
5999                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6000                           if test "x$LINE" != x ; then
6001                             eval "DEFAULT_$LINE"
6002                           else
6003                             no_cache=1
6004                           fi
6005
6006                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6007                         
6008 fi
6009
6010
6011           eval "$ac_cv_use_calendar"
6012           if test "$no_cache" != 1; then
6013             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6014           fi
6015
6016           if test "$wxUSE_CALCTRL" = yes; then
6017             echo "$ac_t""yes" 1>&6
6018           else
6019             echo "$ac_t""no" 1>&6
6020           fi
6021         
6022
6023           enablestring=
6024           echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
6025 echo "configure:6026: checking for --${enablestring:-enable}-caret" >&5
6026           no_cache=0
6027           # Check whether --enable-caret or --disable-caret was given.
6028 if test "${enable_caret+set}" = set; then
6029   enableval="$enable_caret"
6030   
6031                           if test "$enableval" = yes; then
6032                             ac_cv_use_caret='wxUSE_CARET=yes'
6033                           else
6034                             ac_cv_use_caret='wxUSE_CARET=no'
6035                           fi
6036                         
6037 else
6038   
6039                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6040                           if test "x$LINE" != x ; then
6041                             eval "DEFAULT_$LINE"
6042                           else
6043                             no_cache=1
6044                           fi
6045
6046                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6047                         
6048 fi
6049
6050
6051           eval "$ac_cv_use_caret"
6052           if test "$no_cache" != 1; then
6053             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6054           fi
6055
6056           if test "$wxUSE_CARET" = yes; then
6057             echo "$ac_t""yes" 1>&6
6058           else
6059             echo "$ac_t""no" 1>&6
6060           fi
6061         
6062
6063           enablestring=
6064           echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
6065 echo "configure:6066: checking for --${enablestring:-enable}-checkbox" >&5
6066           no_cache=0
6067           # Check whether --enable-checkbox or --disable-checkbox was given.
6068 if test "${enable_checkbox+set}" = set; then
6069   enableval="$enable_checkbox"
6070   
6071                           if test "$enableval" = yes; then
6072                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6073                           else
6074                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6075                           fi
6076                         
6077 else
6078   
6079                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6080                           if test "x$LINE" != x ; then
6081                             eval "DEFAULT_$LINE"
6082                           else
6083                             no_cache=1
6084                           fi
6085
6086                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6087                         
6088 fi
6089
6090
6091           eval "$ac_cv_use_checkbox"
6092           if test "$no_cache" != 1; then
6093             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6094           fi
6095
6096           if test "$wxUSE_CHECKBOX" = yes; then
6097             echo "$ac_t""yes" 1>&6
6098           else
6099             echo "$ac_t""no" 1>&6
6100           fi
6101         
6102
6103           enablestring=
6104           echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
6105 echo "configure:6106: checking for --${enablestring:-enable}-checklst" >&5
6106           no_cache=0
6107           # Check whether --enable-checklst or --disable-checklst was given.
6108 if test "${enable_checklst+set}" = set; then
6109   enableval="$enable_checklst"
6110   
6111                           if test "$enableval" = yes; then
6112                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6113                           else
6114                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
6115                           fi
6116                         
6117 else
6118   
6119                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6120                           if test "x$LINE" != x ; then
6121                             eval "DEFAULT_$LINE"
6122                           else
6123                             no_cache=1
6124                           fi
6125
6126                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6127                         
6128 fi
6129
6130
6131           eval "$ac_cv_use_checklst"
6132           if test "$no_cache" != 1; then
6133             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6134           fi
6135
6136           if test "$wxUSE_CHECKLST" = yes; then
6137             echo "$ac_t""yes" 1>&6
6138           else
6139             echo "$ac_t""no" 1>&6
6140           fi
6141         
6142
6143           enablestring=
6144           echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
6145 echo "configure:6146: checking for --${enablestring:-enable}-choice" >&5
6146           no_cache=0
6147           # Check whether --enable-choice or --disable-choice was given.
6148 if test "${enable_choice+set}" = set; then
6149   enableval="$enable_choice"
6150   
6151                           if test "$enableval" = yes; then
6152                             ac_cv_use_choice='wxUSE_CHOICE=yes'
6153                           else
6154                             ac_cv_use_choice='wxUSE_CHOICE=no'
6155                           fi
6156                         
6157 else
6158   
6159                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6160                           if test "x$LINE" != x ; then
6161                             eval "DEFAULT_$LINE"
6162                           else
6163                             no_cache=1
6164                           fi
6165
6166                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6167                         
6168 fi
6169
6170
6171           eval "$ac_cv_use_choice"
6172           if test "$no_cache" != 1; then
6173             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6174           fi
6175
6176           if test "$wxUSE_CHOICE" = yes; then
6177             echo "$ac_t""yes" 1>&6
6178           else
6179             echo "$ac_t""no" 1>&6
6180           fi
6181         
6182
6183           enablestring=
6184           echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
6185 echo "configure:6186: checking for --${enablestring:-enable}-combobox" >&5
6186           no_cache=0
6187           # Check whether --enable-combobox or --disable-combobox was given.
6188 if test "${enable_combobox+set}" = set; then
6189   enableval="$enable_combobox"
6190   
6191                           if test "$enableval" = yes; then
6192                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6193                           else
6194                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6195                           fi
6196                         
6197 else
6198   
6199                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6200                           if test "x$LINE" != x ; then
6201                             eval "DEFAULT_$LINE"
6202                           else
6203                             no_cache=1
6204                           fi
6205
6206                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6207                         
6208 fi
6209
6210
6211           eval "$ac_cv_use_combobox"
6212           if test "$no_cache" != 1; then
6213             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6214           fi
6215
6216           if test "$wxUSE_COMBOBOX" = yes; then
6217             echo "$ac_t""yes" 1>&6
6218           else
6219             echo "$ac_t""no" 1>&6
6220           fi
6221         
6222
6223           enablestring=
6224           echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6
6225 echo "configure:6226: checking for --${enablestring:-enable}-display" >&5
6226           no_cache=0
6227           # Check whether --enable-display or --disable-display was given.
6228 if test "${enable_display+set}" = set; then
6229   enableval="$enable_display"
6230   
6231                           if test "$enableval" = yes; then
6232                             ac_cv_use_display='wxUSE_DISPLAY=yes'
6233                           else
6234                             ac_cv_use_display='wxUSE_DISPLAY=no'
6235                           fi
6236                         
6237 else
6238   
6239                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6240                           if test "x$LINE" != x ; then
6241                             eval "DEFAULT_$LINE"
6242                           else
6243                             no_cache=1
6244                           fi
6245
6246                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6247                         
6248 fi
6249
6250
6251           eval "$ac_cv_use_display"
6252           if test "$no_cache" != 1; then
6253             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6254           fi
6255
6256           if test "$wxUSE_DISPLAY" = yes; then
6257             echo "$ac_t""yes" 1>&6
6258           else
6259             echo "$ac_t""no" 1>&6
6260           fi
6261         
6262
6263           enablestring=
6264           echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
6265 echo "configure:6266: checking for --${enablestring:-enable}-gauge" >&5
6266           no_cache=0
6267           # Check whether --enable-gauge or --disable-gauge was given.
6268 if test "${enable_gauge+set}" = set; then
6269   enableval="$enable_gauge"
6270   
6271                           if test "$enableval" = yes; then
6272                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
6273                           else
6274                             ac_cv_use_gauge='wxUSE_GAUGE=no'
6275                           fi
6276                         
6277 else
6278   
6279                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6280                           if test "x$LINE" != x ; then
6281                             eval "DEFAULT_$LINE"
6282                           else
6283                             no_cache=1
6284                           fi
6285
6286                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6287                         
6288 fi
6289
6290
6291           eval "$ac_cv_use_gauge"
6292           if test "$no_cache" != 1; then
6293             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6294           fi
6295
6296           if test "$wxUSE_GAUGE" = yes; then
6297             echo "$ac_t""yes" 1>&6
6298           else
6299             echo "$ac_t""no" 1>&6
6300           fi
6301         
6302
6303           enablestring=
6304           echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
6305 echo "configure:6306: checking for --${enablestring:-enable}-grid" >&5
6306           no_cache=0
6307           # Check whether --enable-grid or --disable-grid was given.
6308 if test "${enable_grid+set}" = set; then
6309   enableval="$enable_grid"
6310   
6311                           if test "$enableval" = yes; then
6312                             ac_cv_use_grid='wxUSE_GRID=yes'
6313                           else
6314                             ac_cv_use_grid='wxUSE_GRID=no'
6315                           fi
6316                         
6317 else
6318   
6319                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6320                           if test "x$LINE" != x ; then
6321                             eval "DEFAULT_$LINE"
6322                           else
6323                             no_cache=1
6324                           fi
6325
6326                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6327                         
6328 fi
6329
6330
6331           eval "$ac_cv_use_grid"
6332           if test "$no_cache" != 1; then
6333             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6334           fi
6335
6336           if test "$wxUSE_GRID" = yes; then
6337             echo "$ac_t""yes" 1>&6
6338           else
6339             echo "$ac_t""no" 1>&6
6340           fi
6341         
6342
6343           enablestring=
6344           echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
6345 echo "configure:6346: checking for --${enablestring:-enable}-imaglist" >&5
6346           no_cache=0
6347           # Check whether --enable-imaglist or --disable-imaglist was given.
6348 if test "${enable_imaglist+set}" = set; then
6349   enableval="$enable_imaglist"
6350   
6351                           if test "$enableval" = yes; then
6352                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6353                           else
6354                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6355                           fi
6356                         
6357 else
6358   
6359                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6360                           if test "x$LINE" != x ; then
6361                             eval "DEFAULT_$LINE"
6362                           else
6363                             no_cache=1
6364                           fi
6365
6366                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6367                         
6368 fi
6369
6370
6371           eval "$ac_cv_use_imaglist"
6372           if test "$no_cache" != 1; then
6373             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6374           fi
6375
6376           if test "$wxUSE_IMAGLIST" = yes; then
6377             echo "$ac_t""yes" 1>&6
6378           else
6379             echo "$ac_t""no" 1>&6
6380           fi
6381         
6382
6383           enablestring=
6384           echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
6385 echo "configure:6386: checking for --${enablestring:-enable}-listbox" >&5
6386           no_cache=0
6387           # Check whether --enable-listbox or --disable-listbox was given.
6388 if test "${enable_listbox+set}" = set; then
6389   enableval="$enable_listbox"
6390   
6391                           if test "$enableval" = yes; then
6392                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6393                           else
6394                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
6395                           fi
6396                         
6397 else
6398   
6399                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6400                           if test "x$LINE" != x ; then
6401                             eval "DEFAULT_$LINE"
6402                           else
6403                             no_cache=1
6404                           fi
6405
6406                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6407                         
6408 fi
6409
6410
6411           eval "$ac_cv_use_listbox"
6412           if test "$no_cache" != 1; then
6413             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6414           fi
6415
6416           if test "$wxUSE_LISTBOX" = yes; then
6417             echo "$ac_t""yes" 1>&6
6418           else
6419             echo "$ac_t""no" 1>&6
6420           fi
6421         
6422
6423           enablestring=
6424           echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
6425 echo "configure:6426: checking for --${enablestring:-enable}-listctrl" >&5
6426           no_cache=0
6427           # Check whether --enable-listctrl or --disable-listctrl was given.
6428 if test "${enable_listctrl+set}" = set; then
6429   enableval="$enable_listctrl"
6430   
6431                           if test "$enableval" = yes; then
6432                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6433                           else
6434                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6435                           fi
6436                         
6437 else
6438   
6439                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6440                           if test "x$LINE" != x ; then
6441                             eval "DEFAULT_$LINE"
6442                           else
6443                             no_cache=1
6444                           fi
6445
6446                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6447                         
6448 fi
6449
6450
6451           eval "$ac_cv_use_listctrl"
6452           if test "$no_cache" != 1; then
6453             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6454           fi
6455
6456           if test "$wxUSE_LISTCTRL" = yes; then
6457             echo "$ac_t""yes" 1>&6
6458           else
6459             echo "$ac_t""no" 1>&6
6460           fi
6461         
6462
6463           enablestring=
6464           echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
6465 echo "configure:6466: checking for --${enablestring:-enable}-notebook" >&5
6466           no_cache=0
6467           # Check whether --enable-notebook or --disable-notebook was given.
6468 if test "${enable_notebook+set}" = set; then
6469   enableval="$enable_notebook"
6470   
6471                           if test "$enableval" = yes; then
6472                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6473                           else
6474                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6475                           fi
6476                         
6477 else
6478   
6479                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6480                           if test "x$LINE" != x ; then
6481                             eval "DEFAULT_$LINE"
6482                           else
6483                             no_cache=1
6484                           fi
6485
6486                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6487                         
6488 fi
6489
6490
6491           eval "$ac_cv_use_notebook"
6492           if test "$no_cache" != 1; then
6493             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6494           fi
6495
6496           if test "$wxUSE_NOTEBOOK" = yes; then
6497             echo "$ac_t""yes" 1>&6
6498           else
6499             echo "$ac_t""no" 1>&6
6500           fi
6501         
6502
6503           enablestring=
6504           echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
6505 echo "configure:6506: checking for --${enablestring:-enable}-radiobox" >&5
6506           no_cache=0
6507           # Check whether --enable-radiobox or --disable-radiobox was given.
6508 if test "${enable_radiobox+set}" = set; then
6509   enableval="$enable_radiobox"
6510   
6511                           if test "$enableval" = yes; then
6512                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6513                           else
6514                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6515                           fi
6516                         
6517 else
6518   
6519                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6520                           if test "x$LINE" != x ; then
6521                             eval "DEFAULT_$LINE"
6522                           else
6523                             no_cache=1
6524                           fi
6525
6526                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6527                         
6528 fi
6529
6530
6531           eval "$ac_cv_use_radiobox"
6532           if test "$no_cache" != 1; then
6533             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6534           fi
6535
6536           if test "$wxUSE_RADIOBOX" = yes; then
6537             echo "$ac_t""yes" 1>&6
6538           else
6539             echo "$ac_t""no" 1>&6
6540           fi
6541         
6542
6543           enablestring=
6544           echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
6545 echo "configure:6546: checking for --${enablestring:-enable}-radiobtn" >&5
6546           no_cache=0
6547           # Check whether --enable-radiobtn or --disable-radiobtn was given.
6548 if test "${enable_radiobtn+set}" = set; then
6549   enableval="$enable_radiobtn"
6550   
6551                           if test "$enableval" = yes; then
6552                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6553                           else
6554                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6555                           fi
6556                         
6557 else
6558   
6559                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6560                           if test "x$LINE" != x ; then
6561                             eval "DEFAULT_$LINE"
6562                           else
6563                             no_cache=1
6564                           fi
6565
6566                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6567                         
6568 fi
6569
6570
6571           eval "$ac_cv_use_radiobtn"
6572           if test "$no_cache" != 1; then
6573             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6574           fi
6575
6576           if test "$wxUSE_RADIOBTN" = yes; then
6577             echo "$ac_t""yes" 1>&6
6578           else
6579             echo "$ac_t""no" 1>&6
6580           fi
6581         
6582
6583           enablestring=
6584           echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
6585 echo "configure:6586: checking for --${enablestring:-enable}-sash" >&5
6586           no_cache=0
6587           # Check whether --enable-sash or --disable-sash was given.
6588 if test "${enable_sash+set}" = set; then
6589   enableval="$enable_sash"
6590   
6591                           if test "$enableval" = yes; then
6592                             ac_cv_use_sash='wxUSE_SASH=yes'
6593                           else
6594                             ac_cv_use_sash='wxUSE_SASH=no'
6595                           fi
6596                         
6597 else
6598   
6599                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6600                           if test "x$LINE" != x ; then
6601                             eval "DEFAULT_$LINE"
6602                           else
6603                             no_cache=1
6604                           fi
6605
6606                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6607                         
6608 fi
6609
6610
6611           eval "$ac_cv_use_sash"
6612           if test "$no_cache" != 1; then
6613             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6614           fi
6615
6616           if test "$wxUSE_SASH" = yes; then
6617             echo "$ac_t""yes" 1>&6
6618           else
6619             echo "$ac_t""no" 1>&6
6620           fi
6621         
6622
6623           enablestring=
6624           echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
6625 echo "configure:6626: checking for --${enablestring:-enable}-scrollbar" >&5
6626           no_cache=0
6627           # Check whether --enable-scrollbar or --disable-scrollbar was given.
6628 if test "${enable_scrollbar+set}" = set; then
6629   enableval="$enable_scrollbar"
6630   
6631                           if test "$enableval" = yes; then
6632                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6633                           else
6634                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6635                           fi
6636                         
6637 else
6638   
6639                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6640                           if test "x$LINE" != x ; then
6641                             eval "DEFAULT_$LINE"
6642                           else
6643                             no_cache=1
6644                           fi
6645
6646                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6647                         
6648 fi
6649
6650
6651           eval "$ac_cv_use_scrollbar"
6652           if test "$no_cache" != 1; then
6653             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6654           fi
6655
6656           if test "$wxUSE_SCROLLBAR" = yes; then
6657             echo "$ac_t""yes" 1>&6
6658           else
6659             echo "$ac_t""no" 1>&6
6660           fi
6661         
6662
6663           enablestring=
6664           echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
6665 echo "configure:6666: checking for --${enablestring:-enable}-slider" >&5
6666           no_cache=0
6667           # Check whether --enable-slider or --disable-slider was given.
6668 if test "${enable_slider+set}" = set; then
6669   enableval="$enable_slider"
6670   
6671                           if test "$enableval" = yes; then
6672                             ac_cv_use_slider='wxUSE_SLIDER=yes'
6673                           else
6674                             ac_cv_use_slider='wxUSE_SLIDER=no'
6675                           fi
6676                         
6677 else
6678   
6679                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6680                           if test "x$LINE" != x ; then
6681                             eval "DEFAULT_$LINE"
6682                           else
6683                             no_cache=1
6684                           fi
6685
6686                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6687                         
6688 fi
6689
6690
6691           eval "$ac_cv_use_slider"
6692           if test "$no_cache" != 1; then
6693             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6694           fi
6695
6696           if test "$wxUSE_SLIDER" = yes; then
6697             echo "$ac_t""yes" 1>&6
6698           else
6699             echo "$ac_t""no" 1>&6
6700           fi
6701         
6702
6703           enablestring=
6704           echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
6705 echo "configure:6706: checking for --${enablestring:-enable}-spinbtn" >&5
6706           no_cache=0
6707           # Check whether --enable-spinbtn or --disable-spinbtn was given.
6708 if test "${enable_spinbtn+set}" = set; then
6709   enableval="$enable_spinbtn"
6710   
6711                           if test "$enableval" = yes; then
6712                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6713                           else
6714                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6715                           fi
6716                         
6717 else
6718   
6719                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6720                           if test "x$LINE" != x ; then
6721                             eval "DEFAULT_$LINE"
6722                           else
6723                             no_cache=1
6724                           fi
6725
6726                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6727                         
6728 fi
6729
6730
6731           eval "$ac_cv_use_spinbtn"
6732           if test "$no_cache" != 1; then
6733             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6734           fi
6735
6736           if test "$wxUSE_SPINBTN" = yes; then
6737             echo "$ac_t""yes" 1>&6
6738           else
6739             echo "$ac_t""no" 1>&6
6740           fi
6741         
6742
6743           enablestring=
6744           echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
6745 echo "configure:6746: checking for --${enablestring:-enable}-spinctrl" >&5
6746           no_cache=0
6747           # Check whether --enable-spinctrl or --disable-spinctrl was given.
6748 if test "${enable_spinctrl+set}" = set; then
6749   enableval="$enable_spinctrl"
6750   
6751                           if test "$enableval" = yes; then
6752                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6753                           else
6754                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6755                           fi
6756                         
6757 else
6758   
6759                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6760                           if test "x$LINE" != x ; then
6761                             eval "DEFAULT_$LINE"
6762                           else
6763                             no_cache=1
6764                           fi
6765
6766                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6767                         
6768 fi
6769
6770
6771           eval "$ac_cv_use_spinctrl"
6772           if test "$no_cache" != 1; then
6773             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6774           fi
6775
6776           if test "$wxUSE_SPINCTRL" = yes; then
6777             echo "$ac_t""yes" 1>&6
6778           else
6779             echo "$ac_t""no" 1>&6
6780           fi
6781         
6782
6783           enablestring=
6784           echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
6785 echo "configure:6786: checking for --${enablestring:-enable}-splitter" >&5
6786           no_cache=0
6787           # Check whether --enable-splitter or --disable-splitter was given.
6788 if test "${enable_splitter+set}" = set; then
6789   enableval="$enable_splitter"
6790   
6791                           if test "$enableval" = yes; then
6792                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6793                           else
6794                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
6795                           fi
6796                         
6797 else
6798   
6799                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6800                           if test "x$LINE" != x ; then
6801                             eval "DEFAULT_$LINE"
6802                           else
6803                             no_cache=1
6804                           fi
6805
6806                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6807                         
6808 fi
6809
6810
6811           eval "$ac_cv_use_splitter"
6812           if test "$no_cache" != 1; then
6813             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6814           fi
6815
6816           if test "$wxUSE_SPLITTER" = yes; then
6817             echo "$ac_t""yes" 1>&6
6818           else
6819             echo "$ac_t""no" 1>&6
6820           fi
6821         
6822
6823           enablestring=
6824           echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
6825 echo "configure:6826: checking for --${enablestring:-enable}-statbmp" >&5
6826           no_cache=0
6827           # Check whether --enable-statbmp or --disable-statbmp was given.
6828 if test "${enable_statbmp+set}" = set; then
6829   enableval="$enable_statbmp"
6830   
6831                           if test "$enableval" = yes; then
6832                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6833                           else
6834                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
6835                           fi
6836                         
6837 else
6838   
6839                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6840                           if test "x$LINE" != x ; then
6841                             eval "DEFAULT_$LINE"
6842                           else
6843                             no_cache=1
6844                           fi
6845
6846                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6847                         
6848 fi
6849
6850
6851           eval "$ac_cv_use_statbmp"
6852           if test "$no_cache" != 1; then
6853             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6854           fi
6855
6856           if test "$wxUSE_STATBMP" = yes; then
6857             echo "$ac_t""yes" 1>&6
6858           else
6859             echo "$ac_t""no" 1>&6
6860           fi
6861         
6862
6863           enablestring=
6864           echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
6865 echo "configure:6866: checking for --${enablestring:-enable}-statbox" >&5
6866           no_cache=0
6867           # Check whether --enable-statbox or --disable-statbox was given.
6868 if test "${enable_statbox+set}" = set; then
6869   enableval="$enable_statbox"
6870   
6871                           if test "$enableval" = yes; then
6872                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
6873                           else
6874                             ac_cv_use_statbox='wxUSE_STATBOX=no'
6875                           fi
6876                         
6877 else
6878   
6879                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6880                           if test "x$LINE" != x ; then
6881                             eval "DEFAULT_$LINE"
6882                           else
6883                             no_cache=1
6884                           fi
6885
6886                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6887                         
6888 fi
6889
6890
6891           eval "$ac_cv_use_statbox"
6892           if test "$no_cache" != 1; then
6893             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6894           fi
6895
6896           if test "$wxUSE_STATBOX" = yes; then
6897             echo "$ac_t""yes" 1>&6
6898           else
6899             echo "$ac_t""no" 1>&6
6900           fi
6901         
6902
6903           enablestring=
6904           echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
6905 echo "configure:6906: checking for --${enablestring:-enable}-statline" >&5
6906           no_cache=0
6907           # Check whether --enable-statline or --disable-statline was given.
6908 if test "${enable_statline+set}" = set; then
6909   enableval="$enable_statline"
6910   
6911                           if test "$enableval" = yes; then
6912                             ac_cv_use_statline='wxUSE_STATLINE=yes'
6913                           else
6914                             ac_cv_use_statline='wxUSE_STATLINE=no'
6915                           fi
6916                         
6917 else
6918   
6919                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6920                           if test "x$LINE" != x ; then
6921                             eval "DEFAULT_$LINE"
6922                           else
6923                             no_cache=1
6924                           fi
6925
6926                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6927                         
6928 fi
6929
6930
6931           eval "$ac_cv_use_statline"
6932           if test "$no_cache" != 1; then
6933             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6934           fi
6935
6936           if test "$wxUSE_STATLINE" = yes; then
6937             echo "$ac_t""yes" 1>&6
6938           else
6939             echo "$ac_t""no" 1>&6
6940           fi
6941         
6942
6943           enablestring=
6944           echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
6945 echo "configure:6946: checking for --${enablestring:-enable}-stattext" >&5
6946           no_cache=0
6947           # Check whether --enable-stattext or --disable-stattext was given.
6948 if test "${enable_stattext+set}" = set; then
6949   enableval="$enable_stattext"
6950   
6951                           if test "$enableval" = yes; then
6952                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6953                           else
6954                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
6955                           fi
6956                         
6957 else
6958   
6959                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6960                           if test "x$LINE" != x ; then
6961                             eval "DEFAULT_$LINE"
6962                           else
6963                             no_cache=1
6964                           fi
6965
6966                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6967                         
6968 fi
6969
6970
6971           eval "$ac_cv_use_stattext"
6972           if test "$no_cache" != 1; then
6973             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6974           fi
6975
6976           if test "$wxUSE_STATTEXT" = yes; then
6977             echo "$ac_t""yes" 1>&6
6978           else
6979             echo "$ac_t""no" 1>&6
6980           fi
6981         
6982
6983           enablestring=
6984           echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
6985 echo "configure:6986: checking for --${enablestring:-enable}-statusbar" >&5
6986           no_cache=0
6987           # Check whether --enable-statusbar or --disable-statusbar was given.
6988 if test "${enable_statusbar+set}" = set; then
6989   enableval="$enable_statusbar"
6990   
6991                           if test "$enableval" = yes; then
6992                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6993                           else
6994                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6995                           fi
6996                         
6997 else
6998   
6999                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7000                           if test "x$LINE" != x ; then
7001                             eval "DEFAULT_$LINE"
7002                           else
7003                             no_cache=1
7004                           fi
7005
7006                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
7007                         
7008 fi
7009
7010
7011           eval "$ac_cv_use_statusbar"
7012           if test "$no_cache" != 1; then
7013             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7014           fi
7015
7016           if test "$wxUSE_STATUSBAR" = yes; then
7017             echo "$ac_t""yes" 1>&6
7018           else
7019             echo "$ac_t""no" 1>&6
7020           fi
7021         
7022
7023           enablestring=
7024           echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
7025 echo "configure:7026: checking for --${enablestring:-enable}-tabdialog" >&5
7026           no_cache=0
7027           # Check whether --enable-tabdialog or --disable-tabdialog was given.
7028 if test "${enable_tabdialog+set}" = set; then
7029   enableval="$enable_tabdialog"
7030   
7031                           if test "$enableval" = yes; then
7032                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7033                           else
7034                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7035                           fi
7036                         
7037 else
7038   
7039                           LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7040                           if test "x$LINE" != x ; then
7041                             eval "DEFAULT_$LINE"
7042                           else
7043                             no_cache=1
7044                           fi
7045
7046                           ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7047                         
7048 fi
7049
7050
7051           eval "$ac_cv_use_tabdialog"
7052           if test "$no_cache" != 1; then
7053             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7054           fi
7055
7056           if test "$wxUSE_TABDIALOG" = yes; then
7057             echo "$ac_t""yes" 1>&6
7058           else
7059             echo "$ac_t""no" 1>&6
7060           fi
7061         
7062
7063           enablestring=
7064           echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
7065 echo "configure:7066: checking for --${enablestring:-enable}-textctrl" >&5
7066           no_cache=0
7067           # Check whether --enable-textctrl or --disable-textctrl was given.
7068 if test "${enable_textctrl+set}" = set; then
7069   enableval="$enable_textctrl"
7070   
7071                           if test "$enableval" = yes; then
7072                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7073                           else
7074                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7075                           fi
7076                         
7077 else
7078   
7079                           LINE=`grep "wxUSE_TEXTCTRL" ${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_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7087                         
7088 fi
7089
7090
7091           eval "$ac_cv_use_textctrl"
7092           if test "$no_cache" != 1; then
7093             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7094           fi
7095
7096           if test "$wxUSE_TEXTCTRL" = yes; then
7097             echo "$ac_t""yes" 1>&6
7098           else
7099             echo "$ac_t""no" 1>&6
7100           fi
7101         
7102
7103           enablestring=
7104           echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
7105 echo "configure:7106: checking for --${enablestring:-enable}-togglebtn" >&5
7106           no_cache=0
7107           # Check whether --enable-togglebtn or --disable-togglebtn was given.
7108 if test "${enable_togglebtn+set}" = set; then
7109   enableval="$enable_togglebtn"
7110   
7111                           if test "$enableval" = yes; then
7112                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7113                           else
7114                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7115                           fi
7116                         
7117 else
7118   
7119                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7120                           if test "x$LINE" != x ; then
7121                             eval "DEFAULT_$LINE"
7122                           else
7123                             no_cache=1
7124                           fi
7125
7126                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7127                         
7128 fi
7129
7130
7131           eval "$ac_cv_use_togglebtn"
7132           if test "$no_cache" != 1; then
7133             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7134           fi
7135
7136           if test "$wxUSE_TOGGLEBTN" = yes; then
7137             echo "$ac_t""yes" 1>&6
7138           else
7139             echo "$ac_t""no" 1>&6
7140           fi
7141         
7142
7143           enablestring=
7144           echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
7145 echo "configure:7146: checking for --${enablestring:-enable}-toolbar" >&5
7146           no_cache=0
7147           # Check whether --enable-toolbar or --disable-toolbar was given.
7148 if test "${enable_toolbar+set}" = set; then
7149   enableval="$enable_toolbar"
7150   
7151                           if test "$enableval" = yes; then
7152                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7153                           else
7154                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7155                           fi
7156                         
7157 else
7158   
7159                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7160                           if test "x$LINE" != x ; then
7161                             eval "DEFAULT_$LINE"
7162                           else
7163                             no_cache=1
7164                           fi
7165
7166                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7167                         
7168 fi
7169
7170
7171           eval "$ac_cv_use_toolbar"
7172           if test "$no_cache" != 1; then
7173             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7174           fi
7175
7176           if test "$wxUSE_TOOLBAR" = yes; then
7177             echo "$ac_t""yes" 1>&6
7178           else
7179             echo "$ac_t""no" 1>&6
7180           fi
7181         
7182
7183           enablestring=
7184           echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
7185 echo "configure:7186: checking for --${enablestring:-enable}-tbarnative" >&5
7186           no_cache=0
7187           # Check whether --enable-tbarnative or --disable-tbarnative was given.
7188 if test "${enable_tbarnative+set}" = set; then
7189   enableval="$enable_tbarnative"
7190   
7191                           if test "$enableval" = yes; then
7192                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7193                           else
7194                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7195                           fi
7196                         
7197 else
7198   
7199                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7200                           if test "x$LINE" != x ; then
7201                             eval "DEFAULT_$LINE"
7202                           else
7203                             no_cache=1
7204                           fi
7205
7206                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7207                         
7208 fi
7209
7210
7211           eval "$ac_cv_use_tbarnative"
7212           if test "$no_cache" != 1; then
7213             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7214           fi
7215
7216           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7217             echo "$ac_t""yes" 1>&6
7218           else
7219             echo "$ac_t""no" 1>&6
7220           fi
7221         
7222
7223           enablestring=
7224           echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
7225 echo "configure:7226: checking for --${enablestring:-enable}-tbarsmpl" >&5
7226           no_cache=0
7227           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7228 if test "${enable_tbarsmpl+set}" = set; then
7229   enableval="$enable_tbarsmpl"
7230   
7231                           if test "$enableval" = yes; then
7232                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7233                           else
7234                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7235                           fi
7236                         
7237 else
7238   
7239                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7240                           if test "x$LINE" != x ; then
7241                             eval "DEFAULT_$LINE"
7242                           else
7243                             no_cache=1
7244                           fi
7245
7246                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7247                         
7248 fi
7249
7250
7251           eval "$ac_cv_use_tbarsmpl"
7252           if test "$no_cache" != 1; then
7253             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7254           fi
7255
7256           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7257             echo "$ac_t""yes" 1>&6
7258           else
7259             echo "$ac_t""no" 1>&6
7260           fi
7261         
7262
7263           enablestring=
7264           echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
7265 echo "configure:7266: checking for --${enablestring:-enable}-treectrl" >&5
7266           no_cache=0
7267           # Check whether --enable-treectrl or --disable-treectrl was given.
7268 if test "${enable_treectrl+set}" = set; then
7269   enableval="$enable_treectrl"
7270   
7271                           if test "$enableval" = yes; then
7272                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7273                           else
7274                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7275                           fi
7276                         
7277 else
7278   
7279                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7280                           if test "x$LINE" != x ; then
7281                             eval "DEFAULT_$LINE"
7282                           else
7283                             no_cache=1
7284                           fi
7285
7286                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7287                         
7288 fi
7289
7290
7291           eval "$ac_cv_use_treectrl"
7292           if test "$no_cache" != 1; then
7293             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7294           fi
7295
7296           if test "$wxUSE_TREECTRL" = yes; then
7297             echo "$ac_t""yes" 1>&6
7298           else
7299             echo "$ac_t""no" 1>&6
7300           fi
7301         
7302
7303           enablestring=
7304           echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
7305 echo "configure:7306: checking for --${enablestring:-enable}-tipwindow" >&5
7306           no_cache=0
7307           # Check whether --enable-tipwindow or --disable-tipwindow was given.
7308 if test "${enable_tipwindow+set}" = set; then
7309   enableval="$enable_tipwindow"
7310   
7311                           if test "$enableval" = yes; then
7312                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7313                           else
7314                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7315                           fi
7316                         
7317 else
7318   
7319                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7320                           if test "x$LINE" != x ; then
7321                             eval "DEFAULT_$LINE"
7322                           else
7323                             no_cache=1
7324                           fi
7325
7326                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7327                         
7328 fi
7329
7330
7331           eval "$ac_cv_use_tipwindow"
7332           if test "$no_cache" != 1; then
7333             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7334           fi
7335
7336           if test "$wxUSE_TIPWINDOW" = yes; then
7337             echo "$ac_t""yes" 1>&6
7338           else
7339             echo "$ac_t""no" 1>&6
7340           fi
7341         
7342
7343           enablestring=
7344           echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
7345 echo "configure:7346: checking for --${enablestring:-enable}-popupwin" >&5
7346           no_cache=0
7347           # Check whether --enable-popupwin or --disable-popupwin was given.
7348 if test "${enable_popupwin+set}" = set; then
7349   enableval="$enable_popupwin"
7350   
7351                           if test "$enableval" = yes; then
7352                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7353                           else
7354                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7355                           fi
7356                         
7357 else
7358   
7359                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7360                           if test "x$LINE" != x ; then
7361                             eval "DEFAULT_$LINE"
7362                           else
7363                             no_cache=1
7364                           fi
7365
7366                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7367                         
7368 fi
7369
7370
7371           eval "$ac_cv_use_popupwin"
7372           if test "$no_cache" != 1; then
7373             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7374           fi
7375
7376           if test "$wxUSE_POPUPWIN" = yes; then
7377             echo "$ac_t""yes" 1>&6
7378           else
7379             echo "$ac_t""no" 1>&6
7380           fi
7381         
7382
7383
7384
7385           enablestring=
7386           echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
7387 echo "configure:7388: checking for --${enablestring:-enable}-commondlg" >&5
7388           no_cache=0
7389           # Check whether --enable-commondlg or --disable-commondlg was given.
7390 if test "${enable_commondlg+set}" = set; then
7391   enableval="$enable_commondlg"
7392   
7393                           if test "$enableval" = yes; then
7394                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7395                           else
7396                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7397                           fi
7398                         
7399 else
7400   
7401                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7402                           if test "x$LINE" != x ; then
7403                             eval "DEFAULT_$LINE"
7404                           else
7405                             no_cache=1
7406                           fi
7407
7408                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7409                         
7410 fi
7411
7412
7413           eval "$ac_cv_use_commondlg"
7414           if test "$no_cache" != 1; then
7415             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7416           fi
7417
7418           if test "$wxUSE_COMMONDLGS" = yes; then
7419             echo "$ac_t""yes" 1>&6
7420           else
7421             echo "$ac_t""no" 1>&6
7422           fi
7423         
7424
7425           enablestring=
7426           echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
7427 echo "configure:7428: checking for --${enablestring:-enable}-choicedlg" >&5
7428           no_cache=0
7429           # Check whether --enable-choicedlg or --disable-choicedlg was given.
7430 if test "${enable_choicedlg+set}" = set; then
7431   enableval="$enable_choicedlg"
7432   
7433                           if test "$enableval" = yes; then
7434                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7435                           else
7436                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7437                           fi
7438                         
7439 else
7440   
7441                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7442                           if test "x$LINE" != x ; then
7443                             eval "DEFAULT_$LINE"
7444                           else
7445                             no_cache=1
7446                           fi
7447
7448                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7449                         
7450 fi
7451
7452
7453           eval "$ac_cv_use_choicedlg"
7454           if test "$no_cache" != 1; then
7455             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7456           fi
7457
7458           if test "$wxUSE_CHOICEDLG" = yes; then
7459             echo "$ac_t""yes" 1>&6
7460           else
7461             echo "$ac_t""no" 1>&6
7462           fi
7463         
7464
7465           enablestring=
7466           echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
7467 echo "configure:7468: checking for --${enablestring:-enable}-coldlg" >&5
7468           no_cache=0
7469           # Check whether --enable-coldlg or --disable-coldlg was given.
7470 if test "${enable_coldlg+set}" = set; then
7471   enableval="$enable_coldlg"
7472   
7473                           if test "$enableval" = yes; then
7474                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7475                           else
7476                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7477                           fi
7478                         
7479 else
7480   
7481                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7482                           if test "x$LINE" != x ; then
7483                             eval "DEFAULT_$LINE"
7484                           else
7485                             no_cache=1
7486                           fi
7487
7488                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7489                         
7490 fi
7491
7492
7493           eval "$ac_cv_use_coldlg"
7494           if test "$no_cache" != 1; then
7495             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7496           fi
7497
7498           if test "$wxUSE_COLOURDLG" = yes; then
7499             echo "$ac_t""yes" 1>&6
7500           else
7501             echo "$ac_t""no" 1>&6
7502           fi
7503         
7504
7505           enablestring=
7506           echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
7507 echo "configure:7508: checking for --${enablestring:-enable}-filedlg" >&5
7508           no_cache=0
7509           # Check whether --enable-filedlg or --disable-filedlg was given.
7510 if test "${enable_filedlg+set}" = set; then
7511   enableval="$enable_filedlg"
7512   
7513                           if test "$enableval" = yes; then
7514                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7515                           else
7516                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7517                           fi
7518                         
7519 else
7520   
7521                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7522                           if test "x$LINE" != x ; then
7523                             eval "DEFAULT_$LINE"
7524                           else
7525                             no_cache=1
7526                           fi
7527
7528                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7529                         
7530 fi
7531
7532
7533           eval "$ac_cv_use_filedlg"
7534           if test "$no_cache" != 1; then
7535             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7536           fi
7537
7538           if test "$wxUSE_FILEDLG" = yes; then
7539             echo "$ac_t""yes" 1>&6
7540           else
7541             echo "$ac_t""no" 1>&6
7542           fi
7543         
7544
7545           enablestring=
7546           echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
7547 echo "configure:7548: checking for --${enablestring:-enable}-finddlg" >&5
7548           no_cache=0
7549           # Check whether --enable-finddlg or --disable-finddlg was given.
7550 if test "${enable_finddlg+set}" = set; then
7551   enableval="$enable_finddlg"
7552   
7553                           if test "$enableval" = yes; then
7554                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7555                           else
7556                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7557                           fi
7558                         
7559 else
7560   
7561                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7562                           if test "x$LINE" != x ; then
7563                             eval "DEFAULT_$LINE"
7564                           else
7565                             no_cache=1
7566                           fi
7567
7568                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7569                         
7570 fi
7571
7572
7573           eval "$ac_cv_use_finddlg"
7574           if test "$no_cache" != 1; then
7575             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7576           fi
7577
7578           if test "$wxUSE_FINDREPLDLG" = yes; then
7579             echo "$ac_t""yes" 1>&6
7580           else
7581             echo "$ac_t""no" 1>&6
7582           fi
7583         
7584
7585           enablestring=
7586           echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
7587 echo "configure:7588: checking for --${enablestring:-enable}-fontdlg" >&5
7588           no_cache=0
7589           # Check whether --enable-fontdlg or --disable-fontdlg was given.
7590 if test "${enable_fontdlg+set}" = set; then
7591   enableval="$enable_fontdlg"
7592   
7593                           if test "$enableval" = yes; then
7594                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7595                           else
7596                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7597                           fi
7598                         
7599 else
7600   
7601                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7602                           if test "x$LINE" != x ; then
7603                             eval "DEFAULT_$LINE"
7604                           else
7605                             no_cache=1
7606                           fi
7607
7608                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7609                         
7610 fi
7611
7612
7613           eval "$ac_cv_use_fontdlg"
7614           if test "$no_cache" != 1; then
7615             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7616           fi
7617
7618           if test "$wxUSE_FONTDLG" = yes; then
7619             echo "$ac_t""yes" 1>&6
7620           else
7621             echo "$ac_t""no" 1>&6
7622           fi
7623         
7624
7625           enablestring=
7626           echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
7627 echo "configure:7628: checking for --${enablestring:-enable}-dirdlg" >&5
7628           no_cache=0
7629           # Check whether --enable-dirdlg or --disable-dirdlg was given.
7630 if test "${enable_dirdlg+set}" = set; then
7631   enableval="$enable_dirdlg"
7632   
7633                           if test "$enableval" = yes; then
7634                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7635                           else
7636                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7637                           fi
7638                         
7639 else
7640   
7641                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7642                           if test "x$LINE" != x ; then
7643                             eval "DEFAULT_$LINE"
7644                           else
7645                             no_cache=1
7646                           fi
7647
7648                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7649                         
7650 fi
7651
7652
7653           eval "$ac_cv_use_dirdlg"
7654           if test "$no_cache" != 1; then
7655             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7656           fi
7657
7658           if test "$wxUSE_DIRDLG" = yes; then
7659             echo "$ac_t""yes" 1>&6
7660           else
7661             echo "$ac_t""no" 1>&6
7662           fi
7663         
7664
7665           enablestring=
7666           echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
7667 echo "configure:7668: checking for --${enablestring:-enable}-msgdlg" >&5
7668           no_cache=0
7669           # Check whether --enable-msgdlg or --disable-msgdlg was given.
7670 if test "${enable_msgdlg+set}" = set; then
7671   enableval="$enable_msgdlg"
7672   
7673                           if test "$enableval" = yes; then
7674                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7675                           else
7676                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7677                           fi
7678                         
7679 else
7680   
7681                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7682                           if test "x$LINE" != x ; then
7683                             eval "DEFAULT_$LINE"
7684                           else
7685                             no_cache=1
7686                           fi
7687
7688                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7689                         
7690 fi
7691
7692
7693           eval "$ac_cv_use_msgdlg"
7694           if test "$no_cache" != 1; then
7695             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7696           fi
7697
7698           if test "$wxUSE_MSGDLG" = yes; then
7699             echo "$ac_t""yes" 1>&6
7700           else
7701             echo "$ac_t""no" 1>&6
7702           fi
7703         
7704
7705           enablestring=
7706           echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
7707 echo "configure:7708: checking for --${enablestring:-enable}-numberdlg" >&5
7708           no_cache=0
7709           # Check whether --enable-numberdlg or --disable-numberdlg was given.
7710 if test "${enable_numberdlg+set}" = set; then
7711   enableval="$enable_numberdlg"
7712   
7713                           if test "$enableval" = yes; then
7714                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7715                           else
7716                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7717                           fi
7718                         
7719 else
7720   
7721                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7722                           if test "x$LINE" != x ; then
7723                             eval "DEFAULT_$LINE"
7724                           else
7725                             no_cache=1
7726                           fi
7727
7728                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7729                         
7730 fi
7731
7732
7733           eval "$ac_cv_use_numberdlg"
7734           if test "$no_cache" != 1; then
7735             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7736           fi
7737
7738           if test "$wxUSE_NUMBERDLG" = yes; then
7739             echo "$ac_t""yes" 1>&6
7740           else
7741             echo "$ac_t""no" 1>&6
7742           fi
7743         
7744
7745           enablestring=
7746           echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
7747 echo "configure:7748: checking for --${enablestring:-enable}-splash" >&5
7748           no_cache=0
7749           # Check whether --enable-splash or --disable-splash was given.
7750 if test "${enable_splash+set}" = set; then
7751   enableval="$enable_splash"
7752   
7753                           if test "$enableval" = yes; then
7754                             ac_cv_use_splash='wxUSE_SPLASH=yes'
7755                           else
7756                             ac_cv_use_splash='wxUSE_SPLASH=no'
7757                           fi
7758                         
7759 else
7760   
7761                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7762                           if test "x$LINE" != x ; then
7763                             eval "DEFAULT_$LINE"
7764                           else
7765                             no_cache=1
7766                           fi
7767
7768                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7769                         
7770 fi
7771
7772
7773           eval "$ac_cv_use_splash"
7774           if test "$no_cache" != 1; then
7775             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7776           fi
7777
7778           if test "$wxUSE_SPLASH" = yes; then
7779             echo "$ac_t""yes" 1>&6
7780           else
7781             echo "$ac_t""no" 1>&6
7782           fi
7783         
7784
7785           enablestring=
7786           echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
7787 echo "configure:7788: checking for --${enablestring:-enable}-textdlg" >&5
7788           no_cache=0
7789           # Check whether --enable-textdlg or --disable-textdlg was given.
7790 if test "${enable_textdlg+set}" = set; then
7791   enableval="$enable_textdlg"
7792   
7793                           if test "$enableval" = yes; then
7794                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7795                           else
7796                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7797                           fi
7798                         
7799 else
7800   
7801                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7802                           if test "x$LINE" != x ; then
7803                             eval "DEFAULT_$LINE"
7804                           else
7805                             no_cache=1
7806                           fi
7807
7808                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7809                         
7810 fi
7811
7812
7813           eval "$ac_cv_use_textdlg"
7814           if test "$no_cache" != 1; then
7815             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7816           fi
7817
7818           if test "$wxUSE_TEXTDLG" = yes; then
7819             echo "$ac_t""yes" 1>&6
7820           else
7821             echo "$ac_t""no" 1>&6
7822           fi
7823         
7824
7825           enablestring=
7826           echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
7827 echo "configure:7828: checking for --${enablestring:-enable}-tipdlg" >&5
7828           no_cache=0
7829           # Check whether --enable-tipdlg or --disable-tipdlg was given.
7830 if test "${enable_tipdlg+set}" = set; then
7831   enableval="$enable_tipdlg"
7832   
7833                           if test "$enableval" = yes; then
7834                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7835                           else
7836                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7837                           fi
7838                         
7839 else
7840   
7841                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7842                           if test "x$LINE" != x ; then
7843                             eval "DEFAULT_$LINE"
7844                           else
7845                             no_cache=1
7846                           fi
7847
7848                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7849                         
7850 fi
7851
7852
7853           eval "$ac_cv_use_tipdlg"
7854           if test "$no_cache" != 1; then
7855             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7856           fi
7857
7858           if test "$wxUSE_STARTUP_TIPS" = yes; then
7859             echo "$ac_t""yes" 1>&6
7860           else
7861             echo "$ac_t""no" 1>&6
7862           fi
7863         
7864
7865           enablestring=
7866           echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
7867 echo "configure:7868: checking for --${enablestring:-enable}-progressdlg" >&5
7868           no_cache=0
7869           # Check whether --enable-progressdlg or --disable-progressdlg was given.
7870 if test "${enable_progressdlg+set}" = set; then
7871   enableval="$enable_progressdlg"
7872   
7873                           if test "$enableval" = yes; then
7874                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7875                           else
7876                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7877                           fi
7878                         
7879 else
7880   
7881                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7882                           if test "x$LINE" != x ; then
7883                             eval "DEFAULT_$LINE"
7884                           else
7885                             no_cache=1
7886                           fi
7887
7888                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7889                         
7890 fi
7891
7892
7893           eval "$ac_cv_use_progressdlg"
7894           if test "$no_cache" != 1; then
7895             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7896           fi
7897
7898           if test "$wxUSE_PROGRESSDLG" = yes; then
7899             echo "$ac_t""yes" 1>&6
7900           else
7901             echo "$ac_t""no" 1>&6
7902           fi
7903         
7904
7905           enablestring=
7906           echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
7907 echo "configure:7908: checking for --${enablestring:-enable}-wizarddlg" >&5
7908           no_cache=0
7909           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7910 if test "${enable_wizarddlg+set}" = set; then
7911   enableval="$enable_wizarddlg"
7912   
7913                           if test "$enableval" = yes; then
7914                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7915                           else
7916                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7917                           fi
7918                         
7919 else
7920   
7921                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7922                           if test "x$LINE" != x ; then
7923                             eval "DEFAULT_$LINE"
7924                           else
7925                             no_cache=1
7926                           fi
7927
7928                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7929                         
7930 fi
7931
7932
7933           eval "$ac_cv_use_wizarddlg"
7934           if test "$no_cache" != 1; then
7935             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7936           fi
7937
7938           if test "$wxUSE_WIZARDDLG" = yes; then
7939             echo "$ac_t""yes" 1>&6
7940           else
7941             echo "$ac_t""no" 1>&6
7942           fi
7943         
7944
7945
7946
7947           enablestring=
7948           echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
7949 echo "configure:7950: checking for --${enablestring:-enable}-menus" >&5
7950           no_cache=0
7951           # Check whether --enable-menus or --disable-menus was given.
7952 if test "${enable_menus+set}" = set; then
7953   enableval="$enable_menus"
7954   
7955                           if test "$enableval" = yes; then
7956                             ac_cv_use_menus='wxUSE_MENUS=yes'
7957                           else
7958                             ac_cv_use_menus='wxUSE_MENUS=no'
7959                           fi
7960                         
7961 else
7962   
7963                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7964                           if test "x$LINE" != x ; then
7965                             eval "DEFAULT_$LINE"
7966                           else
7967                             no_cache=1
7968                           fi
7969
7970                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7971                         
7972 fi
7973
7974
7975           eval "$ac_cv_use_menus"
7976           if test "$no_cache" != 1; then
7977             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7978           fi
7979
7980           if test "$wxUSE_MENUS" = yes; then
7981             echo "$ac_t""yes" 1>&6
7982           else
7983             echo "$ac_t""no" 1>&6
7984           fi
7985         
7986
7987           enablestring=
7988           echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
7989 echo "configure:7990: checking for --${enablestring:-enable}-miniframe" >&5
7990           no_cache=0
7991           # Check whether --enable-miniframe or --disable-miniframe was given.
7992 if test "${enable_miniframe+set}" = set; then
7993   enableval="$enable_miniframe"
7994   
7995                           if test "$enableval" = yes; then
7996                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7997                           else
7998                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7999                           fi
8000                         
8001 else
8002   
8003                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8004                           if test "x$LINE" != x ; then
8005                             eval "DEFAULT_$LINE"
8006                           else
8007                             no_cache=1
8008                           fi
8009
8010                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
8011                         
8012 fi
8013
8014
8015           eval "$ac_cv_use_miniframe"
8016           if test "$no_cache" != 1; then
8017             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8018           fi
8019
8020           if test "$wxUSE_MINIFRAME" = yes; then
8021             echo "$ac_t""yes" 1>&6
8022           else
8023             echo "$ac_t""no" 1>&6
8024           fi
8025         
8026
8027           enablestring=
8028           echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
8029 echo "configure:8030: checking for --${enablestring:-enable}-tooltips" >&5
8030           no_cache=0
8031           # Check whether --enable-tooltips or --disable-tooltips was given.
8032 if test "${enable_tooltips+set}" = set; then
8033   enableval="$enable_tooltips"
8034   
8035                           if test "$enableval" = yes; then
8036                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8037                           else
8038                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8039                           fi
8040                         
8041 else
8042   
8043                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8044                           if test "x$LINE" != x ; then
8045                             eval "DEFAULT_$LINE"
8046                           else
8047                             no_cache=1
8048                           fi
8049
8050                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8051                         
8052 fi
8053
8054
8055           eval "$ac_cv_use_tooltips"
8056           if test "$no_cache" != 1; then
8057             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8058           fi
8059
8060           if test "$wxUSE_TOOLTIPS" = yes; then
8061             echo "$ac_t""yes" 1>&6
8062           else
8063             echo "$ac_t""no" 1>&6
8064           fi
8065         
8066
8067           enablestring=
8068           echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
8069 echo "configure:8070: checking for --${enablestring:-enable}-splines" >&5
8070           no_cache=0
8071           # Check whether --enable-splines or --disable-splines was given.
8072 if test "${enable_splines+set}" = set; then
8073   enableval="$enable_splines"
8074   
8075                           if test "$enableval" = yes; then
8076                             ac_cv_use_splines='wxUSE_SPLINES=yes'
8077                           else
8078                             ac_cv_use_splines='wxUSE_SPLINES=no'
8079                           fi
8080                         
8081 else
8082   
8083                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8084                           if test "x$LINE" != x ; then
8085                             eval "DEFAULT_$LINE"
8086                           else
8087                             no_cache=1
8088                           fi
8089
8090                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8091                         
8092 fi
8093
8094
8095           eval "$ac_cv_use_splines"
8096           if test "$no_cache" != 1; then
8097             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8098           fi
8099
8100           if test "$wxUSE_SPLINES" = yes; then
8101             echo "$ac_t""yes" 1>&6
8102           else
8103             echo "$ac_t""no" 1>&6
8104           fi
8105         
8106
8107           enablestring=
8108           echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
8109 echo "configure:8110: checking for --${enablestring:-enable}-validators" >&5
8110           no_cache=0
8111           # Check whether --enable-validators or --disable-validators was given.
8112 if test "${enable_validators+set}" = set; then
8113   enableval="$enable_validators"
8114   
8115                           if test "$enableval" = yes; then
8116                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8117                           else
8118                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
8119                           fi
8120                         
8121 else
8122   
8123                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8124                           if test "x$LINE" != x ; then
8125                             eval "DEFAULT_$LINE"
8126                           else
8127                             no_cache=1
8128                           fi
8129
8130                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8131                         
8132 fi
8133
8134
8135           eval "$ac_cv_use_validators"
8136           if test "$no_cache" != 1; then
8137             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8138           fi
8139
8140           if test "$wxUSE_VALIDATORS" = yes; then
8141             echo "$ac_t""yes" 1>&6
8142           else
8143             echo "$ac_t""no" 1>&6
8144           fi
8145         
8146
8147           enablestring=
8148           echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
8149 echo "configure:8150: checking for --${enablestring:-enable}-busyinfo" >&5
8150           no_cache=0
8151           # Check whether --enable-busyinfo or --disable-busyinfo was given.
8152 if test "${enable_busyinfo+set}" = set; then
8153   enableval="$enable_busyinfo"
8154   
8155                           if test "$enableval" = yes; then
8156                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8157                           else
8158                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8159                           fi
8160                         
8161 else
8162   
8163                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8164                           if test "x$LINE" != x ; then
8165                             eval "DEFAULT_$LINE"
8166                           else
8167                             no_cache=1
8168                           fi
8169
8170                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8171                         
8172 fi
8173
8174
8175           eval "$ac_cv_use_busyinfo"
8176           if test "$no_cache" != 1; then
8177             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8178           fi
8179
8180           if test "$wxUSE_BUSYINFO" = yes; then
8181             echo "$ac_t""yes" 1>&6
8182           else
8183             echo "$ac_t""no" 1>&6
8184           fi
8185         
8186
8187           enablestring=
8188           echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
8189 echo "configure:8190: checking for --${enablestring:-enable}-joystick" >&5
8190           no_cache=0
8191           # Check whether --enable-joystick or --disable-joystick was given.
8192 if test "${enable_joystick+set}" = set; then
8193   enableval="$enable_joystick"
8194   
8195                           if test "$enableval" = yes; then
8196                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8197                           else
8198                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8199                           fi
8200                         
8201 else
8202   
8203                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8204                           if test "x$LINE" != x ; then
8205                             eval "DEFAULT_$LINE"
8206                           else
8207                             no_cache=1
8208                           fi
8209
8210                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8211                         
8212 fi
8213
8214
8215           eval "$ac_cv_use_joystick"
8216           if test "$no_cache" != 1; then
8217             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8218           fi
8219
8220           if test "$wxUSE_JOYSTICK" = yes; then
8221             echo "$ac_t""yes" 1>&6
8222           else
8223             echo "$ac_t""no" 1>&6
8224           fi
8225         
8226
8227           enablestring=
8228           echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
8229 echo "configure:8230: checking for --${enablestring:-enable}-metafile" >&5
8230           no_cache=0
8231           # Check whether --enable-metafile or --disable-metafile was given.
8232 if test "${enable_metafile+set}" = set; then
8233   enableval="$enable_metafile"
8234   
8235                           if test "$enableval" = yes; then
8236                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
8237                           else
8238                             ac_cv_use_metafile='wxUSE_METAFILE=no'
8239                           fi
8240                         
8241 else
8242   
8243                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8244                           if test "x$LINE" != x ; then
8245                             eval "DEFAULT_$LINE"
8246                           else
8247                             no_cache=1
8248                           fi
8249
8250                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8251                         
8252 fi
8253
8254
8255           eval "$ac_cv_use_metafile"
8256           if test "$no_cache" != 1; then
8257             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8258           fi
8259
8260           if test "$wxUSE_METAFILE" = yes; then
8261             echo "$ac_t""yes" 1>&6
8262           else
8263             echo "$ac_t""no" 1>&6
8264           fi
8265         
8266
8267           enablestring=
8268           echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
8269 echo "configure:8270: checking for --${enablestring:-enable}-dragimage" >&5
8270           no_cache=0
8271           # Check whether --enable-dragimage or --disable-dragimage was given.
8272 if test "${enable_dragimage+set}" = set; then
8273   enableval="$enable_dragimage"
8274   
8275                           if test "$enableval" = yes; then
8276                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8277                           else
8278                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8279                           fi
8280                         
8281 else
8282   
8283                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8284                           if test "x$LINE" != x ; then
8285                             eval "DEFAULT_$LINE"
8286                           else
8287                             no_cache=1
8288                           fi
8289
8290                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8291                         
8292 fi
8293
8294
8295           eval "$ac_cv_use_dragimage"
8296           if test "$no_cache" != 1; then
8297             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8298           fi
8299
8300           if test "$wxUSE_DRAGIMAGE" = yes; then
8301             echo "$ac_t""yes" 1>&6
8302           else
8303             echo "$ac_t""no" 1>&6
8304           fi
8305         
8306
8307           enablestring=
8308           echo $ac_n "checking for --${enablestring:-enable}-accessibility""... $ac_c" 1>&6
8309 echo "configure:8310: checking for --${enablestring:-enable}-accessibility" >&5
8310           no_cache=0
8311           # Check whether --enable-accessibility or --disable-accessibility was given.
8312 if test "${enable_accessibility+set}" = set; then
8313   enableval="$enable_accessibility"
8314   
8315                           if test "$enableval" = yes; then
8316                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
8317                           else
8318                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
8319                           fi
8320                         
8321 else
8322   
8323                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
8324                           if test "x$LINE" != x ; then
8325                             eval "DEFAULT_$LINE"
8326                           else
8327                             no_cache=1
8328                           fi
8329
8330                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
8331                         
8332 fi
8333
8334
8335           eval "$ac_cv_use_accessibility"
8336           if test "$no_cache" != 1; then
8337             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
8338           fi
8339
8340           if test "$wxUSE_ACCESSIBILITY" = yes; then
8341             echo "$ac_t""yes" 1>&6
8342           else
8343             echo "$ac_t""no" 1>&6
8344           fi
8345         
8346
8347
8348
8349           enablestring=
8350           echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
8351 echo "configure:8352: checking for --${enablestring:-enable}-palette" >&5
8352           no_cache=0
8353           # Check whether --enable-palette or --disable-palette was given.
8354 if test "${enable_palette+set}" = set; then
8355   enableval="$enable_palette"
8356   
8357                           if test "$enableval" = yes; then
8358                             ac_cv_use_palette='wxUSE_PALETTE=yes'
8359                           else
8360                             ac_cv_use_palette='wxUSE_PALETTE=no'
8361                           fi
8362                         
8363 else
8364   
8365                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8366                           if test "x$LINE" != x ; then
8367                             eval "DEFAULT_$LINE"
8368                           else
8369                             no_cache=1
8370                           fi
8371
8372                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8373                         
8374 fi
8375
8376
8377           eval "$ac_cv_use_palette"
8378           if test "$no_cache" != 1; then
8379             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8380           fi
8381
8382           if test "$wxUSE_PALETTE" = yes; then
8383             echo "$ac_t""yes" 1>&6
8384           else
8385             echo "$ac_t""no" 1>&6
8386           fi
8387         
8388
8389           enablestring=
8390           echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
8391 echo "configure:8392: checking for --${enablestring:-enable}-image" >&5
8392           no_cache=0
8393           # Check whether --enable-image or --disable-image was given.
8394 if test "${enable_image+set}" = set; then
8395   enableval="$enable_image"
8396   
8397                           if test "$enableval" = yes; then
8398                             ac_cv_use_image='wxUSE_IMAGE=yes'
8399                           else
8400                             ac_cv_use_image='wxUSE_IMAGE=no'
8401                           fi
8402                         
8403 else
8404   
8405                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8406                           if test "x$LINE" != x ; then
8407                             eval "DEFAULT_$LINE"
8408                           else
8409                             no_cache=1
8410                           fi
8411
8412                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8413                         
8414 fi
8415
8416
8417           eval "$ac_cv_use_image"
8418           if test "$no_cache" != 1; then
8419             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8420           fi
8421
8422           if test "$wxUSE_IMAGE" = yes; then
8423             echo "$ac_t""yes" 1>&6
8424           else
8425             echo "$ac_t""no" 1>&6
8426           fi
8427         
8428
8429           enablestring=
8430           echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
8431 echo "configure:8432: checking for --${enablestring:-enable}-gif" >&5
8432           no_cache=0
8433           # Check whether --enable-gif or --disable-gif was given.
8434 if test "${enable_gif+set}" = set; then
8435   enableval="$enable_gif"
8436   
8437                           if test "$enableval" = yes; then
8438                             ac_cv_use_gif='wxUSE_GIF=yes'
8439                           else
8440                             ac_cv_use_gif='wxUSE_GIF=no'
8441                           fi
8442                         
8443 else
8444   
8445                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8446                           if test "x$LINE" != x ; then
8447                             eval "DEFAULT_$LINE"
8448                           else
8449                             no_cache=1
8450                           fi
8451
8452                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8453                         
8454 fi
8455
8456
8457           eval "$ac_cv_use_gif"
8458           if test "$no_cache" != 1; then
8459             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8460           fi
8461
8462           if test "$wxUSE_GIF" = yes; then
8463             echo "$ac_t""yes" 1>&6
8464           else
8465             echo "$ac_t""no" 1>&6
8466           fi
8467         
8468
8469           enablestring=
8470           echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
8471 echo "configure:8472: checking for --${enablestring:-enable}-pcx" >&5
8472           no_cache=0
8473           # Check whether --enable-pcx or --disable-pcx was given.
8474 if test "${enable_pcx+set}" = set; then
8475   enableval="$enable_pcx"
8476   
8477                           if test "$enableval" = yes; then
8478                             ac_cv_use_pcx='wxUSE_PCX=yes'
8479                           else
8480                             ac_cv_use_pcx='wxUSE_PCX=no'
8481                           fi
8482                         
8483 else
8484   
8485                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8486                           if test "x$LINE" != x ; then
8487                             eval "DEFAULT_$LINE"
8488                           else
8489                             no_cache=1
8490                           fi
8491
8492                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8493                         
8494 fi
8495
8496
8497           eval "$ac_cv_use_pcx"
8498           if test "$no_cache" != 1; then
8499             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8500           fi
8501
8502           if test "$wxUSE_PCX" = yes; then
8503             echo "$ac_t""yes" 1>&6
8504           else
8505             echo "$ac_t""no" 1>&6
8506           fi
8507         
8508
8509           enablestring=
8510           echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
8511 echo "configure:8512: checking for --${enablestring:-enable}-iff" >&5
8512           no_cache=0
8513           # Check whether --enable-iff or --disable-iff was given.
8514 if test "${enable_iff+set}" = set; then
8515   enableval="$enable_iff"
8516   
8517                           if test "$enableval" = yes; then
8518                             ac_cv_use_iff='wxUSE_IFF=yes'
8519                           else
8520                             ac_cv_use_iff='wxUSE_IFF=no'
8521                           fi
8522                         
8523 else
8524   
8525                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8526                           if test "x$LINE" != x ; then
8527                             eval "DEFAULT_$LINE"
8528                           else
8529                             no_cache=1
8530                           fi
8531
8532                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8533                         
8534 fi
8535
8536
8537           eval "$ac_cv_use_iff"
8538           if test "$no_cache" != 1; then
8539             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8540           fi
8541
8542           if test "$wxUSE_IFF" = yes; then
8543             echo "$ac_t""yes" 1>&6
8544           else
8545             echo "$ac_t""no" 1>&6
8546           fi
8547         
8548
8549           enablestring=
8550           echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
8551 echo "configure:8552: checking for --${enablestring:-enable}-pnm" >&5
8552           no_cache=0
8553           # Check whether --enable-pnm or --disable-pnm was given.
8554 if test "${enable_pnm+set}" = set; then
8555   enableval="$enable_pnm"
8556   
8557                           if test "$enableval" = yes; then
8558                             ac_cv_use_pnm='wxUSE_PNM=yes'
8559                           else
8560                             ac_cv_use_pnm='wxUSE_PNM=no'
8561                           fi
8562                         
8563 else
8564   
8565                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8566                           if test "x$LINE" != x ; then
8567                             eval "DEFAULT_$LINE"
8568                           else
8569                             no_cache=1
8570                           fi
8571
8572                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8573                         
8574 fi
8575
8576
8577           eval "$ac_cv_use_pnm"
8578           if test "$no_cache" != 1; then
8579             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8580           fi
8581
8582           if test "$wxUSE_PNM" = yes; then
8583             echo "$ac_t""yes" 1>&6
8584           else
8585             echo "$ac_t""no" 1>&6
8586           fi
8587         
8588
8589           enablestring=
8590           echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
8591 echo "configure:8592: checking for --${enablestring:-enable}-xpm" >&5
8592           no_cache=0
8593           # Check whether --enable-xpm or --disable-xpm was given.
8594 if test "${enable_xpm+set}" = set; then
8595   enableval="$enable_xpm"
8596   
8597                           if test "$enableval" = yes; then
8598                             ac_cv_use_xpm='wxUSE_XPM=yes'
8599                           else
8600                             ac_cv_use_xpm='wxUSE_XPM=no'
8601                           fi
8602                         
8603 else
8604   
8605                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8606                           if test "x$LINE" != x ; then
8607                             eval "DEFAULT_$LINE"
8608                           else
8609                             no_cache=1
8610                           fi
8611
8612                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8613                         
8614 fi
8615
8616
8617           eval "$ac_cv_use_xpm"
8618           if test "$no_cache" != 1; then
8619             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8620           fi
8621
8622           if test "$wxUSE_XPM" = yes; then
8623             echo "$ac_t""yes" 1>&6
8624           else
8625             echo "$ac_t""no" 1>&6
8626           fi
8627         
8628
8629           enablestring=
8630           echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
8631 echo "configure:8632: checking for --${enablestring:-enable}-ico_cur" >&5
8632           no_cache=0
8633           # Check whether --enable-ico_cur or --disable-ico_cur was given.
8634 if test "${enable_ico_cur+set}" = set; then
8635   enableval="$enable_ico_cur"
8636   
8637                           if test "$enableval" = yes; then
8638                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8639                           else
8640                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8641                           fi
8642                         
8643 else
8644   
8645                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8646                           if test "x$LINE" != x ; then
8647                             eval "DEFAULT_$LINE"
8648                           else
8649                             no_cache=1
8650                           fi
8651
8652                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8653                         
8654 fi
8655
8656
8657           eval "$ac_cv_use_ico_cur"
8658           if test "$no_cache" != 1; then
8659             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8660           fi
8661
8662           if test "$wxUSE_ICO_CUR" = yes; then
8663             echo "$ac_t""yes" 1>&6
8664           else
8665             echo "$ac_t""no" 1>&6
8666           fi
8667         
8668
8669 fi
8670
8671 case "${host}" in
8672   *-pc-os2_emx | *-pc-os2-emx )
8673     PATH_IFS=';'
8674     LEX_STEM="lexyy"
8675   ;;
8676   *)
8677     PATH_IFS=':'
8678     LEX_STEM="lex.yy"
8679   ;;
8680 esac
8681
8682
8683
8684           echo "saving argument cache $wx_arg_cache_file"
8685           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8686         
8687
8688
8689 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8690 echo "configure:8691: checking for toolkit" >&5
8691
8692 # In Wine, we need to default to MSW, not GTK or MOTIF
8693 if test "$wxUSE_WINE" = "yes"; then
8694     DEFAULT_DEFAULT_wxUSE_GTK=0
8695     DEFAULT_DEFAULT_wxUSE_MOTIF=0
8696     DEFAULT_DEFAULT_wxUSE_MSW=1
8697 fi
8698
8699 if test "$wxUSE_GUI" = "yes"; then
8700
8701     if test "$USE_BEOS" = 1; then
8702         { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8703     fi
8704
8705     if test "$TOOLKIT_GIVEN" = 1; then
8706             for toolkit in `echo $ALL_TOOLKITS`; do
8707         var=wxUSE_$toolkit
8708         eval "value=\$${var}"
8709         eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8710       done
8711     else
8712             for toolkit in `echo $ALL_TOOLKITS`; do
8713         if test "$has_toolkit_in_cache" != 1; then
8714           var=DEFAULT_DEFAULT_wxUSE_$toolkit
8715         else
8716           var=DEFAULT_wxUSE_$toolkit
8717         fi
8718         eval "wxUSE_$toolkit=\$${var}"
8719       done
8720     fi
8721
8722             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
8723                   + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
8724                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
8725
8726         case "${host}" in
8727       *-pc-os2_emx | *-pc-os2-emx )
8728         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8729     esac
8730
8731     case "$NUM_TOOLKITS" in
8732       1)
8733       ;;
8734       0)
8735         { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
8736       ;;
8737       *)
8738         { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
8739     esac
8740
8741         for toolkit in `echo $ALL_TOOLKITS`; do
8742       var=wxUSE_$toolkit
8743       eval "value=\$${var}"
8744       if test "x$value" != x; then
8745         cache_var=CACHE_$toolkit
8746         eval "cache=\$${cache_var}"
8747         if test "$cache" = 1; then
8748           echo "$var=$value" >> ${wx_arg_cache_file}
8749         fi
8750         if test "$value" = 1; then
8751           toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8752           echo "$ac_t""$toolkit_echo" 1>&6
8753         fi
8754       fi
8755     done
8756 else
8757     echo "$ac_t""base ($host_alias hosted) only" 1>&6
8758 fi
8759
8760 wants_win32=0
8761 doesnt_want_win32=0
8762 case "${host}" in
8763   *-*-cygwin*)
8764       if test "$wxUSE_MSW" = 1 ; then
8765         wants_win32=1
8766       else
8767         doesnt_want_win32=1
8768       fi
8769   ;;
8770   *-*-mingw*)
8771       wants_win32=1
8772   ;;
8773 esac
8774
8775 if test "$wxUSE_WINE" = "yes"; then
8776     wants_win32=1
8777         CC=winegcc
8778     CXX=wineg++
8779     RESCOMP=wrc
8780 fi
8781
8782 if test "$wants_win32" = 1 ; then
8783     USE_UNIX=0
8784     USE_WIN32=1
8785     cat >> confdefs.h <<\EOF
8786 #define __WIN32__ 1
8787 EOF
8788
8789     cat >> confdefs.h <<\EOF
8790 #define __WIN95__ 1
8791 EOF
8792
8793     cat >> confdefs.h <<\EOF
8794 #define __WINDOWS__ 1
8795 EOF
8796
8797     cat >> confdefs.h <<\EOF
8798 #define __GNUWIN32__ 1
8799 EOF
8800
8801     cat >> confdefs.h <<\EOF
8802 #define STRICT 1
8803 EOF
8804
8805     cat >> confdefs.h <<\EOF
8806 #define WINVER 0x0400
8807 EOF
8808
8809 fi
8810 if test "$doesnt_want_win32" = 1 ; then
8811     USE_UNIX=1
8812     USE_WIN32=0
8813 fi
8814
8815 if test "$USE_UNIX" = 1 ; then
8816     wxUSE_UNIX=yes
8817     cat >> confdefs.h <<\EOF
8818 #define __UNIX__ 1
8819 EOF
8820
8821 fi
8822
8823
8824 cat > confcache <<\EOF
8825 # This file is a shell script that caches the results of configure
8826 # tests run on this system so they can be shared between configure
8827 # scripts and configure runs.  It is not useful on other systems.
8828 # If it contains results you don't want to keep, you may remove or edit it.
8829 #
8830 # By default, configure uses ./config.cache as the cache file,
8831 # creating it if it does not exist already.  You can give configure
8832 # the --cache-file=FILE option to use a different cache file; that is
8833 # what configure does when it calls configure scripts in
8834 # subdirectories, so they share the cache.
8835 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8836 # config.status only pays attention to the cache file if you give it the
8837 # --recheck option to rerun configure.
8838 #
8839 EOF
8840 # The following way of writing the cache mishandles newlines in values,
8841 # but we know of no workaround that is simple, portable, and efficient.
8842 # So, don't put newlines in cache variables' values.
8843 # Ultrix sh set writes to stderr and can't be redirected directly,
8844 # and sets the high bit in the cache file unless we assign to the vars.
8845 (set) 2>&1 |
8846   case `(ac_space=' '; set | grep ac_space) 2>&1` in
8847   *ac_space=\ *)
8848     # `set' does not quote correctly, so add quotes (double-quote substitution
8849     # turns \\\\ into \\, and sed turns \\ into \).
8850     sed -n \
8851       -e "s/'/'\\\\''/g" \
8852       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8853     ;;
8854   *)
8855     # `set' quotes correctly as required by POSIX, so do not add quotes.
8856     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8857     ;;
8858   esac >> confcache
8859 if cmp -s $cache_file confcache; then
8860   :
8861 else
8862   if test -w $cache_file; then
8863     echo "updating cache $cache_file"
8864     cat confcache > $cache_file
8865   else
8866     echo "not updating unwritable cache $cache_file"
8867   fi
8868 fi
8869 rm -f confcache
8870
8871
8872 if test "$build" != "$host" ; then
8873     if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8874         CC=$host_alias-gcc
8875         CXX=$host_alias-c++
8876         AR=$host_alias-ar
8877         RANLIB=$host_alias-ranlib
8878         DLLTOOL=$host_alias-dlltool
8879         RESCOMP=$host_alias-windres
8880         LD=$host_alias-ld
8881         NM=$host_alias-nm
8882         STRIP=$host_alias-strip
8883     else
8884         { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8885     fi
8886 fi
8887
8888 CFLAGS=${CFLAGS:=}
8889 # Extract the first word of "gcc", so it can be a program name with args.
8890 set dummy gcc; ac_word=$2
8891 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8892 echo "configure:8893: checking for $ac_word" >&5
8893 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8894   echo $ac_n "(cached) $ac_c" 1>&6
8895 else
8896   if test -n "$CC"; then
8897   ac_cv_prog_CC="$CC" # Let the user override the test.
8898 else
8899   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8900   ac_dummy="$PATH"
8901   for ac_dir in $ac_dummy; do
8902     test -z "$ac_dir" && ac_dir=.
8903     if test -f $ac_dir/$ac_word; then
8904       ac_cv_prog_CC="gcc"
8905       break
8906     fi
8907   done
8908   IFS="$ac_save_ifs"
8909 fi
8910 fi
8911 CC="$ac_cv_prog_CC"
8912 if test -n "$CC"; then
8913   echo "$ac_t""$CC" 1>&6
8914 else
8915   echo "$ac_t""no" 1>&6
8916 fi
8917
8918 if test -z "$CC"; then
8919   # Extract the first word of "cc", so it can be a program name with args.
8920 set dummy cc; ac_word=$2
8921 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8922 echo "configure:8923: checking for $ac_word" >&5
8923 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8924   echo $ac_n "(cached) $ac_c" 1>&6
8925 else
8926   if test -n "$CC"; then
8927   ac_cv_prog_CC="$CC" # Let the user override the test.
8928 else
8929   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8930   ac_prog_rejected=no
8931   ac_dummy="$PATH"
8932   for ac_dir in $ac_dummy; do
8933     test -z "$ac_dir" && ac_dir=.
8934     if test -f $ac_dir/$ac_word; then
8935       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8936         ac_prog_rejected=yes
8937         continue
8938       fi
8939       ac_cv_prog_CC="cc"
8940       break
8941     fi
8942   done
8943   IFS="$ac_save_ifs"
8944 if test $ac_prog_rejected = yes; then
8945   # We found a bogon in the path, so make sure we never use it.
8946   set dummy $ac_cv_prog_CC
8947   shift
8948   if test $# -gt 0; then
8949     # We chose a different compiler from the bogus one.
8950     # However, it has the same basename, so the bogon will be chosen
8951     # first if we set CC to just the basename; use the full file name.
8952     shift
8953     set dummy "$ac_dir/$ac_word" "$@"
8954     shift
8955     ac_cv_prog_CC="$@"
8956   fi
8957 fi
8958 fi
8959 fi
8960 CC="$ac_cv_prog_CC"
8961 if test -n "$CC"; then
8962   echo "$ac_t""$CC" 1>&6
8963 else
8964   echo "$ac_t""no" 1>&6
8965 fi
8966
8967   if test -z "$CC"; then
8968     case "`uname -s`" in
8969     *win32* | *WIN32*)
8970       # Extract the first word of "cl", so it can be a program name with args.
8971 set dummy cl; ac_word=$2
8972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8973 echo "configure:8974: checking for $ac_word" >&5
8974 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8975   echo $ac_n "(cached) $ac_c" 1>&6
8976 else
8977   if test -n "$CC"; then
8978   ac_cv_prog_CC="$CC" # Let the user override the test.
8979 else
8980   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8981   ac_dummy="$PATH"
8982   for ac_dir in $ac_dummy; do
8983     test -z "$ac_dir" && ac_dir=.
8984     if test -f $ac_dir/$ac_word; then
8985       ac_cv_prog_CC="cl"
8986       break
8987     fi
8988   done
8989   IFS="$ac_save_ifs"
8990 fi
8991 fi
8992 CC="$ac_cv_prog_CC"
8993 if test -n "$CC"; then
8994   echo "$ac_t""$CC" 1>&6
8995 else
8996   echo "$ac_t""no" 1>&6
8997 fi
8998  ;;
8999     esac
9000   fi
9001   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
9002 fi
9003
9004 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9005 echo "configure:9006: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
9006
9007 ac_ext=c
9008 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9009 ac_cpp='$CPP $CPPFLAGS'
9010 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9011 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9012 cross_compiling=$ac_cv_prog_cc_cross
9013
9014 cat > conftest.$ac_ext << EOF
9015
9016 #line 9017 "configure"
9017 #include "confdefs.h"
9018
9019 main(){return(0);}
9020 EOF
9021 if { (eval echo configure:9022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9022   ac_cv_prog_cc_works=yes
9023   # If we can't run a trivial program, we are probably using a cross compiler.
9024   if (./conftest; exit) 2>/dev/null; then
9025     ac_cv_prog_cc_cross=no
9026   else
9027     ac_cv_prog_cc_cross=yes
9028   fi
9029 else
9030   echo "configure: failed program was:" >&5
9031   cat conftest.$ac_ext >&5
9032   ac_cv_prog_cc_works=no
9033 fi
9034 rm -fr conftest*
9035 ac_ext=c
9036 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9037 ac_cpp='$CPP $CPPFLAGS'
9038 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9039 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9040 cross_compiling=$ac_cv_prog_cc_cross
9041
9042 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9043 if test $ac_cv_prog_cc_works = no; then
9044   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9045 fi
9046 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9047 echo "configure:9048: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
9048 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9049 cross_compiling=$ac_cv_prog_cc_cross
9050
9051 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
9052 echo "configure:9053: checking whether we are using GNU C" >&5
9053 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9054   echo $ac_n "(cached) $ac_c" 1>&6
9055 else
9056   cat > conftest.c <<EOF
9057 #ifdef __GNUC__
9058   yes;
9059 #endif
9060 EOF
9061 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9062   ac_cv_prog_gcc=yes
9063 else
9064   ac_cv_prog_gcc=no
9065 fi
9066 fi
9067
9068 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
9069
9070 if test $ac_cv_prog_gcc = yes; then
9071   GCC=yes
9072 else
9073   GCC=
9074 fi
9075
9076 ac_test_CFLAGS="${CFLAGS+set}"
9077 ac_save_CFLAGS="$CFLAGS"
9078 CFLAGS=
9079 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9080 echo "configure:9081: checking whether ${CC-cc} accepts -g" >&5
9081 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9082   echo $ac_n "(cached) $ac_c" 1>&6
9083 else
9084   echo 'void f(){}' > conftest.c
9085 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9086   ac_cv_prog_cc_g=yes
9087 else
9088   ac_cv_prog_cc_g=no
9089 fi
9090 rm -f conftest*
9091
9092 fi
9093
9094 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
9095 if test "$ac_test_CFLAGS" = set; then
9096   CFLAGS="$ac_save_CFLAGS"
9097 elif test $ac_cv_prog_cc_g = yes; then
9098   if test "$GCC" = yes; then
9099     CFLAGS="-g -O2"
9100   else
9101     CFLAGS="-g"
9102   fi
9103 else
9104   if test "$GCC" = yes; then
9105     CFLAGS="-O2"
9106   else
9107     CFLAGS=
9108   fi
9109 fi
9110
9111
9112 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9113 echo "configure:9114: checking how to run the C preprocessor" >&5
9114 # On Suns, sometimes $CPP names a directory.
9115 if test -n "$CPP" && test -d "$CPP"; then
9116   CPP=
9117 fi
9118 if test -z "$CPP"; then
9119 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9120   echo $ac_n "(cached) $ac_c" 1>&6
9121 else
9122     # This must be in double quotes, not single quotes, because CPP may get
9123   # substituted into the Makefile and "${CC-cc}" will confuse make.
9124   CPP="${CC-cc} -E"
9125   # On the NeXT, cc -E runs the code through the compiler's parser,
9126   # not just through cpp.
9127   cat > conftest.$ac_ext <<EOF
9128 #line 9129 "configure"
9129 #include "confdefs.h"
9130 #include <assert.h>
9131 Syntax Error
9132 EOF
9133 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9134 { (eval echo configure:9135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9135 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9136 if test -z "$ac_err"; then
9137   :
9138 else
9139   echo "$ac_err" >&5
9140   echo "configure: failed program was:" >&5
9141   cat conftest.$ac_ext >&5
9142   rm -rf conftest*
9143   CPP="${CC-cc} -E -traditional-cpp"
9144   cat > conftest.$ac_ext <<EOF
9145 #line 9146 "configure"
9146 #include "confdefs.h"
9147 #include <assert.h>
9148 Syntax Error
9149 EOF
9150 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9151 { (eval echo configure:9152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9152 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9153 if test -z "$ac_err"; then
9154   :
9155 else
9156   echo "$ac_err" >&5
9157   echo "configure: failed program was:" >&5
9158   cat conftest.$ac_ext >&5
9159   rm -rf conftest*
9160   CPP="${CC-cc} -nologo -E"
9161   cat > conftest.$ac_ext <<EOF
9162 #line 9163 "configure"
9163 #include "confdefs.h"
9164 #include <assert.h>
9165 Syntax Error
9166 EOF
9167 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9168 { (eval echo configure:9169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9169 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9170 if test -z "$ac_err"; then
9171   :
9172 else
9173   echo "$ac_err" >&5
9174   echo "configure: failed program was:" >&5
9175   cat conftest.$ac_ext >&5
9176   rm -rf conftest*
9177   CPP=/lib/cpp
9178 fi
9179 rm -f conftest*
9180 fi
9181 rm -f conftest*
9182 fi
9183 rm -f conftest*
9184   ac_cv_prog_CPP="$CPP"
9185 fi
9186   CPP="$ac_cv_prog_CPP"
9187 else
9188   ac_cv_prog_CPP="$CPP"
9189 fi
9190 echo "$ac_t""$CPP" 1>&6
9191
9192 if test $ac_cv_prog_gcc = yes; then
9193     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9194 echo "configure:9195: checking whether ${CC-cc} needs -traditional" >&5
9195 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9196   echo $ac_n "(cached) $ac_c" 1>&6
9197 else
9198     ac_pattern="Autoconf.*'x'"
9199   cat > conftest.$ac_ext <<EOF
9200 #line 9201 "configure"
9201 #include "confdefs.h"
9202 #include <sgtty.h>
9203 Autoconf TIOCGETP
9204 EOF
9205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9206   egrep "$ac_pattern" >/dev/null 2>&1; then
9207   rm -rf conftest*
9208   ac_cv_prog_gcc_traditional=yes
9209 else
9210   rm -rf conftest*
9211   ac_cv_prog_gcc_traditional=no
9212 fi
9213 rm -f conftest*
9214
9215
9216   if test $ac_cv_prog_gcc_traditional = no; then
9217     cat > conftest.$ac_ext <<EOF
9218 #line 9219 "configure"
9219 #include "confdefs.h"
9220 #include <termio.h>
9221 Autoconf TCGETA
9222 EOF
9223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9224   egrep "$ac_pattern" >/dev/null 2>&1; then
9225   rm -rf conftest*
9226   ac_cv_prog_gcc_traditional=yes
9227 fi
9228 rm -f conftest*
9229
9230   fi
9231 fi
9232
9233 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
9234   if test $ac_cv_prog_gcc_traditional = yes; then
9235     CC="$CC -traditional"
9236   fi
9237 fi
9238
9239
9240
9241 ac_ext=C
9242 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9243 ac_cpp='$CXXCPP $CPPFLAGS'
9244 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9245 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9246 cross_compiling=$ac_cv_prog_cxx_cross
9247
9248
9249 CXXFLAGS=${CXXFLAGS:=}
9250 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9251 do
9252 # Extract the first word of "$ac_prog", so it can be a program name with args.
9253 set dummy $ac_prog; ac_word=$2
9254 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9255 echo "configure:9256: checking for $ac_word" >&5
9256 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9257   echo $ac_n "(cached) $ac_c" 1>&6
9258 else
9259   if test -n "$CXX"; then
9260   ac_cv_prog_CXX="$CXX" # Let the user override the test.
9261 else
9262   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9263   ac_dummy="$PATH"
9264   for ac_dir in $ac_dummy; do
9265     test -z "$ac_dir" && ac_dir=.
9266     if test -f $ac_dir/$ac_word; then
9267       ac_cv_prog_CXX="$ac_prog"
9268       break
9269     fi
9270   done
9271   IFS="$ac_save_ifs"
9272 fi
9273 fi
9274 CXX="$ac_cv_prog_CXX"
9275 if test -n "$CXX"; then
9276   echo "$ac_t""$CXX" 1>&6
9277 else
9278   echo "$ac_t""no" 1>&6
9279 fi
9280
9281 test -n "$CXX" && break
9282 done
9283 test -n "$CXX" || CXX="gcc"
9284
9285
9286 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9287 echo "configure:9288: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9288
9289 ac_ext=C
9290 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9291 ac_cpp='$CXXCPP $CPPFLAGS'
9292 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9293 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9294 cross_compiling=$ac_cv_prog_cxx_cross
9295
9296 cat > conftest.$ac_ext << EOF
9297
9298 #line 9299 "configure"
9299 #include "confdefs.h"
9300
9301 int main(){return(0);}
9302 EOF
9303 if { (eval echo configure:9304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9304   ac_cv_prog_cxx_works=yes
9305   # If we can't run a trivial program, we are probably using a cross compiler.
9306   if (./conftest; exit) 2>/dev/null; then
9307     ac_cv_prog_cxx_cross=no
9308   else
9309     ac_cv_prog_cxx_cross=yes
9310   fi
9311 else
9312   echo "configure: failed program was:" >&5
9313   cat conftest.$ac_ext >&5
9314   ac_cv_prog_cxx_works=no
9315 fi
9316 rm -fr conftest*
9317 ac_ext=C
9318 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9319 ac_cpp='$CXXCPP $CPPFLAGS'
9320 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9321 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9322 cross_compiling=$ac_cv_prog_cxx_cross
9323
9324 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9325 if test $ac_cv_prog_cxx_works = no; then
9326   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9327 fi
9328 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9329 echo "configure:9330: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9330 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9331 cross_compiling=$ac_cv_prog_cxx_cross
9332
9333 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9334 echo "configure:9335: checking whether we are using GNU C++" >&5
9335 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9336   echo $ac_n "(cached) $ac_c" 1>&6
9337 else
9338   cat > conftest.C <<EOF
9339 #ifdef __GNUC__
9340   yes;
9341 #endif
9342 EOF
9343 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9344   ac_cv_prog_gxx=yes
9345 else
9346   ac_cv_prog_gxx=no
9347 fi
9348 fi
9349
9350 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9351
9352 if test $ac_cv_prog_gxx = yes; then
9353   GXX=yes
9354 else
9355   GXX=
9356 fi
9357
9358 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9359 ac_save_CXXFLAGS="$CXXFLAGS"
9360 CXXFLAGS=
9361 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9362 echo "configure:9363: checking whether ${CXX-g++} accepts -g" >&5
9363 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9364   echo $ac_n "(cached) $ac_c" 1>&6
9365 else
9366   echo 'void f(){}' > conftest.cc
9367 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9368   ac_cv_prog_cxx_g=yes
9369 else
9370   ac_cv_prog_cxx_g=no
9371 fi
9372 rm -f conftest*
9373
9374 fi
9375
9376 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9377 if test "$ac_test_CXXFLAGS" = set; then
9378   CXXFLAGS="$ac_save_CXXFLAGS"
9379 elif test $ac_cv_prog_cxx_g = yes; then
9380   if test "$GXX" = yes; then
9381     CXXFLAGS="-g -O2"
9382   else
9383     CXXFLAGS="-g"
9384   fi
9385 else
9386   if test "$GXX" = yes; then
9387     CXXFLAGS="-O2"
9388   else
9389     CXXFLAGS=
9390   fi
9391 fi
9392
9393
9394 ac_ext=c
9395 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9396 ac_cpp='$CPP $CPPFLAGS'
9397 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9398 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9399 cross_compiling=$ac_cv_prog_cc_cross
9400
9401
9402 # Extract the first word of "ranlib", so it can be a program name with args.
9403 set dummy ranlib; ac_word=$2
9404 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9405 echo "configure:9406: checking for $ac_word" >&5
9406 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9407   echo $ac_n "(cached) $ac_c" 1>&6
9408 else
9409   if test -n "$RANLIB"; then
9410   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9411 else
9412   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9413   ac_dummy="$PATH"
9414   for ac_dir in $ac_dummy; do
9415     test -z "$ac_dir" && ac_dir=.
9416     if test -f $ac_dir/$ac_word; then
9417       ac_cv_prog_RANLIB="ranlib"
9418       break
9419     fi
9420   done
9421   IFS="$ac_save_ifs"
9422   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9423 fi
9424 fi
9425 RANLIB="$ac_cv_prog_RANLIB"
9426 if test -n "$RANLIB"; then
9427   echo "$ac_t""$RANLIB" 1>&6
9428 else
9429   echo "$ac_t""no" 1>&6
9430 fi
9431
9432
9433 # Extract the first word of "ar", so it can be a program name with args.
9434 set dummy ar; ac_word=$2
9435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9436 echo "configure:9437: checking for $ac_word" >&5
9437 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9438   echo $ac_n "(cached) $ac_c" 1>&6
9439 else
9440   if test -n "$AR"; then
9441   ac_cv_prog_AR="$AR" # Let the user override the test.
9442 else
9443   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9444   ac_dummy="$PATH"
9445   for ac_dir in $ac_dummy; do
9446     test -z "$ac_dir" && ac_dir=.
9447     if test -f $ac_dir/$ac_word; then
9448       ac_cv_prog_AR="ar"
9449       break
9450     fi
9451   done
9452   IFS="$ac_save_ifs"
9453   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9454 fi
9455 fi
9456 AR="$ac_cv_prog_AR"
9457 if test -n "$AR"; then
9458   echo "$ac_t""$AR" 1>&6
9459 else
9460   echo "$ac_t""no" 1>&6
9461 fi
9462
9463
9464 # Find a good install program.  We prefer a C program (faster),
9465 # so one script is as good as another.  But avoid the broken or
9466 # incompatible versions:
9467 # SysV /etc/install, /usr/sbin/install
9468 # SunOS /usr/etc/install
9469 # IRIX /sbin/install
9470 # AIX /bin/install
9471 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9472 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9473 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9474 # ./install, which can be erroneously created by make from ./install.sh.
9475 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9476 echo "configure:9477: checking for a BSD compatible install" >&5
9477 if test -z "$INSTALL"; then
9478 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9479   echo $ac_n "(cached) $ac_c" 1>&6
9480 else
9481     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
9482   for ac_dir in $PATH; do
9483     # Account for people who put trailing slashes in PATH elements.
9484     case "$ac_dir/" in
9485     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9486     *)
9487       # OSF1 and SCO ODT 3.0 have their own names for install.
9488       # Don't use installbsd from OSF since it installs stuff as root
9489       # by default.
9490       for ac_prog in ginstall scoinst install; do
9491         if test -f $ac_dir/$ac_prog; then
9492           if test $ac_prog = install &&
9493             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9494             # AIX install.  It has an incompatible calling convention.
9495             :
9496           else
9497             ac_cv_path_install="$ac_dir/$ac_prog -c"
9498             break 2
9499           fi
9500         fi
9501       done
9502       ;;
9503     esac
9504   done
9505   IFS="$ac_save_IFS"
9506
9507 fi
9508   if test "${ac_cv_path_install+set}" = set; then
9509     INSTALL="$ac_cv_path_install"
9510   else
9511     # As a last resort, use the slow shell script.  We don't cache a
9512     # path for INSTALL within a source directory, because that will
9513     # break other packages using the cache if that directory is
9514     # removed, or if the path is relative.
9515     INSTALL="$ac_install_sh"
9516   fi
9517 fi
9518 echo "$ac_t""$INSTALL" 1>&6
9519
9520 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9521 # It thinks the first close brace ends the variable substitution.
9522 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9523
9524 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9525
9526 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9527
9528
9529 case ${INSTALL} in
9530   /* ) # Absolute
9531      ;;
9532   ?:* ) # Drive letter, considered as absolute.
9533      ;;
9534   *)
9535      INSTALL=`pwd`/${INSTALL} ;;
9536 esac
9537
9538 case ${host} in
9539     *-hp-hpux* )
9540         INSTALL_DIR="mkdir"
9541         ;;
9542
9543     *)  INSTALL_DIR="$INSTALL -d"
9544         ;;
9545 esac
9546
9547
9548 case "${host}" in
9549
9550                 powerpc-*-darwin* )
9551         INSTALL_PROGRAM="cp -fp"
9552         INSTALL_DATA="cp -fp"
9553         ;;
9554     *)
9555         ;;
9556 esac
9557
9558 # Extract the first word of "strip", so it can be a program name with args.
9559 set dummy strip; ac_word=$2
9560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9561 echo "configure:9562: checking for $ac_word" >&5
9562 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9563   echo $ac_n "(cached) $ac_c" 1>&6
9564 else
9565   if test -n "$STRIP"; then
9566   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9567 else
9568   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9569   ac_dummy="$PATH"
9570   for ac_dir in $ac_dummy; do
9571     test -z "$ac_dir" && ac_dir=.
9572     if test -f $ac_dir/$ac_word; then
9573       ac_cv_prog_STRIP="strip"
9574       break
9575     fi
9576   done
9577   IFS="$ac_save_ifs"
9578   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9579 fi
9580 fi
9581 STRIP="$ac_cv_prog_STRIP"
9582 if test -n "$STRIP"; then
9583   echo "$ac_t""$STRIP" 1>&6
9584 else
9585   echo "$ac_t""no" 1>&6
9586 fi
9587
9588
9589 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9590 echo "configure:9591: checking if make is GNU make" >&5
9591 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9592   echo $ac_n "(cached) $ac_c" 1>&6
9593 else
9594   
9595     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9596             egrep -s GNU > /dev/null); then
9597         wx_cv_prog_makeisgnu="yes"
9598     else
9599         wx_cv_prog_makeisgnu="no"
9600     fi
9601
9602 fi
9603
9604 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9605
9606 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9607     IF_GNU_MAKE=""
9608 else
9609     IF_GNU_MAKE="#"
9610 fi
9611
9612
9613
9614 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9615 echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9616 echo "configure:9617: checking if make supports VPATH" >&5
9617 if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9618   echo $ac_n "(cached) $ac_c" 1>&6
9619 else
9620   
9621 cat - << EOF > confMake
9622 check : file
9623         cp \$? \$@
9624         cp \$? final_file
9625 EOF
9626
9627 if test ! -d sub ; then
9628   mkdir sub
9629 fi
9630 echo dummy > sub/file
9631 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9632 RESULT=$?
9633 rm -f sub/file check final_file confMake
9634 rmdir sub
9635 if test "$RESULT" = 0; then
9636   wx_cv_prog_makevpath="yes"
9637 else
9638   wx_cv_prog_makevpath="no"
9639 fi
9640
9641 fi
9642
9643 echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9644
9645 if test "x$wx_cv_prog_makevpath" != "xyes"; then
9646 { echo "configure: error: 
9647 You need a make-utility that is able to use the variable
9648 VPATH correctly.
9649 If your version of make does not support VPATH correctly,
9650 please install GNU-make (possibly as gmake), and start
9651 configure with the following command:
9652 export MAKE=gmake; ./configure  for sh-type shells
9653 setenv MAKE gmake; ./configure  for csh-type shells
9654 Also please do remember to use gmake in this case every time
9655 you are trying to compile.
9656 " 1>&2; exit 1; }
9657 fi fi 
9658 for ac_prog in 'bison -y' byacc
9659 do
9660 # Extract the first word of "$ac_prog", so it can be a program name with args.
9661 set dummy $ac_prog; ac_word=$2
9662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9663 echo "configure:9664: checking for $ac_word" >&5
9664 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9665   echo $ac_n "(cached) $ac_c" 1>&6
9666 else
9667   if test -n "$YACC"; then
9668   ac_cv_prog_YACC="$YACC" # Let the user override the test.
9669 else
9670   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9671   ac_dummy="$PATH"
9672   for ac_dir in $ac_dummy; do
9673     test -z "$ac_dir" && ac_dir=.
9674     if test -f $ac_dir/$ac_word; then
9675       ac_cv_prog_YACC="$ac_prog"
9676       break
9677     fi
9678   done
9679   IFS="$ac_save_ifs"
9680 fi
9681 fi
9682 YACC="$ac_cv_prog_YACC"
9683 if test -n "$YACC"; then
9684   echo "$ac_t""$YACC" 1>&6
9685 else
9686   echo "$ac_t""no" 1>&6
9687 fi
9688
9689 test -n "$YACC" && break
9690 done
9691 test -n "$YACC" || YACC="yacc"
9692
9693
9694 # Extract the first word of "flex", so it can be a program name with args.
9695 set dummy flex; ac_word=$2
9696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9697 echo "configure:9698: checking for $ac_word" >&5
9698 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9699   echo $ac_n "(cached) $ac_c" 1>&6
9700 else
9701   if test -n "$LEX"; then
9702   ac_cv_prog_LEX="$LEX" # Let the user override the test.
9703 else
9704   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9705   ac_dummy="$PATH"
9706   for ac_dir in $ac_dummy; do
9707     test -z "$ac_dir" && ac_dir=.
9708     if test -f $ac_dir/$ac_word; then
9709       ac_cv_prog_LEX="flex"
9710       break
9711     fi
9712   done
9713   IFS="$ac_save_ifs"
9714   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9715 fi
9716 fi
9717 LEX="$ac_cv_prog_LEX"
9718 if test -n "$LEX"; then
9719   echo "$ac_t""$LEX" 1>&6
9720 else
9721   echo "$ac_t""no" 1>&6
9722 fi
9723
9724 if test -z "$LEXLIB"
9725 then
9726   case "$LEX" in
9727   flex*) ac_lib=fl ;;
9728   *) ac_lib=l ;;
9729   esac
9730   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9731 echo "configure:9732: checking for yywrap in -l$ac_lib" >&5
9732 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9733 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9734   echo $ac_n "(cached) $ac_c" 1>&6
9735 else
9736   ac_save_LIBS="$LIBS"
9737 LIBS="-l$ac_lib  $LIBS"
9738 cat > conftest.$ac_ext <<EOF
9739 #line 9740 "configure"
9740 #include "confdefs.h"
9741 /* Override any gcc2 internal prototype to avoid an error.  */
9742 /* We use char because int might match the return type of a gcc2
9743     builtin and then its argument prototype would still apply.  */
9744 char yywrap();
9745
9746 int main() {
9747 yywrap()
9748 ; return 0; }
9749 EOF
9750 if { (eval echo configure:9751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9751   rm -rf conftest*
9752   eval "ac_cv_lib_$ac_lib_var=yes"
9753 else
9754   echo "configure: failed program was:" >&5
9755   cat conftest.$ac_ext >&5
9756   rm -rf conftest*
9757   eval "ac_cv_lib_$ac_lib_var=no"
9758 fi
9759 rm -f conftest*
9760 LIBS="$ac_save_LIBS"
9761
9762 fi
9763 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9764   echo "$ac_t""yes" 1>&6
9765   LEXLIB="-l$ac_lib"
9766 else
9767   echo "$ac_t""no" 1>&6
9768 fi
9769
9770 fi
9771
9772
9773 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9774 echo "configure:9775: checking whether ln -s works" >&5
9775 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9776   echo $ac_n "(cached) $ac_c" 1>&6
9777 else
9778   rm -f conftestdata
9779 if ln -s X conftestdata 2>/dev/null
9780 then
9781   rm -f conftestdata
9782   ac_cv_prog_LN_S="ln -s"
9783 else
9784   ac_cv_prog_LN_S=ln
9785 fi
9786 fi
9787 LN_S="$ac_cv_prog_LN_S"
9788 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9789   echo "$ac_t""yes" 1>&6
9790 else
9791   echo "$ac_t""no" 1>&6
9792 fi
9793
9794
9795 case "${host}" in
9796   *-pc-os2_emx | *-pc-os2-emx )
9797             LIBS="$LIBS -lstdcpp"
9798       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9799                               echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
9800 echo "configure:9801: checking for drand48 in -lcExt" >&5
9801 ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9802 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9803   echo $ac_n "(cached) $ac_c" 1>&6
9804 else
9805   ac_save_LIBS="$LIBS"
9806 LIBS="-lcExt  $LIBS"
9807 cat > conftest.$ac_ext <<EOF
9808 #line 9809 "configure"
9809 #include "confdefs.h"
9810 /* Override any gcc2 internal prototype to avoid an error.  */
9811 /* We use char because int might match the return type of a gcc2
9812     builtin and then its argument prototype would still apply.  */
9813 char drand48();
9814
9815 int main() {
9816 drand48()
9817 ; return 0; }
9818 EOF
9819 if { (eval echo configure:9820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9820   rm -rf conftest*
9821   eval "ac_cv_lib_$ac_lib_var=yes"
9822 else
9823   echo "configure: failed program was:" >&5
9824   cat conftest.$ac_ext >&5
9825   rm -rf conftest*
9826   eval "ac_cv_lib_$ac_lib_var=no"
9827 fi
9828 rm -f conftest*
9829 LIBS="$ac_save_LIBS"
9830
9831 fi
9832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9833   echo "$ac_t""yes" 1>&6
9834   LIBS="$LIBS -lcExt"
9835 else
9836   echo "$ac_t""no" 1>&6
9837 fi
9838
9839       else
9840                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9841       fi
9842   ;;
9843 esac
9844
9845
9846 if test "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
9847     for ac_hdr in strings.h
9848 do
9849 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9850 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9851 echo "configure:9852: checking for $ac_hdr" >&5
9852 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9853   echo $ac_n "(cached) $ac_c" 1>&6
9854 else
9855   cat > conftest.$ac_ext <<EOF
9856 #line 9857 "configure"
9857 #include "confdefs.h"
9858 #include <$ac_hdr>
9859 EOF
9860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9861 { (eval echo configure:9862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9863 if test -z "$ac_err"; then
9864   rm -rf conftest*
9865   eval "ac_cv_header_$ac_safe=yes"
9866 else
9867   echo "$ac_err" >&5
9868   echo "configure: failed program was:" >&5
9869   cat conftest.$ac_ext >&5
9870   rm -rf conftest*
9871   eval "ac_cv_header_$ac_safe=no"
9872 fi
9873 rm -f conftest*
9874 fi
9875 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9876   echo "$ac_t""yes" 1>&6
9877     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9878   cat >> confdefs.h <<EOF
9879 #define $ac_tr_hdr 1
9880 EOF
9881  
9882 else
9883   echo "$ac_t""no" 1>&6
9884 fi
9885 done
9886
9887 fi
9888
9889 for ac_hdr in stdlib.h
9890 do
9891 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9892 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9893 echo "configure:9894: checking for $ac_hdr" >&5
9894 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9895   echo $ac_n "(cached) $ac_c" 1>&6
9896 else
9897   cat > conftest.$ac_ext <<EOF
9898 #line 9899 "configure"
9899 #include "confdefs.h"
9900 #include <$ac_hdr>
9901 EOF
9902 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9903 { (eval echo configure:9904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9904 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9905 if test -z "$ac_err"; then
9906   rm -rf conftest*
9907   eval "ac_cv_header_$ac_safe=yes"
9908 else
9909   echo "$ac_err" >&5
9910   echo "configure: failed program was:" >&5
9911   cat conftest.$ac_ext >&5
9912   rm -rf conftest*
9913   eval "ac_cv_header_$ac_safe=no"
9914 fi
9915 rm -f conftest*
9916 fi
9917 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9918   echo "$ac_t""yes" 1>&6
9919     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9920   cat >> confdefs.h <<EOF
9921 #define $ac_tr_hdr 1
9922 EOF
9923  
9924 else
9925   echo "$ac_t""no" 1>&6
9926 fi
9927 done
9928
9929 for ac_hdr in malloc.h
9930 do
9931 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9932 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9933 echo "configure:9934: checking for $ac_hdr" >&5
9934 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9935   echo $ac_n "(cached) $ac_c" 1>&6
9936 else
9937   cat > conftest.$ac_ext <<EOF
9938 #line 9939 "configure"
9939 #include "confdefs.h"
9940 #include <$ac_hdr>
9941 EOF
9942 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9943 { (eval echo configure:9944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9944 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9945 if test -z "$ac_err"; then
9946   rm -rf conftest*
9947   eval "ac_cv_header_$ac_safe=yes"
9948 else
9949   echo "$ac_err" >&5
9950   echo "configure: failed program was:" >&5
9951   cat conftest.$ac_ext >&5
9952   rm -rf conftest*
9953   eval "ac_cv_header_$ac_safe=no"
9954 fi
9955 rm -f conftest*
9956 fi
9957 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9958   echo "$ac_t""yes" 1>&6
9959     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9960   cat >> confdefs.h <<EOF
9961 #define $ac_tr_hdr 1
9962 EOF
9963  
9964 else
9965   echo "$ac_t""no" 1>&6
9966 fi
9967 done
9968
9969 for ac_hdr in unistd.h
9970 do
9971 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9972 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9973 echo "configure:9974: checking for $ac_hdr" >&5
9974 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9975   echo $ac_n "(cached) $ac_c" 1>&6
9976 else
9977   cat > conftest.$ac_ext <<EOF
9978 #line 9979 "configure"
9979 #include "confdefs.h"
9980 #include <$ac_hdr>
9981 EOF
9982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9983 { (eval echo configure:9984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9985 if test -z "$ac_err"; then
9986   rm -rf conftest*
9987   eval "ac_cv_header_$ac_safe=yes"
9988 else
9989   echo "$ac_err" >&5
9990   echo "configure: failed program was:" >&5
9991   cat conftest.$ac_ext >&5
9992   rm -rf conftest*
9993   eval "ac_cv_header_$ac_safe=no"
9994 fi
9995 rm -f conftest*
9996 fi
9997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9998   echo "$ac_t""yes" 1>&6
9999     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10000   cat >> confdefs.h <<EOF
10001 #define $ac_tr_hdr 1
10002 EOF
10003  
10004 else
10005   echo "$ac_t""no" 1>&6
10006 fi
10007 done
10008
10009 for ac_hdr in wchar.h
10010 do
10011 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10012 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10013 echo "configure:10014: checking for $ac_hdr" >&5
10014 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10015   echo $ac_n "(cached) $ac_c" 1>&6
10016 else
10017   cat > conftest.$ac_ext <<EOF
10018 #line 10019 "configure"
10019 #include "confdefs.h"
10020 #include <$ac_hdr>
10021 EOF
10022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10023 { (eval echo configure:10024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10025 if test -z "$ac_err"; then
10026   rm -rf conftest*
10027   eval "ac_cv_header_$ac_safe=yes"
10028 else
10029   echo "$ac_err" >&5
10030   echo "configure: failed program was:" >&5
10031   cat conftest.$ac_ext >&5
10032   rm -rf conftest*
10033   eval "ac_cv_header_$ac_safe=no"
10034 fi
10035 rm -f conftest*
10036 fi
10037 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10038   echo "$ac_t""yes" 1>&6
10039     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10040   cat >> confdefs.h <<EOF
10041 #define $ac_tr_hdr 1
10042 EOF
10043  
10044 else
10045   echo "$ac_t""no" 1>&6
10046 fi
10047 done
10048
10049
10050 if test "$ac_cv_header_wchar_h" != "yes"; then
10051         for ac_hdr in wcstr.h
10052 do
10053 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10054 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10055 echo "configure:10056: checking for $ac_hdr" >&5
10056 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10057   echo $ac_n "(cached) $ac_c" 1>&6
10058 else
10059   cat > conftest.$ac_ext <<EOF
10060 #line 10061 "configure"
10061 #include "confdefs.h"
10062 #include <$ac_hdr>
10063 EOF
10064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10065 { (eval echo configure:10066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10067 if test -z "$ac_err"; then
10068   rm -rf conftest*
10069   eval "ac_cv_header_$ac_safe=yes"
10070 else
10071   echo "$ac_err" >&5
10072   echo "configure: failed program was:" >&5
10073   cat conftest.$ac_ext >&5
10074   rm -rf conftest*
10075   eval "ac_cv_header_$ac_safe=no"
10076 fi
10077 rm -f conftest*
10078 fi
10079 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10080   echo "$ac_t""yes" 1>&6
10081     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10082   cat >> confdefs.h <<EOF
10083 #define $ac_tr_hdr 1
10084 EOF
10085  
10086 else
10087   echo "$ac_t""no" 1>&6
10088 fi
10089 done
10090
10091 fi
10092
10093 for ac_hdr in fnmatch.h
10094 do
10095 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10096 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10097 echo "configure:10098: checking for $ac_hdr" >&5
10098 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10099   echo $ac_n "(cached) $ac_c" 1>&6
10100 else
10101   cat > conftest.$ac_ext <<EOF
10102 #line 10103 "configure"
10103 #include "confdefs.h"
10104 #include <$ac_hdr>
10105 EOF
10106 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10107 { (eval echo configure:10108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10108 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10109 if test -z "$ac_err"; then
10110   rm -rf conftest*
10111   eval "ac_cv_header_$ac_safe=yes"
10112 else
10113   echo "$ac_err" >&5
10114   echo "configure: failed program was:" >&5
10115   cat conftest.$ac_ext >&5
10116   rm -rf conftest*
10117   eval "ac_cv_header_$ac_safe=no"
10118 fi
10119 rm -f conftest*
10120 fi
10121 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10122   echo "$ac_t""yes" 1>&6
10123     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10124   cat >> confdefs.h <<EOF
10125 #define $ac_tr_hdr 1
10126 EOF
10127  
10128 else
10129   echo "$ac_t""no" 1>&6
10130 fi
10131 done
10132
10133
10134 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10135     for ac_func in fnmatch
10136 do
10137 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10138 echo "configure:10139: checking for $ac_func" >&5
10139 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10140   echo $ac_n "(cached) $ac_c" 1>&6
10141 else
10142   cat > conftest.$ac_ext <<EOF
10143 #line 10144 "configure"
10144 #include "confdefs.h"
10145 /* System header to define __stub macros and hopefully few prototypes,
10146     which can conflict with char $ac_func(); below.  */
10147 #include <assert.h>
10148 /* Override any gcc2 internal prototype to avoid an error.  */
10149 /* We use char because int might match the return type of a gcc2
10150     builtin and then its argument prototype would still apply.  */
10151 char $ac_func();
10152
10153 int main() {
10154
10155 /* The GNU C library defines this for functions which it implements
10156     to always fail with ENOSYS.  Some functions are actually named
10157     something starting with __ and the normal name is an alias.  */
10158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10159 choke me
10160 #else
10161 $ac_func();
10162 #endif
10163
10164 ; return 0; }
10165 EOF
10166 if { (eval echo configure:10167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10167   rm -rf conftest*
10168   eval "ac_cv_func_$ac_func=yes"
10169 else
10170   echo "configure: failed program was:" >&5
10171   cat conftest.$ac_ext >&5
10172   rm -rf conftest*
10173   eval "ac_cv_func_$ac_func=no"
10174 fi
10175 rm -f conftest*
10176 fi
10177
10178 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10179   echo "$ac_t""yes" 1>&6
10180     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10181   cat >> confdefs.h <<EOF
10182 #define $ac_tr_func 1
10183 EOF
10184  
10185 else
10186   echo "$ac_t""no" 1>&6
10187 fi
10188 done
10189
10190 fi
10191
10192 for ac_hdr in langinfo.h
10193 do
10194 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10195 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10196 echo "configure:10197: checking for $ac_hdr" >&5
10197 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10198   echo $ac_n "(cached) $ac_c" 1>&6
10199 else
10200   cat > conftest.$ac_ext <<EOF
10201 #line 10202 "configure"
10202 #include "confdefs.h"
10203 #include <$ac_hdr>
10204 EOF
10205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10206 { (eval echo configure:10207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10208 if test -z "$ac_err"; then
10209   rm -rf conftest*
10210   eval "ac_cv_header_$ac_safe=yes"
10211 else
10212   echo "$ac_err" >&5
10213   echo "configure: failed program was:" >&5
10214   cat conftest.$ac_ext >&5
10215   rm -rf conftest*
10216   eval "ac_cv_header_$ac_safe=no"
10217 fi
10218 rm -f conftest*
10219 fi
10220 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10221   echo "$ac_t""yes" 1>&6
10222     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10223   cat >> confdefs.h <<EOF
10224 #define $ac_tr_hdr 1
10225 EOF
10226  
10227 else
10228   echo "$ac_t""no" 1>&6
10229 fi
10230 done
10231
10232
10233 case "${host}" in
10234   *-pc-os2_emx | *-pc-os2-emx )
10235             if test $ac_cv_header_langinfo_h = "yes"; then
10236           LIBS="$LIBS -lintl"
10237       fi
10238   ;;
10239 esac
10240
10241 if test "$wxUSE_GUI" = "yes"; then
10242     if test "$wxUSE_UNIX" = "yes"; then
10243                 for ac_hdr in X11/XKBlib.h
10244 do
10245 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10246 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10247 echo "configure:10248: checking for $ac_hdr" >&5
10248 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10249   echo $ac_n "(cached) $ac_c" 1>&6
10250 else
10251   cat > conftest.$ac_ext <<EOF
10252 #line 10253 "configure"
10253 #include "confdefs.h"
10254 #include <$ac_hdr>
10255 EOF
10256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10257 { (eval echo configure:10258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10259 if test -z "$ac_err"; then
10260   rm -rf conftest*
10261   eval "ac_cv_header_$ac_safe=yes"
10262 else
10263   echo "$ac_err" >&5
10264   echo "configure: failed program was:" >&5
10265   cat conftest.$ac_ext >&5
10266   rm -rf conftest*
10267   eval "ac_cv_header_$ac_safe=no"
10268 fi
10269 rm -f conftest*
10270 fi
10271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10272   echo "$ac_t""yes" 1>&6
10273     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10274   cat >> confdefs.h <<EOF
10275 #define $ac_tr_hdr 1
10276 EOF
10277  
10278 else
10279   echo "$ac_t""no" 1>&6
10280 fi
10281 done
10282
10283     fi
10284 fi
10285
10286
10287 echo $ac_n "checking for working const""... $ac_c" 1>&6
10288 echo "configure:10289: checking for working const" >&5
10289 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10290   echo $ac_n "(cached) $ac_c" 1>&6
10291 else
10292   cat > conftest.$ac_ext <<EOF
10293 #line 10294 "configure"
10294 #include "confdefs.h"
10295
10296 int main() {
10297
10298 /* Ultrix mips cc rejects this.  */
10299 typedef int charset[2]; const charset x;
10300 /* SunOS 4.1.1 cc rejects this.  */
10301 char const *const *ccp;
10302 char **p;
10303 /* NEC SVR4.0.2 mips cc rejects this.  */
10304 struct point {int x, y;};
10305 static struct point const zero = {0,0};
10306 /* AIX XL C 1.02.0.0 rejects this.
10307    It does not let you subtract one const X* pointer from another in an arm
10308    of an if-expression whose if-part is not a constant expression */
10309 const char *g = "string";
10310 ccp = &g + (g ? g-g : 0);
10311 /* HPUX 7.0 cc rejects these. */
10312 ++ccp;
10313 p = (char**) ccp;
10314 ccp = (char const *const *) p;
10315 { /* SCO 3.2v4 cc rejects this.  */
10316   char *t;
10317   char const *s = 0 ? (char *) 0 : (char const *) 0;
10318
10319   *t++ = 0;
10320 }
10321 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10322   int x[] = {25, 17};
10323   const int *foo = &x[0];
10324   ++foo;
10325 }
10326 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10327   typedef const int *iptr;
10328   iptr p = 0;
10329   ++p;
10330 }
10331 { /* AIX XL C 1.02.0.0 rejects this saying
10332      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10333   struct s { int j; const int *ap[3]; };
10334   struct s *b; b->j = 5;
10335 }
10336 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10337   const int foo = 10;
10338 }
10339
10340 ; return 0; }
10341 EOF
10342 if { (eval echo configure:10343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10343   rm -rf conftest*
10344   ac_cv_c_const=yes
10345 else
10346   echo "configure: failed program was:" >&5
10347   cat conftest.$ac_ext >&5
10348   rm -rf conftest*
10349   ac_cv_c_const=no
10350 fi
10351 rm -f conftest*
10352 fi
10353
10354 echo "$ac_t""$ac_cv_c_const" 1>&6
10355 if test $ac_cv_c_const = no; then
10356   cat >> confdefs.h <<\EOF
10357 #define const 
10358 EOF
10359
10360 fi
10361
10362 echo $ac_n "checking for inline""... $ac_c" 1>&6
10363 echo "configure:10364: checking for inline" >&5
10364 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10365   echo $ac_n "(cached) $ac_c" 1>&6
10366 else
10367   ac_cv_c_inline=no
10368 for ac_kw in inline __inline__ __inline; do
10369   cat > conftest.$ac_ext <<EOF
10370 #line 10371 "configure"
10371 #include "confdefs.h"
10372
10373 int main() {
10374 } $ac_kw foo() {
10375 ; return 0; }
10376 EOF
10377 if { (eval echo configure:10378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10378   rm -rf conftest*
10379   ac_cv_c_inline=$ac_kw; break
10380 else
10381   echo "configure: failed program was:" >&5
10382   cat conftest.$ac_ext >&5
10383 fi
10384 rm -f conftest*
10385 done
10386
10387 fi
10388
10389 echo "$ac_t""$ac_cv_c_inline" 1>&6
10390 case "$ac_cv_c_inline" in
10391   inline | yes) ;;
10392   no) cat >> confdefs.h <<\EOF
10393 #define inline 
10394 EOF
10395  ;;
10396   *)  cat >> confdefs.h <<EOF
10397 #define inline $ac_cv_c_inline
10398 EOF
10399  ;;
10400 esac
10401
10402
10403 echo $ac_n "checking size of char""... $ac_c" 1>&6
10404 echo "configure:10405: checking size of char" >&5
10405 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10406   echo $ac_n "(cached) $ac_c" 1>&6
10407 else
10408   if test "$cross_compiling" = yes; then
10409   ac_cv_sizeof_char=1
10410 else
10411   cat > conftest.$ac_ext <<EOF
10412 #line 10413 "configure"
10413 #include "confdefs.h"
10414 #include <stdio.h>
10415 main()
10416 {
10417   FILE *f=fopen("conftestval", "w");
10418   if (!f) exit(1);
10419   fprintf(f, "%d\n", sizeof(char));
10420   exit(0);
10421 }
10422 EOF
10423 if { (eval echo configure:10424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10424 then
10425   ac_cv_sizeof_char=`cat conftestval`
10426 else
10427   echo "configure: failed program was:" >&5
10428   cat conftest.$ac_ext >&5
10429   rm -fr conftest*
10430   ac_cv_sizeof_char=0
10431 fi
10432 rm -fr conftest*
10433 fi
10434
10435 fi
10436 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10437 cat >> confdefs.h <<EOF
10438 #define SIZEOF_CHAR $ac_cv_sizeof_char
10439 EOF
10440
10441
10442 echo $ac_n "checking size of short""... $ac_c" 1>&6
10443 echo "configure:10444: checking size of short" >&5
10444 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10445   echo $ac_n "(cached) $ac_c" 1>&6
10446 else
10447   if test "$cross_compiling" = yes; then
10448   ac_cv_sizeof_short=2
10449 else
10450   cat > conftest.$ac_ext <<EOF
10451 #line 10452 "configure"
10452 #include "confdefs.h"
10453 #include <stdio.h>
10454 main()
10455 {
10456   FILE *f=fopen("conftestval", "w");
10457   if (!f) exit(1);
10458   fprintf(f, "%d\n", sizeof(short));
10459   exit(0);
10460 }
10461 EOF
10462 if { (eval echo configure:10463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10463 then
10464   ac_cv_sizeof_short=`cat conftestval`
10465 else
10466   echo "configure: failed program was:" >&5
10467   cat conftest.$ac_ext >&5
10468   rm -fr conftest*
10469   ac_cv_sizeof_short=0
10470 fi
10471 rm -fr conftest*
10472 fi
10473
10474 fi
10475 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10476 cat >> confdefs.h <<EOF
10477 #define SIZEOF_SHORT $ac_cv_sizeof_short
10478 EOF
10479
10480
10481 echo $ac_n "checking size of void *""... $ac_c" 1>&6
10482 echo "configure:10483: checking size of void *" >&5
10483 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10484   echo $ac_n "(cached) $ac_c" 1>&6
10485 else
10486   if test "$cross_compiling" = yes; then
10487   ac_cv_sizeof_void_p=4
10488 else
10489   cat > conftest.$ac_ext <<EOF
10490 #line 10491 "configure"
10491 #include "confdefs.h"
10492 #include <stdio.h>
10493 main()
10494 {
10495   FILE *f=fopen("conftestval", "w");
10496   if (!f) exit(1);
10497   fprintf(f, "%d\n", sizeof(void *));
10498   exit(0);
10499 }
10500 EOF
10501 if { (eval echo configure:10502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10502 then
10503   ac_cv_sizeof_void_p=`cat conftestval`
10504 else
10505   echo "configure: failed program was:" >&5
10506   cat conftest.$ac_ext >&5
10507   rm -fr conftest*
10508   ac_cv_sizeof_void_p=0
10509 fi
10510 rm -fr conftest*
10511 fi
10512
10513 fi
10514 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10515 cat >> confdefs.h <<EOF
10516 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10517 EOF
10518
10519
10520 echo $ac_n "checking size of int""... $ac_c" 1>&6
10521 echo "configure:10522: checking size of int" >&5
10522 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10523   echo $ac_n "(cached) $ac_c" 1>&6
10524 else
10525   if test "$cross_compiling" = yes; then
10526   ac_cv_sizeof_int=4
10527 else
10528   cat > conftest.$ac_ext <<EOF
10529 #line 10530 "configure"
10530 #include "confdefs.h"
10531 #include <stdio.h>
10532 main()
10533 {
10534   FILE *f=fopen("conftestval", "w");
10535   if (!f) exit(1);
10536   fprintf(f, "%d\n", sizeof(int));
10537   exit(0);
10538 }
10539 EOF
10540 if { (eval echo configure:10541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10541 then
10542   ac_cv_sizeof_int=`cat conftestval`
10543 else
10544   echo "configure: failed program was:" >&5
10545   cat conftest.$ac_ext >&5
10546   rm -fr conftest*
10547   ac_cv_sizeof_int=0
10548 fi
10549 rm -fr conftest*
10550 fi
10551
10552 fi
10553 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10554 cat >> confdefs.h <<EOF
10555 #define SIZEOF_INT $ac_cv_sizeof_int
10556 EOF
10557
10558
10559 echo $ac_n "checking size of long""... $ac_c" 1>&6
10560 echo "configure:10561: checking size of long" >&5
10561 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10562   echo $ac_n "(cached) $ac_c" 1>&6
10563 else
10564   if test "$cross_compiling" = yes; then
10565   ac_cv_sizeof_long=4
10566 else
10567   cat > conftest.$ac_ext <<EOF
10568 #line 10569 "configure"
10569 #include "confdefs.h"
10570 #include <stdio.h>
10571 main()
10572 {
10573   FILE *f=fopen("conftestval", "w");
10574   if (!f) exit(1);
10575   fprintf(f, "%d\n", sizeof(long));
10576   exit(0);
10577 }
10578 EOF
10579 if { (eval echo configure:10580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10580 then
10581   ac_cv_sizeof_long=`cat conftestval`
10582 else
10583   echo "configure: failed program was:" >&5
10584   cat conftest.$ac_ext >&5
10585   rm -fr conftest*
10586   ac_cv_sizeof_long=0
10587 fi
10588 rm -fr conftest*
10589 fi
10590
10591 fi
10592 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10593 cat >> confdefs.h <<EOF
10594 #define SIZEOF_LONG $ac_cv_sizeof_long
10595 EOF
10596
10597
10598
10599 case "${host}" in
10600     arm-*-linux* )
10601         echo $ac_n "checking size of long long""... $ac_c" 1>&6
10602 echo "configure:10603: checking size of long long" >&5
10603 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10604   echo $ac_n "(cached) $ac_c" 1>&6
10605 else
10606   if test "$cross_compiling" = yes; then
10607   ac_cv_sizeof_long_long=8
10608 else
10609   cat > conftest.$ac_ext <<EOF
10610 #line 10611 "configure"
10611 #include "confdefs.h"
10612 #include <stdio.h>
10613 main()
10614 {
10615   FILE *f=fopen("conftestval", "w");
10616   if (!f) exit(1);
10617   fprintf(f, "%d\n", sizeof(long long));
10618   exit(0);
10619 }
10620 EOF
10621 if { (eval echo configure:10622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10622 then
10623   ac_cv_sizeof_long_long=`cat conftestval`
10624 else
10625   echo "configure: failed program was:" >&5
10626   cat conftest.$ac_ext >&5
10627   rm -fr conftest*
10628   ac_cv_sizeof_long_long=0
10629 fi
10630 rm -fr conftest*
10631 fi
10632
10633 fi
10634 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10635 cat >> confdefs.h <<EOF
10636 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10637 EOF
10638
10639
10640     ;;
10641     *-hp-hpux* )
10642         echo $ac_n "checking size of long long""... $ac_c" 1>&6
10643 echo "configure:10644: checking size of long long" >&5
10644 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10645   echo $ac_n "(cached) $ac_c" 1>&6
10646 else
10647   if test "$cross_compiling" = yes; then
10648   ac_cv_sizeof_long_long=0
10649 else
10650   cat > conftest.$ac_ext <<EOF
10651 #line 10652 "configure"
10652 #include "confdefs.h"
10653 #include <stdio.h>
10654 main()
10655 {
10656   FILE *f=fopen("conftestval", "w");
10657   if (!f) exit(1);
10658   fprintf(f, "%d\n", sizeof(long long));
10659   exit(0);
10660 }
10661 EOF
10662 if { (eval echo configure:10663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10663 then
10664   ac_cv_sizeof_long_long=`cat conftestval`
10665 else
10666   echo "configure: failed program was:" >&5
10667   cat conftest.$ac_ext >&5
10668   rm -fr conftest*
10669   ac_cv_sizeof_long_long=0
10670 fi
10671 rm -fr conftest*
10672 fi
10673
10674 fi
10675 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10676 cat >> confdefs.h <<EOF
10677 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10678 EOF
10679
10680
10681         if test "$ac_cv_sizeof_long_long" != "0"; then
10682                         CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10683         fi
10684     ;;
10685     * )
10686         echo $ac_n "checking size of long long""... $ac_c" 1>&6
10687 echo "configure:10688: checking size of long long" >&5
10688 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10689   echo $ac_n "(cached) $ac_c" 1>&6
10690 else
10691   if test "$cross_compiling" = yes; then
10692   ac_cv_sizeof_long_long=0
10693 else
10694   cat > conftest.$ac_ext <<EOF
10695 #line 10696 "configure"
10696 #include "confdefs.h"
10697 #include <stdio.h>
10698 main()
10699 {
10700   FILE *f=fopen("conftestval", "w");
10701   if (!f) exit(1);
10702   fprintf(f, "%d\n", sizeof(long long));
10703   exit(0);
10704 }
10705 EOF
10706 if { (eval echo configure:10707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10707 then
10708   ac_cv_sizeof_long_long=`cat conftestval`
10709 else
10710   echo "configure: failed program was:" >&5
10711   cat conftest.$ac_ext >&5
10712   rm -fr conftest*
10713   ac_cv_sizeof_long_long=0
10714 fi
10715 rm -fr conftest*
10716 fi
10717
10718 fi
10719 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10720 cat >> confdefs.h <<EOF
10721 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10722 EOF
10723
10724
10725 esac
10726
10727 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10728 echo "configure:10729: checking size of wchar_t" >&5
10729 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10730   echo $ac_n "(cached) $ac_c" 1>&6
10731 else
10732   
10733     if test "$cross_compiling" = yes; then
10734   
10735             case "${host}" in
10736               *-pc-msdosdjgpp )
10737                 wx_cv_sizeof_wchar_t=0
10738                 ;;
10739               * )
10740                 wx_cv_sizeof_wchar_t=4
10741                 ;;
10742             esac
10743         
10744     
10745 else
10746   cat > conftest.$ac_ext <<EOF
10747 #line 10748 "configure"
10748 #include "confdefs.h"
10749
10750             /* DJGPP only has fake wchar_t: */
10751             #ifdef __DJGPP__
10752             #  error "fake wchar_t"
10753             #endif
10754             #ifdef HAVE_WCHAR_H
10755             #  ifdef __CYGWIN__
10756             #    include <stddef.h>
10757             #  endif
10758             #  include <wchar.h>
10759             #endif
10760             #ifdef HAVE_STDLIB_H
10761             #  include <stdlib.h>
10762             #endif
10763             #include <stdio.h>
10764             int main()
10765             {
10766                 FILE *f=fopen("conftestval", "w");
10767                 if (!f) exit(1);
10768                 fprintf(f, "%i", sizeof(wchar_t));
10769                 exit(0);
10770             }
10771         
10772 EOF
10773 if { (eval echo configure:10774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10774 then
10775   wx_cv_sizeof_wchar_t=`cat conftestval`
10776 else
10777   echo "configure: failed program was:" >&5
10778   cat conftest.$ac_ext >&5
10779   rm -fr conftest*
10780   wx_cv_sizeof_wchar_t=0
10781 fi
10782 rm -fr conftest*
10783 fi
10784
10785
10786 fi
10787
10788 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10789
10790 cat >> confdefs.h <<EOF
10791 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10792 EOF
10793
10794
10795 # Check whether --enable-largefile or --disable-largefile was given.
10796 if test "${enable_largefile+set}" = set; then
10797   enableval="$enable_largefile"
10798   :
10799 fi
10800
10801 if test "$enable_largefile" != no; then
10802             wx_largefile=no
10803     
10804     echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10805 echo "configure:10806: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10806 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10807   echo $ac_n "(cached) $ac_c" 1>&6
10808 else
10809   
10810           cat > conftest.$ac_ext <<EOF
10811 #line 10812 "configure"
10812 #include "confdefs.h"
10813 #define _FILE_OFFSET_BITS 64
10814                           #include <sys/types.h>
10815 int main() {
10816 typedef struct {
10817     unsigned int field: sizeof(off_t) == 8;
10818 } wxlf;
10819
10820 ; return 0; }
10821 EOF
10822 if { (eval echo configure:10823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10823   rm -rf conftest*
10824   ac_cv_sys_file_offset_bits=64
10825 else
10826   echo "configure: failed program was:" >&5
10827   cat conftest.$ac_ext >&5
10828   rm -rf conftest*
10829   ac_cv_sys_file_offset_bits=no
10830 fi
10831 rm -f conftest*
10832         
10833     
10834 fi
10835
10836 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10837
10838     if test "$ac_cv_sys_file_offset_bits" != no; then
10839         wx_largefile=yes
10840         cat >> confdefs.h <<EOF
10841 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10842 EOF
10843
10844     fi
10845
10846     if test "x$wx_largefile" != "xyes"; then
10847         
10848     echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10849 echo "configure:10850: checking for _LARGE_FILES value needed for large files" >&5
10850 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10851   echo $ac_n "(cached) $ac_c" 1>&6
10852 else
10853   
10854           cat > conftest.$ac_ext <<EOF
10855 #line 10856 "configure"
10856 #include "confdefs.h"
10857 #define _LARGE_FILES 1
10858                           #include <sys/types.h>
10859 int main() {
10860 typedef struct {
10861     unsigned int field: sizeof(off_t) == 8;
10862 } wxlf;
10863
10864 ; return 0; }
10865 EOF
10866 if { (eval echo configure:10867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10867   rm -rf conftest*
10868   ac_cv_sys_large_files=1
10869 else
10870   echo "configure: failed program was:" >&5
10871   cat conftest.$ac_ext >&5
10872   rm -rf conftest*
10873   ac_cv_sys_large_files=no
10874 fi
10875 rm -f conftest*
10876         
10877     
10878 fi
10879
10880 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10881
10882     if test "$ac_cv_sys_large_files" != no; then
10883         wx_largefile=yes
10884         cat >> confdefs.h <<EOF
10885 #define _LARGE_FILES $ac_cv_sys_large_files
10886 EOF
10887
10888     fi
10889
10890     fi
10891
10892     echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10893 echo "configure:10894: checking if large file support is available" >&5
10894     if test "x$wx_largefile" = "xyes"; then
10895         cat >> confdefs.h <<\EOF
10896 #define HAVE_LARGEFILE_SUPPORT 1
10897 EOF
10898
10899     fi
10900     echo "$ac_t""$wx_largefile" 1>&6
10901 fi
10902
10903
10904 if test "x$wx_largefile" = "xyes"; then
10905     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10906         WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
10907     else
10908         WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
10909     fi
10910     CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
10911 fi
10912
10913 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10914 echo "configure:10915: checking whether byte ordering is bigendian" >&5
10915 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10916   echo $ac_n "(cached) $ac_c" 1>&6
10917 else
10918   ac_cv_c_bigendian=unknown
10919 # See if sys/param.h defines the BYTE_ORDER macro.
10920 cat > conftest.$ac_ext <<EOF
10921 #line 10922 "configure"
10922 #include "confdefs.h"
10923 #include <sys/types.h>
10924 #include <sys/param.h>
10925 int main() {
10926
10927 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10928  bogus endian macros
10929 #endif
10930 ; return 0; }
10931 EOF
10932 if { (eval echo configure:10933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10933   rm -rf conftest*
10934   # It does; now see whether it defined to BIG_ENDIAN or not.
10935 cat > conftest.$ac_ext <<EOF
10936 #line 10937 "configure"
10937 #include "confdefs.h"
10938 #include <sys/types.h>
10939 #include <sys/param.h>
10940 int main() {
10941
10942 #if BYTE_ORDER != BIG_ENDIAN
10943  not big endian
10944 #endif
10945 ; return 0; }
10946 EOF
10947 if { (eval echo configure:10948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10948   rm -rf conftest*
10949   ac_cv_c_bigendian=yes
10950 else
10951   echo "configure: failed program was:" >&5
10952   cat conftest.$ac_ext >&5
10953   rm -rf conftest*
10954   ac_cv_c_bigendian=no
10955 fi
10956 rm -f conftest*
10957 else
10958   echo "configure: failed program was:" >&5
10959   cat conftest.$ac_ext >&5
10960 fi
10961 rm -f conftest*
10962 if test $ac_cv_c_bigendian = unknown; then
10963 if test "$cross_compiling" = yes; then
10964   ac_cv_c_bigendian=unknown
10965 else
10966   cat > conftest.$ac_ext <<EOF
10967 #line 10968 "configure"
10968 #include "confdefs.h"
10969 main () {
10970   /* Are we little or big endian?  From Harbison&Steele.  */
10971   union
10972   {
10973     long l;
10974     char c[sizeof (long)];
10975   } u;
10976   u.l = 1;
10977   exit (u.c[sizeof (long) - 1] == 1);
10978 }
10979 EOF
10980 if { (eval echo configure:10981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10981 then
10982   ac_cv_c_bigendian=no
10983 else
10984   echo "configure: failed program was:" >&5
10985   cat conftest.$ac_ext >&5
10986   rm -fr conftest*
10987   ac_cv_c_bigendian=yes
10988 fi
10989 rm -fr conftest*
10990 fi
10991
10992 fi
10993 fi
10994
10995 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10996 if test $ac_cv_c_bigendian = unknown; then
10997   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
10998 fi
10999 if test $ac_cv_c_bigendian = yes; then
11000   cat >> confdefs.h <<\EOF
11001 #define WORDS_BIGENDIAN 1
11002 EOF
11003
11004 fi
11005
11006
11007 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
11008 echo "configure:11009: checking how to run the C++ preprocessor" >&5
11009 if test -z "$CXXCPP"; then
11010 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
11011   echo $ac_n "(cached) $ac_c" 1>&6
11012 else
11013   ac_ext=C
11014 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11015 ac_cpp='$CXXCPP $CPPFLAGS'
11016 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11017 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11018 cross_compiling=$ac_cv_prog_cxx_cross
11019   CXXCPP="${CXX-g++} -E"
11020   cat > conftest.$ac_ext <<EOF
11021 #line 11022 "configure"
11022 #include "confdefs.h"
11023 #include <stdlib.h>
11024 EOF
11025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11026 { (eval echo configure:11027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11028 if test -z "$ac_err"; then
11029   :
11030 else
11031   echo "$ac_err" >&5
11032   echo "configure: failed program was:" >&5
11033   cat conftest.$ac_ext >&5
11034   rm -rf conftest*
11035   CXXCPP=/lib/cpp
11036 fi
11037 rm -f conftest*
11038   ac_cv_prog_CXXCPP="$CXXCPP"
11039 ac_ext=C
11040 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11041 ac_cpp='$CXXCPP $CPPFLAGS'
11042 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11043 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11044 cross_compiling=$ac_cv_prog_cxx_cross
11045 fi
11046 fi
11047 CXXCPP="$ac_cv_prog_CXXCPP"
11048 echo "$ac_t""$CXXCPP" 1>&6
11049
11050
11051   if test "$cross_compiling" = "yes"; then
11052     cat >> confdefs.h <<\EOF
11053 #define wxUSE_IOSTREAMH 1
11054 EOF
11055
11056   else
11057     
11058     ac_ext=C
11059 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11060 ac_cpp='$CXXCPP $CPPFLAGS'
11061 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11062 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11063 cross_compiling=$ac_cv_prog_cxx_cross
11064
11065
11066     for ac_hdr in iostream
11067 do
11068 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11069 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11070 echo "configure:11071: checking for $ac_hdr" >&5
11071 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11072   echo $ac_n "(cached) $ac_c" 1>&6
11073 else
11074   cat > conftest.$ac_ext <<EOF
11075 #line 11076 "configure"
11076 #include "confdefs.h"
11077 #include <$ac_hdr>
11078 EOF
11079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11080 { (eval echo configure:11081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11082 if test -z "$ac_err"; then
11083   rm -rf conftest*
11084   eval "ac_cv_header_$ac_safe=yes"
11085 else
11086   echo "$ac_err" >&5
11087   echo "configure: failed program was:" >&5
11088   cat conftest.$ac_ext >&5
11089   rm -rf conftest*
11090   eval "ac_cv_header_$ac_safe=no"
11091 fi
11092 rm -f conftest*
11093 fi
11094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11095   echo "$ac_t""yes" 1>&6
11096     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11097   cat >> confdefs.h <<EOF
11098 #define $ac_tr_hdr 1
11099 EOF
11100  
11101 else
11102   echo "$ac_t""no" 1>&6
11103 fi
11104 done
11105
11106
11107     if test "$ac_cv_header_iostream" = "yes" ; then
11108       :
11109     else
11110       cat >> confdefs.h <<\EOF
11111 #define wxUSE_IOSTREAMH 1
11112 EOF
11113
11114     fi
11115
11116     ac_ext=c
11117 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11118 ac_cpp='$CPP $CPPFLAGS'
11119 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11120 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11121 cross_compiling=$ac_cv_prog_cc_cross
11122
11123   fi
11124
11125
11126
11127   echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
11128 echo "configure:11129: checking if C++ compiler supports bool" >&5
11129 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11130   echo $ac_n "(cached) $ac_c" 1>&6
11131 else
11132   
11133     
11134     ac_ext=C
11135 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11136 ac_cpp='$CXXCPP $CPPFLAGS'
11137 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11138 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11139 cross_compiling=$ac_cv_prog_cxx_cross
11140
11141
11142     cat > conftest.$ac_ext <<EOF
11143 #line 11144 "configure"
11144 #include "confdefs.h"
11145
11146       
11147 int main() {
11148
11149         bool b = true;
11150
11151         return 0;
11152       
11153 ; return 0; }
11154 EOF
11155 if { (eval echo configure:11156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11156   rm -rf conftest*
11157   
11158         wx_cv_cpp_bool=yes
11159       
11160 else
11161   echo "configure: failed program was:" >&5
11162   cat conftest.$ac_ext >&5
11163   rm -rf conftest*
11164   
11165         wx_cv_cpp_bool=no
11166       
11167     
11168 fi
11169 rm -f conftest*
11170
11171     ac_ext=c
11172 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11173 ac_cpp='$CPP $CPPFLAGS'
11174 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11175 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11176 cross_compiling=$ac_cv_prog_cc_cross
11177
11178   
11179 fi
11180
11181 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
11182
11183   if test "$wx_cv_cpp_bool" = "yes"; then
11184     cat >> confdefs.h <<\EOF
11185 #define HAVE_BOOL 1
11186 EOF
11187
11188   fi
11189
11190
11191
11192   echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
11193 echo "configure:11194: checking if C++ compiler supports the explicit keyword" >&5
11194 if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11195   echo $ac_n "(cached) $ac_c" 1>&6
11196 else
11197   
11198     
11199     ac_ext=C
11200 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11201 ac_cpp='$CXXCPP $CPPFLAGS'
11202 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11203 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11204 cross_compiling=$ac_cv_prog_cxx_cross
11205
11206
11207             cat > conftest.$ac_ext <<EOF
11208 #line 11209 "configure"
11209 #include "confdefs.h"
11210
11211         class Foo { public: explicit Foo(int) {} };
11212       
11213 int main() {
11214
11215         return 0;
11216       
11217 ; return 0; }
11218 EOF
11219 if { (eval echo configure:11220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11220   rm -rf conftest*
11221   
11222         cat > conftest.$ac_ext <<EOF
11223 #line 11224 "configure"
11224 #include "confdefs.h"
11225
11226                 class Foo { public: explicit Foo(int) {} };
11227                 static void TakeFoo(const Foo& foo) { }
11228             
11229 int main() {
11230
11231                 TakeFoo(17);
11232                 return 0;
11233             
11234 ; return 0; }
11235 EOF
11236 if { (eval echo configure:11237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11237   rm -rf conftest*
11238   wx_cv_explicit=no
11239 else
11240   echo "configure: failed program was:" >&5
11241   cat conftest.$ac_ext >&5
11242   rm -rf conftest*
11243   wx_cv_explicit=yes
11244         
11245 fi
11246 rm -f conftest*
11247       
11248 else
11249   echo "configure: failed program was:" >&5
11250   cat conftest.$ac_ext >&5
11251   rm -rf conftest*
11252   wx_cv_explicit=no
11253     
11254 fi
11255 rm -f conftest*
11256
11257     ac_ext=c
11258 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11259 ac_cpp='$CPP $CPPFLAGS'
11260 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11261 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11262 cross_compiling=$ac_cv_prog_cc_cross
11263
11264   
11265 fi
11266
11267 echo "$ac_t""$wx_cv_explicit" 1>&6
11268
11269   if test "$wx_cv_explicit" = "yes"; then
11270     cat >> confdefs.h <<\EOF
11271 #define HAVE_EXPLICIT 1
11272 EOF
11273
11274   fi
11275
11276
11277 echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6
11278 echo "configure:11279: checking whether the compiler supports const_cast<>" >&5
11279 if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then
11280   echo $ac_n "(cached) $ac_c" 1>&6
11281 else
11282   
11283  ac_ext=C
11284 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11285 ac_cpp='$CXXCPP $CPPFLAGS'
11286 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11287 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11288 cross_compiling=$ac_cv_prog_cxx_cross
11289
11290  cat > conftest.$ac_ext <<EOF
11291 #line 11292 "configure"
11292 #include "confdefs.h"
11293
11294 int main() {
11295 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
11296 ; return 0; }
11297 EOF
11298 if { (eval echo configure:11299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11299   rm -rf conftest*
11300   ac_cv_cxx_const_cast=yes
11301 else
11302   echo "configure: failed program was:" >&5
11303   cat conftest.$ac_ext >&5
11304   rm -rf conftest*
11305   ac_cv_cxx_const_cast=no
11306 fi
11307 rm -f conftest*
11308  ac_ext=c
11309 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11310 ac_cpp='$CPP $CPPFLAGS'
11311 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11312 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11313 cross_compiling=$ac_cv_prog_cc_cross
11314
11315
11316 fi
11317
11318 echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6
11319 if test "$ac_cv_cxx_const_cast" = yes; then
11320   cat >> confdefs.h <<\EOF
11321 #define HAVE_CONST_CAST 
11322 EOF
11323
11324 fi
11325
11326
11327
11328 SEARCH_INCLUDE="\
11329     /usr/local/include        \
11330                               \
11331     /usr/Motif-1.2/include    \
11332     /usr/Motif-2.1/include    \
11333                               \
11334     /usr/include/Motif1.2     \
11335     /opt/xpm/include/X11      \
11336     /opt/GBxpm/include/       \
11337     /opt/GBxpm/X11/include/   \
11338                               \
11339     /usr/Motif1.2/include     \
11340     /usr/dt/include           \
11341     /usr/openwin/include      \
11342                               \
11343     /usr/include/Xm           \
11344                               \
11345     /usr/X11R6/include        \
11346     /usr/X11R6.4/include      \
11347     /usr/X11R5/include        \
11348     /usr/X11R4/include        \
11349                               \
11350     /usr/include/X11R6        \
11351     /usr/include/X11R5        \
11352     /usr/include/X11R4        \
11353                               \
11354     /usr/local/X11R6/include  \
11355     /usr/local/X11R5/include  \
11356     /usr/local/X11R4/include  \
11357                               \
11358     /usr/local/include/X11R6  \
11359     /usr/local/include/X11R5  \
11360     /usr/local/include/X11R4  \
11361                               \
11362     /usr/X11/include          \
11363     /usr/include/X11          \
11364     /usr/local/X11/include    \
11365     /usr/local/include/X11    \
11366                               \
11367     /usr/X386/include         \
11368     /usr/x386/include         \
11369     /usr/XFree86/include/X11  \
11370                               \
11371     X:/XFree86/include        \
11372     X:/XFree86/include/X11    \
11373                               \
11374     /usr/include/gtk          \
11375     /usr/local/include/gtk    \
11376     /usr/include/glib         \
11377     /usr/local/include/glib   \
11378                               \
11379     /usr/include/qt           \
11380     /usr/local/include/qt     \
11381                               \
11382     /usr/include/windows      \
11383     /usr/include/wine         \
11384     /usr/local/include/wine   \
11385                               \
11386     /usr/unsupported/include  \
11387     /usr/athena/include       \
11388     /usr/local/x11r5/include  \
11389     /usr/lpp/Xamples/include  \
11390                               \
11391     /usr/openwin/share/include"
11392
11393 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11394
11395
11396 cat > confcache <<\EOF
11397 # This file is a shell script that caches the results of configure
11398 # tests run on this system so they can be shared between configure
11399 # scripts and configure runs.  It is not useful on other systems.
11400 # If it contains results you don't want to keep, you may remove or edit it.
11401 #
11402 # By default, configure uses ./config.cache as the cache file,
11403 # creating it if it does not exist already.  You can give configure
11404 # the --cache-file=FILE option to use a different cache file; that is
11405 # what configure does when it calls configure scripts in
11406 # subdirectories, so they share the cache.
11407 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11408 # config.status only pays attention to the cache file if you give it the
11409 # --recheck option to rerun configure.
11410 #
11411 EOF
11412 # The following way of writing the cache mishandles newlines in values,
11413 # but we know of no workaround that is simple, portable, and efficient.
11414 # So, don't put newlines in cache variables' values.
11415 # Ultrix sh set writes to stderr and can't be redirected directly,
11416 # and sets the high bit in the cache file unless we assign to the vars.
11417 (set) 2>&1 |
11418   case `(ac_space=' '; set | grep ac_space) 2>&1` in
11419   *ac_space=\ *)
11420     # `set' does not quote correctly, so add quotes (double-quote substitution
11421     # turns \\\\ into \\, and sed turns \\ into \).
11422     sed -n \
11423       -e "s/'/'\\\\''/g" \
11424       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11425     ;;
11426   *)
11427     # `set' quotes correctly as required by POSIX, so do not add quotes.
11428     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11429     ;;
11430   esac >> confcache
11431 if cmp -s $cache_file confcache; then
11432   :
11433 else
11434   if test -w $cache_file; then
11435     echo "updating cache $cache_file"
11436     cat confcache > $cache_file
11437   else
11438     echo "not updating unwritable cache $cache_file"
11439   fi
11440 fi
11441 rm -f confcache
11442
11443
11444 if test "$USE_LINUX" = 1; then
11445     echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
11446 echo "configure:11447: checking for glibc 2.1 or later" >&5
11447 if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11448   echo $ac_n "(cached) $ac_c" 1>&6
11449 else
11450   
11451         cat > conftest.$ac_ext <<EOF
11452 #line 11453 "configure"
11453 #include "confdefs.h"
11454 #include <features.h>
11455 int main() {
11456
11457                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11458                     #error not glibc2.1
11459                 #endif
11460             
11461 ; return 0; }
11462 EOF
11463 if { (eval echo configure:11464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11464   rm -rf conftest*
11465   
11466                 wx_cv_lib_glibc21=yes
11467             
11468 else
11469   echo "configure: failed program was:" >&5
11470   cat conftest.$ac_ext >&5
11471   rm -rf conftest*
11472   
11473                 wx_cv_lib_glibc21=no
11474             
11475         
11476 fi
11477 rm -f conftest*
11478     
11479 fi
11480
11481 echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11482     if test "$wx_cv_lib_glibc21" = "yes"; then
11483         cat >> confdefs.h <<\EOF
11484 #define wxHAVE_GLIBC2 1
11485 EOF
11486
11487     fi
11488 fi
11489
11490 if test "x$wx_cv_lib_glibc21" = "xyes"; then
11491     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11492         cat >> confdefs.h <<\EOF
11493 #define _GNU_SOURCE 1
11494 EOF
11495
11496     fi
11497 fi
11498
11499
11500
11501 REGEX_INCLUDE=
11502 if test "$wxUSE_REGEX" != "no"; then
11503     cat >> confdefs.h <<\EOF
11504 #define wxUSE_REGEX 1
11505 EOF
11506
11507
11508     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11509                         ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11510 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11511 echo "configure:11512: checking for regex.h" >&5
11512 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11513   echo $ac_n "(cached) $ac_c" 1>&6
11514 else
11515   cat > conftest.$ac_ext <<EOF
11516 #line 11517 "configure"
11517 #include "confdefs.h"
11518 #include <regex.h>
11519 EOF
11520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11521 { (eval echo configure:11522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11523 if test -z "$ac_err"; then
11524   rm -rf conftest*
11525   eval "ac_cv_header_$ac_safe=yes"
11526 else
11527   echo "$ac_err" >&5
11528   echo "configure: failed program was:" >&5
11529   cat conftest.$ac_ext >&5
11530   rm -rf conftest*
11531   eval "ac_cv_header_$ac_safe=no"
11532 fi
11533 rm -f conftest*
11534 fi
11535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11536   echo "$ac_t""yes" 1>&6
11537   for ac_func in regcomp
11538 do
11539 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11540 echo "configure:11541: checking for $ac_func" >&5
11541 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11542   echo $ac_n "(cached) $ac_c" 1>&6
11543 else
11544   cat > conftest.$ac_ext <<EOF
11545 #line 11546 "configure"
11546 #include "confdefs.h"
11547 /* System header to define __stub macros and hopefully few prototypes,
11548     which can conflict with char $ac_func(); below.  */
11549 #include <assert.h>
11550 /* Override any gcc2 internal prototype to avoid an error.  */
11551 /* We use char because int might match the return type of a gcc2
11552     builtin and then its argument prototype would still apply.  */
11553 char $ac_func();
11554
11555 int main() {
11556
11557 /* The GNU C library defines this for functions which it implements
11558     to always fail with ENOSYS.  Some functions are actually named
11559     something starting with __ and the normal name is an alias.  */
11560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11561 choke me
11562 #else
11563 $ac_func();
11564 #endif
11565
11566 ; return 0; }
11567 EOF
11568 if { (eval echo configure:11569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11569   rm -rf conftest*
11570   eval "ac_cv_func_$ac_func=yes"
11571 else
11572   echo "configure: failed program was:" >&5
11573   cat conftest.$ac_ext >&5
11574   rm -rf conftest*
11575   eval "ac_cv_func_$ac_func=no"
11576 fi
11577 rm -f conftest*
11578 fi
11579
11580 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11581   echo "$ac_t""yes" 1>&6
11582     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11583   cat >> confdefs.h <<EOF
11584 #define $ac_tr_func 1
11585 EOF
11586  
11587 else
11588   echo "$ac_t""no" 1>&6
11589 fi
11590 done
11591
11592 else
11593   echo "$ac_t""no" 1>&6
11594 fi
11595
11596
11597         if test "x$ac_cv_func_regcomp" != "xyes"; then
11598             if test "$wxUSE_REGEX" = "sys" ; then
11599                 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11600             else
11601                 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11602                 wxUSE_REGEX=builtin
11603             fi
11604         else
11605                         wxUSE_REGEX=sys
11606         fi
11607     fi
11608
11609     if test "$wxUSE_REGEX" = "builtin" ; then
11610         REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11611     fi
11612 fi
11613
11614
11615 ZLIB_INCLUDE=
11616 ZLIB_LINK=
11617 if test "$wxUSE_ZLIB" != "no" ; then
11618     cat >> confdefs.h <<\EOF
11619 #define wxUSE_ZLIB 1
11620 EOF
11621
11622
11623     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11624                                                 if test "$USE_DARWIN" = 1; then
11625             system_zlib_h_ok="yes"
11626         else
11627                                                                                     echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
11628 echo "configure:11629: checking for zlib.h >= 1.1.4" >&5
11629 if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11630   echo $ac_n "(cached) $ac_c" 1>&6
11631 else
11632   if test "$cross_compiling" = yes; then
11633                       unset ac_cv_header_zlib_h
11634                 
11635 else
11636   cat > conftest.$ac_ext <<EOF
11637 #line 11638 "configure"
11638 #include "confdefs.h"
11639                     
11640                         #include <zlib.h>
11641                         #include <stdio.h>
11642
11643                         int main()
11644                         {
11645                             FILE *f=fopen("conftestval", "w");
11646                             if (!f) exit(1);
11647                             fprintf(f, "%s",
11648                                     ZLIB_VERSION[0] == '1' &&
11649                                     (ZLIB_VERSION[2] > '1' ||
11650                                     (ZLIB_VERSION[2] == '1' &&
11651                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11652                             exit(0);
11653                         }
11654                     
11655 EOF
11656 if { (eval echo configure:11657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11657 then
11658   ac_cv_header_zlib_h=`cat conftestval`
11659 else
11660   echo "configure: failed program was:" >&5
11661   cat conftest.$ac_ext >&5
11662   rm -fr conftest*
11663   ac_cv_header_zlib_h=no
11664 fi
11665 rm -fr conftest*
11666 fi
11667
11668             
11669 fi
11670
11671 echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
11672                                     ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11673 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11674 echo "configure:11675: checking for zlib.h" >&5
11675 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11676   echo $ac_n "(cached) $ac_c" 1>&6
11677 else
11678   cat > conftest.$ac_ext <<EOF
11679 #line 11680 "configure"
11680 #include "confdefs.h"
11681 #include <zlib.h>
11682 EOF
11683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11684 { (eval echo configure:11685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11685 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11686 if test -z "$ac_err"; then
11687   rm -rf conftest*
11688   eval "ac_cv_header_$ac_safe=yes"
11689 else
11690   echo "$ac_err" >&5
11691   echo "configure: failed program was:" >&5
11692   cat conftest.$ac_ext >&5
11693   rm -rf conftest*
11694   eval "ac_cv_header_$ac_safe=no"
11695 fi
11696 rm -f conftest*
11697 fi
11698 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11699   echo "$ac_t""yes" 1>&6
11700   :
11701 else
11702   echo "$ac_t""no" 1>&6
11703 fi
11704
11705
11706             system_zlib_h_ok=$ac_cv_header_zlib_h
11707         fi
11708
11709         if test "$system_zlib_h_ok" = "yes"; then
11710             echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11711 echo "configure:11712: checking for deflate in -lz" >&5
11712 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11713 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11714   echo $ac_n "(cached) $ac_c" 1>&6
11715 else
11716   ac_save_LIBS="$LIBS"
11717 LIBS="-lz  $LIBS"
11718 cat > conftest.$ac_ext <<EOF
11719 #line 11720 "configure"
11720 #include "confdefs.h"
11721 /* Override any gcc2 internal prototype to avoid an error.  */
11722 /* We use char because int might match the return type of a gcc2
11723     builtin and then its argument prototype would still apply.  */
11724 char deflate();
11725
11726 int main() {
11727 deflate()
11728 ; return 0; }
11729 EOF
11730 if { (eval echo configure:11731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11731   rm -rf conftest*
11732   eval "ac_cv_lib_$ac_lib_var=yes"
11733 else
11734   echo "configure: failed program was:" >&5
11735   cat conftest.$ac_ext >&5
11736   rm -rf conftest*
11737   eval "ac_cv_lib_$ac_lib_var=no"
11738 fi
11739 rm -f conftest*
11740 LIBS="$ac_save_LIBS"
11741
11742 fi
11743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11744   echo "$ac_t""yes" 1>&6
11745   ZLIB_LINK=" -lz"
11746 else
11747   echo "$ac_t""no" 1>&6
11748 fi
11749
11750         fi
11751
11752         if test "x$ZLIB_LINK" = "x" ; then
11753             if test "$wxUSE_ZLIB" = "sys" ; then
11754                 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11755             else
11756                 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
11757                 wxUSE_ZLIB=builtin
11758             fi
11759         else
11760                         wxUSE_ZLIB=sys
11761         fi
11762     fi
11763
11764     if test "$wxUSE_ZLIB" = "builtin" ; then
11765         ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11766     fi
11767 fi
11768
11769
11770 PNG_INCLUDE=
11771 PNG_LINK=
11772 if test "$wxUSE_LIBPNG" != "no" ; then
11773     cat >> confdefs.h <<\EOF
11774 #define wxUSE_LIBPNG 1
11775 EOF
11776
11777
11778     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11779         echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11780         wxUSE_LIBPNG=sys
11781     fi
11782
11783                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11784         echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11785         wxUSE_LIBPNG=builtin
11786     fi
11787
11788     if test "$wxUSE_MGL" != 1 ; then
11789                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11790                                     echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
11791 echo "configure:11792: checking for png.h > 0.90" >&5
11792 if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11793   echo $ac_n "(cached) $ac_c" 1>&6
11794 else
11795   if test "$cross_compiling" = yes; then
11796                       unset ac_cv_header_png_h
11797                 
11798 else
11799   cat > conftest.$ac_ext <<EOF
11800 #line 11801 "configure"
11801 #include "confdefs.h"
11802                     
11803                         #include <png.h>
11804                         #include <stdio.h>
11805
11806                         int main()
11807                         {
11808                             FILE *f=fopen("conftestval", "w");
11809                             if (!f) exit(1);
11810                             fprintf(f, "%s",
11811                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
11812                             exit(0);
11813                         }
11814                     
11815 EOF
11816 if { (eval echo configure:11817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11817 then
11818   ac_cv_header_png_h=`cat conftestval`
11819 else
11820   echo "configure: failed program was:" >&5
11821   cat conftest.$ac_ext >&5
11822   rm -fr conftest*
11823   ac_cv_header_png_h=no
11824 fi
11825 rm -fr conftest*
11826 fi
11827
11828             
11829 fi
11830
11831 echo "$ac_t""$ac_cv_header_png_h" 1>&6
11832             ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11833 echo $ac_n "checking for png.h""... $ac_c" 1>&6
11834 echo "configure:11835: checking for png.h" >&5
11835 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11836   echo $ac_n "(cached) $ac_c" 1>&6
11837 else
11838   cat > conftest.$ac_ext <<EOF
11839 #line 11840 "configure"
11840 #include "confdefs.h"
11841 #include <png.h>
11842 EOF
11843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11844 { (eval echo configure:11845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11846 if test -z "$ac_err"; then
11847   rm -rf conftest*
11848   eval "ac_cv_header_$ac_safe=yes"
11849 else
11850   echo "$ac_err" >&5
11851   echo "configure: failed program was:" >&5
11852   cat conftest.$ac_ext >&5
11853   rm -rf conftest*
11854   eval "ac_cv_header_$ac_safe=no"
11855 fi
11856 rm -f conftest*
11857 fi
11858 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11859   echo "$ac_t""yes" 1>&6
11860   :
11861 else
11862   echo "$ac_t""no" 1>&6
11863 fi
11864
11865
11866             if test "$ac_cv_header_png_h" = "yes"; then
11867                 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11868 echo "configure:11869: checking for png_check_sig in -lpng" >&5
11869 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11870 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11871   echo $ac_n "(cached) $ac_c" 1>&6
11872 else
11873   ac_save_LIBS="$LIBS"
11874 LIBS="-lpng -lz -lm $LIBS"
11875 cat > conftest.$ac_ext <<EOF
11876 #line 11877 "configure"
11877 #include "confdefs.h"
11878 /* Override any gcc2 internal prototype to avoid an error.  */
11879 /* We use char because int might match the return type of a gcc2
11880     builtin and then its argument prototype would still apply.  */
11881 char png_check_sig();
11882
11883 int main() {
11884 png_check_sig()
11885 ; return 0; }
11886 EOF
11887 if { (eval echo configure:11888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11888   rm -rf conftest*
11889   eval "ac_cv_lib_$ac_lib_var=yes"
11890 else
11891   echo "configure: failed program was:" >&5
11892   cat conftest.$ac_ext >&5
11893   rm -rf conftest*
11894   eval "ac_cv_lib_$ac_lib_var=no"
11895 fi
11896 rm -f conftest*
11897 LIBS="$ac_save_LIBS"
11898
11899 fi
11900 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11901   echo "$ac_t""yes" 1>&6
11902   PNG_LINK=" -lpng"
11903 else
11904   echo "$ac_t""no" 1>&6
11905 fi
11906
11907             fi
11908
11909             if test "x$PNG_LINK" = "x" ; then
11910                 if test "$wxUSE_LIBPNG" = "sys" ; then
11911                     { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11912                 else
11913                     echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
11914                     wxUSE_LIBPNG=builtin
11915                 fi
11916             else
11917                                 wxUSE_LIBPNG=sys
11918             fi
11919         fi
11920     fi
11921
11922     if test "$wxUSE_LIBPNG" = "builtin" ; then
11923         PNG_INCLUDE="-I\${top_srcdir}/src/png"
11924     fi
11925
11926     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11927 fi
11928
11929
11930 JPEG_INCLUDE=
11931 JPEG_LINK=
11932 if test "$wxUSE_LIBJPEG" != "no" ; then
11933     cat >> confdefs.h <<\EOF
11934 #define wxUSE_LIBJPEG 1
11935 EOF
11936
11937
11938     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11939         echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11940         wxUSE_LIBJPEG=sys
11941     fi
11942
11943     if test "$wxUSE_MGL" != 1 ; then
11944                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11945                                                 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11946 echo "configure:11947: checking for jpeglib.h" >&5
11947             if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11948   echo $ac_n "(cached) $ac_c" 1>&6
11949 else
11950   cat > conftest.$ac_ext <<EOF
11951 #line 11952 "configure"
11952 #include "confdefs.h"
11953
11954                         #undef HAVE_STDLIB_H
11955                         #include <stdio.h>
11956                         #include <jpeglib.h>
11957                     
11958 int main() {
11959
11960                     
11961 ; return 0; }
11962 EOF
11963 if { (eval echo configure:11964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11964   rm -rf conftest*
11965   ac_cv_header_jpeglib_h=yes
11966 else
11967   echo "configure: failed program was:" >&5
11968   cat conftest.$ac_ext >&5
11969   rm -rf conftest*
11970   ac_cv_header_jpeglib_h=no
11971                 
11972 fi
11973 rm -f conftest*
11974             
11975 fi
11976
11977             echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11978
11979             if test "$ac_cv_header_jpeglib_h" = "yes"; then
11980                 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11981 echo "configure:11982: checking for jpeg_read_header in -ljpeg" >&5
11982 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11983 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11984   echo $ac_n "(cached) $ac_c" 1>&6
11985 else
11986   ac_save_LIBS="$LIBS"
11987 LIBS="-ljpeg  $LIBS"
11988 cat > conftest.$ac_ext <<EOF
11989 #line 11990 "configure"
11990 #include "confdefs.h"
11991 /* Override any gcc2 internal prototype to avoid an error.  */
11992 /* We use char because int might match the return type of a gcc2
11993     builtin and then its argument prototype would still apply.  */
11994 char jpeg_read_header();
11995
11996 int main() {
11997 jpeg_read_header()
11998 ; return 0; }
11999 EOF
12000 if { (eval echo configure:12001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12001   rm -rf conftest*
12002   eval "ac_cv_lib_$ac_lib_var=yes"
12003 else
12004   echo "configure: failed program was:" >&5
12005   cat conftest.$ac_ext >&5
12006   rm -rf conftest*
12007   eval "ac_cv_lib_$ac_lib_var=no"
12008 fi
12009 rm -f conftest*
12010 LIBS="$ac_save_LIBS"
12011
12012 fi
12013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12014   echo "$ac_t""yes" 1>&6
12015   JPEG_LINK=" -ljpeg"
12016 else
12017   echo "$ac_t""no" 1>&6
12018 fi
12019
12020             fi
12021
12022             if test "x$JPEG_LINK" = "x" ; then
12023                 if test "$wxUSE_LIBJPEG" = "sys" ; then
12024                     { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
12025                 else
12026                     echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
12027                     wxUSE_LIBJPEG=builtin
12028                 fi
12029             else
12030                                 wxUSE_LIBJPEG=sys
12031             fi
12032         fi
12033     fi
12034
12035     if test "$wxUSE_LIBJPEG" = "builtin" ; then
12036         JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12037     fi
12038 fi
12039
12040
12041 TIFF_INCLUDE=
12042 TIFF_LINK=
12043 TIFF_PREREQ_LINKS=-lm
12044 if test "$wxUSE_LIBTIFF" != "no" ; then
12045     cat >> confdefs.h <<\EOF
12046 #define wxUSE_LIBTIFF 1
12047 EOF
12048
12049
12050     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
12051                         if test "$wxUSE_LIBJPEG" = "sys"; then
12052             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12053         fi
12054         if test "$wxUSE_ZLIB" = "sys"; then
12055             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12056         fi
12057         ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12058 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
12059 echo "configure:12060: checking for tiffio.h" >&5
12060 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12061   echo $ac_n "(cached) $ac_c" 1>&6
12062 else
12063   cat > conftest.$ac_ext <<EOF
12064 #line 12065 "configure"
12065 #include "confdefs.h"
12066 #include <tiffio.h>
12067 EOF
12068 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12069 { (eval echo configure:12070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12070 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12071 if test -z "$ac_err"; then
12072   rm -rf conftest*
12073   eval "ac_cv_header_$ac_safe=yes"
12074 else
12075   echo "$ac_err" >&5
12076   echo "configure: failed program was:" >&5
12077   cat conftest.$ac_ext >&5
12078   rm -rf conftest*
12079   eval "ac_cv_header_$ac_safe=no"
12080 fi
12081 rm -f conftest*
12082 fi
12083 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12084   echo "$ac_t""yes" 1>&6
12085   echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
12086 echo "configure:12087: checking for TIFFError in -ltiff" >&5
12087 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12089   echo $ac_n "(cached) $ac_c" 1>&6
12090 else
12091   ac_save_LIBS="$LIBS"
12092 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
12093 cat > conftest.$ac_ext <<EOF
12094 #line 12095 "configure"
12095 #include "confdefs.h"
12096 /* Override any gcc2 internal prototype to avoid an error.  */
12097 /* We use char because int might match the return type of a gcc2
12098     builtin and then its argument prototype would still apply.  */
12099 char TIFFError();
12100
12101 int main() {
12102 TIFFError()
12103 ; return 0; }
12104 EOF
12105 if { (eval echo configure:12106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12106   rm -rf conftest*
12107   eval "ac_cv_lib_$ac_lib_var=yes"
12108 else
12109   echo "configure: failed program was:" >&5
12110   cat conftest.$ac_ext >&5
12111   rm -rf conftest*
12112   eval "ac_cv_lib_$ac_lib_var=no"
12113 fi
12114 rm -f conftest*
12115 LIBS="$ac_save_LIBS"
12116
12117 fi
12118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12119   echo "$ac_t""yes" 1>&6
12120   TIFF_LINK=" -ltiff"
12121 else
12122   echo "$ac_t""no" 1>&6
12123 fi
12124
12125                        
12126 else
12127   echo "$ac_t""no" 1>&6
12128 fi
12129
12130
12131         if test "x$TIFF_LINK" = "x" ; then
12132             if test "$wxUSE_LIBTIFF" = "sys" ; then
12133                 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
12134             else
12135                 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
12136                 wxUSE_LIBTIFF=builtin
12137             fi
12138         else
12139                         wxUSE_LIBTIFF=sys
12140         fi
12141     fi
12142
12143     if test "$wxUSE_LIBTIFF" = "builtin" ; then
12144         TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
12145     fi
12146 fi
12147
12148
12149 AFMINSTALL=
12150 WIN32INSTALL=
12151
12152 TOOLKIT=
12153 TOOLKIT_INCLUDE=
12154 WIDGET_SET=
12155
12156 if test "$USE_WIN32" = 1 ; then
12157     for ac_hdr in w32api.h
12158 do
12159 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12160 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12161 echo "configure:12162: checking for $ac_hdr" >&5
12162 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12163   echo $ac_n "(cached) $ac_c" 1>&6
12164 else
12165   cat > conftest.$ac_ext <<EOF
12166 #line 12167 "configure"
12167 #include "confdefs.h"
12168 #include <$ac_hdr>
12169 EOF
12170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12171 { (eval echo configure:12172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12173 if test -z "$ac_err"; then
12174   rm -rf conftest*
12175   eval "ac_cv_header_$ac_safe=yes"
12176 else
12177   echo "$ac_err" >&5
12178   echo "configure: failed program was:" >&5
12179   cat conftest.$ac_ext >&5
12180   rm -rf conftest*
12181   eval "ac_cv_header_$ac_safe=no"
12182 fi
12183 rm -f conftest*
12184 fi
12185 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12186   echo "$ac_t""yes" 1>&6
12187     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12188   cat >> confdefs.h <<EOF
12189 #define $ac_tr_hdr 1
12190 EOF
12191  
12192 else
12193   echo "$ac_t""no" 1>&6
12194 fi
12195 done
12196
12197     ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12198 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12199 echo "configure:12200: checking for windows.h" >&5
12200 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12201   echo $ac_n "(cached) $ac_c" 1>&6
12202 else
12203   cat > conftest.$ac_ext <<EOF
12204 #line 12205 "configure"
12205 #include "confdefs.h"
12206 #include <windows.h>
12207 EOF
12208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12209 { (eval echo configure:12210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12211 if test -z "$ac_err"; then
12212   rm -rf conftest*
12213   eval "ac_cv_header_$ac_safe=yes"
12214 else
12215   echo "$ac_err" >&5
12216   echo "configure: failed program was:" >&5
12217   cat conftest.$ac_ext >&5
12218   rm -rf conftest*
12219   eval "ac_cv_header_$ac_safe=no"
12220 fi
12221 rm -f conftest*
12222 fi
12223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12224   echo "$ac_t""yes" 1>&6
12225   :
12226 else
12227   echo "$ac_t""no" 1>&6
12228
12229         { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12230     
12231 fi
12232
12233
12234         echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
12235 echo "configure:12236: checking if w32api has good enough MSIE support" >&5
12236 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12237   echo $ac_n "(cached) $ac_c" 1>&6
12238 else
12239   
12240       cat > conftest.$ac_ext <<EOF
12241 #line 12242 "configure"
12242 #include "confdefs.h"
12243 #include <w32api.h>
12244 int main() {
12245
12246                        #define wxCHECK_W32API_VERSION( major, minor ) \
12247                        ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12248                        && ( ( __W32API_MAJOR_VERSION > (major) ) \
12249                        || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12250
12251                        #if !wxCHECK_W32API_VERSION(1,1)
12252                        #error You need w32api 1.1 or newer
12253                        #endif
12254                      
12255 ; return 0; }
12256 EOF
12257 if { (eval echo configure:12258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12258   rm -rf conftest*
12259   
12260                         wx_cv_w32api_win32_ie=yes
12261                      
12262 else
12263   echo "configure: failed program was:" >&5
12264   cat conftest.$ac_ext >&5
12265   rm -rf conftest*
12266   
12267                         wx_cv_w32api_win32_ie=no
12268                      
12269 fi
12270 rm -f conftest*
12271     
12272 fi
12273
12274 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
12275     if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12276         CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12277     fi
12278
12279             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12280
12281     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
12282         LIBS="$LIBS -loleacc"
12283     fi
12284
12285     case "${host}" in
12286         *-*-cygwin* )
12287                         LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12288             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
12289     esac
12290
12291         if test "$wxUSE_ODBC" = "sys" ; then
12292         wxUSE_ODBC = "yes"
12293     fi
12294     if test "$wxUSE_ODBC" = "yes" ; then
12295         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12296         cat >> confdefs.h <<\EOF
12297 #define wxUSE_ODBC 1
12298 EOF
12299
12300     fi
12301     
12302     RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12303     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
12304
12305         WIN32INSTALL=win32install
12306 fi
12307
12308 if test "$USE_DARWIN" = 1; then
12309             if test "$wxUSE_PRECOMP" = "yes"; then
12310         CPPFLAGS="$CPPFLAGS -cpp-precomp"
12311     else
12312         CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12313     fi
12314 fi
12315
12316 if test "$wxUSE_GUI" = "yes"; then
12317     USE_GUI=1
12318
12319     GUI_TK_LIBRARY=
12320
12321     WXGTK12=
12322     WXGTK127=
12323     WXGTK20=
12324
12325     if test "$wxUSE_MSW" = 1 ; then
12326         TOOLKIT=MSW
12327         GUIDIST=MSW_DIST
12328
12329                         LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
12330     fi
12331
12332     if test "$wxUSE_GTK" = 1; then
12333         echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
12334 echo "configure:12335: checking for GTK+ version" >&5
12335
12336         gtk_version_cached=1
12337         if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12338   echo $ac_n "(cached) $ac_c" 1>&6
12339 else
12340   
12341                                                 gtk_version_cached=0
12342                 echo "$ac_t""" 1>&6
12343
12344                                                 GTK_MODULES=
12345                 if test "$wxUSE_THREADS" = "yes"; then
12346                     GTK_MODULES=gthread
12347                 fi
12348
12349                                                 wx_cv_lib_gtk=
12350                 if test "x$wxUSE_GTK2" = "xyes"; then
12351                     # Check whether --enable-gtktest or --disable-gtktest was given.
12352 if test "${enable_gtktest+set}" = set; then
12353   enableval="$enable_gtktest"
12354   :
12355 else
12356   enable_gtktest=yes
12357 fi
12358
12359
12360   pkg_config_args=gtk+-2.0
12361   for module in . $GTK_MODULES
12362   do
12363       case "$module" in
12364          gthread) 
12365              pkg_config_args="$pkg_config_args gthread-2.0"
12366          ;;
12367       esac
12368   done
12369
12370   no_gtk=""
12371
12372   # Extract the first word of "pkg-config", so it can be a program name with args.
12373 set dummy pkg-config; ac_word=$2
12374 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12375 echo "configure:12376: checking for $ac_word" >&5
12376 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12377   echo $ac_n "(cached) $ac_c" 1>&6
12378 else
12379   case "$PKG_CONFIG" in
12380   /*)
12381   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12382   ;;
12383   ?:/*)                  
12384   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12385   ;;
12386   *)
12387   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
12388   ac_dummy="$PATH"
12389   for ac_dir in $ac_dummy; do 
12390     test -z "$ac_dir" && ac_dir=.
12391     if test -f $ac_dir/$ac_word; then
12392       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12393       break
12394     fi
12395   done
12396   IFS="$ac_save_ifs"
12397   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12398   ;;
12399 esac
12400 fi
12401 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12402 if test -n "$PKG_CONFIG"; then
12403   echo "$ac_t""$PKG_CONFIG" 1>&6
12404 else
12405   echo "$ac_t""no" 1>&6
12406 fi
12407
12408
12409   if test x$PKG_CONFIG != xno ; then
12410     if pkg-config --atleast-pkgconfig-version 0.7 ; then
12411       :
12412     else
12413       echo *** pkg-config too old; version 0.7 or better required.
12414       no_gtk=yes
12415       PKG_CONFIG=no
12416     fi
12417   else
12418     no_gtk=yes
12419   fi
12420
12421   min_gtk_version=2.0.0
12422   echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
12423 echo "configure:12424: checking for GTK+ - version >= $min_gtk_version" >&5
12424
12425   if test x$PKG_CONFIG != xno ; then
12426     ## don't try to run the test against uninstalled libtool libs
12427     if $PKG_CONFIG --uninstalled $pkg_config_args; then
12428           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12429           enable_gtktest=no
12430     fi
12431
12432     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12433           :
12434     else
12435           no_gtk=yes
12436     fi
12437   fi
12438
12439   if test x"$no_gtk" = x ; then
12440     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12441     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12442     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12443            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12444     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12445            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12446     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12447            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12448     if test "x$enable_gtktest" = "xyes" ; then
12449       ac_save_CFLAGS="$CFLAGS"
12450       ac_save_LIBS="$LIBS"
12451       CFLAGS="$CFLAGS $GTK_CFLAGS"
12452       LIBS="$GTK_LIBS $LIBS"
12453       rm -f conf.gtktest
12454       if test "$cross_compiling" = yes; then
12455   echo $ac_n "cross compiling; assumed OK... $ac_c"
12456 else
12457   cat > conftest.$ac_ext <<EOF
12458 #line 12459 "configure"
12459 #include "confdefs.h"
12460
12461 #include <gtk/gtk.h>
12462 #include <stdio.h>
12463 #include <stdlib.h>
12464
12465 int 
12466 main ()
12467 {
12468   int major, minor, micro;
12469   char *tmp_version;
12470
12471   system ("touch conf.gtktest");
12472
12473   /* HP/UX 9 (%@#!) writes to sscanf strings */
12474   tmp_version = g_strdup("$min_gtk_version");
12475   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12476      printf("%s, bad version string\n", "$min_gtk_version");
12477      exit(1);
12478    }
12479
12480   if ((gtk_major_version != $gtk_config_major_version) ||
12481       (gtk_minor_version != $gtk_config_minor_version) ||
12482       (gtk_micro_version != $gtk_config_micro_version))
12483     {
12484       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
12485              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12486              gtk_major_version, gtk_minor_version, gtk_micro_version);
12487       printf ("*** was found! If pkg-config was correct, then it is best\n");
12488       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12489       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12490       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12491       printf("*** required on your system.\n");
12492       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12493       printf("*** to point to the correct configuration files\n");
12494     } 
12495   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12496            (gtk_minor_version != GTK_MINOR_VERSION) ||
12497            (gtk_micro_version != GTK_MICRO_VERSION))
12498     {
12499       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12500              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12501       printf("*** library (version %d.%d.%d)\n",
12502              gtk_major_version, gtk_minor_version, gtk_micro_version);
12503     }
12504   else
12505     {
12506       if ((gtk_major_version > major) ||
12507         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12508         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12509       {
12510         return 0;
12511        }
12512      else
12513       {
12514         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12515                gtk_major_version, gtk_minor_version, gtk_micro_version);
12516         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12517                major, minor, micro);
12518         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12519         printf("***\n");
12520         printf("*** If you have already installed a sufficiently new version, this error\n");
12521         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12522         printf("*** being found. The easiest way to fix this is to remove the old version\n");
12523         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12524         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12525         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12526         printf("*** so that the correct libraries are found at run-time))\n");
12527       }
12528     }
12529   return 1;
12530 }
12531
12532 EOF
12533 if { (eval echo configure:12534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12534 then
12535   :
12536 else
12537   echo "configure: failed program was:" >&5
12538   cat conftest.$ac_ext >&5
12539   rm -fr conftest*
12540   no_gtk=yes
12541 fi
12542 rm -fr conftest*
12543 fi
12544
12545        CFLAGS="$ac_save_CFLAGS"
12546        LIBS="$ac_save_LIBS"
12547      fi
12548   fi
12549   if test "x$no_gtk" = x ; then
12550      echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12551      wx_cv_lib_gtk=2.0     
12552   else
12553      echo "$ac_t""no" 1>&6
12554      if test "$PKG_CONFIG" = "no" ; then
12555        echo "*** A new enough version of pkg-config was not found."
12556        echo "*** See http://pkgconfig.sourceforge.net"
12557      else
12558        if test -f conf.gtktest ; then
12559         :
12560        else
12561           echo "*** Could not run GTK+ test program, checking why..."
12562           ac_save_CFLAGS="$CFLAGS"
12563           ac_save_LIBS="$LIBS"
12564           CFLAGS="$CFLAGS $GTK_CFLAGS"
12565           LIBS="$LIBS $GTK_LIBS"
12566           cat > conftest.$ac_ext <<EOF
12567 #line 12568 "configure"
12568 #include "confdefs.h"
12569
12570 #include <gtk/gtk.h>
12571 #include <stdio.h>
12572
12573 int main() {
12574  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
12575 ; return 0; }
12576 EOF
12577 if { (eval echo configure:12578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12578   rm -rf conftest*
12579    echo "*** The test program compiled, but did not run. This usually means"
12580           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12581           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12582           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12583           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12584           echo "*** is required on your system"
12585           echo "***"
12586           echo "*** If you have an old version installed, it is best to remove it, although"
12587           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 
12588 else
12589   echo "configure: failed program was:" >&5
12590   cat conftest.$ac_ext >&5
12591   rm -rf conftest*
12592    echo "*** The test program failed to compile or link. See the file config.log for the"
12593           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12594 fi
12595 rm -f conftest*
12596           CFLAGS="$ac_save_CFLAGS"
12597           LIBS="$ac_save_LIBS"
12598        fi
12599      fi
12600      GTK_CFLAGS=""
12601      GTK_LIBS=""
12602      :
12603   fi
12604   
12605   
12606   rm -f conf.gtktest
12607
12608                 else
12609                     # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12610 if test "${with_gtk_prefix+set}" = set; then
12611   withval="$with_gtk_prefix"
12612   gtk_config_prefix="$withval"
12613 else
12614   gtk_config_prefix=""
12615 fi
12616
12617 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12618 if test "${with_gtk_exec_prefix+set}" = set; then
12619   withval="$with_gtk_exec_prefix"
12620   gtk_config_exec_prefix="$withval"
12621 else
12622   gtk_config_exec_prefix=""
12623 fi
12624
12625 # Check whether --enable-gtktest or --disable-gtktest was given.
12626 if test "${enable_gtktest+set}" = set; then
12627   enableval="$enable_gtktest"
12628   :
12629 else
12630   enable_gtktest=yes
12631 fi
12632
12633
12634   for module in . $GTK_MODULES
12635   do
12636       case "$module" in
12637          gthread) 
12638              gtk_config_args="$gtk_config_args gthread"
12639          ;;
12640       esac
12641   done
12642
12643   if test x$gtk_config_exec_prefix != x ; then
12644      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12645      if test x${GTK_CONFIG+set} != xset ; then
12646         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12647      fi
12648   fi
12649   if test x$gtk_config_prefix != x ; then
12650      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12651      if test x${GTK_CONFIG+set} != xset ; then
12652         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12653      fi
12654   fi
12655
12656   # Extract the first word of "gtk-config", so it can be a program name with args.
12657 set dummy gtk-config; ac_word=$2
12658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12659 echo "configure:12660: checking for $ac_word" >&5
12660 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12661   echo $ac_n "(cached) $ac_c" 1>&6
12662 else
12663   case "$GTK_CONFIG" in
12664   /*)
12665   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12666   ;;
12667   ?:/*)                  
12668   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12669   ;;
12670   *)
12671   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
12672   ac_dummy="$PATH"
12673   for ac_dir in $ac_dummy; do 
12674     test -z "$ac_dir" && ac_dir=.
12675     if test -f $ac_dir/$ac_word; then
12676       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12677       break
12678     fi
12679   done
12680   IFS="$ac_save_ifs"
12681   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12682   ;;
12683 esac
12684 fi
12685 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12686 if test -n "$GTK_CONFIG"; then
12687   echo "$ac_t""$GTK_CONFIG" 1>&6
12688 else
12689   echo "$ac_t""no" 1>&6
12690 fi
12691
12692   min_gtk_version=1.2.7
12693   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12694 echo "configure:12695: checking for GTK - version >= $min_gtk_version" >&5
12695   no_gtk=""
12696   if test "$GTK_CONFIG" = "no" ; then
12697     no_gtk=yes
12698   else
12699     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12700     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12701     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12702            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12703     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12704            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12705     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12706            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12707     if test "x$enable_gtktest" = "xyes" ; then
12708       ac_save_CFLAGS="$CFLAGS"
12709       ac_save_LIBS="$LIBS"
12710       CFLAGS="$CFLAGS $GTK_CFLAGS"
12711       LIBS="$GTK_LIBS $LIBS"
12712       rm -f conf.gtktest
12713       if test "$cross_compiling" = yes; then
12714   echo $ac_n "cross compiling; assumed OK... $ac_c"
12715 else
12716   cat > conftest.$ac_ext <<EOF
12717 #line 12718 "configure"
12718 #include "confdefs.h"
12719
12720 #include <gtk/gtk.h>
12721 #include <stdio.h>
12722 #include <stdlib.h>
12723
12724 int 
12725 main ()
12726 {
12727   int major, minor, micro;
12728   char *tmp_version;
12729
12730   system ("touch conf.gtktest");
12731
12732   /* HP/UX 9 (%@#!) writes to sscanf strings */
12733   tmp_version = g_strdup("$min_gtk_version");
12734   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12735      printf("%s, bad version string\n", "$min_gtk_version");
12736      exit(1);
12737    }
12738
12739   if ((gtk_major_version != $gtk_config_major_version) ||
12740       (gtk_minor_version != $gtk_config_minor_version) ||
12741       (gtk_micro_version != $gtk_config_micro_version))
12742     {
12743       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
12744              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12745              gtk_major_version, gtk_minor_version, gtk_micro_version);
12746       printf ("*** was found! If gtk-config was correct, then it is best\n");
12747       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12748       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12749       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12750       printf("*** required on your system.\n");
12751       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12752       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12753       printf("*** before re-running configure\n");
12754     } 
12755 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12756   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12757            (gtk_minor_version != GTK_MINOR_VERSION) ||
12758            (gtk_micro_version != GTK_MICRO_VERSION))
12759     {
12760       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12761              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12762       printf("*** library (version %d.%d.%d)\n",
12763              gtk_major_version, gtk_minor_version, gtk_micro_version);
12764     }
12765 #endif /* defined (GTK_MAJOR_VERSION) ... */
12766   else
12767     {
12768       if ((gtk_major_version > major) ||
12769         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12770         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12771       {
12772         return 0;
12773        }
12774      else
12775       {
12776         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12777                gtk_major_version, gtk_minor_version, gtk_micro_version);
12778         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12779                major, minor, micro);
12780         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12781         printf("***\n");
12782         printf("*** If you have already installed a sufficiently new version, this error\n");
12783         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12784         printf("*** being found. The easiest way to fix this is to remove the old version\n");
12785         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12786         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12787         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12788         printf("*** so that the correct libraries are found at run-time))\n");
12789       }
12790     }
12791   return 1;
12792 }
12793
12794 EOF
12795 if { (eval echo configure:12796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12796 then
12797   :
12798 else
12799   echo "configure: failed program was:" >&5
12800   cat conftest.$ac_ext >&5
12801   rm -fr conftest*
12802   no_gtk=yes
12803 fi
12804 rm -fr conftest*
12805 fi
12806
12807        CFLAGS="$ac_save_CFLAGS"
12808        LIBS="$ac_save_LIBS"
12809      fi
12810   fi
12811   if test "x$no_gtk" = x ; then
12812      echo "$ac_t""yes" 1>&6
12813      wx_cv_lib_gtk=1.2.7     
12814   else
12815      echo "$ac_t""no" 1>&6
12816      if test "$GTK_CONFIG" = "no" ; then
12817        echo "*** The gtk-config script installed by GTK could not be found"
12818        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12819        echo "*** your path, or set the GTK_CONFIG environment variable to the"
12820        echo "*** full path to gtk-config."
12821      else
12822        if test -f conf.gtktest ; then
12823         :
12824        else
12825           echo "*** Could not run GTK test program, checking why..."
12826           CFLAGS="$CFLAGS $GTK_CFLAGS"
12827           LIBS="$LIBS $GTK_LIBS"
12828           cat > conftest.$ac_ext <<EOF
12829 #line 12830 "configure"
12830 #include "confdefs.h"
12831
12832 #include <gtk/gtk.h>
12833 #include <stdio.h>
12834
12835 int main() {
12836  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
12837 ; return 0; }
12838 EOF
12839 if { (eval echo configure:12840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12840   rm -rf conftest*
12841    echo "*** The test program compiled, but did not run. This usually means"
12842           echo "*** that the run-time linker is not finding GTK or finding the wrong"
12843           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12844           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12845           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12846           echo "*** is required on your system"
12847           echo "***"
12848           echo "*** If you have an old version installed, it is best to remove it, although"
12849           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12850           echo "***"
12851           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12852           echo "*** came with the system with the command"
12853           echo "***"
12854           echo "***    rpm --erase --nodeps gtk gtk-devel" 
12855 else
12856   echo "configure: failed program was:" >&5
12857   cat conftest.$ac_ext >&5
12858   rm -rf conftest*
12859    echo "*** The test program failed to compile or link. See the file config.log for the"
12860           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12861           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12862           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
12863 fi
12864 rm -f conftest*
12865           CFLAGS="$ac_save_CFLAGS"
12866           LIBS="$ac_save_LIBS"
12867        fi
12868      fi
12869      GTK_CFLAGS=""
12870      GTK_LIBS=""
12871      :
12872   fi
12873   
12874   
12875   rm -f conf.gtktest
12876
12877
12878                     if test -z "$wx_cv_lib_gtk"; then
12879                         # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12880 if test "${with_gtk_prefix+set}" = set; then
12881   withval="$with_gtk_prefix"
12882   gtk_config_prefix="$withval"
12883 else
12884   gtk_config_prefix=""
12885 fi
12886
12887 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12888 if test "${with_gtk_exec_prefix+set}" = set; then
12889   withval="$with_gtk_exec_prefix"
12890   gtk_config_exec_prefix="$withval"
12891 else
12892   gtk_config_exec_prefix=""
12893 fi
12894
12895 # Check whether --enable-gtktest or --disable-gtktest was given.
12896 if test "${enable_gtktest+set}" = set; then
12897   enableval="$enable_gtktest"
12898   :
12899 else
12900   enable_gtktest=yes
12901 fi
12902
12903
12904   for module in . $GTK_MODULES
12905   do
12906       case "$module" in
12907          gthread) 
12908              gtk_config_args="$gtk_config_args gthread"
12909          ;;
12910       esac
12911   done
12912
12913   if test x$gtk_config_exec_prefix != x ; then
12914      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12915      if test x${GTK_CONFIG+set} != xset ; then
12916         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12917      fi
12918   fi
12919   if test x$gtk_config_prefix != x ; then
12920      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12921      if test x${GTK_CONFIG+set} != xset ; then
12922         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12923      fi
12924   fi
12925
12926   # Extract the first word of "gtk-config", so it can be a program name with args.
12927 set dummy gtk-config; ac_word=$2
12928 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12929 echo "configure:12930: checking for $ac_word" >&5
12930 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12931   echo $ac_n "(cached) $ac_c" 1>&6
12932 else
12933   case "$GTK_CONFIG" in
12934   /*)
12935   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12936   ;;
12937   ?:/*)                  
12938   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12939   ;;
12940   *)
12941   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
12942   ac_dummy="$PATH"
12943   for ac_dir in $ac_dummy; do 
12944     test -z "$ac_dir" && ac_dir=.
12945     if test -f $ac_dir/$ac_word; then
12946       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12947       break
12948     fi
12949   done
12950   IFS="$ac_save_ifs"
12951   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12952   ;;
12953 esac
12954 fi
12955 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12956 if test -n "$GTK_CONFIG"; then
12957   echo "$ac_t""$GTK_CONFIG" 1>&6
12958 else
12959   echo "$ac_t""no" 1>&6
12960 fi
12961
12962   min_gtk_version=1.2.3
12963   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12964 echo "configure:12965: checking for GTK - version >= $min_gtk_version" >&5
12965   no_gtk=""
12966   if test "$GTK_CONFIG" = "no" ; then
12967     no_gtk=yes
12968   else
12969     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12970     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12971     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12972            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12973     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12974            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12975     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12976            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12977     if test "x$enable_gtktest" = "xyes" ; then
12978       ac_save_CFLAGS="$CFLAGS"
12979       ac_save_LIBS="$LIBS"
12980       CFLAGS="$CFLAGS $GTK_CFLAGS"
12981       LIBS="$GTK_LIBS $LIBS"
12982       rm -f conf.gtktest
12983       if test "$cross_compiling" = yes; then
12984   echo $ac_n "cross compiling; assumed OK... $ac_c"
12985 else
12986   cat > conftest.$ac_ext <<EOF
12987 #line 12988 "configure"
12988 #include "confdefs.h"
12989
12990 #include <gtk/gtk.h>
12991 #include <stdio.h>
12992 #include <stdlib.h>
12993
12994 int 
12995 main ()
12996 {
12997   int major, minor, micro;
12998   char *tmp_version;
12999
13000   system ("touch conf.gtktest");
13001
13002   /* HP/UX 9 (%@#!) writes to sscanf strings */
13003   tmp_version = g_strdup("$min_gtk_version");
13004   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13005      printf("%s, bad version string\n", "$min_gtk_version");
13006      exit(1);
13007    }
13008
13009   if ((gtk_major_version != $gtk_config_major_version) ||
13010       (gtk_minor_version != $gtk_config_minor_version) ||
13011       (gtk_micro_version != $gtk_config_micro_version))
13012     {
13013       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
13014              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
13015              gtk_major_version, gtk_minor_version, gtk_micro_version);
13016       printf ("*** was found! If gtk-config was correct, then it is best\n");
13017       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
13018       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13019       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13020       printf("*** required on your system.\n");
13021       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
13022       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
13023       printf("*** before re-running configure\n");
13024     } 
13025 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
13026   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
13027            (gtk_minor_version != GTK_MINOR_VERSION) ||
13028            (gtk_micro_version != GTK_MICRO_VERSION))
13029     {
13030       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
13031              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
13032       printf("*** library (version %d.%d.%d)\n",
13033              gtk_major_version, gtk_minor_version, gtk_micro_version);
13034     }
13035 #endif /* defined (GTK_MAJOR_VERSION) ... */
13036   else
13037     {
13038       if ((gtk_major_version > major) ||
13039         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
13040         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
13041       {
13042         return 0;
13043        }
13044      else
13045       {
13046         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
13047                gtk_major_version, gtk_minor_version, gtk_micro_version);
13048         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
13049                major, minor, micro);
13050         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
13051         printf("***\n");
13052         printf("*** If you have already installed a sufficiently new version, this error\n");
13053         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
13054         printf("*** being found. The easiest way to fix this is to remove the old version\n");
13055         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
13056         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
13057         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13058         printf("*** so that the correct libraries are found at run-time))\n");
13059       }
13060     }
13061   return 1;
13062 }
13063
13064 EOF
13065 if { (eval echo configure:13066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13066 then
13067   :
13068 else
13069   echo "configure: failed program was:" >&5
13070   cat conftest.$ac_ext >&5
13071   rm -fr conftest*
13072   no_gtk=yes
13073 fi
13074 rm -fr conftest*
13075 fi
13076
13077        CFLAGS="$ac_save_CFLAGS"
13078        LIBS="$ac_save_LIBS"
13079      fi
13080   fi
13081   if test "x$no_gtk" = x ; then
13082      echo "$ac_t""yes" 1>&6
13083      wx_cv_lib_gtk=1.2.3     
13084   else
13085      echo "$ac_t""no" 1>&6
13086      if test "$GTK_CONFIG" = "no" ; then
13087        echo "*** The gtk-config script installed by GTK could not be found"
13088        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13089        echo "*** your path, or set the GTK_CONFIG environment variable to the"
13090        echo "*** full path to gtk-config."
13091      else
13092        if test -f conf.gtktest ; then
13093         :
13094        else
13095           echo "*** Could not run GTK test program, checking why..."
13096           CFLAGS="$CFLAGS $GTK_CFLAGS"
13097           LIBS="$LIBS $GTK_LIBS"
13098           cat > conftest.$ac_ext <<EOF
13099 #line 13100 "configure"
13100 #include "confdefs.h"
13101
13102 #include <gtk/gtk.h>
13103 #include <stdio.h>
13104
13105 int main() {
13106  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
13107 ; return 0; }
13108 EOF
13109 if { (eval echo configure:13110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13110   rm -rf conftest*
13111    echo "*** The test program compiled, but did not run. This usually means"
13112           echo "*** that the run-time linker is not finding GTK or finding the wrong"
13113           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13114           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13115           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13116           echo "*** is required on your system"
13117           echo "***"
13118           echo "*** If you have an old version installed, it is best to remove it, although"
13119           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13120           echo "***"
13121           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13122           echo "*** came with the system with the command"
13123           echo "***"
13124           echo "***    rpm --erase --nodeps gtk gtk-devel" 
13125 else
13126   echo "configure: failed program was:" >&5
13127   cat conftest.$ac_ext >&5
13128   rm -rf conftest*
13129    echo "*** The test program failed to compile or link. See the file config.log for the"
13130           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13131           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
13132           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
13133 fi
13134 rm -f conftest*
13135           CFLAGS="$ac_save_CFLAGS"
13136           LIBS="$ac_save_LIBS"
13137        fi
13138      fi
13139      GTK_CFLAGS=""
13140      GTK_LIBS=""
13141      :
13142   fi
13143   
13144   
13145   rm -f conf.gtktest
13146
13147                     fi
13148                 fi
13149
13150                 if test -z "$wx_cv_lib_gtk"; then
13151                                         wx_cv_lib_gtk=none
13152                 else
13153                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
13154                     wx_cv_libs_gtk=$GTK_LIBS
13155                 fi
13156             
13157         
13158 fi
13159
13160
13161                         if test "$gtk_version_cached" = 1; then
13162             echo "$ac_t""$wx_cv_lib_gtk" 1>&6
13163         fi
13164
13165         case "$wx_cv_lib_gtk" in
13166             2.0)    WXGTK20=1
13167                     TOOLKIT_VERSION=2
13168                     ;;
13169             1.2.7)  WXGTK127=1
13170                     WXGTK12=1
13171                     ;;
13172             1.2.3)  WXGTK12=1
13173                     ;;
13174             *)      { echo "configure: error: 
13175 Please check that gtk-config is in path, the directory
13176 where GTK+ libraries are installed (returned by
13177 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13178 equivalent variable and GTK+ is version 1.2.3 or above.
13179                             " 1>&2; exit 1; }
13180                     ;;
13181         esac
13182
13183         if test "$WXGTK20" = 1; then
13184             if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13185                 
13186   succeeded=no
13187
13188   if test -z "$PKG_CONFIG"; then
13189     # Extract the first word of "pkg-config", so it can be a program name with args.
13190 set dummy pkg-config; ac_word=$2
13191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13192 echo "configure:13193: checking for $ac_word" >&5
13193 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13194   echo $ac_n "(cached) $ac_c" 1>&6
13195 else
13196   case "$PKG_CONFIG" in
13197   /*)
13198   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13199   ;;
13200   ?:/*)                  
13201   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13202   ;;
13203   *)
13204   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
13205   ac_dummy="$PATH"
13206   for ac_dir in $ac_dummy; do 
13207     test -z "$ac_dir" && ac_dir=.
13208     if test -f $ac_dir/$ac_word; then
13209       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13210       break
13211     fi
13212   done
13213   IFS="$ac_save_ifs"
13214   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13215   ;;
13216 esac
13217 fi
13218 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13219 if test -n "$PKG_CONFIG"; then
13220   echo "$ac_t""$PKG_CONFIG" 1>&6
13221 else
13222   echo "$ac_t""no" 1>&6
13223 fi
13224
13225   fi
13226
13227   if test "$PKG_CONFIG" = "no" ; then
13228      echo "*** The pkg-config script could not be found. Make sure it is"
13229      echo "*** in your path, or set the PKG_CONFIG environment variable"
13230      echo "*** to the full path to pkg-config."
13231      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13232   else
13233      PKG_CONFIG_MIN_VERSION=0.9.0
13234      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13235         echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
13236 echo "configure:13237: checking for pangoft2" >&5
13237
13238         if $PKG_CONFIG --exists "pangoft2" ; then
13239             echo "$ac_t""yes" 1>&6
13240             succeeded=yes
13241
13242             echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
13243 echo "configure:13244: checking PANGOFT2_CFLAGS" >&5
13244             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
13245             echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
13246
13247             echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
13248 echo "configure:13249: checking PANGOFT2_LIBS" >&5
13249             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
13250             echo "$ac_t""$PANGOFT2_LIBS" 1>&6
13251         else
13252             PANGOFT2_CFLAGS=""
13253             PANGOFT2_LIBS=""
13254             ## If we have a custom action on failure, don't print errors, but 
13255             ## do set a variable so people can do so.
13256             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
13257             
13258         fi
13259
13260         
13261         
13262      else
13263         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13264         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13265      fi
13266   fi
13267
13268   if test $succeeded = yes; then
13269      
13270                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13271                         LIBS="$LIBS $PANGOFT2_LIBS"
13272                     
13273   else
13274      
13275                         echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
13276                         wxUSE_PRINTING_ARCHITECTURE="no"
13277                     
13278                 
13279   fi
13280
13281             fi
13282         else
13283             if test "$wxUSE_UNICODE" = "yes"; then
13284                 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13285                 wxUSE_UNICODE=no
13286             fi
13287         fi
13288
13289                         if test "$USE_DARWIN" != 1; then
13290             for ac_func in poll
13291 do
13292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13293 echo "configure:13294: checking for $ac_func" >&5
13294 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13295   echo $ac_n "(cached) $ac_c" 1>&6
13296 else
13297   cat > conftest.$ac_ext <<EOF
13298 #line 13299 "configure"
13299 #include "confdefs.h"
13300 /* System header to define __stub macros and hopefully few prototypes,
13301     which can conflict with char $ac_func(); below.  */
13302 #include <assert.h>
13303 /* Override any gcc2 internal prototype to avoid an error.  */
13304 /* We use char because int might match the return type of a gcc2
13305     builtin and then its argument prototype would still apply.  */
13306 char $ac_func();
13307
13308 int main() {
13309
13310 /* The GNU C library defines this for functions which it implements
13311     to always fail with ENOSYS.  Some functions are actually named
13312     something starting with __ and the normal name is an alias.  */
13313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13314 choke me
13315 #else
13316 $ac_func();
13317 #endif
13318
13319 ; return 0; }
13320 EOF
13321 if { (eval echo configure:13322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13322   rm -rf conftest*
13323   eval "ac_cv_func_$ac_func=yes"
13324 else
13325   echo "configure: failed program was:" >&5
13326   cat conftest.$ac_ext >&5
13327   rm -rf conftest*
13328   eval "ac_cv_func_$ac_func=no"
13329 fi
13330 rm -f conftest*
13331 fi
13332
13333 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13334   echo "$ac_t""yes" 1>&6
13335     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13336   cat >> confdefs.h <<EOF
13337 #define $ac_tr_func 1
13338 EOF
13339  
13340 else
13341   echo "$ac_t""no" 1>&6
13342 fi
13343 done
13344
13345         fi
13346
13347         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13348         GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13349
13350         AFMINSTALL=afminstall
13351         TOOLKIT=GTK
13352         GUIDIST=GTK_DIST
13353
13354                 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
13355 echo "configure:13356: checking for gdk_im_open in -lgdk" >&5
13356 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13357 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13358   echo $ac_n "(cached) $ac_c" 1>&6
13359 else
13360   ac_save_LIBS="$LIBS"
13361 LIBS="-lgdk  $LIBS"
13362 cat > conftest.$ac_ext <<EOF
13363 #line 13364 "configure"
13364 #include "confdefs.h"
13365 /* Override any gcc2 internal prototype to avoid an error.  */
13366 /* We use char because int might match the return type of a gcc2
13367     builtin and then its argument prototype would still apply.  */
13368 char gdk_im_open();
13369
13370 int main() {
13371 gdk_im_open()
13372 ; return 0; }
13373 EOF
13374 if { (eval echo configure:13375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13375   rm -rf conftest*
13376   eval "ac_cv_lib_$ac_lib_var=yes"
13377 else
13378   echo "configure: failed program was:" >&5
13379   cat conftest.$ac_ext >&5
13380   rm -rf conftest*
13381   eval "ac_cv_lib_$ac_lib_var=no"
13382 fi
13383 rm -f conftest*
13384 LIBS="$ac_save_LIBS"
13385
13386 fi
13387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13388   echo "$ac_t""yes" 1>&6
13389   cat >> confdefs.h <<\EOF
13390 #define HAVE_XIM 1
13391 EOF
13392
13393 else
13394   echo "$ac_t""no" 1>&6
13395 fi
13396
13397     fi
13398
13399     if test "$wxUSE_MGL" = 1; then
13400        echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
13401 echo "configure:13402: checking for SciTech MGL library" >&5
13402         if test "x$MGL_ROOT" = x ; then
13403             echo "$ac_t""not found" 1>&6
13404             { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
13405         else
13406             echo "$ac_t""$MGL_ROOT" 1>&6
13407         fi
13408
13409         echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
13410 echo "configure:13411: checking for libmgl location" >&5
13411                         case "${host}" in
13412             *-*-linux* )
13413               if test "x$wxUSE_SHARED" = xyes ; then
13414                   mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13415               else
13416                   mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13417               fi
13418               ;;
13419             *-pc-msdosdjgpp )
13420               mgl_os_candidates="dos32/dj2"
13421               ;;
13422             *)
13423               { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
13424         esac
13425
13426         mgl_lib_type=""
13427         mgl_os=""
13428
13429         for mgl_os_i in $mgl_os_candidates ; do
13430             if test "x$mgl_os" = x ; then
13431                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13432                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13433                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13434                         mgl_lib_type=debug
13435                         mgl_os=$mgl_os_i
13436                     fi
13437                 fi
13438                 if test "x$mgl_lib_type" = x ; then
13439                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13440                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13441                         mgl_lib_type=release
13442                         mgl_os=$mgl_os_i
13443                     fi
13444                 fi
13445             fi
13446         done
13447
13448         if test "x$mgl_os" = x ; then
13449             echo "$ac_t""not found" 1>&6
13450             { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13451         fi
13452         echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
13453
13454         wxUSE_UNIVERSAL="yes"
13455
13456         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13457         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13458
13459         AFMINSTALL=afminstall
13460         TOOLKIT=MGL
13461         GUIDIST=MGL_DIST
13462     fi
13463
13464     if test "$wxUSE_MICROWIN" = 1; then
13465         echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
13466 echo "configure:13467: checking for MicroWindows" >&5
13467         if test "x$MICROWINDOWS" = x ; then
13468             echo "$ac_t""not found" 1>&6
13469             { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
13470         else
13471             echo "$ac_t""$MICROWINDOWS" 1>&6
13472         fi
13473
13474         if test -f $MICROWINDOWS/lib/libmwin.a; then
13475             echo "$ac_t""MicroWindows' libraries found." 1>&6
13476         else
13477             { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
13478         fi
13479
13480         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13481         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13482
13483         wxUSE_UNIVERSAL="yes"
13484
13485         AFMINSTALL=afminstall
13486         TOOLKIT=MICROWIN
13487         GUIDIST=MICROWIN_DIST
13488
13489         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
13490     fi
13491
13492     if test "$wxUSE_X11" = 1; then
13493                         # If we find X, set shell vars x_includes and x_libraries to the
13494 # paths, otherwise set no_x=yes.
13495 # Uses ac_ vars as temps to allow command line to override cache and checks.
13496 # --without-x overrides everything else, but does not touch the cache.
13497 echo $ac_n "checking for X""... $ac_c" 1>&6
13498 echo "configure:13499: checking for X" >&5
13499
13500 # Check whether --with-x or --without-x was given.
13501 if test "${with_x+set}" = set; then
13502   withval="$with_x"
13503   :
13504 fi
13505
13506 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13507 if test "x$with_x" = xno; then
13508   # The user explicitly disabled X.
13509   have_x=disabled
13510 else
13511   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13512     # Both variables are already set.
13513     have_x=yes
13514   else
13515 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13516   echo $ac_n "(cached) $ac_c" 1>&6
13517 else
13518   # One or both of the vars are not set, and there is no cached value.
13519 ac_x_includes=NO ac_x_libraries=NO
13520 rm -fr conftestdir
13521 if mkdir conftestdir; then
13522   cd conftestdir
13523   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
13524   cat > Imakefile <<'EOF'
13525 acfindx:
13526         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
13527 EOF
13528   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13529     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13530     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13531     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13532     for ac_extension in a so sl; do
13533       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
13534         test -f $ac_im_libdir/libX11.$ac_extension; then
13535         ac_im_usrlibdir=$ac_im_libdir; break
13536       fi
13537     done
13538     # Screen out bogus values from the imake configuration.  They are
13539     # bogus both because they are the default anyway, and because
13540     # using them would break gcc on systems where it needs fixed includes.
13541     case "$ac_im_incroot" in
13542         /usr/include) ;;
13543         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
13544     esac
13545     case "$ac_im_usrlibdir" in
13546         /usr/lib | /lib) ;;
13547         *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
13548     esac
13549   fi
13550   cd ..
13551   rm -fr conftestdir
13552 fi
13553
13554 if test "$ac_x_includes" = NO; then
13555   # Guess where to find include files, by looking for this one X11 .h file.
13556   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13557
13558   # First, try using that file with no special directory specified.
13559 cat > conftest.$ac_ext <<EOF
13560 #line 13561 "configure"
13561 #include "confdefs.h"
13562 #include <$x_direct_test_include>
13563 EOF
13564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13565 { (eval echo configure:13566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13567 if test -z "$ac_err"; then
13568   rm -rf conftest*
13569   # We can compile using X headers with no special include directory.
13570 ac_x_includes=
13571 else
13572   echo "$ac_err" >&5
13573   echo "configure: failed program was:" >&5
13574   cat conftest.$ac_ext >&5
13575   rm -rf conftest*
13576   # Look for the header file in a standard set of common directories.
13577 # Check X11 before X11Rn because it is often a symlink to the current release.
13578   for ac_dir in               \
13579     /usr/X11/include          \
13580     /usr/X11R6/include        \
13581     /usr/X11R5/include        \
13582     /usr/X11R4/include        \
13583                               \
13584     /usr/include/X11          \
13585     /usr/include/X11R6        \
13586     /usr/include/X11R5        \
13587     /usr/include/X11R4        \
13588                               \
13589     /usr/local/X11/include    \
13590     /usr/local/X11R6/include  \
13591     /usr/local/X11R5/include  \
13592     /usr/local/X11R4/include  \
13593                               \
13594     /usr/local/include/X11    \
13595     /usr/local/include/X11R6  \
13596     /usr/local/include/X11R5  \
13597     /usr/local/include/X11R4  \
13598                               \
13599     /usr/X386/include         \
13600     /usr/x386/include         \
13601     /usr/XFree86/include/X11  \
13602                               \
13603     /usr/include              \
13604     /usr/local/include        \
13605     /usr/unsupported/include  \
13606     /usr/athena/include       \
13607     /usr/local/x11r5/include  \
13608     /usr/lpp/Xamples/include  \
13609                               \
13610     /usr/openwin/include      \
13611     /usr/openwin/share/include \
13612     ; \
13613   do
13614     if test -r "$ac_dir/$x_direct_test_include"; then
13615       ac_x_includes=$ac_dir
13616       break
13617     fi
13618   done
13619 fi
13620 rm -f conftest*
13621 fi # $ac_x_includes = NO
13622
13623 if test "$ac_x_libraries" = NO; then
13624   # Check for the libraries.
13625
13626   test -z "$x_direct_test_library" && x_direct_test_library=Xt
13627   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13628
13629   # See if we find them without any special options.
13630   # Don't add to $LIBS permanently.
13631   ac_save_LIBS="$LIBS"
13632   LIBS="-l$x_direct_test_library $LIBS"
13633 cat > conftest.$ac_ext <<EOF
13634 #line 13635 "configure"
13635 #include "confdefs.h"
13636
13637 int main() {
13638 ${x_direct_test_function}()
13639 ; return 0; }
13640 EOF
13641 if { (eval echo configure:13642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13642   rm -rf conftest*
13643   LIBS="$ac_save_LIBS"
13644 # We can link X programs with no special library path.
13645 ac_x_libraries=
13646 else
13647   echo "configure: failed program was:" >&5
13648   cat conftest.$ac_ext >&5
13649   rm -rf conftest*
13650   LIBS="$ac_save_LIBS"
13651 # First see if replacing the include by lib works.
13652 # Check X11 before X11Rn because it is often a symlink to the current release.
13653 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13654     /usr/X11/lib          \
13655     /usr/X11R6/lib        \
13656     /usr/X11R5/lib        \
13657     /usr/X11R4/lib        \
13658                           \
13659     /usr/lib/X11          \
13660     /usr/lib/X11R6        \
13661     /usr/lib/X11R5        \
13662     /usr/lib/X11R4        \
13663                           \
13664     /usr/local/X11/lib    \
13665     /usr/local/X11R6/lib  \
13666     /usr/local/X11R5/lib  \
13667     /usr/local/X11R4/lib  \
13668                           \
13669     /usr/local/lib/X11    \
13670     /usr/local/lib/X11R6  \
13671     /usr/local/lib/X11R5  \
13672     /usr/local/lib/X11R4  \
13673                           \
13674     /usr/X386/lib         \
13675     /usr/x386/lib         \
13676     /usr/XFree86/lib/X11  \
13677                           \
13678     /usr/lib              \
13679     /usr/local/lib        \
13680     /usr/unsupported/lib  \
13681     /usr/athena/lib       \
13682     /usr/local/x11r5/lib  \
13683     /usr/lpp/Xamples/lib  \
13684     /lib/usr/lib/X11      \
13685                           \
13686     /usr/openwin/lib      \
13687     /usr/openwin/share/lib \
13688     ; \
13689 do
13690   for ac_extension in a so sl; do
13691     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13692       ac_x_libraries=$ac_dir
13693       break 2
13694     fi
13695   done
13696 done
13697 fi
13698 rm -f conftest*
13699 fi # $ac_x_libraries = NO
13700
13701 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13702   # Didn't find X anywhere.  Cache the known absence of X.
13703   ac_cv_have_x="have_x=no"
13704 else
13705   # Record where we found X for the cache.
13706   ac_cv_have_x="have_x=yes \
13707                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13708 fi
13709 fi
13710   fi
13711   eval "$ac_cv_have_x"
13712 fi # $with_x != no
13713
13714 if test "$have_x" != yes; then
13715   echo "$ac_t""$have_x" 1>&6
13716   no_x=yes
13717 else
13718   # If each of the values was on the command line, it overrides each guess.
13719   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13720   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13721   # Update the cache value to reflect the command line values.
13722   ac_cv_have_x="have_x=yes \
13723                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13724   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13725 fi
13726
13727 if test "$no_x" = yes; then
13728   # Not all programs may use this symbol, but it does not hurt to define it.
13729   cat >> confdefs.h <<\EOF
13730 #define X_DISPLAY_MISSING 1
13731 EOF
13732
13733   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13734 else
13735   if test -n "$x_includes"; then
13736     X_CFLAGS="$X_CFLAGS -I$x_includes"
13737   fi
13738
13739   # It would also be nice to do this for all -L options, not just this one.
13740   if test -n "$x_libraries"; then
13741     X_LIBS="$X_LIBS -L$x_libraries"
13742     # For Solaris; some versions of Sun CC require a space after -R and
13743     # others require no space.  Words are not sufficient . . . .
13744     case "`(uname -sr) 2>/dev/null`" in
13745     "SunOS 5"*)
13746       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13747 echo "configure:13748: checking whether -R must be followed by a space" >&5
13748       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13749       cat > conftest.$ac_ext <<EOF
13750 #line 13751 "configure"
13751 #include "confdefs.h"
13752
13753 int main() {
13754
13755 ; return 0; }
13756 EOF
13757 if { (eval echo configure:13758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13758   rm -rf conftest*
13759   ac_R_nospace=yes
13760 else
13761   echo "configure: failed program was:" >&5
13762   cat conftest.$ac_ext >&5
13763   rm -rf conftest*
13764   ac_R_nospace=no
13765 fi
13766 rm -f conftest*
13767       if test $ac_R_nospace = yes; then
13768         echo "$ac_t""no" 1>&6
13769         X_LIBS="$X_LIBS -R$x_libraries"
13770       else
13771         LIBS="$ac_xsave_LIBS -R $x_libraries"
13772         cat > conftest.$ac_ext <<EOF
13773 #line 13774 "configure"
13774 #include "confdefs.h"
13775
13776 int main() {
13777
13778 ; return 0; }
13779 EOF
13780 if { (eval echo configure:13781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13781   rm -rf conftest*
13782   ac_R_space=yes
13783 else
13784   echo "configure: failed program was:" >&5
13785   cat conftest.$ac_ext >&5
13786   rm -rf conftest*
13787   ac_R_space=no
13788 fi
13789 rm -f conftest*
13790         if test $ac_R_space = yes; then
13791           echo "$ac_t""yes" 1>&6
13792           X_LIBS="$X_LIBS -R $x_libraries"
13793         else
13794           echo "$ac_t""neither works" 1>&6
13795         fi
13796       fi
13797       LIBS="$ac_xsave_LIBS"
13798     esac
13799   fi
13800
13801   # Check for system-dependent libraries X programs must link with.
13802   # Do this before checking for the system-independent R6 libraries
13803   # (-lICE), since we may need -lsocket or whatever for X linking.
13804
13805   if test "$ISC" = yes; then
13806     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13807   else
13808     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13809     # libraries were built with DECnet support.  And karl@cs.umb.edu says
13810     # the Alpha needs dnet_stub (dnet does not exist).
13811     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13812 echo "configure:13813: checking for dnet_ntoa in -ldnet" >&5
13813 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13814 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13815   echo $ac_n "(cached) $ac_c" 1>&6
13816 else
13817   ac_save_LIBS="$LIBS"
13818 LIBS="-ldnet  $LIBS"
13819 cat > conftest.$ac_ext <<EOF
13820 #line 13821 "configure"
13821 #include "confdefs.h"
13822 /* Override any gcc2 internal prototype to avoid an error.  */
13823 /* We use char because int might match the return type of a gcc2
13824     builtin and then its argument prototype would still apply.  */
13825 char dnet_ntoa();
13826
13827 int main() {
13828 dnet_ntoa()
13829 ; return 0; }
13830 EOF
13831 if { (eval echo configure:13832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13832   rm -rf conftest*
13833   eval "ac_cv_lib_$ac_lib_var=yes"
13834 else
13835   echo "configure: failed program was:" >&5
13836   cat conftest.$ac_ext >&5
13837   rm -rf conftest*
13838   eval "ac_cv_lib_$ac_lib_var=no"
13839 fi
13840 rm -f conftest*
13841 LIBS="$ac_save_LIBS"
13842
13843 fi
13844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13845   echo "$ac_t""yes" 1>&6
13846   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13847 else
13848   echo "$ac_t""no" 1>&6
13849 fi
13850
13851     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13852       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13853 echo "configure:13854: checking for dnet_ntoa in -ldnet_stub" >&5
13854 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13856   echo $ac_n "(cached) $ac_c" 1>&6
13857 else
13858   ac_save_LIBS="$LIBS"
13859 LIBS="-ldnet_stub  $LIBS"
13860 cat > conftest.$ac_ext <<EOF
13861 #line 13862 "configure"
13862 #include "confdefs.h"
13863 /* Override any gcc2 internal prototype to avoid an error.  */
13864 /* We use char because int might match the return type of a gcc2
13865     builtin and then its argument prototype would still apply.  */
13866 char dnet_ntoa();
13867
13868 int main() {
13869 dnet_ntoa()
13870 ; return 0; }
13871 EOF
13872 if { (eval echo configure:13873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13873   rm -rf conftest*
13874   eval "ac_cv_lib_$ac_lib_var=yes"
13875 else
13876   echo "configure: failed program was:" >&5
13877   cat conftest.$ac_ext >&5
13878   rm -rf conftest*
13879   eval "ac_cv_lib_$ac_lib_var=no"
13880 fi
13881 rm -f conftest*
13882 LIBS="$ac_save_LIBS"
13883
13884 fi
13885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13886   echo "$ac_t""yes" 1>&6
13887   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13888 else
13889   echo "$ac_t""no" 1>&6
13890 fi
13891
13892     fi
13893
13894     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13895     # to get the SysV transport functions.
13896     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13897     # needs -lnsl.
13898     # The nsl library prevents programs from opening the X display
13899     # on Irix 5.2, according to dickey@clark.net.
13900     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13901 echo "configure:13902: checking for gethostbyname" >&5
13902 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13903   echo $ac_n "(cached) $ac_c" 1>&6
13904 else
13905   cat > conftest.$ac_ext <<EOF
13906 #line 13907 "configure"
13907 #include "confdefs.h"
13908 /* System header to define __stub macros and hopefully few prototypes,
13909     which can conflict with char gethostbyname(); below.  */
13910 #include <assert.h>
13911 /* Override any gcc2 internal prototype to avoid an error.  */
13912 /* We use char because int might match the return type of a gcc2
13913     builtin and then its argument prototype would still apply.  */
13914 char gethostbyname();
13915
13916 int main() {
13917
13918 /* The GNU C library defines this for functions which it implements
13919     to always fail with ENOSYS.  Some functions are actually named
13920     something starting with __ and the normal name is an alias.  */
13921 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13922 choke me
13923 #else
13924 gethostbyname();
13925 #endif
13926
13927 ; return 0; }
13928 EOF
13929 if { (eval echo configure:13930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13930   rm -rf conftest*
13931   eval "ac_cv_func_gethostbyname=yes"
13932 else
13933   echo "configure: failed program was:" >&5
13934   cat conftest.$ac_ext >&5
13935   rm -rf conftest*
13936   eval "ac_cv_func_gethostbyname=no"
13937 fi
13938 rm -f conftest*
13939 fi
13940
13941 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13942   echo "$ac_t""yes" 1>&6
13943   :
13944 else
13945   echo "$ac_t""no" 1>&6
13946 fi
13947
13948     if test $ac_cv_func_gethostbyname = no; then
13949       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13950 echo "configure:13951: checking for gethostbyname in -lnsl" >&5
13951 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13952 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13953   echo $ac_n "(cached) $ac_c" 1>&6
13954 else
13955   ac_save_LIBS="$LIBS"
13956 LIBS="-lnsl  $LIBS"
13957 cat > conftest.$ac_ext <<EOF
13958 #line 13959 "configure"
13959 #include "confdefs.h"
13960 /* Override any gcc2 internal prototype to avoid an error.  */
13961 /* We use char because int might match the return type of a gcc2
13962     builtin and then its argument prototype would still apply.  */
13963 char gethostbyname();
13964
13965 int main() {
13966 gethostbyname()
13967 ; return 0; }
13968 EOF
13969 if { (eval echo configure:13970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13970   rm -rf conftest*
13971   eval "ac_cv_lib_$ac_lib_var=yes"
13972 else
13973   echo "configure: failed program was:" >&5
13974   cat conftest.$ac_ext >&5
13975   rm -rf conftest*
13976   eval "ac_cv_lib_$ac_lib_var=no"
13977 fi
13978 rm -f conftest*
13979 LIBS="$ac_save_LIBS"
13980
13981 fi
13982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13983   echo "$ac_t""yes" 1>&6
13984   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13985 else
13986   echo "$ac_t""no" 1>&6
13987 fi
13988
13989     fi
13990
13991     # lieder@skyler.mavd.honeywell.com says without -lsocket,
13992     # socket/setsockopt and other routines are undefined under SCO ODT
13993     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
13994     # on later versions), says simon@lia.di.epfl.ch: it contains
13995     # gethostby* variants that don't use the nameserver (or something).
13996     # -lsocket must be given before -lnsl if both are needed.
13997     # We assume that if connect needs -lnsl, so does gethostbyname.
13998     echo $ac_n "checking for connect""... $ac_c" 1>&6
13999 echo "configure:14000: checking for connect" >&5
14000 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14001   echo $ac_n "(cached) $ac_c" 1>&6
14002 else
14003   cat > conftest.$ac_ext <<EOF
14004 #line 14005 "configure"
14005 #include "confdefs.h"
14006 /* System header to define __stub macros and hopefully few prototypes,
14007     which can conflict with char connect(); below.  */
14008 #include <assert.h>
14009 /* Override any gcc2 internal prototype to avoid an error.  */
14010 /* We use char because int might match the return type of a gcc2
14011     builtin and then its argument prototype would still apply.  */
14012 char connect();
14013
14014 int main() {
14015
14016 /* The GNU C library defines this for functions which it implements
14017     to always fail with ENOSYS.  Some functions are actually named
14018     something starting with __ and the normal name is an alias.  */
14019 #if defined (__stub_connect) || defined (__stub___connect)
14020 choke me
14021 #else
14022 connect();
14023 #endif
14024
14025 ; return 0; }
14026 EOF
14027 if { (eval echo configure:14028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14028   rm -rf conftest*
14029   eval "ac_cv_func_connect=yes"
14030 else
14031   echo "configure: failed program was:" >&5
14032   cat conftest.$ac_ext >&5
14033   rm -rf conftest*
14034   eval "ac_cv_func_connect=no"
14035 fi
14036 rm -f conftest*
14037 fi
14038
14039 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14040   echo "$ac_t""yes" 1>&6
14041   :
14042 else
14043   echo "$ac_t""no" 1>&6
14044 fi
14045
14046     if test $ac_cv_func_connect = no; then
14047       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14048 echo "configure:14049: checking for connect in -lsocket" >&5
14049 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14050 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14051   echo $ac_n "(cached) $ac_c" 1>&6
14052 else
14053   ac_save_LIBS="$LIBS"
14054 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14055 cat > conftest.$ac_ext <<EOF
14056 #line 14057 "configure"
14057 #include "confdefs.h"
14058 /* Override any gcc2 internal prototype to avoid an error.  */
14059 /* We use char because int might match the return type of a gcc2
14060     builtin and then its argument prototype would still apply.  */
14061 char connect();
14062
14063 int main() {
14064 connect()
14065 ; return 0; }
14066 EOF
14067 if { (eval echo configure:14068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14068   rm -rf conftest*
14069   eval "ac_cv_lib_$ac_lib_var=yes"
14070 else
14071   echo "configure: failed program was:" >&5
14072   cat conftest.$ac_ext >&5
14073   rm -rf conftest*
14074   eval "ac_cv_lib_$ac_lib_var=no"
14075 fi
14076 rm -f conftest*
14077 LIBS="$ac_save_LIBS"
14078
14079 fi
14080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14081   echo "$ac_t""yes" 1>&6
14082   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14083 else
14084   echo "$ac_t""no" 1>&6
14085 fi
14086
14087     fi
14088
14089     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14090     echo $ac_n "checking for remove""... $ac_c" 1>&6
14091 echo "configure:14092: checking for remove" >&5
14092 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14093   echo $ac_n "(cached) $ac_c" 1>&6
14094 else
14095   cat > conftest.$ac_ext <<EOF
14096 #line 14097 "configure"
14097 #include "confdefs.h"
14098 /* System header to define __stub macros and hopefully few prototypes,
14099     which can conflict with char remove(); below.  */
14100 #include <assert.h>
14101 /* Override any gcc2 internal prototype to avoid an error.  */
14102 /* We use char because int might match the return type of a gcc2
14103     builtin and then its argument prototype would still apply.  */
14104 char remove();
14105
14106 int main() {
14107
14108 /* The GNU C library defines this for functions which it implements
14109     to always fail with ENOSYS.  Some functions are actually named
14110     something starting with __ and the normal name is an alias.  */
14111 #if defined (__stub_remove) || defined (__stub___remove)
14112 choke me
14113 #else
14114 remove();
14115 #endif
14116
14117 ; return 0; }
14118 EOF
14119 if { (eval echo configure:14120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14120   rm -rf conftest*
14121   eval "ac_cv_func_remove=yes"
14122 else
14123   echo "configure: failed program was:" >&5
14124   cat conftest.$ac_ext >&5
14125   rm -rf conftest*
14126   eval "ac_cv_func_remove=no"
14127 fi
14128 rm -f conftest*
14129 fi
14130
14131 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14132   echo "$ac_t""yes" 1>&6
14133   :
14134 else
14135   echo "$ac_t""no" 1>&6
14136 fi
14137
14138     if test $ac_cv_func_remove = no; then
14139       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14140 echo "configure:14141: checking for remove in -lposix" >&5
14141 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14142 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14143   echo $ac_n "(cached) $ac_c" 1>&6
14144 else
14145   ac_save_LIBS="$LIBS"
14146 LIBS="-lposix  $LIBS"
14147 cat > conftest.$ac_ext <<EOF
14148 #line 14149 "configure"
14149 #include "confdefs.h"
14150 /* Override any gcc2 internal prototype to avoid an error.  */
14151 /* We use char because int might match the return type of a gcc2
14152     builtin and then its argument prototype would still apply.  */
14153 char remove();
14154
14155 int main() {
14156 remove()
14157 ; return 0; }
14158 EOF
14159 if { (eval echo configure:14160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14160   rm -rf conftest*
14161   eval "ac_cv_lib_$ac_lib_var=yes"
14162 else
14163   echo "configure: failed program was:" >&5
14164   cat conftest.$ac_ext >&5
14165   rm -rf conftest*
14166   eval "ac_cv_lib_$ac_lib_var=no"
14167 fi
14168 rm -f conftest*
14169 LIBS="$ac_save_LIBS"
14170
14171 fi
14172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14173   echo "$ac_t""yes" 1>&6
14174   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14175 else
14176   echo "$ac_t""no" 1>&6
14177 fi
14178
14179     fi
14180
14181     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14182     echo $ac_n "checking for shmat""... $ac_c" 1>&6
14183 echo "configure:14184: checking for shmat" >&5
14184 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14185   echo $ac_n "(cached) $ac_c" 1>&6
14186 else
14187   cat > conftest.$ac_ext <<EOF
14188 #line 14189 "configure"
14189 #include "confdefs.h"
14190 /* System header to define __stub macros and hopefully few prototypes,
14191     which can conflict with char shmat(); below.  */
14192 #include <assert.h>
14193 /* Override any gcc2 internal prototype to avoid an error.  */
14194 /* We use char because int might match the return type of a gcc2
14195     builtin and then its argument prototype would still apply.  */
14196 char shmat();
14197
14198 int main() {
14199
14200 /* The GNU C library defines this for functions which it implements
14201     to always fail with ENOSYS.  Some functions are actually named
14202     something starting with __ and the normal name is an alias.  */
14203 #if defined (__stub_shmat) || defined (__stub___shmat)
14204 choke me
14205 #else
14206 shmat();
14207 #endif
14208
14209 ; return 0; }
14210 EOF
14211 if { (eval echo configure:14212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14212   rm -rf conftest*
14213   eval "ac_cv_func_shmat=yes"
14214 else
14215   echo "configure: failed program was:" >&5
14216   cat conftest.$ac_ext >&5
14217   rm -rf conftest*
14218   eval "ac_cv_func_shmat=no"
14219 fi
14220 rm -f conftest*
14221 fi
14222
14223 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14224   echo "$ac_t""yes" 1>&6
14225   :
14226 else
14227   echo "$ac_t""no" 1>&6
14228 fi
14229
14230     if test $ac_cv_func_shmat = no; then
14231       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14232 echo "configure:14233: checking for shmat in -lipc" >&5
14233 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14234 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14235   echo $ac_n "(cached) $ac_c" 1>&6
14236 else
14237   ac_save_LIBS="$LIBS"
14238 LIBS="-lipc  $LIBS"
14239 cat > conftest.$ac_ext <<EOF
14240 #line 14241 "configure"
14241 #include "confdefs.h"
14242 /* Override any gcc2 internal prototype to avoid an error.  */
14243 /* We use char because int might match the return type of a gcc2
14244     builtin and then its argument prototype would still apply.  */
14245 char shmat();
14246
14247 int main() {
14248 shmat()
14249 ; return 0; }
14250 EOF
14251 if { (eval echo configure:14252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14252   rm -rf conftest*
14253   eval "ac_cv_lib_$ac_lib_var=yes"
14254 else
14255   echo "configure: failed program was:" >&5
14256   cat conftest.$ac_ext >&5
14257   rm -rf conftest*
14258   eval "ac_cv_lib_$ac_lib_var=no"
14259 fi
14260 rm -f conftest*
14261 LIBS="$ac_save_LIBS"
14262
14263 fi
14264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14265   echo "$ac_t""yes" 1>&6
14266   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14267 else
14268   echo "$ac_t""no" 1>&6
14269 fi
14270
14271     fi
14272   fi
14273
14274   # Check for libraries that X11R6 Xt/Xaw programs need.
14275   ac_save_LDFLAGS="$LDFLAGS"
14276   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14277   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14278   # check for ICE first), but we must link in the order -lSM -lICE or
14279   # we get undefined symbols.  So assume we have SM if we have ICE.
14280   # These have to be linked with before -lX11, unlike the other
14281   # libraries we check for below, so use a different variable.
14282   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14283   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14284 echo "configure:14285: checking for IceConnectionNumber in -lICE" >&5
14285 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14287   echo $ac_n "(cached) $ac_c" 1>&6
14288 else
14289   ac_save_LIBS="$LIBS"
14290 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14291 cat > conftest.$ac_ext <<EOF
14292 #line 14293 "configure"
14293 #include "confdefs.h"
14294 /* Override any gcc2 internal prototype to avoid an error.  */
14295 /* We use char because int might match the return type of a gcc2
14296     builtin and then its argument prototype would still apply.  */
14297 char IceConnectionNumber();
14298
14299 int main() {
14300 IceConnectionNumber()
14301 ; return 0; }
14302 EOF
14303 if { (eval echo configure:14304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14304   rm -rf conftest*
14305   eval "ac_cv_lib_$ac_lib_var=yes"
14306 else
14307   echo "configure: failed program was:" >&5
14308   cat conftest.$ac_ext >&5
14309   rm -rf conftest*
14310   eval "ac_cv_lib_$ac_lib_var=no"
14311 fi
14312 rm -f conftest*
14313 LIBS="$ac_save_LIBS"
14314
14315 fi
14316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14317   echo "$ac_t""yes" 1>&6
14318   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14319 else
14320   echo "$ac_t""no" 1>&6
14321 fi
14322
14323   LDFLAGS="$ac_save_LDFLAGS"
14324
14325 fi
14326
14327
14328         if test "$no_x" = "yes"; then
14329           { echo "configure: error: X11 not found" 1>&2; exit 1; }
14330         fi
14331
14332         GUI_TK_LIBRARY="$X_LIBS"
14333         TOOLKIT_INCLUDE="$X_CFLAGS"
14334         AFMINSTALL=afminstall
14335         COMPILED_X_PROGRAM=0
14336
14337         if test "$wxUSE_NANOX" = "yes"; then
14338             echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
14339 echo "configure:14340: checking for MicroWindows/NanoX distribution" >&5
14340             if test "x$MICROWIN" = x ; then
14341                 echo "$ac_t""not found" 1>&6
14342                 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
14343             else
14344                 echo "$ac_t""$MICROWIN" 1>&6
14345                 cat >> confdefs.h <<\EOF
14346 #define wxUSE_NANOX 1
14347 EOF
14348
14349             fi
14350         fi
14351
14352         xpm_link=
14353         echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14354 echo "configure:14355: checking for Xpm library" >&5
14355         
14356 ac_find_libraries=
14357 for ac_dir in $SEARCH_LIB /usr/lib;
14358   do
14359     for ac_extension in a so sl dylib; do
14360       if test -f "$ac_dir/libXpm.$ac_extension"; then
14361         ac_find_libraries=$ac_dir
14362         break 2
14363       fi
14364     done
14365   done
14366
14367         if test "$ac_find_libraries" != "" ; then
14368             
14369   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14370   result=$?
14371   if test $result = 0; then
14372     ac_path_to_link=""
14373   else
14374     ac_path_to_link=" -L$ac_find_libraries"
14375   fi
14376
14377             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14378             xpm_link=" -lXpm"
14379             cat >> confdefs.h <<\EOF
14380 #define wxHAVE_LIB_XPM 1
14381 EOF
14382
14383             echo "$ac_t""found at $ac_find_libraries" 1>&6
14384         else
14385             cat > conftest.$ac_ext <<EOF
14386 #line 14387 "configure"
14387 #include "confdefs.h"
14388
14389                     #include <X11/xpm.h>
14390                 
14391 int main() {
14392
14393                     int version;
14394                     version = XpmLibraryVersion();
14395                 
14396 ; return 0; }
14397 EOF
14398 if { (eval echo configure:14399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14399   rm -rf conftest*
14400   
14401                     xpm_link=" -lXpm"
14402                     cat >> confdefs.h <<\EOF
14403 #define wxHAVE_LIB_XPM 1
14404 EOF
14405
14406                     echo "$ac_t""found in default search path" 1>&6
14407                     COMPILED_X_PROGRAM=0
14408                 
14409 else
14410   echo "configure: failed program was:" >&5
14411   cat conftest.$ac_ext >&5
14412   rm -rf conftest*
14413   
14414                     echo "$ac_t""no" 1>&6
14415                     echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14416                 
14417             
14418 fi
14419 rm -f conftest*
14420         fi
14421
14422         echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
14423 echo "configure:14424: checking for XShapeQueryExtension in -lXext" >&5
14424 ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
14425 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14426   echo $ac_n "(cached) $ac_c" 1>&6
14427 else
14428   ac_save_LIBS="$LIBS"
14429 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
14430 cat > conftest.$ac_ext <<EOF
14431 #line 14432 "configure"
14432 #include "confdefs.h"
14433 /* Override any gcc2 internal prototype to avoid an error.  */
14434 /* We use char because int might match the return type of a gcc2
14435     builtin and then its argument prototype would still apply.  */
14436 char XShapeQueryExtension();
14437
14438 int main() {
14439 XShapeQueryExtension()
14440 ; return 0; }
14441 EOF
14442 if { (eval echo configure:14443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14443   rm -rf conftest*
14444   eval "ac_cv_lib_$ac_lib_var=yes"
14445 else
14446   echo "configure: failed program was:" >&5
14447   cat conftest.$ac_ext >&5
14448   rm -rf conftest*
14449   eval "ac_cv_lib_$ac_lib_var=no"
14450 fi
14451 rm -f conftest*
14452 LIBS="$ac_save_LIBS"
14453
14454 fi
14455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14456   echo "$ac_t""yes" 1>&6
14457   
14458                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
14459                       wxHAVE_XEXT_LIB=1
14460                      
14461 else
14462   echo "$ac_t""no" 1>&6
14463 fi
14464
14465
14466         if test "$wxUSE_UNICODE" = "yes"; then
14467                 
14468   succeeded=no
14469
14470   if test -z "$PKG_CONFIG"; then
14471     # Extract the first word of "pkg-config", so it can be a program name with args.
14472 set dummy pkg-config; ac_word=$2
14473 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14474 echo "configure:14475: checking for $ac_word" >&5
14475 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14476   echo $ac_n "(cached) $ac_c" 1>&6
14477 else
14478   case "$PKG_CONFIG" in
14479   /*)
14480   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14481   ;;
14482   ?:/*)                  
14483   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14484   ;;
14485   *)
14486   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
14487   ac_dummy="$PATH"
14488   for ac_dir in $ac_dummy; do 
14489     test -z "$ac_dir" && ac_dir=.
14490     if test -f $ac_dir/$ac_word; then
14491       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14492       break
14493     fi
14494   done
14495   IFS="$ac_save_ifs"
14496   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14497   ;;
14498 esac
14499 fi
14500 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14501 if test -n "$PKG_CONFIG"; then
14502   echo "$ac_t""$PKG_CONFIG" 1>&6
14503 else
14504   echo "$ac_t""no" 1>&6
14505 fi
14506
14507   fi
14508
14509   if test "$PKG_CONFIG" = "no" ; then
14510      echo "*** The pkg-config script could not be found. Make sure it is"
14511      echo "*** in your path, or set the PKG_CONFIG environment variable"
14512      echo "*** to the full path to pkg-config."
14513      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14514   else
14515      PKG_CONFIG_MIN_VERSION=0.9.0
14516      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14517         echo $ac_n "checking for pangox""... $ac_c" 1>&6
14518 echo "configure:14519: checking for pangox" >&5
14519
14520         if $PKG_CONFIG --exists "pangox" ; then
14521             echo "$ac_t""yes" 1>&6
14522             succeeded=yes
14523
14524             echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
14525 echo "configure:14526: checking PANGOX_CFLAGS" >&5
14526             PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14527             echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14528
14529             echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
14530 echo "configure:14531: checking PANGOX_LIBS" >&5
14531             PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14532             echo "$ac_t""$PANGOX_LIBS" 1>&6
14533         else
14534             PANGOX_CFLAGS=""
14535             PANGOX_LIBS=""
14536             ## If we have a custom action on failure, don't print errors, but 
14537             ## do set a variable so people can do so.
14538             PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14539             
14540         fi
14541
14542         
14543         
14544      else
14545         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14546         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14547      fi
14548   fi
14549
14550   if test $succeeded = yes; then
14551      
14552                         CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14553                         LIBS="$LIBS $PANGOX_LIBS"
14554                     
14555   else
14556      
14557                         { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14558                     
14559                 
14560   fi
14561
14562                 
14563   succeeded=no
14564
14565   if test -z "$PKG_CONFIG"; then
14566     # Extract the first word of "pkg-config", so it can be a program name with args.
14567 set dummy pkg-config; ac_word=$2
14568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14569 echo "configure:14570: checking for $ac_word" >&5
14570 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14571   echo $ac_n "(cached) $ac_c" 1>&6
14572 else
14573   case "$PKG_CONFIG" in
14574   /*)
14575   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14576   ;;
14577   ?:/*)                  
14578   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14579   ;;
14580   *)
14581   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
14582   ac_dummy="$PATH"
14583   for ac_dir in $ac_dummy; do 
14584     test -z "$ac_dir" && ac_dir=.
14585     if test -f $ac_dir/$ac_word; then
14586       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14587       break
14588     fi
14589   done
14590   IFS="$ac_save_ifs"
14591   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14592   ;;
14593 esac
14594 fi
14595 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14596 if test -n "$PKG_CONFIG"; then
14597   echo "$ac_t""$PKG_CONFIG" 1>&6
14598 else
14599   echo "$ac_t""no" 1>&6
14600 fi
14601
14602   fi
14603
14604   if test "$PKG_CONFIG" = "no" ; then
14605      echo "*** The pkg-config script could not be found. Make sure it is"
14606      echo "*** in your path, or set the PKG_CONFIG environment variable"
14607      echo "*** to the full path to pkg-config."
14608      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14609   else
14610      PKG_CONFIG_MIN_VERSION=0.9.0
14611      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14612         echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
14613 echo "configure:14614: checking for pangoft2" >&5
14614
14615         if $PKG_CONFIG --exists "pangoft2" ; then
14616             echo "$ac_t""yes" 1>&6
14617             succeeded=yes
14618
14619             echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
14620 echo "configure:14621: checking PANGOFT2_CFLAGS" >&5
14621             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14622             echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14623
14624             echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
14625 echo "configure:14626: checking PANGOFT2_LIBS" >&5
14626             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14627             echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14628         else
14629             PANGOFT2_CFLAGS=""
14630             PANGOFT2_LIBS=""
14631             ## If we have a custom action on failure, don't print errors, but 
14632             ## do set a variable so people can do so.
14633             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14634             
14635         fi
14636
14637         
14638         
14639      else
14640         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14641         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14642      fi
14643   fi
14644
14645   if test $succeeded = yes; then
14646      
14647                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14648                         LIBS="$LIBS $PANGOFT2_LIBS"
14649                     
14650   else
14651      
14652                         echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14653                         wxUSE_PRINTING_ARCHITECTURE="no"
14654                     
14655                 
14656   fi
14657
14658                 
14659   succeeded=no
14660
14661   if test -z "$PKG_CONFIG"; then
14662     # Extract the first word of "pkg-config", so it can be a program name with args.
14663 set dummy pkg-config; ac_word=$2
14664 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14665 echo "configure:14666: checking for $ac_word" >&5
14666 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14667   echo $ac_n "(cached) $ac_c" 1>&6
14668 else
14669   case "$PKG_CONFIG" in
14670   /*)
14671   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14672   ;;
14673   ?:/*)                  
14674   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14675   ;;
14676   *)
14677   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
14678   ac_dummy="$PATH"
14679   for ac_dir in $ac_dummy; do 
14680     test -z "$ac_dir" && ac_dir=.
14681     if test -f $ac_dir/$ac_word; then
14682       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14683       break
14684     fi
14685   done
14686   IFS="$ac_save_ifs"
14687   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14688   ;;
14689 esac
14690 fi
14691 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14692 if test -n "$PKG_CONFIG"; then
14693   echo "$ac_t""$PKG_CONFIG" 1>&6
14694 else
14695   echo "$ac_t""no" 1>&6
14696 fi
14697
14698   fi
14699
14700   if test "$PKG_CONFIG" = "no" ; then
14701      echo "*** The pkg-config script could not be found. Make sure it is"
14702      echo "*** in your path, or set the PKG_CONFIG environment variable"
14703      echo "*** to the full path to pkg-config."
14704      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14705   else
14706      PKG_CONFIG_MIN_VERSION=0.9.0
14707      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14708         echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
14709 echo "configure:14710: checking for pangoxft" >&5
14710
14711         if $PKG_CONFIG --exists "pangoxft" ; then
14712             echo "$ac_t""yes" 1>&6
14713             succeeded=yes
14714
14715             echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
14716 echo "configure:14717: checking PANGOXFT_CFLAGS" >&5
14717             PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14718             echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14719
14720             echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
14721 echo "configure:14722: checking PANGOXFT_LIBS" >&5
14722             PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14723             echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14724         else
14725             PANGOXFT_CFLAGS=""
14726             PANGOXFT_LIBS=""
14727             ## If we have a custom action on failure, don't print errors, but 
14728             ## do set a variable so people can do so.
14729             PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14730             
14731         fi
14732
14733         
14734         
14735      else
14736         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14737         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14738      fi
14739   fi
14740
14741   if test $succeeded = yes; then
14742      
14743                         CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14744                         LIBS="$LIBS $PANGOXFT_LIBS"
14745                     
14746   else
14747      
14748                         echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14749                     
14750                 
14751   fi
14752
14753         fi
14754
14755         wxUSE_UNIVERSAL="yes"
14756
14757         if test "$wxUSE_NANOX" = "yes"; then
14758             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14759             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"
14760             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14761         else
14762             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14763         fi
14764
14765         TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14766         TOOLKIT=X11
14767         GUIDIST=X11_DIST
14768     fi
14769
14770     if test "$wxUSE_MOTIF" = 1; then
14771                         if test "$no_x" = yes; then
14772   # Not all programs may use this symbol, but it does not hurt to define it.
14773   cat >> confdefs.h <<\EOF
14774 #define X_DISPLAY_MISSING 1
14775 EOF
14776
14777   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14778 else
14779   if test -n "$x_includes"; then
14780     X_CFLAGS="$X_CFLAGS -I$x_includes"
14781   fi
14782
14783   # It would also be nice to do this for all -L options, not just this one.
14784   if test -n "$x_libraries"; then
14785     X_LIBS="$X_LIBS -L$x_libraries"
14786     # For Solaris; some versions of Sun CC require a space after -R and
14787     # others require no space.  Words are not sufficient . . . .
14788     case "`(uname -sr) 2>/dev/null`" in
14789     "SunOS 5"*)
14790       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
14791 echo "configure:14792: checking whether -R must be followed by a space" >&5
14792       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14793       cat > conftest.$ac_ext <<EOF
14794 #line 14795 "configure"
14795 #include "confdefs.h"
14796
14797 int main() {
14798
14799 ; return 0; }
14800 EOF
14801 if { (eval echo configure:14802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14802   rm -rf conftest*
14803   ac_R_nospace=yes
14804 else
14805   echo "configure: failed program was:" >&5
14806   cat conftest.$ac_ext >&5
14807   rm -rf conftest*
14808   ac_R_nospace=no
14809 fi
14810 rm -f conftest*
14811       if test $ac_R_nospace = yes; then
14812         echo "$ac_t""no" 1>&6
14813         X_LIBS="$X_LIBS -R$x_libraries"
14814       else
14815         LIBS="$ac_xsave_LIBS -R $x_libraries"
14816         cat > conftest.$ac_ext <<EOF
14817 #line 14818 "configure"
14818 #include "confdefs.h"
14819
14820 int main() {
14821
14822 ; return 0; }
14823 EOF
14824 if { (eval echo configure:14825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14825   rm -rf conftest*
14826   ac_R_space=yes
14827 else
14828   echo "configure: failed program was:" >&5
14829   cat conftest.$ac_ext >&5
14830   rm -rf conftest*
14831   ac_R_space=no
14832 fi
14833 rm -f conftest*
14834         if test $ac_R_space = yes; then
14835           echo "$ac_t""yes" 1>&6
14836           X_LIBS="$X_LIBS -R $x_libraries"
14837         else
14838           echo "$ac_t""neither works" 1>&6
14839         fi
14840       fi
14841       LIBS="$ac_xsave_LIBS"
14842     esac
14843   fi
14844
14845   # Check for system-dependent libraries X programs must link with.
14846   # Do this before checking for the system-independent R6 libraries
14847   # (-lICE), since we may need -lsocket or whatever for X linking.
14848
14849   if test "$ISC" = yes; then
14850     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14851   else
14852     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14853     # libraries were built with DECnet support.  And karl@cs.umb.edu says
14854     # the Alpha needs dnet_stub (dnet does not exist).
14855     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
14856 echo "configure:14857: checking for dnet_ntoa in -ldnet" >&5
14857 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14858 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14859   echo $ac_n "(cached) $ac_c" 1>&6
14860 else
14861   ac_save_LIBS="$LIBS"
14862 LIBS="-ldnet  $LIBS"
14863 cat > conftest.$ac_ext <<EOF
14864 #line 14865 "configure"
14865 #include "confdefs.h"
14866 /* Override any gcc2 internal prototype to avoid an error.  */
14867 /* We use char because int might match the return type of a gcc2
14868     builtin and then its argument prototype would still apply.  */
14869 char dnet_ntoa();
14870
14871 int main() {
14872 dnet_ntoa()
14873 ; return 0; }
14874 EOF
14875 if { (eval echo configure:14876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14876   rm -rf conftest*
14877   eval "ac_cv_lib_$ac_lib_var=yes"
14878 else
14879   echo "configure: failed program was:" >&5
14880   cat conftest.$ac_ext >&5
14881   rm -rf conftest*
14882   eval "ac_cv_lib_$ac_lib_var=no"
14883 fi
14884 rm -f conftest*
14885 LIBS="$ac_save_LIBS"
14886
14887 fi
14888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14889   echo "$ac_t""yes" 1>&6
14890   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14891 else
14892   echo "$ac_t""no" 1>&6
14893 fi
14894
14895     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14896       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
14897 echo "configure:14898: checking for dnet_ntoa in -ldnet_stub" >&5
14898 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14899 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14900   echo $ac_n "(cached) $ac_c" 1>&6
14901 else
14902   ac_save_LIBS="$LIBS"
14903 LIBS="-ldnet_stub  $LIBS"
14904 cat > conftest.$ac_ext <<EOF
14905 #line 14906 "configure"
14906 #include "confdefs.h"
14907 /* Override any gcc2 internal prototype to avoid an error.  */
14908 /* We use char because int might match the return type of a gcc2
14909     builtin and then its argument prototype would still apply.  */
14910 char dnet_ntoa();
14911
14912 int main() {
14913 dnet_ntoa()
14914 ; return 0; }
14915 EOF
14916 if { (eval echo configure:14917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14917   rm -rf conftest*
14918   eval "ac_cv_lib_$ac_lib_var=yes"
14919 else
14920   echo "configure: failed program was:" >&5
14921   cat conftest.$ac_ext >&5
14922   rm -rf conftest*
14923   eval "ac_cv_lib_$ac_lib_var=no"
14924 fi
14925 rm -f conftest*
14926 LIBS="$ac_save_LIBS"
14927
14928 fi
14929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14930   echo "$ac_t""yes" 1>&6
14931   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14932 else
14933   echo "$ac_t""no" 1>&6
14934 fi
14935
14936     fi
14937
14938     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14939     # to get the SysV transport functions.
14940     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14941     # needs -lnsl.
14942     # The nsl library prevents programs from opening the X display
14943     # on Irix 5.2, according to dickey@clark.net.
14944     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14945 echo "configure:14946: checking for gethostbyname" >&5
14946 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14947   echo $ac_n "(cached) $ac_c" 1>&6
14948 else
14949   cat > conftest.$ac_ext <<EOF
14950 #line 14951 "configure"
14951 #include "confdefs.h"
14952 /* System header to define __stub macros and hopefully few prototypes,
14953     which can conflict with char gethostbyname(); below.  */
14954 #include <assert.h>
14955 /* Override any gcc2 internal prototype to avoid an error.  */
14956 /* We use char because int might match the return type of a gcc2
14957     builtin and then its argument prototype would still apply.  */
14958 char gethostbyname();
14959
14960 int main() {
14961
14962 /* The GNU C library defines this for functions which it implements
14963     to always fail with ENOSYS.  Some functions are actually named
14964     something starting with __ and the normal name is an alias.  */
14965 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14966 choke me
14967 #else
14968 gethostbyname();
14969 #endif
14970
14971 ; return 0; }
14972 EOF
14973 if { (eval echo configure:14974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14974   rm -rf conftest*
14975   eval "ac_cv_func_gethostbyname=yes"
14976 else
14977   echo "configure: failed program was:" >&5
14978   cat conftest.$ac_ext >&5
14979   rm -rf conftest*
14980   eval "ac_cv_func_gethostbyname=no"
14981 fi
14982 rm -f conftest*
14983 fi
14984
14985 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14986   echo "$ac_t""yes" 1>&6
14987   :
14988 else
14989   echo "$ac_t""no" 1>&6
14990 fi
14991
14992     if test $ac_cv_func_gethostbyname = no; then
14993       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
14994 echo "configure:14995: checking for gethostbyname in -lnsl" >&5
14995 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14997   echo $ac_n "(cached) $ac_c" 1>&6
14998 else
14999   ac_save_LIBS="$LIBS"
15000 LIBS="-lnsl  $LIBS"
15001 cat > conftest.$ac_ext <<EOF
15002 #line 15003 "configure"
15003 #include "confdefs.h"
15004 /* Override any gcc2 internal prototype to avoid an error.  */
15005 /* We use char because int might match the return type of a gcc2
15006     builtin and then its argument prototype would still apply.  */
15007 char gethostbyname();
15008
15009 int main() {
15010 gethostbyname()
15011 ; return 0; }
15012 EOF
15013 if { (eval echo configure:15014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15014   rm -rf conftest*
15015   eval "ac_cv_lib_$ac_lib_var=yes"
15016 else
15017   echo "configure: failed program was:" >&5
15018   cat conftest.$ac_ext >&5
15019   rm -rf conftest*
15020   eval "ac_cv_lib_$ac_lib_var=no"
15021 fi
15022 rm -f conftest*
15023 LIBS="$ac_save_LIBS"
15024
15025 fi
15026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15027   echo "$ac_t""yes" 1>&6
15028   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
15029 else
15030   echo "$ac_t""no" 1>&6
15031 fi
15032
15033     fi
15034
15035     # lieder@skyler.mavd.honeywell.com says without -lsocket,
15036     # socket/setsockopt and other routines are undefined under SCO ODT
15037     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
15038     # on later versions), says simon@lia.di.epfl.ch: it contains
15039     # gethostby* variants that don't use the nameserver (or something).
15040     # -lsocket must be given before -lnsl if both are needed.
15041     # We assume that if connect needs -lnsl, so does gethostbyname.
15042     echo $ac_n "checking for connect""... $ac_c" 1>&6
15043 echo "configure:15044: checking for connect" >&5
15044 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
15045   echo $ac_n "(cached) $ac_c" 1>&6
15046 else
15047   cat > conftest.$ac_ext <<EOF
15048 #line 15049 "configure"
15049 #include "confdefs.h"
15050 /* System header to define __stub macros and hopefully few prototypes,
15051     which can conflict with char connect(); below.  */
15052 #include <assert.h>
15053 /* Override any gcc2 internal prototype to avoid an error.  */
15054 /* We use char because int might match the return type of a gcc2
15055     builtin and then its argument prototype would still apply.  */
15056 char connect();
15057
15058 int main() {
15059
15060 /* The GNU C library defines this for functions which it implements
15061     to always fail with ENOSYS.  Some functions are actually named
15062     something starting with __ and the normal name is an alias.  */
15063 #if defined (__stub_connect) || defined (__stub___connect)
15064 choke me
15065 #else
15066 connect();
15067 #endif
15068
15069 ; return 0; }
15070 EOF
15071 if { (eval echo configure:15072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15072   rm -rf conftest*
15073   eval "ac_cv_func_connect=yes"
15074 else
15075   echo "configure: failed program was:" >&5
15076   cat conftest.$ac_ext >&5
15077   rm -rf conftest*
15078   eval "ac_cv_func_connect=no"
15079 fi
15080 rm -f conftest*
15081 fi
15082
15083 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
15084   echo "$ac_t""yes" 1>&6
15085   :
15086 else
15087   echo "$ac_t""no" 1>&6
15088 fi
15089
15090     if test $ac_cv_func_connect = no; then
15091       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
15092 echo "configure:15093: checking for connect in -lsocket" >&5
15093 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
15094 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15095   echo $ac_n "(cached) $ac_c" 1>&6
15096 else
15097   ac_save_LIBS="$LIBS"
15098 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
15099 cat > conftest.$ac_ext <<EOF
15100 #line 15101 "configure"
15101 #include "confdefs.h"
15102 /* Override any gcc2 internal prototype to avoid an error.  */
15103 /* We use char because int might match the return type of a gcc2
15104     builtin and then its argument prototype would still apply.  */
15105 char connect();
15106
15107 int main() {
15108 connect()
15109 ; return 0; }
15110 EOF
15111 if { (eval echo configure:15112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15112   rm -rf conftest*
15113   eval "ac_cv_lib_$ac_lib_var=yes"
15114 else
15115   echo "configure: failed program was:" >&5
15116   cat conftest.$ac_ext >&5
15117   rm -rf conftest*
15118   eval "ac_cv_lib_$ac_lib_var=no"
15119 fi
15120 rm -f conftest*
15121 LIBS="$ac_save_LIBS"
15122
15123 fi
15124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15125   echo "$ac_t""yes" 1>&6
15126   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15127 else
15128   echo "$ac_t""no" 1>&6
15129 fi
15130
15131     fi
15132
15133     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15134     echo $ac_n "checking for remove""... $ac_c" 1>&6
15135 echo "configure:15136: checking for remove" >&5
15136 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15137   echo $ac_n "(cached) $ac_c" 1>&6
15138 else
15139   cat > conftest.$ac_ext <<EOF
15140 #line 15141 "configure"
15141 #include "confdefs.h"
15142 /* System header to define __stub macros and hopefully few prototypes,
15143     which can conflict with char remove(); below.  */
15144 #include <assert.h>
15145 /* Override any gcc2 internal prototype to avoid an error.  */
15146 /* We use char because int might match the return type of a gcc2
15147     builtin and then its argument prototype would still apply.  */
15148 char remove();
15149
15150 int main() {
15151
15152 /* The GNU C library defines this for functions which it implements
15153     to always fail with ENOSYS.  Some functions are actually named
15154     something starting with __ and the normal name is an alias.  */
15155 #if defined (__stub_remove) || defined (__stub___remove)
15156 choke me
15157 #else
15158 remove();
15159 #endif
15160
15161 ; return 0; }
15162 EOF
15163 if { (eval echo configure:15164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15164   rm -rf conftest*
15165   eval "ac_cv_func_remove=yes"
15166 else
15167   echo "configure: failed program was:" >&5
15168   cat conftest.$ac_ext >&5
15169   rm -rf conftest*
15170   eval "ac_cv_func_remove=no"
15171 fi
15172 rm -f conftest*
15173 fi
15174
15175 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15176   echo "$ac_t""yes" 1>&6
15177   :
15178 else
15179   echo "$ac_t""no" 1>&6
15180 fi
15181
15182     if test $ac_cv_func_remove = no; then
15183       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
15184 echo "configure:15185: checking for remove in -lposix" >&5
15185 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15187   echo $ac_n "(cached) $ac_c" 1>&6
15188 else
15189   ac_save_LIBS="$LIBS"
15190 LIBS="-lposix  $LIBS"
15191 cat > conftest.$ac_ext <<EOF
15192 #line 15193 "configure"
15193 #include "confdefs.h"
15194 /* Override any gcc2 internal prototype to avoid an error.  */
15195 /* We use char because int might match the return type of a gcc2
15196     builtin and then its argument prototype would still apply.  */
15197 char remove();
15198
15199 int main() {
15200 remove()
15201 ; return 0; }
15202 EOF
15203 if { (eval echo configure:15204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15204   rm -rf conftest*
15205   eval "ac_cv_lib_$ac_lib_var=yes"
15206 else
15207   echo "configure: failed program was:" >&5
15208   cat conftest.$ac_ext >&5
15209   rm -rf conftest*
15210   eval "ac_cv_lib_$ac_lib_var=no"
15211 fi
15212 rm -f conftest*
15213 LIBS="$ac_save_LIBS"
15214
15215 fi
15216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15217   echo "$ac_t""yes" 1>&6
15218   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15219 else
15220   echo "$ac_t""no" 1>&6
15221 fi
15222
15223     fi
15224
15225     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15226     echo $ac_n "checking for shmat""... $ac_c" 1>&6
15227 echo "configure:15228: checking for shmat" >&5
15228 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15229   echo $ac_n "(cached) $ac_c" 1>&6
15230 else
15231   cat > conftest.$ac_ext <<EOF
15232 #line 15233 "configure"
15233 #include "confdefs.h"
15234 /* System header to define __stub macros and hopefully few prototypes,
15235     which can conflict with char shmat(); below.  */
15236 #include <assert.h>
15237 /* Override any gcc2 internal prototype to avoid an error.  */
15238 /* We use char because int might match the return type of a gcc2
15239     builtin and then its argument prototype would still apply.  */
15240 char shmat();
15241
15242 int main() {
15243
15244 /* The GNU C library defines this for functions which it implements
15245     to always fail with ENOSYS.  Some functions are actually named
15246     something starting with __ and the normal name is an alias.  */
15247 #if defined (__stub_shmat) || defined (__stub___shmat)
15248 choke me
15249 #else
15250 shmat();
15251 #endif
15252
15253 ; return 0; }
15254 EOF
15255 if { (eval echo configure:15256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15256   rm -rf conftest*
15257   eval "ac_cv_func_shmat=yes"
15258 else
15259   echo "configure: failed program was:" >&5
15260   cat conftest.$ac_ext >&5
15261   rm -rf conftest*
15262   eval "ac_cv_func_shmat=no"
15263 fi
15264 rm -f conftest*
15265 fi
15266
15267 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15268   echo "$ac_t""yes" 1>&6
15269   :
15270 else
15271   echo "$ac_t""no" 1>&6
15272 fi
15273
15274     if test $ac_cv_func_shmat = no; then
15275       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
15276 echo "configure:15277: checking for shmat in -lipc" >&5
15277 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15278 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15279   echo $ac_n "(cached) $ac_c" 1>&6
15280 else
15281   ac_save_LIBS="$LIBS"
15282 LIBS="-lipc  $LIBS"
15283 cat > conftest.$ac_ext <<EOF
15284 #line 15285 "configure"
15285 #include "confdefs.h"
15286 /* Override any gcc2 internal prototype to avoid an error.  */
15287 /* We use char because int might match the return type of a gcc2
15288     builtin and then its argument prototype would still apply.  */
15289 char shmat();
15290
15291 int main() {
15292 shmat()
15293 ; return 0; }
15294 EOF
15295 if { (eval echo configure:15296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15296   rm -rf conftest*
15297   eval "ac_cv_lib_$ac_lib_var=yes"
15298 else
15299   echo "configure: failed program was:" >&5
15300   cat conftest.$ac_ext >&5
15301   rm -rf conftest*
15302   eval "ac_cv_lib_$ac_lib_var=no"
15303 fi
15304 rm -f conftest*
15305 LIBS="$ac_save_LIBS"
15306
15307 fi
15308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15309   echo "$ac_t""yes" 1>&6
15310   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15311 else
15312   echo "$ac_t""no" 1>&6
15313 fi
15314
15315     fi
15316   fi
15317
15318   # Check for libraries that X11R6 Xt/Xaw programs need.
15319   ac_save_LDFLAGS="$LDFLAGS"
15320   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15321   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15322   # check for ICE first), but we must link in the order -lSM -lICE or
15323   # we get undefined symbols.  So assume we have SM if we have ICE.
15324   # These have to be linked with before -lX11, unlike the other
15325   # libraries we check for below, so use a different variable.
15326   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15327   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
15328 echo "configure:15329: checking for IceConnectionNumber in -lICE" >&5
15329 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15331   echo $ac_n "(cached) $ac_c" 1>&6
15332 else
15333   ac_save_LIBS="$LIBS"
15334 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15335 cat > conftest.$ac_ext <<EOF
15336 #line 15337 "configure"
15337 #include "confdefs.h"
15338 /* Override any gcc2 internal prototype to avoid an error.  */
15339 /* We use char because int might match the return type of a gcc2
15340     builtin and then its argument prototype would still apply.  */
15341 char IceConnectionNumber();
15342
15343 int main() {
15344 IceConnectionNumber()
15345 ; return 0; }
15346 EOF
15347 if { (eval echo configure:15348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15348   rm -rf conftest*
15349   eval "ac_cv_lib_$ac_lib_var=yes"
15350 else
15351   echo "configure: failed program was:" >&5
15352   cat conftest.$ac_ext >&5
15353   rm -rf conftest*
15354   eval "ac_cv_lib_$ac_lib_var=no"
15355 fi
15356 rm -f conftest*
15357 LIBS="$ac_save_LIBS"
15358
15359 fi
15360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15361   echo "$ac_t""yes" 1>&6
15362   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15363 else
15364   echo "$ac_t""no" 1>&6
15365 fi
15366
15367   LDFLAGS="$ac_save_LDFLAGS"
15368
15369 fi
15370
15371
15372         if test "$no_x" = "yes"; then
15373           { echo "configure: error: X11 not found" 1>&2; exit 1; }
15374         fi
15375
15376                         GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15377         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
15378         AFMINSTALL=afminstall
15379         COMPILED_X_PROGRAM=0
15380
15381         echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
15382 echo "configure:15383: checking for Motif/Lesstif headers" >&5
15383         
15384 ac_find_includes=
15385 for ac_dir in $SEARCH_INCLUDE /usr/include;
15386   do
15387     if test -f "$ac_dir/Xm/Xm.h"; then
15388       ac_find_includes=$ac_dir
15389       break
15390     fi
15391   done
15392
15393         if test "$ac_find_includes" != "" ; then
15394             echo "$ac_t""found in $ac_find_includes" 1>&6
15395             
15396     if test "x$ac_find_includes" = "x/usr/include"; then
15397     ac_path_to_include=""
15398   else
15399     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15400     result=$?
15401     if test $result = 0; then
15402       ac_path_to_include=""
15403     else
15404       ac_path_to_include=" -I$ac_find_includes"
15405     fi
15406   fi
15407
15408             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
15409         else
15410             cat > conftest.$ac_ext <<EOF
15411 #line 15412 "configure"
15412 #include "confdefs.h"
15413
15414                     #include <Xm/Xm.h>
15415                 
15416 int main() {
15417
15418                     int version;
15419                     version = xmUseVersion;
15420                 
15421 ; return 0; }
15422 EOF
15423 if { (eval echo configure:15424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15424   rm -rf conftest*
15425   
15426                     echo "$ac_t""found in default search path" 1>&6
15427                     COMPILED_X_PROGRAM=1
15428                 
15429 else
15430   echo "configure: failed program was:" >&5
15431   cat conftest.$ac_ext >&5
15432   rm -rf conftest*
15433   
15434                     echo "$ac_t""no" 1>&6
15435                     { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15436                 
15437             
15438 fi
15439 rm -f conftest*
15440         fi
15441
15442         if test "$COMPILED_X_PROGRAM" = 0; then
15443             echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
15444 echo "configure:15445: checking for Motif/Lesstif library" >&5
15445             
15446 ac_find_libraries=
15447 for ac_dir in $SEARCH_LIB /usr/lib;
15448   do
15449     for ac_extension in a so sl dylib; do
15450       if test -f "$ac_dir/libXm.$ac_extension"; then
15451         ac_find_libraries=$ac_dir
15452         break 2
15453       fi
15454     done
15455   done
15456
15457             if test "$ac_find_libraries" != "" ; then
15458                 echo "$ac_t""found at $ac_find_libraries" 1>&6
15459
15460                 
15461   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15462   result=$?
15463   if test $result = 0; then
15464     ac_path_to_link=""
15465   else
15466     ac_path_to_link=" -L$ac_find_libraries"
15467   fi
15468
15469                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15470             else
15471                                                                 save_CFLAGS=$CFLAGS
15472                 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15473
15474                 cat > conftest.$ac_ext <<EOF
15475 #line 15476 "configure"
15476 #include "confdefs.h"
15477
15478                         #include <Xm/Xm.h>
15479                     
15480 int main() {
15481
15482                         int version;
15483                         version = xmUseVersion;
15484                     
15485 ; return 0; }
15486 EOF
15487 if { (eval echo configure:15488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15488   rm -rf conftest*
15489   
15490                         echo "$ac_t""found in default search path" 1>&6
15491                         COMPILED_X_PROGRAM=1
15492                     
15493 else
15494   echo "configure: failed program was:" >&5
15495   cat conftest.$ac_ext >&5
15496   rm -rf conftest*
15497   
15498                         echo "$ac_t""no" 1>&6
15499                         { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15500                     
15501                 
15502 fi
15503 rm -f conftest*
15504
15505                 CFLAGS=$save_CFLAGS
15506             fi
15507         fi
15508
15509         xpm_link=
15510         echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
15511 echo "configure:15512: checking for Xpm library" >&5
15512         
15513 ac_find_libraries=
15514 for ac_dir in $SEARCH_LIB /usr/lib;
15515   do
15516     for ac_extension in a so sl dylib; do
15517       if test -f "$ac_dir/libXpm.$ac_extension"; then
15518         ac_find_libraries=$ac_dir
15519         break 2
15520       fi
15521     done
15522   done
15523
15524         if test "$ac_find_libraries" != "" ; then
15525             
15526   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15527   result=$?
15528   if test $result = 0; then
15529     ac_path_to_link=""
15530   else
15531     ac_path_to_link=" -L$ac_find_libraries"
15532   fi
15533
15534             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15535
15536             xpm_link=" -lXpm"
15537             cat >> confdefs.h <<\EOF
15538 #define wxHAVE_LIB_XPM 1
15539 EOF
15540
15541             echo "$ac_t""found at $ac_find_libraries" 1>&6
15542         else
15543             save_CFLAGS=$CFLAGS
15544             CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15545
15546             cat > conftest.$ac_ext <<EOF
15547 #line 15548 "configure"
15548 #include "confdefs.h"
15549
15550                     #include <X11/xpm.h>
15551                 
15552 int main() {
15553
15554                     int version;
15555                     version = XpmLibraryVersion();
15556                 
15557 ; return 0; }
15558 EOF
15559 if { (eval echo configure:15560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15560   rm -rf conftest*
15561   
15562                     xpm_link=" -lXpm"
15563                     cat >> confdefs.h <<\EOF
15564 #define wxHAVE_LIB_XPM 1
15565 EOF
15566
15567                     echo "$ac_t""found in default search path" 1>&6
15568                     COMPILED_X_PROGRAM=0
15569                 
15570 else
15571   echo "configure: failed program was:" >&5
15572   cat conftest.$ac_ext >&5
15573   rm -rf conftest*
15574   
15575                     echo "$ac_t""no" 1>&6
15576                     echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15577                 
15578             
15579 fi
15580 rm -f conftest*
15581
15582             CFLAGS=$save_CFLAGS
15583         fi
15584
15585         echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
15586 echo "configure:15587: checking if we need -lXp and/or -lSM -lICE" >&5
15587         libp_link=""
15588         libsm_ice_link=""
15589         libs_found=0
15590         for libp in "" " -lXp"; do
15591             if test "$libs_found" = "0"; then
15592                 for libsm_ice in " -lSM -lICE"; do
15593                     if test "$libs_found" = "0"; then
15594                         save_LIBS="$LIBS"
15595                         LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
15596                         save_CFLAGS=$CFLAGS
15597                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15598
15599                         cat > conftest.$ac_ext <<EOF
15600 #line 15601 "configure"
15601 #include "confdefs.h"
15602
15603                                 #include <Xm/Xm.h>
15604                                 #include <Xm/List.h>
15605                             
15606 int main() {
15607
15608                                 XmString string = NULL;
15609                                 Widget w = NULL;
15610                                 int position = 0;
15611                                 XmListAddItem(w, string, position);
15612                             
15613 ; return 0; }
15614 EOF
15615 if { (eval echo configure:15616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15616   rm -rf conftest*
15617   
15618                                 libp_link="$libp"
15619                                 libsm_ice_link="$libsm_ice"
15620                                 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
15621                                 libs_found=1
15622                             
15623 else
15624   echo "configure: failed program was:" >&5
15625   cat conftest.$ac_ext >&5
15626   rm -rf conftest*
15627   
15628                         
15629 fi
15630 rm -f conftest*
15631
15632                         LIBS="$save_LIBS"
15633                         CFLAGS=$save_CFLAGS
15634                     fi
15635                 done
15636             fi
15637         done
15638
15639         if test "$libs_found" = "0"; then
15640             echo "$ac_t""can't find the right libraries" 1>&6
15641             { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
15642         fi
15643
15644         save_CFLAGS=$CFLAGS
15645         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15646         echo $ac_n "checking for Motif 2""... $ac_c" 1>&6
15647 echo "configure:15648: checking for Motif 2" >&5
15648         cat > conftest.$ac_ext <<EOF
15649 #line 15650 "configure"
15650 #include "confdefs.h"
15651
15652                         #include <Xm/Xm.h>
15653                        
15654 int main() {
15655
15656                         #if XmVersion < 2000
15657                         #error "Not Motif 2"
15658                         #endif
15659                        
15660 ; return 0; }
15661 EOF
15662 if { (eval echo configure:15663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15663   rm -rf conftest*
15664   
15665                         cat >> confdefs.h <<\EOF
15666 #define __WXMOTIF20__ 1
15667 EOF
15668
15669                         echo "$ac_t""found" 1>&6
15670                        
15671 else
15672   echo "configure: failed program was:" >&5
15673   cat conftest.$ac_ext >&5
15674   rm -rf conftest*
15675   
15676                         cat >> confdefs.h <<\EOF
15677 #define __WXMOTIF20__ 0
15678 EOF
15679
15680                         echo "$ac_t""not found" 1>&6
15681                        
15682 fi
15683 rm -f conftest*
15684         CFLAGS=$save_CFLAGS
15685
15686         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
15687         TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
15688         TOOLKIT=MOTIF
15689         GUIDIST=MOTIF_DIST
15690         wxHAVE_XEXT_LIB=1
15691     fi
15692
15693     if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
15694        test "$wxHAVE_XEXT_LIB" = 1; then
15695         save_CFLAGS="$CFLAGS"
15696         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15697
15698         echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
15699 echo "configure:15700: checking for X11/extensions/shape.h" >&5
15700         cat > conftest.$ac_ext <<EOF
15701 #line 15702 "configure"
15702 #include "confdefs.h"
15703
15704                         #include <X11/Xlib.h> 
15705                         #include <X11/extensions/shape.h>
15706                        
15707 int main() {
15708
15709                         int dummy1, dummy2;
15710                         XShapeQueryExtension((Display*)NULL,
15711                                              (int*)NULL, (int*)NULL);
15712                        
15713 ; return 0; }
15714 EOF
15715 if { (eval echo configure:15716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15716   rm -rf conftest*
15717   
15718                         cat >> confdefs.h <<\EOF
15719 #define HAVE_XSHAPE 1
15720 EOF
15721
15722                         echo "$ac_t""found" 1>&6
15723                        
15724 else
15725   echo "configure: failed program was:" >&5
15726   cat conftest.$ac_ext >&5
15727   rm -rf conftest*
15728   
15729                         echo "$ac_t""not found" 1>&6
15730                        
15731 fi
15732 rm -f conftest*
15733         CFLAGS="$save_CFLAGS"
15734     fi
15735
15736     if test "$wxUSE_MAC" = 1; then
15737         CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
15738
15739         TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
15740         TOOLKIT=MAC
15741                 GUIDIST=MACX_DIST
15742     fi
15743
15744     if test "$wxUSE_COCOA" = 1; then
15745         TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
15746         TOOLKIT=COCOA
15747         GUIDIST=COCOA_DIST
15748     fi
15749
15750     if test "$wxUSE_PM" = 1; then
15751         TOOLKIT=PM
15752         GUIDIST=GTK_DIST
15753         echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
15754         wxUSE_THREADS="no"
15755     fi
15756
15757         if test "$TOOLKIT" = "PM" ; then
15758         TOOLKIT_DIR="os2"
15759     else
15760         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15761     fi
15762
15763         PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15764
15765     if test "$wxUSE_UNIVERSAL" = "yes"; then
15766         ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15767
15768                                 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15769         ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15770
15771         PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15772         if test "$wxUSE_X11" = 1; then
15773             TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15774         else
15775             TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15776         fi
15777         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15778         WIDGET_SET=univ
15779     else
15780         ALL_OBJECTS="\$(GUIOBJS)"
15781         ALL_SOURCES="\$(ALL_SOURCES)"
15782         ALL_HEADERS="\$(ALL_HEADERS)"
15783     fi
15784
15785     ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15786
15787     if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15788         ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15789     fi
15790
15791     if test "$wxUSE_HTML" = "yes"; then
15792         ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15793     fi
15794
15795     if test "$wxUSE_LIBJPEG" = "builtin" ; then
15796         ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15797     fi
15798     if test "$wxUSE_LIBTIFF" = "builtin" ; then
15799         ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15800     fi
15801     if test "$wxUSE_LIBPNG" = "builtin" ; then
15802         ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15803     fi
15804
15805         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15806     DISTDIR="wx\$(TOOLKIT)"
15807 else
15808     USE_GUI=0
15809
15810             TOOLKIT_DIR="base"
15811
15812         if test "$USE_WIN32" = 1 ; then
15813         ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15814         TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15815
15816                         TOOLKIT="MSW"
15817     else
15818         ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15819         TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15820     fi
15821
15822     ALL_SOURCES="\$(ALL_SOURCES)"
15823     ALL_HEADERS="\$(ALL_HEADERS)"
15824
15825     PORT_FILES="\${top_srcdir}/src/files.lst"
15826
15827         GUIDIST="BASE_DIST"
15828     DISTDIR="wxBase"
15829 fi
15830
15831
15832
15833
15834 IODBC_C_SRC=""
15835
15836
15837 if test "$TOOLKIT" != "MSW" ; then
15838
15839     if test "$wxUSE_ODBC" != "no" ; then
15840         cat >> confdefs.h <<\EOF
15841 #define wxUSE_ODBC 1
15842 EOF
15843
15844         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
15845     
15846                 WXODBCFLAG="-D_IODBC_"
15847
15848
15849         if test "$wxUSE_ODBC" = "sys" ; then
15850                         
15851             ac_safe=`echo "sql.h" | sed 'y%./+-%__p_%'`
15852 echo $ac_n "checking for sql.h""... $ac_c" 1>&6
15853 echo "configure:15854: checking for sql.h" >&5
15854 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15855   echo $ac_n "(cached) $ac_c" 1>&6
15856 else
15857   cat > conftest.$ac_ext <<EOF
15858 #line 15859 "configure"
15859 #include "confdefs.h"
15860 #include <sql.h>
15861 EOF
15862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15863 { (eval echo configure:15864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15865 if test -z "$ac_err"; then
15866   rm -rf conftest*
15867   eval "ac_cv_header_$ac_safe=yes"
15868 else
15869   echo "$ac_err" >&5
15870   echo "configure: failed program was:" >&5
15871   cat conftest.$ac_ext >&5
15872   rm -rf conftest*
15873   eval "ac_cv_header_$ac_safe=no"
15874 fi
15875 rm -f conftest*
15876 fi
15877 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15878   echo "$ac_t""yes" 1>&6
15879   :
15880 else
15881   echo "$ac_t""no" 1>&6
15882 fi
15883
15884             
15885 echo $ac_n "checking for library containing SQLAllocEnv""... $ac_c" 1>&6
15886 echo "configure:15887: checking for library containing SQLAllocEnv" >&5
15887 if eval "test \"`echo '$''{'ac_cv_search_SQLAllocEnv'+set}'`\" = set"; then
15888   echo $ac_n "(cached) $ac_c" 1>&6
15889 else
15890   ac_func_search_save_LIBS="$LIBS"
15891 ac_cv_search_SQLAllocEnv="no"
15892 cat > conftest.$ac_ext <<EOF
15893 #line 15894 "configure"
15894 #include "confdefs.h"
15895 /* Override any gcc2 internal prototype to avoid an error.  */
15896 /* We use char because int might match the return type of a gcc2
15897     builtin and then its argument prototype would still apply.  */
15898 char SQLAllocEnv();
15899
15900 int main() {
15901 SQLAllocEnv()
15902 ; return 0; }
15903 EOF
15904 if { (eval echo configure:15905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15905   rm -rf conftest*
15906   ac_cv_search_SQLAllocEnv="none required"
15907 else
15908   echo "configure: failed program was:" >&5
15909   cat conftest.$ac_ext >&5
15910 fi
15911 rm -f conftest*
15912 test "$ac_cv_search_SQLAllocEnv" = "no" && for i in iodbc unixodbc odbc ; do
15913 LIBS="-l$i  $ac_func_search_save_LIBS"
15914 cat > conftest.$ac_ext <<EOF
15915 #line 15916 "configure"
15916 #include "confdefs.h"
15917 /* Override any gcc2 internal prototype to avoid an error.  */
15918 /* We use char because int might match the return type of a gcc2
15919     builtin and then its argument prototype would still apply.  */
15920 char SQLAllocEnv();
15921
15922 int main() {
15923 SQLAllocEnv()
15924 ; return 0; }
15925 EOF
15926 if { (eval echo configure:15927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15927   rm -rf conftest*
15928   ac_cv_search_SQLAllocEnv="-l$i"
15929 break
15930 else
15931   echo "configure: failed program was:" >&5
15932   cat conftest.$ac_ext >&5
15933 fi
15934 rm -f conftest*
15935 done
15936 LIBS="$ac_func_search_save_LIBS"
15937 fi
15938
15939 echo "$ac_t""$ac_cv_search_SQLAllocEnv" 1>&6
15940 if test "$ac_cv_search_SQLAllocEnv" != "no"; then
15941   test "$ac_cv_search_SQLAllocEnv" = "none required" || LIBS="$ac_cv_search_SQLAllocEnv $LIBS"
15942   
15943 else :
15944    
15945                 wxUSE_ODBC=builtin; 
15946                 echo "configure: warning:  can't find system Odbc library falling back to builtin " 1>&2
15947              
15948 fi
15949         fi
15950                 if test "$wxUSE_ODBC" != "sys" ; then
15951             ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
15952         fi
15953
15954     fi
15955     
15956 fi
15957
15958 if test "$wxUSE_REGEX" = "builtin" ; then
15959     ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
15960 fi
15961 if test "$wxUSE_ZLIB" = "builtin" ; then
15962     ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
15963 fi
15964
15965
15966 if test "$wxUSE_OPENGL" = "yes"; then
15967     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
15968         OPENGL_LIBS="-framework OpenGL -framework AGL"
15969     elif test "$wxUSE_MSW" = 1; then
15970         OPENGL_LIBS="-lopengl32 -lglu32"
15971     else
15972         ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15973 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15974 echo "configure:15975: checking for GL/gl.h" >&5
15975 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15976   echo $ac_n "(cached) $ac_c" 1>&6
15977 else
15978   cat > conftest.$ac_ext <<EOF
15979 #line 15980 "configure"
15980 #include "confdefs.h"
15981 #include <GL/gl.h>
15982 EOF
15983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15984 { (eval echo configure:15985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15986 if test -z "$ac_err"; then
15987   rm -rf conftest*
15988   eval "ac_cv_header_$ac_safe=yes"
15989 else
15990   echo "$ac_err" >&5
15991   echo "configure: failed program was:" >&5
15992   cat conftest.$ac_ext >&5
15993   rm -rf conftest*
15994   eval "ac_cv_header_$ac_safe=no"
15995 fi
15996 rm -f conftest*
15997 fi
15998 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15999   echo "$ac_t""yes" 1>&6
16000   
16001                 found_gl=0
16002
16003                 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
16004 echo "configure:16005: checking for -lGL" >&5
16005                 
16006 ac_find_libraries=
16007 for ac_dir in $SEARCH_LIB /usr/lib;
16008   do
16009     for ac_extension in a so sl dylib; do
16010       if test -f "$ac_dir/libGL.$ac_extension"; then
16011         ac_find_libraries=$ac_dir
16012         break 2
16013       fi
16014     done
16015   done
16016
16017                 if test "$ac_find_libraries" != "" ; then
16018                     
16019   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
16020   result=$?
16021   if test $result = 0; then
16022     ac_path_to_link=""
16023   else
16024     ac_path_to_link=" -L$ac_find_libraries"
16025   fi
16026
16027                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
16028                         LDFLAGS_GL="$ac_path_to_link"
16029                     fi
16030
16031                                                                                 
16032 ac_find_libraries=
16033 for ac_dir in $SEARCH_LIB /usr/lib;
16034   do
16035     for ac_extension in a so sl dylib; do
16036       if test -f "$ac_dir/libGLU.$ac_extension"; then
16037         ac_find_libraries=$ac_dir
16038         break 2
16039       fi
16040     done
16041   done
16042
16043                     if test "$ac_find_libraries" != "" ; then
16044                         
16045   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
16046   result=$?
16047   if test $result = 0; then
16048     ac_path_to_link=""
16049   else
16050     ac_path_to_link=" -L$ac_find_libraries"
16051   fi
16052
16053                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
16054                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
16055                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
16056                         fi
16057
16058                         found_gl=1
16059                         OPENGL_LIBS="-lGL -lGLU"
16060                         echo "$ac_t""yes" 1>&6
16061                     fi
16062                 fi
16063
16064                 if "$found_gl" != 1; then
16065                     echo "$ac_t""no" 1>&6
16066                     echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
16067 echo "configure:16068: checking for -lMesaGL" >&5
16068                     
16069 ac_find_libraries=
16070 for ac_dir in $SEARCH_LIB /usr/lib;
16071   do
16072     for ac_extension in a so sl dylib; do
16073       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
16074         ac_find_libraries=$ac_dir
16075         break 2
16076       fi
16077     done
16078   done
16079
16080                     if test "$ac_find_libraries" != "" ; then
16081                         
16082   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
16083   result=$?
16084   if test $result = 0; then
16085     ac_path_to_link=""
16086   else
16087     ac_path_to_link=" -L$ac_find_libraries"
16088   fi
16089
16090                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
16091                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
16092                         echo "$ac_t""yes" 1>&6
16093                     else
16094                         echo "$ac_t""no" 1>&6
16095                     fi
16096                 fi
16097             
16098 else
16099   echo "$ac_t""no" 1>&6
16100 fi
16101
16102
16103         if test "x$OPENGL_LIBS" = "x"; then
16104                                                 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
16105         fi
16106     fi
16107
16108     if test "$wxUSE_OPENGL" = "yes"; then
16109         cat >> confdefs.h <<\EOF
16110 #define wxUSE_OPENGL 1
16111 EOF
16112
16113         cat >> confdefs.h <<\EOF
16114 #define wxUSE_GLCANVAS 1
16115 EOF
16116
16117         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
16118     fi
16119 fi
16120
16121 if test -z "$TOOLKIT_VPATH" ; then
16122     TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
16123 fi
16124
16125 if test -n "$TOOLKIT" ; then
16126     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
16127 fi
16128
16129 lib_unicode_suffix=
16130 if test "$wxUSE_UNICODE" = "yes"; then
16131     lib_unicode_suffix=u
16132 fi
16133
16134 lib_debug_suffix=
16135 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
16136     lib_debug_suffix=d
16137 fi
16138
16139 WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
16140
16141 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
16142 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
16143
16144 if test "$cross_compiling" = "yes"; then
16145     TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
16146     TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
16147 fi
16148
16149 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
16150 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
16151 WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
16152
16153 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
16154 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
16155
16156 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
16157 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16158 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
16159 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16160
16161 case "${host}" in
16162     *-*-cygwin* | *-*-mingw32* )
16163
16164                         
16165         
16166         if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
16167             WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
16168             WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
16169             WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
16170             WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
16171         else
16172             WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
16173             WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16174         fi
16175         ;;
16176
16177     *-*-darwin* )
16178                 
16179         WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16180         WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16181
16182         WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
16183         WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16184         WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
16185         WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16186
16187                         if test "$wxUSE_MAC" = 1; then
16188                                     WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
16189             WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
16190         fi
16191         ;;
16192 esac
16193
16194 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
16195 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
16196
16197 WXCONFIG_LIBS="-l${WX_LIBRARY}"
16198 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
16199
16200 if test "$wxUSE_OPENGL" = "yes"; then
16201     WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
16202     WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
16203 fi
16204
16205
16206
16207 if test "$wxUSE_SHARED" = "yes"; then
16208     case "${host}" in
16209       *-pc-os2_emx | *-pc-os2-emx | \
16210       *-pc-msdosdjgpp )
16211                 wxUSE_SHARED=no
16212         echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
16213       ;;
16214     esac
16215 fi
16216
16217 if test "$wxUSE_SHARED" = "yes"; then
16218
16219         if test "$wxUSE_OPENGL" = "yes"; then
16220         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
16221         WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
16222     else
16223         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16224         WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
16225     fi
16226
16227         if test "$GCC" = "yes"; then
16228                 PIC_FLAG="-fPIC"
16229     fi
16230
16231
16232         
16233   found_versioning=no
16234
16235                         
16236     if test $found_versioning = no ; then
16237       echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
16238 echo "configure:16239: checking if the linker accepts --version-script" >&5
16239 if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
16240   echo $ac_n "(cached) $ac_c" 1>&6
16241 else
16242   
16243         echo "VER_1 { *; };" >conftest.sym
16244         echo "int main() { return 0; }" >conftest.cpp
16245   
16246         if { ac_try='
16247                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
16248                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
16249           if test -s conftest.stderr ; then
16250               wx_cv_version_script=no
16251           else
16252               wx_cv_version_script=yes
16253           fi
16254         else
16255           wx_cv_version_script=no
16256         fi
16257         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
16258       
16259 fi
16260
16261 echo "$ac_t""$wx_cv_version_script" 1>&6
16262       if test $wx_cv_version_script = yes ; then
16263         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
16264       fi
16265   fi
16266
16267
16268         SHARED_LD="${CXX} -shared -o"
16269
16270     case "${host}" in
16271       *-hp-hpux* )
16272                 if test "$GCC" = "yes"; then
16273                         SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
16274         else
16275                         LDFLAGS="$LDFLAGS -L/usr/lib"
16276
16277             SHARED_LD="${CXX} -b -o"
16278             PIC_FLAG="+Z"
16279         fi
16280
16281                 if test "$wxUSE_OPENGL" = "yes"; then
16282             WX_ALL_INSTALLED="preinstall_gl"
16283             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
16284         else
16285             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16286         fi
16287       ;;
16288
16289       *-*-linux* )
16290         if test "$GCC" != "yes"; then
16291             echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
16292 echo "configure:16293: checking for Intel compiler" >&5
16293 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
16294   echo $ac_n "(cached) $ac_c" 1>&6
16295 else
16296   
16297                 cat > conftest.$ac_ext <<EOF
16298 #line 16299 "configure"
16299 #include "confdefs.h"
16300
16301 int main() {
16302
16303                         #ifndef __INTEL_COMPILER
16304                         #error Not icc
16305                         #endif
16306                     
16307 ; return 0; }
16308 EOF
16309 if { (eval echo configure:16310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16310   rm -rf conftest*
16311   wx_cv_prog_icc=yes
16312 else
16313   echo "configure: failed program was:" >&5
16314   cat conftest.$ac_ext >&5
16315   rm -rf conftest*
16316   wx_cv_prog_icc=no
16317                 
16318 fi
16319 rm -f conftest*
16320             
16321 fi
16322
16323 echo "$ac_t""$wx_cv_prog_icc" 1>&6
16324             if test "$wx_cv_prog_icc" = "yes"; then
16325                 PIC_FLAG="-KPIC"
16326             fi
16327         fi
16328
16329         if test "$wxUSE_SONAME" = "yes" ; then
16330             SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16331             SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16332                         WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16333         fi
16334       ;;
16335
16336       *-*-solaris2* )
16337         if test "$GCC" = yes ; then
16338                                     CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16339         else
16340             SHARED_LD="${CXX} -G -o"
16341             PIC_FLAG="-KPIC"
16342             SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16343             SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16344         fi
16345       ;;
16346
16347       *-*-darwin* )
16348                         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16349         CFLAGS="$CFLAGS -fno-common"
16350         CXXFLAGS="$CXXFLAGS -fno-common"
16351                                         SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16352         PIC_FLAG="-dynamic -fPIC"
16353                                 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
16354         SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
16355       ;;
16356
16357       *-*-aix* )
16358                 if test "$GCC" != "yes"; then
16359                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
16360 set dummy makeC++SharedLib; ac_word=$2
16361 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16362 echo "configure:16363: checking for $ac_word" >&5
16363 if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16364   echo $ac_n "(cached) $ac_c" 1>&6
16365 else
16366   if test -n "$AIX_CXX_LD"; then
16367   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16368 else
16369   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
16370   ac_dummy="$PATH"
16371   for ac_dir in $ac_dummy; do
16372     test -z "$ac_dir" && ac_dir=.
16373     if test -f $ac_dir/$ac_word; then
16374       ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16375       break
16376     fi
16377   done
16378   IFS="$ac_save_ifs"
16379   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16380 fi
16381 fi
16382 AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
16383 if test -n "$AIX_CXX_LD"; then
16384   echo "$ac_t""$AIX_CXX_LD" 1>&6
16385 else
16386   echo "$ac_t""no" 1>&6
16387 fi
16388
16389
16390             SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16391         fi
16392       ;;
16393
16394       *-*-cygwin* | *-*-mingw32* )
16395         WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16396
16397         SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16398         TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16399
16400         PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16401
16402                 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16403         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16404
16405         if test "$wxUSE_OPENGL" = "yes"; then
16406             LIBS="${LIBS} ${OPENGL_LIBS}"
16407         fi
16408       ;;
16409
16410       *-*-beos* )
16411                         SHARED_LD="${LD} -shared -o"
16412       ;;
16413
16414       *-*-irix* )
16415                 if test "$GCC" != "yes"; then
16416             PIC_FLAG="-KPIC"
16417         fi
16418       ;;
16419
16420       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16421       *-*-sunos4* | \
16422       *-*-osf* | \
16423       *-*-dgux5* | \
16424       *-*-sysv5* )
16425               ;;
16426
16427       *)
16428         { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
16429     esac
16430
16431         if test "x$WX_TARGET_LIBRARY" = "x"; then
16432         WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16433         WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16434     fi
16435
16436         WX_TARGET_LIBRARY_TYPE="so"
16437     INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
16438 fi
16439
16440 if test "$wxUSE_SHARED" = "no"; then
16441
16442         if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16443                 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16444     fi
16445
16446     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
16447         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16448     fi
16449
16450     if test "$wxUSE_OPENGL" = "yes"; then
16451         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16452         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16453     else
16454         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16455     fi
16456
16457     WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16458     WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16459
16460     WX_TARGET_LIBRARY_TYPE="a"
16461     INSTALL_LIBRARY='$(INSTALL_DATA)'
16462
16463             STATIC_FLAG="yes"
16464 else
16465     STATIC_FLAG="no"
16466 fi
16467
16468 MACRESCOMP="@#"
16469 MACSETFILE="@#"
16470 MACRESWXCONFIG="#"
16471 if test "$wxUSE_MAC" = 1; then
16472         LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16473     WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16474     WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16475     # Extract the first word of "Rez", so it can be a program name with args.
16476 set dummy Rez; ac_word=$2
16477 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16478 echo "configure:16479: checking for $ac_word" >&5
16479 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16480   echo $ac_n "(cached) $ac_c" 1>&6
16481 else
16482   if test -n "$RESCOMP"; then
16483   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16484 else
16485   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
16486   ac_dummy="$PATH"
16487   for ac_dir in $ac_dummy; do
16488     test -z "$ac_dir" && ac_dir=.
16489     if test -f $ac_dir/$ac_word; then
16490       ac_cv_prog_RESCOMP="Rez"
16491       break
16492     fi
16493   done
16494   IFS="$ac_save_ifs"
16495   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16496 fi
16497 fi
16498 RESCOMP="$ac_cv_prog_RESCOMP"
16499 if test -n "$RESCOMP"; then
16500   echo "$ac_t""$RESCOMP" 1>&6
16501 else
16502   echo "$ac_t""no" 1>&6
16503 fi
16504
16505     # Extract the first word of "DeRez", so it can be a program name with args.
16506 set dummy DeRez; ac_word=$2
16507 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16508 echo "configure:16509: checking for $ac_word" >&5
16509 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16510   echo $ac_n "(cached) $ac_c" 1>&6
16511 else
16512   if test -n "$DEREZ"; then
16513   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16514 else
16515   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
16516   ac_dummy="$PATH"
16517   for ac_dir in $ac_dummy; do
16518     test -z "$ac_dir" && ac_dir=.
16519     if test -f $ac_dir/$ac_word; then
16520       ac_cv_prog_DEREZ="DeRez"
16521       break
16522     fi
16523   done
16524   IFS="$ac_save_ifs"
16525   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16526 fi
16527 fi
16528 DEREZ="$ac_cv_prog_DEREZ"
16529 if test -n "$DEREZ"; then
16530   echo "$ac_t""$DEREZ" 1>&6
16531 else
16532   echo "$ac_t""no" 1>&6
16533 fi
16534
16535     # Extract the first word of "SetFile", so it can be a program name with args.
16536 set dummy SetFile; ac_word=$2
16537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16538 echo "configure:16539: checking for $ac_word" >&5
16539 if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16540   echo $ac_n "(cached) $ac_c" 1>&6
16541 else
16542   if test -n "$SETFILE"; then
16543   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16544 else
16545   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
16546   ac_dummy="$PATH"
16547   for ac_dir in $ac_dummy; do
16548     test -z "$ac_dir" && ac_dir=.
16549     if test -f $ac_dir/$ac_word; then
16550       ac_cv_prog_SETFILE="SetFile"
16551       break
16552     fi
16553   done
16554   IFS="$ac_save_ifs"
16555   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16556 fi
16557 fi
16558 SETFILE="$ac_cv_prog_SETFILE"
16559 if test -n "$SETFILE"; then
16560   echo "$ac_t""$SETFILE" 1>&6
16561 else
16562   echo "$ac_t""no" 1>&6
16563 fi
16564
16565     MACOSX_BUNDLE="bundle"
16566             MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16567     MACSETFILE="\$(SETFILE)"
16568     MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
16569 elif test "$wxUSE_COCOA" = 1; then
16570     # Extract the first word of "Rez", so it can be a program name with args.
16571 set dummy Rez; ac_word=$2
16572 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16573 echo "configure:16574: checking for $ac_word" >&5
16574 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16575   echo $ac_n "(cached) $ac_c" 1>&6
16576 else
16577   if test -n "$RESCOMP"; then
16578   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16579 else
16580   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
16581   ac_dummy="$PATH"
16582   for ac_dir in $ac_dummy; do
16583     test -z "$ac_dir" && ac_dir=.
16584     if test -f $ac_dir/$ac_word; then
16585       ac_cv_prog_RESCOMP="Rez"
16586       break
16587     fi
16588   done
16589   IFS="$ac_save_ifs"
16590   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16591 fi
16592 fi
16593 RESCOMP="$ac_cv_prog_RESCOMP"
16594 if test -n "$RESCOMP"; then
16595   echo "$ac_t""$RESCOMP" 1>&6
16596 else
16597   echo "$ac_t""no" 1>&6
16598 fi
16599
16600     # Extract the first word of "DeRez", so it can be a program name with args.
16601 set dummy DeRez; ac_word=$2
16602 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16603 echo "configure:16604: checking for $ac_word" >&5
16604 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16605   echo $ac_n "(cached) $ac_c" 1>&6
16606 else
16607   if test -n "$DEREZ"; then
16608   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16609 else
16610   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
16611   ac_dummy="$PATH"
16612   for ac_dir in $ac_dummy; do
16613     test -z "$ac_dir" && ac_dir=.
16614     if test -f $ac_dir/$ac_word; then
16615       ac_cv_prog_DEREZ="DeRez"
16616       break
16617     fi
16618   done
16619   IFS="$ac_save_ifs"
16620   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16621 fi
16622 fi
16623 DEREZ="$ac_cv_prog_DEREZ"
16624 if test -n "$DEREZ"; then
16625   echo "$ac_t""$DEREZ" 1>&6
16626 else
16627   echo "$ac_t""no" 1>&6
16628 fi
16629
16630     # Extract the first word of "SetFile", so it can be a program name with args.
16631 set dummy SetFile; ac_word=$2
16632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16633 echo "configure:16634: checking for $ac_word" >&5
16634 if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16635   echo $ac_n "(cached) $ac_c" 1>&6
16636 else
16637   if test -n "$SETFILE"; then
16638   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16639 else
16640   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
16641   ac_dummy="$PATH"
16642   for ac_dir in $ac_dummy; do
16643     test -z "$ac_dir" && ac_dir=.
16644     if test -f $ac_dir/$ac_word; then
16645       ac_cv_prog_SETFILE="SetFile"
16646       break
16647     fi
16648   done
16649   IFS="$ac_save_ifs"
16650   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16651 fi
16652 fi
16653 SETFILE="$ac_cv_prog_SETFILE"
16654 if test -n "$SETFILE"; then
16655   echo "$ac_t""$SETFILE" 1>&6
16656 else
16657   echo "$ac_t""no" 1>&6
16658 fi
16659
16660     MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
16661     MACSETFILE="\$(SETFILE)"
16662     MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
16663 else
16664     if test "$wxUSE_PM" = 1; then
16665         MACRESCOMP="emxbind -ep"
16666     fi
16667 fi
16668
16669
16670 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
16671 echo "configure:16672: checking for ANSI C header files" >&5
16672 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16673   echo $ac_n "(cached) $ac_c" 1>&6
16674 else
16675   cat > conftest.$ac_ext <<EOF
16676 #line 16677 "configure"
16677 #include "confdefs.h"
16678 #include <stdlib.h>
16679 #include <stdarg.h>
16680 #include <string.h>
16681 #include <float.h>
16682 EOF
16683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16684 { (eval echo configure:16685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16685 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16686 if test -z "$ac_err"; then
16687   rm -rf conftest*
16688   ac_cv_header_stdc=yes
16689 else
16690   echo "$ac_err" >&5
16691   echo "configure: failed program was:" >&5
16692   cat conftest.$ac_ext >&5
16693   rm -rf conftest*
16694   ac_cv_header_stdc=no
16695 fi
16696 rm -f conftest*
16697
16698 if test $ac_cv_header_stdc = yes; then
16699   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16700 cat > conftest.$ac_ext <<EOF
16701 #line 16702 "configure"
16702 #include "confdefs.h"
16703 #include <string.h>
16704 EOF
16705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16706   egrep "memchr" >/dev/null 2>&1; then
16707   :
16708 else
16709   rm -rf conftest*
16710   ac_cv_header_stdc=no
16711 fi
16712 rm -f conftest*
16713
16714 fi
16715
16716 if test $ac_cv_header_stdc = yes; then
16717   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16718 cat > conftest.$ac_ext <<EOF
16719 #line 16720 "configure"
16720 #include "confdefs.h"
16721 #include <stdlib.h>
16722 EOF
16723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16724   egrep "free" >/dev/null 2>&1; then
16725   :
16726 else
16727   rm -rf conftest*
16728   ac_cv_header_stdc=no
16729 fi
16730 rm -f conftest*
16731
16732 fi
16733
16734 if test $ac_cv_header_stdc = yes; then
16735   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16736 if test "$cross_compiling" = yes; then
16737   :
16738 else
16739   cat > conftest.$ac_ext <<EOF
16740 #line 16741 "configure"
16741 #include "confdefs.h"
16742 #include <ctype.h>
16743 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16744 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16745 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16746 int main () { int i; for (i = 0; i < 256; i++)
16747 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16748 exit (0); }
16749
16750 EOF
16751 if { (eval echo configure:16752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16752 then
16753   :
16754 else
16755   echo "configure: failed program was:" >&5
16756   cat conftest.$ac_ext >&5
16757   rm -fr conftest*
16758   ac_cv_header_stdc=no
16759 fi
16760 rm -fr conftest*
16761 fi
16762
16763 fi
16764 fi
16765
16766 echo "$ac_t""$ac_cv_header_stdc" 1>&6
16767 if test $ac_cv_header_stdc = yes; then
16768   cat >> confdefs.h <<\EOF
16769 #define STDC_HEADERS 1
16770 EOF
16771
16772 fi
16773
16774 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
16775 echo "configure:16776: checking for mode_t" >&5
16776 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16777   echo $ac_n "(cached) $ac_c" 1>&6
16778 else
16779   cat > conftest.$ac_ext <<EOF
16780 #line 16781 "configure"
16781 #include "confdefs.h"
16782 #include <sys/types.h>
16783 #if STDC_HEADERS
16784 #include <stdlib.h>
16785 #include <stddef.h>
16786 #endif
16787 EOF
16788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16789   egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16790   rm -rf conftest*
16791   ac_cv_type_mode_t=yes
16792 else
16793   rm -rf conftest*
16794   ac_cv_type_mode_t=no
16795 fi
16796 rm -f conftest*
16797
16798 fi
16799 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16800 if test $ac_cv_type_mode_t = no; then
16801   cat >> confdefs.h <<\EOF
16802 #define mode_t int
16803 EOF
16804
16805 fi
16806
16807 echo $ac_n "checking for off_t""... $ac_c" 1>&6
16808 echo "configure:16809: checking for off_t" >&5
16809 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16810   echo $ac_n "(cached) $ac_c" 1>&6
16811 else
16812   cat > conftest.$ac_ext <<EOF
16813 #line 16814 "configure"
16814 #include "confdefs.h"
16815 #include <sys/types.h>
16816 #if STDC_HEADERS
16817 #include <stdlib.h>
16818 #include <stddef.h>
16819 #endif
16820 EOF
16821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16822   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16823   rm -rf conftest*
16824   ac_cv_type_off_t=yes
16825 else
16826   rm -rf conftest*
16827   ac_cv_type_off_t=no
16828 fi
16829 rm -f conftest*
16830
16831 fi
16832 echo "$ac_t""$ac_cv_type_off_t" 1>&6
16833 if test $ac_cv_type_off_t = no; then
16834   cat >> confdefs.h <<\EOF
16835 #define off_t long
16836 EOF
16837
16838 fi
16839
16840 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
16841 echo "configure:16842: checking for pid_t" >&5
16842 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16843   echo $ac_n "(cached) $ac_c" 1>&6
16844 else
16845   cat > conftest.$ac_ext <<EOF
16846 #line 16847 "configure"
16847 #include "confdefs.h"
16848 #include <sys/types.h>
16849 #if STDC_HEADERS
16850 #include <stdlib.h>
16851 #include <stddef.h>
16852 #endif
16853 EOF
16854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16855   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16856   rm -rf conftest*
16857   ac_cv_type_pid_t=yes
16858 else
16859   rm -rf conftest*
16860   ac_cv_type_pid_t=no
16861 fi
16862 rm -f conftest*
16863
16864 fi
16865 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16866 if test $ac_cv_type_pid_t = no; then
16867   cat >> confdefs.h <<\EOF
16868 #define pid_t int
16869 EOF
16870
16871 fi
16872
16873 echo $ac_n "checking for size_t""... $ac_c" 1>&6
16874 echo "configure:16875: checking for size_t" >&5
16875 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16876   echo $ac_n "(cached) $ac_c" 1>&6
16877 else
16878   cat > conftest.$ac_ext <<EOF
16879 #line 16880 "configure"
16880 #include "confdefs.h"
16881 #include <sys/types.h>
16882 #if STDC_HEADERS
16883 #include <stdlib.h>
16884 #include <stddef.h>
16885 #endif
16886 EOF
16887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16888   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16889   rm -rf conftest*
16890   ac_cv_type_size_t=yes
16891 else
16892   rm -rf conftest*
16893   ac_cv_type_size_t=no
16894 fi
16895 rm -f conftest*
16896
16897 fi
16898 echo "$ac_t""$ac_cv_type_size_t" 1>&6
16899 if test $ac_cv_type_size_t = no; then
16900   cat >> confdefs.h <<\EOF
16901 #define size_t unsigned
16902 EOF
16903
16904 fi
16905
16906 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16907 echo "configure:16908: checking for uid_t in sys/types.h" >&5
16908 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16909   echo $ac_n "(cached) $ac_c" 1>&6
16910 else
16911   cat > conftest.$ac_ext <<EOF
16912 #line 16913 "configure"
16913 #include "confdefs.h"
16914 #include <sys/types.h>
16915 EOF
16916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16917   egrep "uid_t" >/dev/null 2>&1; then
16918   rm -rf conftest*
16919   ac_cv_type_uid_t=yes
16920 else
16921   rm -rf conftest*
16922   ac_cv_type_uid_t=no
16923 fi
16924 rm -f conftest*
16925
16926 fi
16927
16928 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16929 if test $ac_cv_type_uid_t = no; then
16930   cat >> confdefs.h <<\EOF
16931 #define uid_t int
16932 EOF
16933
16934   cat >> confdefs.h <<\EOF
16935 #define gid_t int
16936 EOF
16937
16938 fi
16939
16940
16941
16942 ac_ext=C
16943 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16944 ac_cpp='$CXXCPP $CPPFLAGS'
16945 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16946 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16947 cross_compiling=$ac_cv_prog_cxx_cross
16948
16949 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
16950 echo "configure:16951: checking if size_t is unsigned int" >&5
16951 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16952   echo $ac_n "(cached) $ac_c" 1>&6
16953 else
16954   
16955                             cat > conftest.$ac_ext <<EOF
16956 #line 16957 "configure"
16957 #include "confdefs.h"
16958 #include <stddef.h>
16959 int main() {
16960
16961             return 0; }
16962
16963             struct Foo { void foo(size_t); void foo(unsigned int); };
16964
16965             int bar() {
16966         
16967 ; return 0; }
16968 EOF
16969 if { (eval echo configure:16970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16970   rm -rf conftest*
16971   wx_cv_size_t_is_uint=no
16972 else
16973   echo "configure: failed program was:" >&5
16974   cat conftest.$ac_ext >&5
16975   rm -rf conftest*
16976   wx_cv_size_t_is_uint=yes
16977     
16978 fi
16979 rm -f conftest*
16980     
16981
16982 fi
16983
16984 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
16985
16986 if test "$wx_cv_size_t_is_uint" = "yes"; then
16987     cat >> confdefs.h <<\EOF
16988 #define wxSIZE_T_IS_UINT 1
16989 EOF
16990
16991 else
16992     echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
16993 echo "configure:16994: checking if size_t is unsigned long" >&5
16994 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16995   echo $ac_n "(cached) $ac_c" 1>&6
16996 else
16997   cat > conftest.$ac_ext <<EOF
16998 #line 16999 "configure"
16999 #include "confdefs.h"
17000 #include <stddef.h>
17001 int main() {
17002
17003                 return 0; }
17004
17005                 struct Foo { void foo(size_t); void foo(unsigned long); };
17006
17007                 int bar() {
17008             
17009 ; return 0; }
17010 EOF
17011 if { (eval echo configure:17012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17012   rm -rf conftest*
17013   wx_cv_size_t_is_ulong=no
17014 else
17015   echo "configure: failed program was:" >&5
17016   cat conftest.$ac_ext >&5
17017   rm -rf conftest*
17018   wx_cv_size_t_is_ulong=yes
17019         
17020 fi
17021 rm -f conftest*
17022     
17023 fi
17024
17025 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
17026
17027     if test "$wx_cv_size_t_is_ulong" = "yes"; then
17028         cat >> confdefs.h <<\EOF
17029 #define wxSIZE_T_IS_ULONG 1
17030 EOF
17031
17032     fi
17033 fi
17034
17035 ac_ext=c
17036 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17037 ac_cpp='$CPP $CPPFLAGS'
17038 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17039 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17040 cross_compiling=$ac_cv_prog_cc_cross
17041
17042
17043
17044 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
17045 echo "configure:17046: checking for pw_gecos in struct passwd" >&5
17046 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
17047   echo $ac_n "(cached) $ac_c" 1>&6
17048 else
17049   
17050         cat > conftest.$ac_ext <<EOF
17051 #line 17052 "configure"
17052 #include "confdefs.h"
17053 #include <pwd.h>
17054 int main() {
17055
17056                 char *p;
17057                 struct passwd *pw;
17058                 p = pw->pw_gecos;
17059              
17060 ; return 0; }
17061 EOF
17062 if { (eval echo configure:17063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17063   rm -rf conftest*
17064   
17065                 wx_cv_struct_pw_gecos=yes
17066              
17067 else
17068   echo "configure: failed program was:" >&5
17069   cat conftest.$ac_ext >&5
17070   rm -rf conftest*
17071   
17072                 wx_cv_struct_pw_gecos=no
17073              
17074         
17075 fi
17076 rm -f conftest*
17077     
17078
17079 fi
17080
17081 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
17082
17083 if test "$wx_cv_struct_pw_gecos" = "yes"; then
17084     cat >> confdefs.h <<\EOF
17085 #define HAVE_PW_GECOS 1
17086 EOF
17087
17088 fi
17089
17090
17091 if test "$wx_cv_sizeof_wchar_t" != "0"; then
17092     cat >> confdefs.h <<\EOF
17093 #define wxUSE_WCHAR_T 1
17094 EOF
17095
17096
17097         WCSLEN_FOUND=0
17098     WCHAR_LINK=
17099     for ac_func in wcslen
17100 do
17101 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17102 echo "configure:17103: checking for $ac_func" >&5
17103 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17104   echo $ac_n "(cached) $ac_c" 1>&6
17105 else
17106   cat > conftest.$ac_ext <<EOF
17107 #line 17108 "configure"
17108 #include "confdefs.h"
17109 /* System header to define __stub macros and hopefully few prototypes,
17110     which can conflict with char $ac_func(); below.  */
17111 #include <assert.h>
17112 /* Override any gcc2 internal prototype to avoid an error.  */
17113 /* We use char because int might match the return type of a gcc2
17114     builtin and then its argument prototype would still apply.  */
17115 char $ac_func();
17116
17117 int main() {
17118
17119 /* The GNU C library defines this for functions which it implements
17120     to always fail with ENOSYS.  Some functions are actually named
17121     something starting with __ and the normal name is an alias.  */
17122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17123 choke me
17124 #else
17125 $ac_func();
17126 #endif
17127
17128 ; return 0; }
17129 EOF
17130 if { (eval echo configure:17131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17131   rm -rf conftest*
17132   eval "ac_cv_func_$ac_func=yes"
17133 else
17134   echo "configure: failed program was:" >&5
17135   cat conftest.$ac_ext >&5
17136   rm -rf conftest*
17137   eval "ac_cv_func_$ac_func=no"
17138 fi
17139 rm -f conftest*
17140 fi
17141
17142 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17143   echo "$ac_t""yes" 1>&6
17144     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17145   cat >> confdefs.h <<EOF
17146 #define $ac_tr_func 1
17147 EOF
17148  WCSLEN_FOUND=1
17149 else
17150   echo "$ac_t""no" 1>&6
17151 fi
17152 done
17153
17154
17155     if test "$WCSLEN_FOUND" = 0; then
17156         if test "$TOOLKIT" = "MSW"; then
17157             echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
17158 echo "configure:17159: checking for wcslen in -lmsvcrt" >&5
17159 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
17160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17161   echo $ac_n "(cached) $ac_c" 1>&6
17162 else
17163   ac_save_LIBS="$LIBS"
17164 LIBS="-lmsvcrt  $LIBS"
17165 cat > conftest.$ac_ext <<EOF
17166 #line 17167 "configure"
17167 #include "confdefs.h"
17168 /* Override any gcc2 internal prototype to avoid an error.  */
17169 /* We use char because int might match the return type of a gcc2
17170     builtin and then its argument prototype would still apply.  */
17171 char wcslen();
17172
17173 int main() {
17174 wcslen()
17175 ; return 0; }
17176 EOF
17177 if { (eval echo configure:17178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17178   rm -rf conftest*
17179   eval "ac_cv_lib_$ac_lib_var=yes"
17180 else
17181   echo "configure: failed program was:" >&5
17182   cat conftest.$ac_ext >&5
17183   rm -rf conftest*
17184   eval "ac_cv_lib_$ac_lib_var=no"
17185 fi
17186 rm -f conftest*
17187 LIBS="$ac_save_LIBS"
17188
17189 fi
17190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17191   echo "$ac_t""yes" 1>&6
17192   WCHAR_OK=1
17193 else
17194   echo "$ac_t""no" 1>&6
17195 fi
17196
17197         else
17198             echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
17199 echo "configure:17200: checking for wcslen in -lw" >&5
17200 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
17201 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17202   echo $ac_n "(cached) $ac_c" 1>&6
17203 else
17204   ac_save_LIBS="$LIBS"
17205 LIBS="-lw  $LIBS"
17206 cat > conftest.$ac_ext <<EOF
17207 #line 17208 "configure"
17208 #include "confdefs.h"
17209 /* Override any gcc2 internal prototype to avoid an error.  */
17210 /* We use char because int might match the return type of a gcc2
17211     builtin and then its argument prototype would still apply.  */
17212 char wcslen();
17213
17214 int main() {
17215 wcslen()
17216 ; return 0; }
17217 EOF
17218 if { (eval echo configure:17219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17219   rm -rf conftest*
17220   eval "ac_cv_lib_$ac_lib_var=yes"
17221 else
17222   echo "configure: failed program was:" >&5
17223   cat conftest.$ac_ext >&5
17224   rm -rf conftest*
17225   eval "ac_cv_lib_$ac_lib_var=no"
17226 fi
17227 rm -f conftest*
17228 LIBS="$ac_save_LIBS"
17229
17230 fi
17231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17232   echo "$ac_t""yes" 1>&6
17233   
17234                             WCHAR_LINK=" -lw"
17235                             WCSLEN_FOUND=1
17236                         
17237 else
17238   echo "$ac_t""no" 1>&6
17239 fi
17240
17241         fi
17242     fi
17243
17244     if test "$WCSLEN_FOUND" = 1; then
17245         cat >> confdefs.h <<\EOF
17246 #define HAVE_WCSLEN 1
17247 EOF
17248
17249     fi
17250
17251             for ac_func in wcsrtombs
17252 do
17253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17254 echo "configure:17255: checking for $ac_func" >&5
17255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17256   echo $ac_n "(cached) $ac_c" 1>&6
17257 else
17258   cat > conftest.$ac_ext <<EOF
17259 #line 17260 "configure"
17260 #include "confdefs.h"
17261 /* System header to define __stub macros and hopefully few prototypes,
17262     which can conflict with char $ac_func(); below.  */
17263 #include <assert.h>
17264 /* Override any gcc2 internal prototype to avoid an error.  */
17265 /* We use char because int might match the return type of a gcc2
17266     builtin and then its argument prototype would still apply.  */
17267 char $ac_func();
17268
17269 int main() {
17270
17271 /* The GNU C library defines this for functions which it implements
17272     to always fail with ENOSYS.  Some functions are actually named
17273     something starting with __ and the normal name is an alias.  */
17274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17275 choke me
17276 #else
17277 $ac_func();
17278 #endif
17279
17280 ; return 0; }
17281 EOF
17282 if { (eval echo configure:17283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17283   rm -rf conftest*
17284   eval "ac_cv_func_$ac_func=yes"
17285 else
17286   echo "configure: failed program was:" >&5
17287   cat conftest.$ac_ext >&5
17288   rm -rf conftest*
17289   eval "ac_cv_func_$ac_func=no"
17290 fi
17291 rm -f conftest*
17292 fi
17293
17294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17295   echo "$ac_t""yes" 1>&6
17296     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17297   cat >> confdefs.h <<EOF
17298 #define $ac_tr_func 1
17299 EOF
17300  
17301 else
17302   echo "$ac_t""no" 1>&6
17303 fi
17304 done
17305
17306 else
17307     echo "configure: warning: Wide character support is unavailable" 1>&2
17308 fi
17309
17310
17311 ac_ext=C
17312 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17313 ac_cpp='$CXXCPP $CPPFLAGS'
17314 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17315 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17316 cross_compiling=$ac_cv_prog_cxx_cross
17317
17318
17319 for ac_func in vsnprintf
17320 do
17321 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17322 echo "configure:17323: checking for $ac_func" >&5
17323 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17324   echo $ac_n "(cached) $ac_c" 1>&6
17325 else
17326   cat > conftest.$ac_ext <<EOF
17327 #line 17328 "configure"
17328 #include "confdefs.h"
17329 /* System header to define __stub macros and hopefully few prototypes,
17330     which can conflict with char $ac_func(); below.  */
17331 #include <assert.h>
17332 /* Override any gcc2 internal prototype to avoid an error.  */
17333 #ifdef __cplusplus
17334 extern "C"
17335 #endif
17336 /* We use char because int might match the return type of a gcc2
17337     builtin and then its argument prototype would still apply.  */
17338 char $ac_func();
17339
17340 int main() {
17341
17342 /* The GNU C library defines this for functions which it implements
17343     to always fail with ENOSYS.  Some functions are actually named
17344     something starting with __ and the normal name is an alias.  */
17345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17346 choke me
17347 #else
17348 $ac_func();
17349 #endif
17350
17351 ; return 0; }
17352 EOF
17353 if { (eval echo configure:17354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17354   rm -rf conftest*
17355   eval "ac_cv_func_$ac_func=yes"
17356 else
17357   echo "configure: failed program was:" >&5
17358   cat conftest.$ac_ext >&5
17359   rm -rf conftest*
17360   eval "ac_cv_func_$ac_func=no"
17361 fi
17362 rm -f conftest*
17363 fi
17364
17365 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17366   echo "$ac_t""yes" 1>&6
17367     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17368   cat >> confdefs.h <<EOF
17369 #define $ac_tr_func 1
17370 EOF
17371  
17372 else
17373   echo "$ac_t""no" 1>&6
17374 fi
17375 done
17376
17377
17378 if test "$ac_cv_func_vsnprintf" = "yes"; then
17379         echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
17380 echo "configure:17381: checking for vsnprintf declaration" >&5
17381 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
17382   echo $ac_n "(cached) $ac_c" 1>&6
17383 else
17384   
17385             cat > conftest.$ac_ext <<EOF
17386 #line 17387 "configure"
17387 #include "confdefs.h"
17388
17389                     #include <stdio.h>
17390                     #include <stdarg.h>
17391                 
17392 int main() {
17393
17394                     char *buf;
17395                     va_list ap;
17396                     vsnprintf(buf, 10u, "%s", ap);
17397                 
17398 ; return 0; }
17399 EOF
17400 if { (eval echo configure:17401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17401   rm -rf conftest*
17402   wx_cv_func_vsnprintf_decl=yes
17403 else
17404   echo "configure: failed program was:" >&5
17405   cat conftest.$ac_ext >&5
17406   rm -rf conftest*
17407   wx_cv_func_vsnprintf_decl=no
17408             
17409 fi
17410 rm -f conftest*
17411         
17412     
17413 fi
17414
17415 echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17416
17417     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17418         cat >> confdefs.h <<\EOF
17419 #define HAVE_VSNPRINTF_DECL 1
17420 EOF
17421
17422     fi
17423 fi
17424
17425 if test "$wxUSE_UNICODE" = yes; then
17426         for ac_func in fputwc wprintf vswprintf
17427 do
17428 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17429 echo "configure:17430: checking for $ac_func" >&5
17430 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17431   echo $ac_n "(cached) $ac_c" 1>&6
17432 else
17433   cat > conftest.$ac_ext <<EOF
17434 #line 17435 "configure"
17435 #include "confdefs.h"
17436 /* System header to define __stub macros and hopefully few prototypes,
17437     which can conflict with char $ac_func(); below.  */
17438 #include <assert.h>
17439 /* Override any gcc2 internal prototype to avoid an error.  */
17440 #ifdef __cplusplus
17441 extern "C"
17442 #endif
17443 /* We use char because int might match the return type of a gcc2
17444     builtin and then its argument prototype would still apply.  */
17445 char $ac_func();
17446
17447 int main() {
17448
17449 /* The GNU C library defines this for functions which it implements
17450     to always fail with ENOSYS.  Some functions are actually named
17451     something starting with __ and the normal name is an alias.  */
17452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17453 choke me
17454 #else
17455 $ac_func();
17456 #endif
17457
17458 ; return 0; }
17459 EOF
17460 if { (eval echo configure:17461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17461   rm -rf conftest*
17462   eval "ac_cv_func_$ac_func=yes"
17463 else
17464   echo "configure: failed program was:" >&5
17465   cat conftest.$ac_ext >&5
17466   rm -rf conftest*
17467   eval "ac_cv_func_$ac_func=no"
17468 fi
17469 rm -f conftest*
17470 fi
17471
17472 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17473   echo "$ac_t""yes" 1>&6
17474     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17475   cat >> confdefs.h <<EOF
17476 #define $ac_tr_func 1
17477 EOF
17478  
17479 else
17480   echo "$ac_t""no" 1>&6
17481 fi
17482 done
17483
17484
17485                 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
17486 echo "configure:17487: checking for _vsnwprintf" >&5
17487     cat > conftest.$ac_ext <<EOF
17488 #line 17489 "configure"
17489 #include "confdefs.h"
17490 #include <wchar.h>
17491 int main() {
17492 &_vsnwprintf;
17493 ; return 0; }
17494 EOF
17495 if { (eval echo configure:17496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17496   rm -rf conftest*
17497   echo "$ac_t""yes" 1>&6
17498                     cat >> confdefs.h <<\EOF
17499 #define HAVE__VSNWPRINTF 1
17500 EOF
17501
17502 else
17503   echo "configure: failed program was:" >&5
17504   cat conftest.$ac_ext >&5
17505   rm -rf conftest*
17506   echo "$ac_t""no" 1>&6
17507 fi
17508 rm -f conftest*;
17509 fi
17510
17511 ac_ext=c
17512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17513 ac_cpp='$CPP $CPPFLAGS'
17514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17515 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17516 cross_compiling=$ac_cv_prog_cc_cross
17517
17518
17519
17520
17521 if test "$TOOLKIT" != "MSW"; then
17522
17523
17524
17525 ac_ext=C
17526 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17527 ac_cpp='$CXXCPP $CPPFLAGS'
17528 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17529 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17530 cross_compiling=$ac_cv_prog_cxx_cross
17531
17532
17533     
17534   # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
17535 if test "${with_libiconv_prefix+set}" = set; then
17536   withval="$with_libiconv_prefix"
17537   
17538     for dir in `echo "$withval" | tr : ' '`; do
17539       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17540       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17541     done
17542    
17543 fi
17544
17545
17546   echo $ac_n "checking for iconv""... $ac_c" 1>&6
17547 echo "configure:17548: checking for iconv" >&5
17548 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17549   echo $ac_n "(cached) $ac_c" 1>&6
17550 else
17551   
17552     am_cv_func_iconv="no, consider installing GNU libiconv"
17553     am_cv_lib_iconv=no
17554     cat > conftest.$ac_ext <<EOF
17555 #line 17556 "configure"
17556 #include "confdefs.h"
17557 #include <stdlib.h>
17558 #include <iconv.h>
17559 int main() {
17560 iconv_t cd = iconv_open("","");
17561        iconv(cd,NULL,NULL,NULL,NULL);
17562        iconv_close(cd);
17563 ; return 0; }
17564 EOF
17565 if { (eval echo configure:17566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17566   rm -rf conftest*
17567   am_cv_func_iconv=yes
17568 else
17569   echo "configure: failed program was:" >&5
17570   cat conftest.$ac_ext >&5
17571 fi
17572 rm -f conftest*
17573     if test "$am_cv_func_iconv" != yes; then
17574       am_save_LIBS="$LIBS"
17575       LIBS="$LIBS -liconv"
17576       cat > conftest.$ac_ext <<EOF
17577 #line 17578 "configure"
17578 #include "confdefs.h"
17579 #include <stdlib.h>
17580 #include <iconv.h>
17581 int main() {
17582 iconv_t cd = iconv_open("","");
17583          iconv(cd,NULL,NULL,NULL,NULL);
17584          iconv_close(cd);
17585 ; return 0; }
17586 EOF
17587 if { (eval echo configure:17588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17588   rm -rf conftest*
17589   am_cv_lib_iconv=yes
17590         am_cv_func_iconv=yes
17591 else
17592   echo "configure: failed program was:" >&5
17593   cat conftest.$ac_ext >&5
17594 fi
17595 rm -f conftest*
17596       LIBS="$am_save_LIBS"
17597     fi
17598   
17599 fi
17600
17601 echo "$ac_t""$am_cv_func_iconv" 1>&6
17602   if test "$am_cv_func_iconv" = yes; then
17603     cat >> confdefs.h <<\EOF
17604 #define HAVE_ICONV 1
17605 EOF
17606
17607     echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
17608 echo "configure:17609: checking if iconv needs const" >&5
17609 if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17610   echo $ac_n "(cached) $ac_c" 1>&6
17611 else
17612   cat > conftest.$ac_ext <<EOF
17613 #line 17614 "configure"
17614 #include "confdefs.h"
17615
17616 #include <stdlib.h>
17617 #include <iconv.h>
17618 extern
17619 #ifdef __cplusplus
17620 "C"
17621 #endif
17622 #if defined(__STDC__) || defined(__cplusplus)
17623 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17624 #else
17625 size_t iconv();
17626 #endif
17627         
17628 int main() {
17629
17630 ; return 0; }
17631 EOF
17632 if { (eval echo configure:17633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17633   rm -rf conftest*
17634   wx_cv_func_iconv_const="no"
17635 else
17636   echo "configure: failed program was:" >&5
17637   cat conftest.$ac_ext >&5
17638   rm -rf conftest*
17639   wx_cv_func_iconv_const="yes"
17640       
17641 fi
17642 rm -f conftest*
17643     
17644 fi
17645
17646 echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
17647
17648     iconv_const=
17649     if test "x$wx_cv_func_iconv_const" = "xyes"; then
17650         iconv_const="const"
17651     fi
17652
17653     cat >> confdefs.h <<EOF
17654 #define ICONV_CONST $iconv_const
17655 EOF
17656
17657   fi
17658   LIBICONV=
17659   if test "$am_cv_lib_iconv" = yes; then
17660     LIBICONV="-liconv"
17661   fi
17662   
17663
17664 LIBS="$LIBICONV $LIBS"
17665 ac_ext=c
17666 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17667 ac_cpp='$CPP $CPPFLAGS'
17668 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17669 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17670 cross_compiling=$ac_cv_prog_cc_cross
17671
17672
17673 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
17674     for ac_func in sigaction
17675 do
17676 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17677 echo "configure:17678: checking for $ac_func" >&5
17678 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17679   echo $ac_n "(cached) $ac_c" 1>&6
17680 else
17681   cat > conftest.$ac_ext <<EOF
17682 #line 17683 "configure"
17683 #include "confdefs.h"
17684 /* System header to define __stub macros and hopefully few prototypes,
17685     which can conflict with char $ac_func(); below.  */
17686 #include <assert.h>
17687 /* Override any gcc2 internal prototype to avoid an error.  */
17688 /* We use char because int might match the return type of a gcc2
17689     builtin and then its argument prototype would still apply.  */
17690 char $ac_func();
17691
17692 int main() {
17693
17694 /* The GNU C library defines this for functions which it implements
17695     to always fail with ENOSYS.  Some functions are actually named
17696     something starting with __ and the normal name is an alias.  */
17697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17698 choke me
17699 #else
17700 $ac_func();
17701 #endif
17702
17703 ; return 0; }
17704 EOF
17705 if { (eval echo configure:17706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17706   rm -rf conftest*
17707   eval "ac_cv_func_$ac_func=yes"
17708 else
17709   echo "configure: failed program was:" >&5
17710   cat conftest.$ac_ext >&5
17711   rm -rf conftest*
17712   eval "ac_cv_func_$ac_func=no"
17713 fi
17714 rm -f conftest*
17715 fi
17716
17717 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17718   echo "$ac_t""yes" 1>&6
17719     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17720   cat >> confdefs.h <<EOF
17721 #define $ac_tr_func 1
17722 EOF
17723  
17724 else
17725   echo "$ac_t""no" 1>&6
17726 fi
17727 done
17728
17729
17730     if test "$ac_cv_func_sigaction" = "no"; then
17731         echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
17732         wxUSE_ON_FATAL_EXCEPTION=no
17733     fi
17734
17735     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17736       
17737       ac_ext=C
17738 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17739 ac_cpp='$CXXCPP $CPPFLAGS'
17740 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17741 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17742 cross_compiling=$ac_cv_prog_cxx_cross
17743
17744
17745       echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
17746 echo "configure:17747: checking for sa_handler type" >&5
17747 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17748   echo $ac_n "(cached) $ac_c" 1>&6
17749 else
17750   
17751         cat > conftest.$ac_ext <<EOF
17752 #line 17753 "configure"
17753 #include "confdefs.h"
17754 #include <signal.h>
17755 int main() {
17756
17757                         extern void testSigHandler(int);
17758
17759                         struct sigaction sa;
17760                         sa.sa_handler = testSigHandler;
17761                      
17762 ; return 0; }
17763 EOF
17764 if { (eval echo configure:17765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17765   rm -rf conftest*
17766   
17767                         wx_cv_type_sa_handler=int
17768                      
17769 else
17770   echo "configure: failed program was:" >&5
17771   cat conftest.$ac_ext >&5
17772   rm -rf conftest*
17773   
17774                         wx_cv_type_sa_handler=void
17775                      
17776 fi
17777 rm -f conftest*
17778       
17779 fi
17780
17781 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
17782
17783       ac_ext=c
17784 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17785 ac_cpp='$CPP $CPPFLAGS'
17786 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17787 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17788 cross_compiling=$ac_cv_prog_cc_cross
17789
17790
17791       cat >> confdefs.h <<EOF
17792 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
17793 EOF
17794
17795     fi
17796 fi
17797
17798 for ac_func in mkstemp mktemp
17799 do
17800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17801 echo "configure:17802: checking for $ac_func" >&5
17802 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17803   echo $ac_n "(cached) $ac_c" 1>&6
17804 else
17805   cat > conftest.$ac_ext <<EOF
17806 #line 17807 "configure"
17807 #include "confdefs.h"
17808 /* System header to define __stub macros and hopefully few prototypes,
17809     which can conflict with char $ac_func(); below.  */
17810 #include <assert.h>
17811 /* Override any gcc2 internal prototype to avoid an error.  */
17812 /* We use char because int might match the return type of a gcc2
17813     builtin and then its argument prototype would still apply.  */
17814 char $ac_func();
17815
17816 int main() {
17817
17818 /* The GNU C library defines this for functions which it implements
17819     to always fail with ENOSYS.  Some functions are actually named
17820     something starting with __ and the normal name is an alias.  */
17821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17822 choke me
17823 #else
17824 $ac_func();
17825 #endif
17826
17827 ; return 0; }
17828 EOF
17829 if { (eval echo configure:17830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17830   rm -rf conftest*
17831   eval "ac_cv_func_$ac_func=yes"
17832 else
17833   echo "configure: failed program was:" >&5
17834   cat conftest.$ac_ext >&5
17835   rm -rf conftest*
17836   eval "ac_cv_func_$ac_func=no"
17837 fi
17838 rm -f conftest*
17839 fi
17840
17841 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17842   echo "$ac_t""yes" 1>&6
17843     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17844   cat >> confdefs.h <<EOF
17845 #define $ac_tr_func 1
17846 EOF
17847  break
17848 else
17849   echo "$ac_t""no" 1>&6
17850 fi
17851 done
17852
17853
17854 echo $ac_n "checking for statfs""... $ac_c" 1>&6
17855 echo "configure:17856: checking for statfs" >&5
17856 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17857   echo $ac_n "(cached) $ac_c" 1>&6
17858 else
17859   cat > conftest.$ac_ext <<EOF
17860 #line 17861 "configure"
17861 #include "confdefs.h"
17862
17863              #if defined(__BSD__)
17864                #include <sys/param.h>
17865                #include <sys/mount.h>
17866              #else
17867                #include <sys/vfs.h>
17868              #endif
17869         
17870 int main() {
17871
17872              long l;
17873              struct statfs fs;
17874              statfs("/", &fs);
17875              l = fs.f_bsize;
17876              l += fs.f_blocks;
17877              l += fs.f_bavail;
17878         
17879 ; return 0; }
17880 EOF
17881 if { (eval echo configure:17882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17882   rm -rf conftest*
17883   
17884              wx_cv_func_statfs=yes
17885         
17886 else
17887   echo "configure: failed program was:" >&5
17888   cat conftest.$ac_ext >&5
17889   rm -rf conftest*
17890   
17891              wx_cv_func_statfs=no
17892         
17893     
17894 fi
17895 rm -f conftest*
17896
17897 fi
17898
17899 echo "$ac_t""$wx_cv_func_statfs" 1>&6
17900
17901 if test "$wx_cv_func_statfs" = "yes"; then
17902     wx_cv_type_statvfs_t="struct statfs"
17903     cat >> confdefs.h <<\EOF
17904 #define HAVE_STATFS 1
17905 EOF
17906
17907 else
17908     echo $ac_n "checking for statvfs""... $ac_c" 1>&6
17909 echo "configure:17910: checking for statvfs" >&5
17910 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17911   echo $ac_n "(cached) $ac_c" 1>&6
17912 else
17913   cat > conftest.$ac_ext <<EOF
17914 #line 17915 "configure"
17915 #include "confdefs.h"
17916
17917                 #include <stddef.h>
17918                 #include <sys/statvfs.h>
17919             
17920 int main() {
17921
17922                 statvfs("/", NULL);
17923             
17924 ; return 0; }
17925 EOF
17926 if { (eval echo configure:17927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17927   rm -rf conftest*
17928   wx_cv_func_statvfs=yes
17929 else
17930   echo "configure: failed program was:" >&5
17931   cat conftest.$ac_ext >&5
17932   rm -rf conftest*
17933   wx_cv_func_statvfs=no
17934         
17935 fi
17936 rm -f conftest*
17937     
17938 fi
17939
17940 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
17941
17942     if test "$wx_cv_func_statvfs" = "yes"; then
17943                                                                 
17944         ac_ext=C
17945 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17946 ac_cpp='$CXXCPP $CPPFLAGS'
17947 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17948 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17949 cross_compiling=$ac_cv_prog_cxx_cross
17950
17951
17952         echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
17953 echo "configure:17954: checking for statvfs argument type" >&5
17954 if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17955   echo $ac_n "(cached) $ac_c" 1>&6
17956 else
17957   cat > conftest.$ac_ext <<EOF
17958 #line 17959 "configure"
17959 #include "confdefs.h"
17960
17961                     #include <sys/statvfs.h>
17962                 
17963 int main() {
17964
17965                     long l;
17966                     statvfs_t fs;
17967                     statvfs("/", &fs);
17968                     l = fs.f_bsize;
17969                     l += fs.f_blocks;
17970                     l += fs.f_bavail;
17971                 
17972 ; return 0; }
17973 EOF
17974 if { (eval echo configure:17975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17975   rm -rf conftest*
17976   wx_cv_type_statvfs_t=statvfs_t
17977 else
17978   echo "configure: failed program was:" >&5
17979   cat conftest.$ac_ext >&5
17980   rm -rf conftest*
17981   
17982                     cat > conftest.$ac_ext <<EOF
17983 #line 17984 "configure"
17984 #include "confdefs.h"
17985
17986                             #include <sys/statvfs.h>
17987                         
17988 int main() {
17989
17990                             long l;
17991                             struct statvfs fs;
17992                             statvfs("/", &fs);
17993                             l = fs.f_bsize;
17994                             l += fs.f_blocks;
17995                             l += fs.f_bavail;
17996                         
17997 ; return 0; }
17998 EOF
17999 if { (eval echo configure:18000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18000   rm -rf conftest*
18001   wx_cv_type_statvfs_t="struct statvfs"
18002 else
18003   echo "configure: failed program was:" >&5
18004   cat conftest.$ac_ext >&5
18005   rm -rf conftest*
18006   wx_cv_type_statvfs_t="unknown"
18007                     
18008 fi
18009 rm -f conftest*
18010                 
18011             
18012 fi
18013 rm -f conftest*
18014         
18015 fi
18016
18017 echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
18018
18019         ac_ext=c
18020 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18021 ac_cpp='$CPP $CPPFLAGS'
18022 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18023 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18024 cross_compiling=$ac_cv_prog_cc_cross
18025
18026
18027         if test "$wx_cv_type_statvfs_t" != "unknown"; then
18028             cat >> confdefs.h <<\EOF
18029 #define HAVE_STATVFS 1
18030 EOF
18031
18032         fi
18033     else
18034                 wx_cv_type_statvfs_t="unknown"
18035     fi
18036 fi
18037
18038 if test "$wx_cv_type_statvfs_t" != "unknown"; then
18039     cat >> confdefs.h <<EOF
18040 #define WX_STATFS_T $wx_cv_type_statvfs_t
18041 EOF
18042
18043 else
18044     echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
18045 fi
18046
18047 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
18048     for ac_func in fcntl flock
18049 do
18050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18051 echo "configure:18052: checking for $ac_func" >&5
18052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18053   echo $ac_n "(cached) $ac_c" 1>&6
18054 else
18055   cat > conftest.$ac_ext <<EOF
18056 #line 18057 "configure"
18057 #include "confdefs.h"
18058 /* System header to define __stub macros and hopefully few prototypes,
18059     which can conflict with char $ac_func(); below.  */
18060 #include <assert.h>
18061 /* Override any gcc2 internal prototype to avoid an error.  */
18062 /* We use char because int might match the return type of a gcc2
18063     builtin and then its argument prototype would still apply.  */
18064 char $ac_func();
18065
18066 int main() {
18067
18068 /* The GNU C library defines this for functions which it implements
18069     to always fail with ENOSYS.  Some functions are actually named
18070     something starting with __ and the normal name is an alias.  */
18071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18072 choke me
18073 #else
18074 $ac_func();
18075 #endif
18076
18077 ; return 0; }
18078 EOF
18079 if { (eval echo configure:18080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18080   rm -rf conftest*
18081   eval "ac_cv_func_$ac_func=yes"
18082 else
18083   echo "configure: failed program was:" >&5
18084   cat conftest.$ac_ext >&5
18085   rm -rf conftest*
18086   eval "ac_cv_func_$ac_func=no"
18087 fi
18088 rm -f conftest*
18089 fi
18090
18091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18092   echo "$ac_t""yes" 1>&6
18093     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18094   cat >> confdefs.h <<EOF
18095 #define $ac_tr_func 1
18096 EOF
18097  break
18098 else
18099   echo "$ac_t""no" 1>&6
18100 fi
18101 done
18102
18103
18104     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
18105         echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
18106         wxUSE_SNGLINST_CHECKER=no
18107     fi
18108 fi
18109
18110 for ac_func in timegm
18111 do
18112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18113 echo "configure:18114: checking for $ac_func" >&5
18114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18115   echo $ac_n "(cached) $ac_c" 1>&6
18116 else
18117   cat > conftest.$ac_ext <<EOF
18118 #line 18119 "configure"
18119 #include "confdefs.h"
18120 /* System header to define __stub macros and hopefully few prototypes,
18121     which can conflict with char $ac_func(); below.  */
18122 #include <assert.h>
18123 /* Override any gcc2 internal prototype to avoid an error.  */
18124 /* We use char because int might match the return type of a gcc2
18125     builtin and then its argument prototype would still apply.  */
18126 char $ac_func();
18127
18128 int main() {
18129
18130 /* The GNU C library defines this for functions which it implements
18131     to always fail with ENOSYS.  Some functions are actually named
18132     something starting with __ and the normal name is an alias.  */
18133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18134 choke me
18135 #else
18136 $ac_func();
18137 #endif
18138
18139 ; return 0; }
18140 EOF
18141 if { (eval echo configure:18142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18142   rm -rf conftest*
18143   eval "ac_cv_func_$ac_func=yes"
18144 else
18145   echo "configure: failed program was:" >&5
18146   cat conftest.$ac_ext >&5
18147   rm -rf conftest*
18148   eval "ac_cv_func_$ac_func=no"
18149 fi
18150 rm -f conftest*
18151 fi
18152
18153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18154   echo "$ac_t""yes" 1>&6
18155     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18156   cat >> confdefs.h <<EOF
18157 #define $ac_tr_func 1
18158 EOF
18159  
18160 else
18161   echo "$ac_t""no" 1>&6
18162 fi
18163 done
18164
18165
18166 for ac_func in putenv setenv
18167 do
18168 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18169 echo "configure:18170: checking for $ac_func" >&5
18170 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18171   echo $ac_n "(cached) $ac_c" 1>&6
18172 else
18173   cat > conftest.$ac_ext <<EOF
18174 #line 18175 "configure"
18175 #include "confdefs.h"
18176 /* System header to define __stub macros and hopefully few prototypes,
18177     which can conflict with char $ac_func(); below.  */
18178 #include <assert.h>
18179 /* Override any gcc2 internal prototype to avoid an error.  */
18180 /* We use char because int might match the return type of a gcc2
18181     builtin and then its argument prototype would still apply.  */
18182 char $ac_func();
18183
18184 int main() {
18185
18186 /* The GNU C library defines this for functions which it implements
18187     to always fail with ENOSYS.  Some functions are actually named
18188     something starting with __ and the normal name is an alias.  */
18189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18190 choke me
18191 #else
18192 $ac_func();
18193 #endif
18194
18195 ; return 0; }
18196 EOF
18197 if { (eval echo configure:18198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18198   rm -rf conftest*
18199   eval "ac_cv_func_$ac_func=yes"
18200 else
18201   echo "configure: failed program was:" >&5
18202   cat conftest.$ac_ext >&5
18203   rm -rf conftest*
18204   eval "ac_cv_func_$ac_func=no"
18205 fi
18206 rm -f conftest*
18207 fi
18208
18209 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18210   echo "$ac_t""yes" 1>&6
18211     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18212   cat >> confdefs.h <<EOF
18213 #define $ac_tr_func 1
18214 EOF
18215  break
18216 else
18217   echo "$ac_t""no" 1>&6
18218 fi
18219 done
18220
18221
18222 HAVE_SOME_SLEEP_FUNC=0
18223 if test "$USE_BEOS" = 1; then
18224             cat >> confdefs.h <<\EOF
18225 #define HAVE_SLEEP 1
18226 EOF
18227
18228     HAVE_SOME_SLEEP_FUNC=1
18229 fi
18230
18231 if test "$USE_DARWIN" = 1; then
18232             cat >> confdefs.h <<\EOF
18233 #define HAVE_USLEEP 1
18234 EOF
18235
18236     HAVE_SOME_SLEEP_FUNC=1
18237 fi
18238
18239 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
18240         POSIX4_LINK=
18241     for ac_func in nanosleep
18242 do
18243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18244 echo "configure:18245: checking for $ac_func" >&5
18245 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18246   echo $ac_n "(cached) $ac_c" 1>&6
18247 else
18248   cat > conftest.$ac_ext <<EOF
18249 #line 18250 "configure"
18250 #include "confdefs.h"
18251 /* System header to define __stub macros and hopefully few prototypes,
18252     which can conflict with char $ac_func(); below.  */
18253 #include <assert.h>
18254 /* Override any gcc2 internal prototype to avoid an error.  */
18255 /* We use char because int might match the return type of a gcc2
18256     builtin and then its argument prototype would still apply.  */
18257 char $ac_func();
18258
18259 int main() {
18260
18261 /* The GNU C library defines this for functions which it implements
18262     to always fail with ENOSYS.  Some functions are actually named
18263     something starting with __ and the normal name is an alias.  */
18264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18265 choke me
18266 #else
18267 $ac_func();
18268 #endif
18269
18270 ; return 0; }
18271 EOF
18272 if { (eval echo configure:18273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18273   rm -rf conftest*
18274   eval "ac_cv_func_$ac_func=yes"
18275 else
18276   echo "configure: failed program was:" >&5
18277   cat conftest.$ac_ext >&5
18278   rm -rf conftest*
18279   eval "ac_cv_func_$ac_func=no"
18280 fi
18281 rm -f conftest*
18282 fi
18283
18284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18285   echo "$ac_t""yes" 1>&6
18286     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18287   cat >> confdefs.h <<EOF
18288 #define $ac_tr_func 1
18289 EOF
18290  cat >> confdefs.h <<\EOF
18291 #define HAVE_NANOSLEEP 1
18292 EOF
18293
18294 else
18295   echo "$ac_t""no" 1>&6
18296 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
18297 echo "configure:18298: checking for nanosleep in -lposix4" >&5
18298 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
18299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18300   echo $ac_n "(cached) $ac_c" 1>&6
18301 else
18302   ac_save_LIBS="$LIBS"
18303 LIBS="-lposix4  $LIBS"
18304 cat > conftest.$ac_ext <<EOF
18305 #line 18306 "configure"
18306 #include "confdefs.h"
18307 /* Override any gcc2 internal prototype to avoid an error.  */
18308 /* We use char because int might match the return type of a gcc2
18309     builtin and then its argument prototype would still apply.  */
18310 char nanosleep();
18311
18312 int main() {
18313 nanosleep()
18314 ; return 0; }
18315 EOF
18316 if { (eval echo configure:18317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18317   rm -rf conftest*
18318   eval "ac_cv_lib_$ac_lib_var=yes"
18319 else
18320   echo "configure: failed program was:" >&5
18321   cat conftest.$ac_ext >&5
18322   rm -rf conftest*
18323   eval "ac_cv_lib_$ac_lib_var=no"
18324 fi
18325 rm -f conftest*
18326 LIBS="$ac_save_LIBS"
18327
18328 fi
18329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18330   echo "$ac_t""yes" 1>&6
18331   
18332                     cat >> confdefs.h <<\EOF
18333 #define HAVE_NANOSLEEP 1
18334 EOF
18335
18336                     POSIX4_LINK=" -lposix4"
18337                 
18338 else
18339   echo "$ac_t""no" 1>&6
18340
18341                     for ac_func in usleep
18342 do
18343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18344 echo "configure:18345: checking for $ac_func" >&5
18345 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18346   echo $ac_n "(cached) $ac_c" 1>&6
18347 else
18348   cat > conftest.$ac_ext <<EOF
18349 #line 18350 "configure"
18350 #include "confdefs.h"
18351 /* System header to define __stub macros and hopefully few prototypes,
18352     which can conflict with char $ac_func(); below.  */
18353 #include <assert.h>
18354 /* Override any gcc2 internal prototype to avoid an error.  */
18355 /* We use char because int might match the return type of a gcc2
18356     builtin and then its argument prototype would still apply.  */
18357 char $ac_func();
18358
18359 int main() {
18360
18361 /* The GNU C library defines this for functions which it implements
18362     to always fail with ENOSYS.  Some functions are actually named
18363     something starting with __ and the normal name is an alias.  */
18364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18365 choke me
18366 #else
18367 $ac_func();
18368 #endif
18369
18370 ; return 0; }
18371 EOF
18372 if { (eval echo configure:18373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18373   rm -rf conftest*
18374   eval "ac_cv_func_$ac_func=yes"
18375 else
18376   echo "configure: failed program was:" >&5
18377   cat conftest.$ac_ext >&5
18378   rm -rf conftest*
18379   eval "ac_cv_func_$ac_func=no"
18380 fi
18381 rm -f conftest*
18382 fi
18383
18384 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18385   echo "$ac_t""yes" 1>&6
18386     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18387   cat >> confdefs.h <<EOF
18388 #define $ac_tr_func 1
18389 EOF
18390  cat >> confdefs.h <<\EOF
18391 #define HAVE_USLEEP 1
18392 EOF
18393
18394 else
18395   echo "$ac_t""no" 1>&6
18396 echo "configure: warning: wxSleep() function will not work" 1>&2
18397                     
18398 fi
18399 done
18400
18401                 
18402             
18403 fi
18404
18405         
18406     
18407 fi
18408 done
18409
18410 fi
18411
18412 for ac_func in uname gethostname
18413 do
18414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18415 echo "configure:18416: checking for $ac_func" >&5
18416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18417   echo $ac_n "(cached) $ac_c" 1>&6
18418 else
18419   cat > conftest.$ac_ext <<EOF
18420 #line 18421 "configure"
18421 #include "confdefs.h"
18422 /* System header to define __stub macros and hopefully few prototypes,
18423     which can conflict with char $ac_func(); below.  */
18424 #include <assert.h>
18425 /* Override any gcc2 internal prototype to avoid an error.  */
18426 /* We use char because int might match the return type of a gcc2
18427     builtin and then its argument prototype would still apply.  */
18428 char $ac_func();
18429
18430 int main() {
18431
18432 /* The GNU C library defines this for functions which it implements
18433     to always fail with ENOSYS.  Some functions are actually named
18434     something starting with __ and the normal name is an alias.  */
18435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18436 choke me
18437 #else
18438 $ac_func();
18439 #endif
18440
18441 ; return 0; }
18442 EOF
18443 if { (eval echo configure:18444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18444   rm -rf conftest*
18445   eval "ac_cv_func_$ac_func=yes"
18446 else
18447   echo "configure: failed program was:" >&5
18448   cat conftest.$ac_ext >&5
18449   rm -rf conftest*
18450   eval "ac_cv_func_$ac_func=no"
18451 fi
18452 rm -f conftest*
18453 fi
18454
18455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18456   echo "$ac_t""yes" 1>&6
18457     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18458   cat >> confdefs.h <<EOF
18459 #define $ac_tr_func 1
18460 EOF
18461  break
18462 else
18463   echo "$ac_t""no" 1>&6
18464 fi
18465 done
18466
18467
18468
18469 ac_ext=C
18470 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18471 ac_cpp='$CXXCPP $CPPFLAGS'
18472 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18473 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18474 cross_compiling=$ac_cv_prog_cxx_cross
18475
18476
18477 for ac_func in strtok_r
18478 do
18479 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18480 echo "configure:18481: checking for $ac_func" >&5
18481 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18482   echo $ac_n "(cached) $ac_c" 1>&6
18483 else
18484   cat > conftest.$ac_ext <<EOF
18485 #line 18486 "configure"
18486 #include "confdefs.h"
18487 /* System header to define __stub macros and hopefully few prototypes,
18488     which can conflict with char $ac_func(); below.  */
18489 #include <assert.h>
18490 /* Override any gcc2 internal prototype to avoid an error.  */
18491 #ifdef __cplusplus
18492 extern "C"
18493 #endif
18494 /* We use char because int might match the return type of a gcc2
18495     builtin and then its argument prototype would still apply.  */
18496 char $ac_func();
18497
18498 int main() {
18499
18500 /* The GNU C library defines this for functions which it implements
18501     to always fail with ENOSYS.  Some functions are actually named
18502     something starting with __ and the normal name is an alias.  */
18503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18504 choke me
18505 #else
18506 $ac_func();
18507 #endif
18508
18509 ; return 0; }
18510 EOF
18511 if { (eval echo configure:18512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18512   rm -rf conftest*
18513   eval "ac_cv_func_$ac_func=yes"
18514 else
18515   echo "configure: failed program was:" >&5
18516   cat conftest.$ac_ext >&5
18517   rm -rf conftest*
18518   eval "ac_cv_func_$ac_func=no"
18519 fi
18520 rm -f conftest*
18521 fi
18522
18523 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18524   echo "$ac_t""yes" 1>&6
18525     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18526   cat >> confdefs.h <<EOF
18527 #define $ac_tr_func 1
18528 EOF
18529  
18530 else
18531   echo "$ac_t""no" 1>&6
18532 fi
18533 done
18534
18535
18536 ac_ext=c
18537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18538 ac_cpp='$CPP $CPPFLAGS'
18539 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18540 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18541 cross_compiling=$ac_cv_prog_cc_cross
18542
18543
18544 INET_LINK=
18545 for ac_func in inet_addr
18546 do
18547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18548 echo "configure:18549: checking for $ac_func" >&5
18549 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18550   echo $ac_n "(cached) $ac_c" 1>&6
18551 else
18552   cat > conftest.$ac_ext <<EOF
18553 #line 18554 "configure"
18554 #include "confdefs.h"
18555 /* System header to define __stub macros and hopefully few prototypes,
18556     which can conflict with char $ac_func(); below.  */
18557 #include <assert.h>
18558 /* Override any gcc2 internal prototype to avoid an error.  */
18559 /* We use char because int might match the return type of a gcc2
18560     builtin and then its argument prototype would still apply.  */
18561 char $ac_func();
18562
18563 int main() {
18564
18565 /* The GNU C library defines this for functions which it implements
18566     to always fail with ENOSYS.  Some functions are actually named
18567     something starting with __ and the normal name is an alias.  */
18568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18569 choke me
18570 #else
18571 $ac_func();
18572 #endif
18573
18574 ; return 0; }
18575 EOF
18576 if { (eval echo configure:18577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18577   rm -rf conftest*
18578   eval "ac_cv_func_$ac_func=yes"
18579 else
18580   echo "configure: failed program was:" >&5
18581   cat conftest.$ac_ext >&5
18582   rm -rf conftest*
18583   eval "ac_cv_func_$ac_func=no"
18584 fi
18585 rm -f conftest*
18586 fi
18587
18588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18589   echo "$ac_t""yes" 1>&6
18590     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18591   cat >> confdefs.h <<EOF
18592 #define $ac_tr_func 1
18593 EOF
18594  cat >> confdefs.h <<\EOF
18595 #define HAVE_INET_ADDR 1
18596 EOF
18597
18598 else
18599   echo "$ac_t""no" 1>&6
18600 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
18601 echo "configure:18602: checking for inet_addr in -lnsl" >&5
18602 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18603 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18604   echo $ac_n "(cached) $ac_c" 1>&6
18605 else
18606   ac_save_LIBS="$LIBS"
18607 LIBS="-lnsl  $LIBS"
18608 cat > conftest.$ac_ext <<EOF
18609 #line 18610 "configure"
18610 #include "confdefs.h"
18611 /* Override any gcc2 internal prototype to avoid an error.  */
18612 /* We use char because int might match the return type of a gcc2
18613     builtin and then its argument prototype would still apply.  */
18614 char inet_addr();
18615
18616 int main() {
18617 inet_addr()
18618 ; return 0; }
18619 EOF
18620 if { (eval echo configure:18621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18621   rm -rf conftest*
18622   eval "ac_cv_lib_$ac_lib_var=yes"
18623 else
18624   echo "configure: failed program was:" >&5
18625   cat conftest.$ac_ext >&5
18626   rm -rf conftest*
18627   eval "ac_cv_lib_$ac_lib_var=no"
18628 fi
18629 rm -f conftest*
18630 LIBS="$ac_save_LIBS"
18631
18632 fi
18633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18634   echo "$ac_t""yes" 1>&6
18635   INET_LINK="nsl"
18636 else
18637   echo "$ac_t""no" 1>&6
18638 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
18639 echo "configure:18640: checking for inet_addr in -lresolv" >&5
18640 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18641 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18642   echo $ac_n "(cached) $ac_c" 1>&6
18643 else
18644   ac_save_LIBS="$LIBS"
18645 LIBS="-lresolv  $LIBS"
18646 cat > conftest.$ac_ext <<EOF
18647 #line 18648 "configure"
18648 #include "confdefs.h"
18649 /* Override any gcc2 internal prototype to avoid an error.  */
18650 /* We use char because int might match the return type of a gcc2
18651     builtin and then its argument prototype would still apply.  */
18652 char inet_addr();
18653
18654 int main() {
18655 inet_addr()
18656 ; return 0; }
18657 EOF
18658 if { (eval echo configure:18659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18659   rm -rf conftest*
18660   eval "ac_cv_lib_$ac_lib_var=yes"
18661 else
18662   echo "configure: failed program was:" >&5
18663   cat conftest.$ac_ext >&5
18664   rm -rf conftest*
18665   eval "ac_cv_lib_$ac_lib_var=no"
18666 fi
18667 rm -f conftest*
18668 LIBS="$ac_save_LIBS"
18669
18670 fi
18671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18672   echo "$ac_t""yes" 1>&6
18673   INET_LINK="resolv"
18674 else
18675   echo "$ac_t""no" 1>&6
18676 echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
18677 echo "configure:18678: checking for inet_addr in -lsocket" >&5
18678 ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18680   echo $ac_n "(cached) $ac_c" 1>&6
18681 else
18682   ac_save_LIBS="$LIBS"
18683 LIBS="-lsocket  $LIBS"
18684 cat > conftest.$ac_ext <<EOF
18685 #line 18686 "configure"
18686 #include "confdefs.h"
18687 /* Override any gcc2 internal prototype to avoid an error.  */
18688 /* We use char because int might match the return type of a gcc2
18689     builtin and then its argument prototype would still apply.  */
18690 char inet_addr();
18691
18692 int main() {
18693 inet_addr()
18694 ; return 0; }
18695 EOF
18696 if { (eval echo configure:18697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18697   rm -rf conftest*
18698   eval "ac_cv_lib_$ac_lib_var=yes"
18699 else
18700   echo "configure: failed program was:" >&5
18701   cat conftest.$ac_ext >&5
18702   rm -rf conftest*
18703   eval "ac_cv_lib_$ac_lib_var=no"
18704 fi
18705 rm -f conftest*
18706 LIBS="$ac_save_LIBS"
18707
18708 fi
18709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18710   echo "$ac_t""yes" 1>&6
18711   INET_LINK="socket"
18712                 
18713 else
18714   echo "$ac_t""no" 1>&6
18715 fi
18716
18717             
18718 fi
18719
18720         
18721 fi
18722
18723     
18724
18725 fi
18726 done
18727
18728
18729 for ac_func in inet_aton
18730 do
18731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18732 echo "configure:18733: checking for $ac_func" >&5
18733 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18734   echo $ac_n "(cached) $ac_c" 1>&6
18735 else
18736   cat > conftest.$ac_ext <<EOF
18737 #line 18738 "configure"
18738 #include "confdefs.h"
18739 /* System header to define __stub macros and hopefully few prototypes,
18740     which can conflict with char $ac_func(); below.  */
18741 #include <assert.h>
18742 /* Override any gcc2 internal prototype to avoid an error.  */
18743 /* We use char because int might match the return type of a gcc2
18744     builtin and then its argument prototype would still apply.  */
18745 char $ac_func();
18746
18747 int main() {
18748
18749 /* The GNU C library defines this for functions which it implements
18750     to always fail with ENOSYS.  Some functions are actually named
18751     something starting with __ and the normal name is an alias.  */
18752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18753 choke me
18754 #else
18755 $ac_func();
18756 #endif
18757
18758 ; return 0; }
18759 EOF
18760 if { (eval echo configure:18761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18761   rm -rf conftest*
18762   eval "ac_cv_func_$ac_func=yes"
18763 else
18764   echo "configure: failed program was:" >&5
18765   cat conftest.$ac_ext >&5
18766   rm -rf conftest*
18767   eval "ac_cv_func_$ac_func=no"
18768 fi
18769 rm -f conftest*
18770 fi
18771
18772 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18773   echo "$ac_t""yes" 1>&6
18774     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18775   cat >> confdefs.h <<EOF
18776 #define $ac_tr_func 1
18777 EOF
18778  cat >> confdefs.h <<\EOF
18779 #define HAVE_INET_ATON 1
18780 EOF
18781
18782 else
18783   echo "$ac_t""no" 1>&6
18784             echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
18785 echo "configure:18786: checking for inet_aton in -l$INET_LINK" >&5
18786 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18788   echo $ac_n "(cached) $ac_c" 1>&6
18789 else
18790   ac_save_LIBS="$LIBS"
18791 LIBS="-l$INET_LINK  $LIBS"
18792 cat > conftest.$ac_ext <<EOF
18793 #line 18794 "configure"
18794 #include "confdefs.h"
18795 /* Override any gcc2 internal prototype to avoid an error.  */
18796 /* We use char because int might match the return type of a gcc2
18797     builtin and then its argument prototype would still apply.  */
18798 char inet_aton();
18799
18800 int main() {
18801 inet_aton()
18802 ; return 0; }
18803 EOF
18804 if { (eval echo configure:18805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18805   rm -rf conftest*
18806   eval "ac_cv_lib_$ac_lib_var=yes"
18807 else
18808   echo "configure: failed program was:" >&5
18809   cat conftest.$ac_ext >&5
18810   rm -rf conftest*
18811   eval "ac_cv_lib_$ac_lib_var=no"
18812 fi
18813 rm -f conftest*
18814 LIBS="$ac_save_LIBS"
18815
18816 fi
18817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18818   echo "$ac_t""yes" 1>&6
18819   cat >> confdefs.h <<\EOF
18820 #define HAVE_INET_ATON 1
18821 EOF
18822
18823 else
18824   echo "$ac_t""no" 1>&6
18825 fi
18826
18827         
18828 fi
18829 done
18830
18831
18832 if test "x$INET_LINK" != "x"; then
18833     cat >> confdefs.h <<\EOF
18834 #define HAVE_INET_ADDR 1
18835 EOF
18836
18837     INET_LINK=" -l$INET_LINK"
18838 fi
18839
18840 fi
18841
18842
18843 cat > confcache <<\EOF
18844 # This file is a shell script that caches the results of configure
18845 # tests run on this system so they can be shared between configure
18846 # scripts and configure runs.  It is not useful on other systems.
18847 # If it contains results you don't want to keep, you may remove or edit it.
18848 #
18849 # By default, configure uses ./config.cache as the cache file,
18850 # creating it if it does not exist already.  You can give configure
18851 # the --cache-file=FILE option to use a different cache file; that is
18852 # what configure does when it calls configure scripts in
18853 # subdirectories, so they share the cache.
18854 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18855 # config.status only pays attention to the cache file if you give it the
18856 # --recheck option to rerun configure.
18857 #
18858 EOF
18859 # The following way of writing the cache mishandles newlines in values,
18860 # but we know of no workaround that is simple, portable, and efficient.
18861 # So, don't put newlines in cache variables' values.
18862 # Ultrix sh set writes to stderr and can't be redirected directly,
18863 # and sets the high bit in the cache file unless we assign to the vars.
18864 (set) 2>&1 |
18865   case `(ac_space=' '; set | grep ac_space) 2>&1` in
18866   *ac_space=\ *)
18867     # `set' does not quote correctly, so add quotes (double-quote substitution
18868     # turns \\\\ into \\, and sed turns \\ into \).
18869     sed -n \
18870       -e "s/'/'\\\\''/g" \
18871       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18872     ;;
18873   *)
18874     # `set' quotes correctly as required by POSIX, so do not add quotes.
18875     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18876     ;;
18877   esac >> confcache
18878 if cmp -s $cache_file confcache; then
18879   :
18880 else
18881   if test -w $cache_file; then
18882     echo "updating cache $cache_file"
18883     cat confcache > $cache_file
18884   else
18885     echo "not updating unwritable cache $cache_file"
18886   fi
18887 fi
18888 rm -f confcache
18889
18890
18891
18892 CPP_MT_FLAG=
18893 if test "$TOOLKIT" != "MSW"; then
18894
18895                             
18896     THREADS_LINK=
18897     THREADS_CFLAGS=
18898
18899     if test "$wxUSE_THREADS" = "yes" ; then
18900         if test "$USE_BEOS" = 1; then
18901             echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
18902             wxUSE_THREADS="no"
18903         fi
18904     fi
18905
18906     if test "$wxUSE_THREADS" = "yes" ; then
18907                                                         
18908         
18909                                 THREAD_OPTS="-pthread"
18910         case "${host}" in
18911           *-*-solaris2* | *-*-sunos4* )
18912                 if test "x$GCC" = "xyes"; then
18913                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
18914                 else
18915                     THREAD_OPTS="-mt $THREAD_OPTS"
18916                 fi
18917                 ;;
18918           *-*-freebsd*)
18919                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18920                 ;;
18921           *-*-darwin* | *-*-cygwin* )
18922                                                 THREAD_OPTS=""
18923                 ;;
18924           *-*-aix*)
18925                                 THREAD_OPTS="pthreads"
18926                 ;;
18927           *-hp-hpux* )
18928                                                                 if test "x$GCC" != "xyes"; then
18929                     THREAD_OPTS=""
18930                 fi
18931                 ;;
18932
18933           *-*-irix* )
18934                                                                 if test "x$GCC" = "xyes"; then
18935                     THREAD_OPTS=""
18936                 fi
18937                 ;;
18938
18939           *-*-*UnixWare*)
18940                                 if test "x$GCC" != "xyes"; then
18941                     THREAD_OPTS="-Ethread"
18942                 fi
18943                 ;;
18944         esac
18945
18946                                 THREAD_OPTS="$THREAD_OPTS pthread none"
18947
18948                 THREADS_OK=no
18949         for flag in $THREAD_OPTS; do
18950             case $flag in
18951                 none)
18952                     echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
18953 echo "configure:18954: checking whether pthreads work without any flags" >&5
18954                     ;;
18955
18956                 -*)
18957                     echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
18958 echo "configure:18959: checking whether pthreads work with $flag" >&5
18959                     THREADS_CFLAGS="$flag"
18960                     ;;
18961
18962                 *)
18963                     echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
18964 echo "configure:18965: checking for the pthreads library -l$flag" >&5
18965                     THREADS_LINK="-l$flag"
18966                     ;;
18967               esac
18968
18969               save_LIBS="$LIBS"
18970               save_CFLAGS="$CFLAGS"
18971               LIBS="$THREADS_LINK $LIBS"
18972               CFLAGS="$THREADS_CFLAGS $CFLAGS"
18973
18974               cat > conftest.$ac_ext <<EOF
18975 #line 18976 "configure"
18976 #include "confdefs.h"
18977 #include <pthread.h>
18978 int main() {
18979 pthread_create(0,0,0,0);
18980 ; return 0; }
18981 EOF
18982 if { (eval echo configure:18983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18983   rm -rf conftest*
18984   THREADS_OK=yes
18985 else
18986   echo "configure: failed program was:" >&5
18987   cat conftest.$ac_ext >&5
18988 fi
18989 rm -f conftest*
18990
18991               LIBS="$save_LIBS"
18992               CFLAGS="$save_CFLAGS"
18993
18994               echo "$ac_t""$THREADS_OK" 1>&6
18995               if test "x$THREADS_OK" = "xyes"; then
18996                       break;
18997               fi
18998
18999               THREADS_LINK=""
19000               THREADS_CFLAGS=""
19001       done
19002
19003       if test "x$THREADS_OK" != "xyes"; then
19004           wxUSE_THREADS=no
19005           echo "configure: warning: No thread support on this system... disabled" 1>&2
19006       else
19007                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
19008           LIBS="$THREADS_LINK $LIBS"
19009
19010           echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
19011 echo "configure:19012: checking if more special flags are required for pthreads" >&5
19012           flag=no
19013           case "${host}" in
19014             *-aix*)
19015                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
19016                 flag="-D_THREAD_SAFE"
19017                 ;;
19018             *-freebsd*)
19019                 flag="-D_THREAD_SAFE"
19020                 ;;
19021             *-hp-hpux* )
19022                 flag="-D_REENTRANT"
19023                 if test "x$GCC" != "xyes"; then
19024                                         flag="$flag -D_RWSTD_MULTI_THREAD"
19025                 fi
19026                 ;;
19027             *solaris* | alpha*-osf*)
19028                 flag="-D_REENTRANT"
19029                 ;;
19030           esac
19031           echo "$ac_t""${flag}" 1>&6
19032           if test "x$flag" != xno; then
19033               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
19034           fi
19035
19036           if test "x$THREADS_CFLAGS" != "x"; then
19037                         CFLAGS="$CFLAGS $THREADS_CFLAGS"
19038             CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
19039           fi
19040       fi
19041     fi
19042
19043         if test "$wxUSE_THREADS" = "yes" ; then
19044       for ac_func in thr_setconcurrency
19045 do
19046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19047 echo "configure:19048: checking for $ac_func" >&5
19048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19049   echo $ac_n "(cached) $ac_c" 1>&6
19050 else
19051   cat > conftest.$ac_ext <<EOF
19052 #line 19053 "configure"
19053 #include "confdefs.h"
19054 /* System header to define __stub macros and hopefully few prototypes,
19055     which can conflict with char $ac_func(); below.  */
19056 #include <assert.h>
19057 /* Override any gcc2 internal prototype to avoid an error.  */
19058 /* We use char because int might match the return type of a gcc2
19059     builtin and then its argument prototype would still apply.  */
19060 char $ac_func();
19061
19062 int main() {
19063
19064 /* The GNU C library defines this for functions which it implements
19065     to always fail with ENOSYS.  Some functions are actually named
19066     something starting with __ and the normal name is an alias.  */
19067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19068 choke me
19069 #else
19070 $ac_func();
19071 #endif
19072
19073 ; return 0; }
19074 EOF
19075 if { (eval echo configure:19076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19076   rm -rf conftest*
19077   eval "ac_cv_func_$ac_func=yes"
19078 else
19079   echo "configure: failed program was:" >&5
19080   cat conftest.$ac_ext >&5
19081   rm -rf conftest*
19082   eval "ac_cv_func_$ac_func=no"
19083 fi
19084 rm -f conftest*
19085 fi
19086
19087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19088   echo "$ac_t""yes" 1>&6
19089     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19090   cat >> confdefs.h <<EOF
19091 #define $ac_tr_func 1
19092 EOF
19093  
19094 else
19095   echo "$ac_t""no" 1>&6
19096 fi
19097 done
19098
19099
19100       for ac_hdr in sched.h
19101 do
19102 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19103 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19104 echo "configure:19105: checking for $ac_hdr" >&5
19105 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19106   echo $ac_n "(cached) $ac_c" 1>&6
19107 else
19108   cat > conftest.$ac_ext <<EOF
19109 #line 19110 "configure"
19110 #include "confdefs.h"
19111 #include <$ac_hdr>
19112 EOF
19113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19114 { (eval echo configure:19115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19116 if test -z "$ac_err"; then
19117   rm -rf conftest*
19118   eval "ac_cv_header_$ac_safe=yes"
19119 else
19120   echo "$ac_err" >&5
19121   echo "configure: failed program was:" >&5
19122   cat conftest.$ac_ext >&5
19123   rm -rf conftest*
19124   eval "ac_cv_header_$ac_safe=no"
19125 fi
19126 rm -f conftest*
19127 fi
19128 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19129   echo "$ac_t""yes" 1>&6
19130     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19131   cat >> confdefs.h <<EOF
19132 #define $ac_tr_hdr 1
19133 EOF
19134  
19135 else
19136   echo "$ac_t""no" 1>&6
19137 fi
19138 done
19139
19140       if test "$ac_cv_header_sched_h" = "yes"; then
19141           echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
19142 echo "configure:19143: checking for sched_yield" >&5
19143 if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
19144   echo $ac_n "(cached) $ac_c" 1>&6
19145 else
19146   cat > conftest.$ac_ext <<EOF
19147 #line 19148 "configure"
19148 #include "confdefs.h"
19149 /* System header to define __stub macros and hopefully few prototypes,
19150     which can conflict with char sched_yield(); below.  */
19151 #include <assert.h>
19152 /* Override any gcc2 internal prototype to avoid an error.  */
19153 /* We use char because int might match the return type of a gcc2
19154     builtin and then its argument prototype would still apply.  */
19155 char sched_yield();
19156
19157 int main() {
19158
19159 /* The GNU C library defines this for functions which it implements
19160     to always fail with ENOSYS.  Some functions are actually named
19161     something starting with __ and the normal name is an alias.  */
19162 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
19163 choke me
19164 #else
19165 sched_yield();
19166 #endif
19167
19168 ; return 0; }
19169 EOF
19170 if { (eval echo configure:19171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19171   rm -rf conftest*
19172   eval "ac_cv_func_sched_yield=yes"
19173 else
19174   echo "configure: failed program was:" >&5
19175   cat conftest.$ac_ext >&5
19176   rm -rf conftest*
19177   eval "ac_cv_func_sched_yield=no"
19178 fi
19179 rm -f conftest*
19180 fi
19181
19182 if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
19183   echo "$ac_t""yes" 1>&6
19184   cat >> confdefs.h <<\EOF
19185 #define HAVE_SCHED_YIELD 1
19186 EOF
19187
19188 else
19189   echo "$ac_t""no" 1>&6
19190
19191                 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
19192 echo "configure:19193: checking for sched_yield in -lposix4" >&5
19193 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
19194 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19195   echo $ac_n "(cached) $ac_c" 1>&6
19196 else
19197   ac_save_LIBS="$LIBS"
19198 LIBS="-lposix4  $LIBS"
19199 cat > conftest.$ac_ext <<EOF
19200 #line 19201 "configure"
19201 #include "confdefs.h"
19202 /* Override any gcc2 internal prototype to avoid an error.  */
19203 /* We use char because int might match the return type of a gcc2
19204     builtin and then its argument prototype would still apply.  */
19205 char sched_yield();
19206
19207 int main() {
19208 sched_yield()
19209 ; return 0; }
19210 EOF
19211 if { (eval echo configure:19212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19212   rm -rf conftest*
19213   eval "ac_cv_lib_$ac_lib_var=yes"
19214 else
19215   echo "configure: failed program was:" >&5
19216   cat conftest.$ac_ext >&5
19217   rm -rf conftest*
19218   eval "ac_cv_lib_$ac_lib_var=no"
19219 fi
19220 rm -f conftest*
19221 LIBS="$ac_save_LIBS"
19222
19223 fi
19224 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19225   echo "$ac_t""yes" 1>&6
19226   cat >> confdefs.h <<\EOF
19227 #define HAVE_SCHED_YIELD 1
19228 EOF
19229  POSIX4_LINK=" -lposix4"
19230 else
19231   echo "$ac_t""no" 1>&6
19232 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
19233                 
19234 fi
19235
19236             
19237           
19238 fi
19239
19240       fi
19241
19242                                           HAVE_PRIOR_FUNCS=0
19243       echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
19244 echo "configure:19245: checking for pthread_attr_getschedpolicy" >&5
19245 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
19246   echo $ac_n "(cached) $ac_c" 1>&6
19247 else
19248   cat > conftest.$ac_ext <<EOF
19249 #line 19250 "configure"
19250 #include "confdefs.h"
19251 /* System header to define __stub macros and hopefully few prototypes,
19252     which can conflict with char pthread_attr_getschedpolicy(); below.  */
19253 #include <assert.h>
19254 /* Override any gcc2 internal prototype to avoid an error.  */
19255 /* We use char because int might match the return type of a gcc2
19256     builtin and then its argument prototype would still apply.  */
19257 char pthread_attr_getschedpolicy();
19258
19259 int main() {
19260
19261 /* The GNU C library defines this for functions which it implements
19262     to always fail with ENOSYS.  Some functions are actually named
19263     something starting with __ and the normal name is an alias.  */
19264 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
19265 choke me
19266 #else
19267 pthread_attr_getschedpolicy();
19268 #endif
19269
19270 ; return 0; }
19271 EOF
19272 if { (eval echo configure:19273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19273   rm -rf conftest*
19274   eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
19275 else
19276   echo "configure: failed program was:" >&5
19277   cat conftest.$ac_ext >&5
19278   rm -rf conftest*
19279   eval "ac_cv_func_pthread_attr_getschedpolicy=no"
19280 fi
19281 rm -f conftest*
19282 fi
19283
19284 if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
19285   echo "$ac_t""yes" 1>&6
19286   echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
19287 echo "configure:19288: checking for pthread_attr_setschedparam" >&5
19288 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
19289   echo $ac_n "(cached) $ac_c" 1>&6
19290 else
19291   cat > conftest.$ac_ext <<EOF
19292 #line 19293 "configure"
19293 #include "confdefs.h"
19294 /* System header to define __stub macros and hopefully few prototypes,
19295     which can conflict with char pthread_attr_setschedparam(); below.  */
19296 #include <assert.h>
19297 /* Override any gcc2 internal prototype to avoid an error.  */
19298 /* We use char because int might match the return type of a gcc2
19299     builtin and then its argument prototype would still apply.  */
19300 char pthread_attr_setschedparam();
19301
19302 int main() {
19303
19304 /* The GNU C library defines this for functions which it implements
19305     to always fail with ENOSYS.  Some functions are actually named
19306     something starting with __ and the normal name is an alias.  */
19307 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
19308 choke me
19309 #else
19310 pthread_attr_setschedparam();
19311 #endif
19312
19313 ; return 0; }
19314 EOF
19315 if { (eval echo configure:19316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19316   rm -rf conftest*
19317   eval "ac_cv_func_pthread_attr_setschedparam=yes"
19318 else
19319   echo "configure: failed program was:" >&5
19320   cat conftest.$ac_ext >&5
19321   rm -rf conftest*
19322   eval "ac_cv_func_pthread_attr_setschedparam=no"
19323 fi
19324 rm -f conftest*
19325 fi
19326
19327 if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
19328   echo "$ac_t""yes" 1>&6
19329   echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
19330 echo "configure:19331: checking for sched_get_priority_max" >&5
19331 if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
19332   echo $ac_n "(cached) $ac_c" 1>&6
19333 else
19334   cat > conftest.$ac_ext <<EOF
19335 #line 19336 "configure"
19336 #include "confdefs.h"
19337 /* System header to define __stub macros and hopefully few prototypes,
19338     which can conflict with char sched_get_priority_max(); below.  */
19339 #include <assert.h>
19340 /* Override any gcc2 internal prototype to avoid an error.  */
19341 /* We use char because int might match the return type of a gcc2
19342     builtin and then its argument prototype would still apply.  */
19343 char sched_get_priority_max();
19344
19345 int main() {
19346
19347 /* The GNU C library defines this for functions which it implements
19348     to always fail with ENOSYS.  Some functions are actually named
19349     something starting with __ and the normal name is an alias.  */
19350 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
19351 choke me
19352 #else
19353 sched_get_priority_max();
19354 #endif
19355
19356 ; return 0; }
19357 EOF
19358 if { (eval echo configure:19359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19359   rm -rf conftest*
19360   eval "ac_cv_func_sched_get_priority_max=yes"
19361 else
19362   echo "configure: failed program was:" >&5
19363   cat conftest.$ac_ext >&5
19364   rm -rf conftest*
19365   eval "ac_cv_func_sched_get_priority_max=no"
19366 fi
19367 rm -f conftest*
19368 fi
19369
19370 if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
19371   echo "$ac_t""yes" 1>&6
19372   HAVE_PRIOR_FUNCS=1
19373 else
19374   echo "$ac_t""no" 1>&6
19375 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
19376 echo "configure:19377: checking for sched_get_priority_max in -lposix4" >&5
19377 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
19378 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19379   echo $ac_n "(cached) $ac_c" 1>&6
19380 else
19381   ac_save_LIBS="$LIBS"
19382 LIBS="-lposix4  $LIBS"
19383 cat > conftest.$ac_ext <<EOF
19384 #line 19385 "configure"
19385 #include "confdefs.h"
19386 /* Override any gcc2 internal prototype to avoid an error.  */
19387 /* We use char because int might match the return type of a gcc2
19388     builtin and then its argument prototype would still apply.  */
19389 char sched_get_priority_max();
19390
19391 int main() {
19392 sched_get_priority_max()
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_lib_$ac_lib_var=yes"
19398 else
19399   echo "configure: failed program was:" >&5
19400   cat conftest.$ac_ext >&5
19401   rm -rf conftest*
19402   eval "ac_cv_lib_$ac_lib_var=no"
19403 fi
19404 rm -f conftest*
19405 LIBS="$ac_save_LIBS"
19406
19407 fi
19408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19409   echo "$ac_t""yes" 1>&6
19410   
19411                                 HAVE_PRIOR_FUNCS=1
19412                                 POSIX4_LINK=" -lposix4"
19413                              
19414 else
19415   echo "$ac_t""no" 1>&6
19416 fi
19417
19418                        
19419 fi
19420
19421                      
19422 else
19423   echo "$ac_t""no" 1>&6
19424 fi
19425
19426                    
19427 else
19428   echo "$ac_t""no" 1>&6
19429 fi
19430
19431
19432       if test "$HAVE_PRIOR_FUNCS" = 1; then
19433         cat >> confdefs.h <<\EOF
19434 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
19435 EOF
19436
19437       else
19438         echo "configure: warning: Setting thread priority will not work" 1>&2
19439       fi
19440
19441       echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
19442 echo "configure:19443: checking for pthread_cancel" >&5
19443 if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19444   echo $ac_n "(cached) $ac_c" 1>&6
19445 else
19446   cat > conftest.$ac_ext <<EOF
19447 #line 19448 "configure"
19448 #include "confdefs.h"
19449 /* System header to define __stub macros and hopefully few prototypes,
19450     which can conflict with char pthread_cancel(); below.  */
19451 #include <assert.h>
19452 /* Override any gcc2 internal prototype to avoid an error.  */
19453 /* We use char because int might match the return type of a gcc2
19454     builtin and then its argument prototype would still apply.  */
19455 char pthread_cancel();
19456
19457 int main() {
19458
19459 /* The GNU C library defines this for functions which it implements
19460     to always fail with ENOSYS.  Some functions are actually named
19461     something starting with __ and the normal name is an alias.  */
19462 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19463 choke me
19464 #else
19465 pthread_cancel();
19466 #endif
19467
19468 ; return 0; }
19469 EOF
19470 if { (eval echo configure:19471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19471   rm -rf conftest*
19472   eval "ac_cv_func_pthread_cancel=yes"
19473 else
19474   echo "configure: failed program was:" >&5
19475   cat conftest.$ac_ext >&5
19476   rm -rf conftest*
19477   eval "ac_cv_func_pthread_cancel=no"
19478 fi
19479 rm -f conftest*
19480 fi
19481
19482 if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19483   echo "$ac_t""yes" 1>&6
19484   cat >> confdefs.h <<\EOF
19485 #define HAVE_PTHREAD_CANCEL 1
19486 EOF
19487
19488 else
19489   echo "$ac_t""no" 1>&6
19490 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
19491 fi
19492
19493
19494       echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
19495 echo "configure:19496: checking for pthread_cleanup_push/pop" >&5
19496 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19497   echo $ac_n "(cached) $ac_c" 1>&6
19498 else
19499   
19500         cat > conftest.$ac_ext <<EOF
19501 #line 19502 "configure"
19502 #include "confdefs.h"
19503 #include <pthread.h>
19504 int main() {
19505
19506                         pthread_cleanup_push(NULL, NULL);
19507                         pthread_cleanup_pop(0);
19508                      
19509 ; return 0; }
19510 EOF
19511 if { (eval echo configure:19512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19512   rm -rf conftest*
19513   
19514                         wx_cv_func_pthread_cleanup_push=yes
19515                      
19516 else
19517   echo "configure: failed program was:" >&5
19518   cat conftest.$ac_ext >&5
19519   rm -rf conftest*
19520   
19521                         wx_cv_func_pthread_cleanup_push=no
19522                      
19523 fi
19524 rm -f conftest*
19525       
19526 fi
19527
19528 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
19529
19530       if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
19531           cat >> confdefs.h <<\EOF
19532 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
19533 EOF
19534
19535       fi
19536
19537                                                 
19538       echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
19539 echo "configure:19540: checking for pthread_mutexattr_t" >&5
19540 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19541   echo $ac_n "(cached) $ac_c" 1>&6
19542 else
19543   
19544         cat > conftest.$ac_ext <<EOF
19545 #line 19546 "configure"
19546 #include "confdefs.h"
19547 #include <pthread.h>
19548 int main() {
19549
19550                pthread_mutexattr_t attr;
19551                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
19552             
19553 ; return 0; }
19554 EOF
19555 if { (eval echo configure:19556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19556   rm -rf conftest*
19557   
19558                wx_cv_type_pthread_mutexattr_t=yes
19559             
19560 else
19561   echo "configure: failed program was:" >&5
19562   cat conftest.$ac_ext >&5
19563   rm -rf conftest*
19564   
19565                wx_cv_type_pthread_mutexattr_t=no
19566             
19567         
19568 fi
19569 rm -f conftest*
19570       
19571 fi
19572
19573 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
19574
19575       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
19576         cat >> confdefs.h <<\EOF
19577 #define HAVE_PTHREAD_MUTEXATTR_T 1
19578 EOF
19579
19580       else
19581                 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
19582 echo "configure:19583: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
19583 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19584   echo $ac_n "(cached) $ac_c" 1>&6
19585 else
19586   
19587             cat > conftest.$ac_ext <<EOF
19588 #line 19589 "configure"
19589 #include "confdefs.h"
19590 #include <pthread.h>
19591 int main() {
19592
19593                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
19594                 
19595 ; return 0; }
19596 EOF
19597 if { (eval echo configure:19598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19598   rm -rf conftest*
19599   
19600                     wx_cv_type_pthread_rec_mutex_init=yes
19601                 
19602 else
19603   echo "configure: failed program was:" >&5
19604   cat conftest.$ac_ext >&5
19605   rm -rf conftest*
19606   
19607                     wx_cv_type_pthread_rec_mutex_init=no
19608                 
19609             
19610 fi
19611 rm -f conftest*
19612         
19613 fi
19614
19615 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
19616         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
19617           cat >> confdefs.h <<\EOF
19618 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
19619 EOF
19620
19621         else
19622                     echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
19623         fi
19624       fi
19625     fi
19626
19627 else
19628     if test "$wxUSE_THREADS" = "yes" ; then
19629       case "${host}" in
19630         *-*-mingw32* )
19631                         echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
19632 echo "configure:19633: checking if compiler supports -mthreads" >&5
19633 if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19634   echo $ac_n "(cached) $ac_c" 1>&6
19635 else
19636   
19637                     CFLAGS_OLD="$CFLAGS"
19638                     CFLAGS="$CFLAGS -mthreads"
19639                     cat > conftest.$ac_ext <<EOF
19640 #line 19641 "configure"
19641 #include "confdefs.h"
19642
19643 int main() {
19644
19645 ; return 0; }
19646 EOF
19647 if { (eval echo configure:19648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19648   rm -rf conftest*
19649   wx_cv_cflags_mthread=yes
19650 else
19651   echo "configure: failed program was:" >&5
19652   cat conftest.$ac_ext >&5
19653   rm -rf conftest*
19654   wx_cv_cflags_mthread=no
19655                     
19656 fi
19657 rm -f conftest*
19658                 
19659             
19660 fi
19661
19662 echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19663
19664             if test "$wx_cv_cflags_mthread" = "yes"; then
19665                                 CXXFLAGS="$CXXFLAGS -mthreads"
19666                 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19667                 LDFLAGS="$LDFLAGS -mthreads"
19668             else
19669                                 CFLAGS="$CFLAGS_OLD"
19670             fi
19671         ;;
19672       esac
19673     fi
19674 fi
19675
19676 if test "$wxUSE_THREADS" = "yes"; then
19677   cat >> confdefs.h <<\EOF
19678 #define wxUSE_THREADS 1
19679 EOF
19680
19681
19682   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
19683 else
19684       if test "$ac_cv_func_strtok_r" = "yes"; then
19685     echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
19686 echo "configure:19687: checking if -D_REENTRANT is needed" >&5
19687     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19688         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
19689         echo "$ac_t""yes" 1>&6
19690     else
19691         echo "$ac_t""no" 1>&6
19692     fi
19693   fi
19694 fi
19695
19696 if test "$WXGTK20" = 1 ; then
19697   cat >> confdefs.h <<EOF
19698 #define __WXGTK20__ $WXGTK20
19699 EOF
19700
19701   WXGTK12=1
19702 fi
19703
19704 if test "$WXGTK12" = 1 ; then
19705   cat >> confdefs.h <<EOF
19706 #define __WXGTK12__ $WXGTK12
19707 EOF
19708
19709 fi
19710
19711 if test "$WXGTK127" = 1 ; then
19712   cat >> confdefs.h <<EOF
19713 #define __WXGTK127__ $WXGTK127
19714 EOF
19715
19716 fi
19717
19718 WXDEBUG=
19719
19720 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19721     WXDEBUG="-g"
19722     wxUSE_OPTIMISE=no
19723 fi
19724
19725 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19726     wxUSE_DEBUG_INFO=yes
19727     WXDEBUG="-ggdb"
19728 fi
19729
19730 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
19731     cat >> confdefs.h <<\EOF
19732 #define WXDEBUG 1
19733 EOF
19734
19735     WXDEBUG_DEFINE="-D__WXDEBUG__"
19736 else
19737     if test "$wxUSE_GTK" = 1 ; then
19738         WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19739     fi
19740 fi
19741
19742 if test "$wxUSE_MEM_TRACING" = "yes" ; then
19743     cat >> confdefs.h <<\EOF
19744 #define wxUSE_MEMORY_TRACING 1
19745 EOF
19746
19747     cat >> confdefs.h <<\EOF
19748 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
19749 EOF
19750
19751     cat >> confdefs.h <<\EOF
19752 #define wxUSE_DEBUG_NEW_ALWAYS 1
19753 EOF
19754
19755     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19756 fi
19757
19758 if test "$wxUSE_DMALLOC" = "yes" ; then
19759     DMALLOC_LIBS="-ldmalloc"
19760 fi
19761
19762 PROFILE=
19763 if test "$wxUSE_PROFILE" = "yes" ; then
19764     PROFILE=" -pg"
19765 fi
19766
19767 CODE_GEN_FLAGS=
19768 CODE_GEN_FLAGS_CXX=
19769 if test "$GCC" = "yes" ; then
19770     if test "$wxUSE_NO_RTTI" = "yes" ; then
19771         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
19772     fi
19773     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19774         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19775     fi
19776     if test "$wxUSE_PERMISSIVE" = "yes" ; then
19777         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19778     fi
19779     if test "$USE_WIN32" = 1 ; then
19780         # I'm not even really sure what this was ever added to solve,
19781         # but someone added it for mingw native builds, so I guess
19782         # they had a reason, right??
19783         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19784     fi
19785
19786                                                 case "${host}" in
19787       powerpc*-*-aix* )
19788         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19789         ;;
19790       *-hppa* )
19791         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19792         ;;
19793     esac
19794 fi
19795
19796 OPTIMISE=
19797 if test "$wxUSE_OPTIMISE" = "no" ; then
19798     if test "$GCC" = yes ; then
19799                         OPTIMISE="-O0"
19800     fi
19801 else
19802     if test "$GCC" = yes ; then
19803         OPTIMISE="-O2"
19804
19805                 case "${host}" in
19806             i586-*-*|i686-*-* )
19807             OPTIMISE="${OPTIMISE} "
19808         ;;
19809         esac
19810     else
19811         OPTIMISE="-O"
19812     fi
19813 fi
19814
19815
19816 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
19817     cat >> confdefs.h <<\EOF
19818 #define WXWIN_COMPATIBILITY_2 1
19819 EOF
19820
19821
19822     WXWIN_COMPATIBILITY_2_2="yes"
19823 fi
19824
19825 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
19826     cat >> confdefs.h <<\EOF
19827 #define WXWIN_COMPATIBILITY_2_2 1
19828 EOF
19829
19830
19831     WXWIN_COMPATIBILITY_2_4="yes"
19832 fi
19833
19834 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19835     cat >> confdefs.h <<\EOF
19836 #define WXWIN_COMPATIBILITY_2_4 1
19837 EOF
19838
19839 fi
19840
19841
19842 if test "$wxUSE_GUI" = "yes"; then
19843   cat >> confdefs.h <<\EOF
19844 #define wxUSE_GUI 1
19845 EOF
19846
19847
19848                       else
19849   cat >> confdefs.h <<\EOF
19850 #define wxUSE_NOGUI 1
19851 EOF
19852
19853 fi
19854
19855
19856 if test "$wxUSE_UNIX" = "yes"; then
19857   cat >> confdefs.h <<\EOF
19858 #define wxUSE_UNIX 1
19859 EOF
19860
19861 fi
19862
19863
19864 if test "$wxUSE_APPLE_IEEE" = "yes"; then
19865   cat >> confdefs.h <<\EOF
19866 #define wxUSE_APPLE_IEEE 1
19867 EOF
19868
19869 fi
19870
19871 if test "$wxUSE_TIMER" = "yes"; then
19872   cat >> confdefs.h <<\EOF
19873 #define wxUSE_TIMER 1
19874 EOF
19875
19876 fi
19877
19878 if test "$wxUSE_WAVE" = "yes"; then
19879   cat >> confdefs.h <<\EOF
19880 #define wxUSE_WAVE 1
19881 EOF
19882
19883 fi
19884
19885 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
19886   cat >> confdefs.h <<\EOF
19887 #define wxUSE_CMDLINE_PARSER 1
19888 EOF
19889
19890 fi
19891
19892 if test "$wxUSE_STOPWATCH" = "yes"; then
19893   cat >> confdefs.h <<\EOF
19894 #define wxUSE_STOPWATCH 1
19895 EOF
19896
19897 fi
19898
19899 if test "$wxUSE_DATETIME" = "yes"; then
19900   cat >> confdefs.h <<\EOF
19901 #define wxUSE_DATETIME 1
19902 EOF
19903
19904 fi
19905
19906 if test "$wxUSE_FILE" = "yes"; then
19907   cat >> confdefs.h <<\EOF
19908 #define wxUSE_FILE 1
19909 EOF
19910
19911 fi
19912
19913 if test "$wxUSE_FFILE" = "yes"; then
19914   cat >> confdefs.h <<\EOF
19915 #define wxUSE_FFILE 1
19916 EOF
19917
19918 fi
19919
19920 if test "$wxUSE_FILESYSTEM" = "yes"; then
19921   cat >> confdefs.h <<\EOF
19922 #define wxUSE_FILESYSTEM 1
19923 EOF
19924
19925 fi
19926
19927 if test "$wxUSE_FS_INET" = "yes"; then
19928   cat >> confdefs.h <<\EOF
19929 #define wxUSE_FS_INET 1
19930 EOF
19931
19932 fi
19933
19934 if test "$wxUSE_FS_ZIP" = "yes"; then
19935   cat >> confdefs.h <<\EOF
19936 #define wxUSE_FS_ZIP 1
19937 EOF
19938
19939 fi
19940
19941 if test "$wxUSE_ZIPSTREAM" = "yes"; then
19942   cat >> confdefs.h <<\EOF
19943 #define wxUSE_ZIPSTREAM 1
19944 EOF
19945
19946 fi
19947
19948 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
19949   cat >> confdefs.h <<\EOF
19950 #define wxUSE_ON_FATAL_EXCEPTION 1
19951 EOF
19952
19953 fi
19954
19955 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
19956   cat >> confdefs.h <<\EOF
19957 #define wxUSE_SNGLINST_CHECKER 1
19958 EOF
19959
19960 fi
19961
19962 if test "$wxUSE_BUSYINFO" = "yes"; then
19963   cat >> confdefs.h <<\EOF
19964 #define wxUSE_BUSYINFO 1
19965 EOF
19966
19967 fi
19968
19969 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
19970   cat >> confdefs.h <<\EOF
19971 #define wxUSE_STD_IOSTREAM 1
19972 EOF
19973
19974 fi
19975
19976 if test "$wxUSE_TEXTBUFFER" = "yes"; then
19977     cat >> confdefs.h <<\EOF
19978 #define wxUSE_TEXTBUFFER 1
19979 EOF
19980
19981 fi
19982
19983 if test "$wxUSE_TEXTFILE" = "yes"; then
19984   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
19985     echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
19986   else
19987     cat >> confdefs.h <<\EOF
19988 #define wxUSE_TEXTFILE 1
19989 EOF
19990
19991   fi
19992 fi
19993
19994 if test "$wxUSE_CONFIG" = "yes" ; then
19995   if test "$wxUSE_TEXTFILE" != "yes"; then
19996     echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
19997   else
19998     cat >> confdefs.h <<\EOF
19999 #define wxUSE_CONFIG 1
20000 EOF
20001
20002     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
20003   fi
20004 fi
20005
20006 if test "$wxUSE_INTL" = "yes" ; then
20007   if test "$wxUSE_FILE" != "yes"; then
20008     echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
20009   else
20010     cat >> confdefs.h <<\EOF
20011 #define wxUSE_INTL 1
20012 EOF
20013
20014     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
20015     GUIDIST="$GUIDIST INTL_DIST"
20016   fi
20017 fi
20018
20019 if test "$wxUSE_LOG" = "yes"; then
20020   cat >> confdefs.h <<\EOF
20021 #define wxUSE_LOG 1
20022 EOF
20023
20024
20025     if test "$wxUSE_LOGGUI" = "yes"; then
20026       cat >> confdefs.h <<\EOF
20027 #define wxUSE_LOGGUI 1
20028 EOF
20029
20030     fi
20031
20032     if test "$wxUSE_LOGWINDOW" = "yes"; then
20033       cat >> confdefs.h <<\EOF
20034 #define wxUSE_LOGWINDOW 1
20035 EOF
20036
20037     fi
20038
20039     if test "$wxUSE_LOGDIALOG" = "yes"; then
20040       cat >> confdefs.h <<\EOF
20041 #define wxUSE_LOG_DIALOG 1
20042 EOF
20043
20044     fi
20045 fi
20046
20047 if test "$wxUSE_LONGLONG" = "yes"; then
20048   cat >> confdefs.h <<\EOF
20049 #define wxUSE_LONGLONG 1
20050 EOF
20051
20052 fi
20053
20054 if test "$wxUSE_GEOMETRY" = "yes"; then
20055   cat >> confdefs.h <<\EOF
20056 #define wxUSE_GEOMETRY 1
20057 EOF
20058
20059 fi
20060
20061 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
20062   cat >> confdefs.h <<\EOF
20063 #define wxUSE_DIALUP_MANAGER 1
20064 EOF
20065
20066   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
20067 fi
20068
20069 if test "$wxUSE_STREAMS" = "yes" ; then
20070   cat >> confdefs.h <<\EOF
20071 #define wxUSE_STREAMS 1
20072 EOF
20073
20074 fi
20075
20076
20077 if test "$wxUSE_DATETIME" = "yes"; then
20078         for ac_func in strptime
20079 do
20080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20081 echo "configure:20082: checking for $ac_func" >&5
20082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20083   echo $ac_n "(cached) $ac_c" 1>&6
20084 else
20085   cat > conftest.$ac_ext <<EOF
20086 #line 20087 "configure"
20087 #include "confdefs.h"
20088 /* System header to define __stub macros and hopefully few prototypes,
20089     which can conflict with char $ac_func(); below.  */
20090 #include <assert.h>
20091 /* Override any gcc2 internal prototype to avoid an error.  */
20092 /* We use char because int might match the return type of a gcc2
20093     builtin and then its argument prototype would still apply.  */
20094 char $ac_func();
20095
20096 int main() {
20097
20098 /* The GNU C library defines this for functions which it implements
20099     to always fail with ENOSYS.  Some functions are actually named
20100     something starting with __ and the normal name is an alias.  */
20101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20102 choke me
20103 #else
20104 $ac_func();
20105 #endif
20106
20107 ; return 0; }
20108 EOF
20109 if { (eval echo configure:20110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20110   rm -rf conftest*
20111   eval "ac_cv_func_$ac_func=yes"
20112 else
20113   echo "configure: failed program was:" >&5
20114   cat conftest.$ac_ext >&5
20115   rm -rf conftest*
20116   eval "ac_cv_func_$ac_func=no"
20117 fi
20118 rm -f conftest*
20119 fi
20120
20121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20122   echo "$ac_t""yes" 1>&6
20123     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20124   cat >> confdefs.h <<EOF
20125 #define $ac_tr_func 1
20126 EOF
20127  
20128 else
20129   echo "$ac_t""no" 1>&6
20130 fi
20131 done
20132
20133
20134             echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
20135 echo "configure:20136: checking for timezone variable in <time.h>" >&5
20136 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
20137   echo $ac_n "(cached) $ac_c" 1>&6
20138 else
20139   
20140                         cat > conftest.$ac_ext <<EOF
20141 #line 20142 "configure"
20142 #include "confdefs.h"
20143
20144                                 #include <time.h>
20145                             
20146 int main() {
20147
20148                                 int tz;
20149                                 tz = timezone;
20150                             
20151 ; return 0; }
20152 EOF
20153 if { (eval echo configure:20154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20154   rm -rf conftest*
20155   
20156                                 wx_cv_var_timezone=timezone
20157                             
20158 else
20159   echo "configure: failed program was:" >&5
20160   cat conftest.$ac_ext >&5
20161   rm -rf conftest*
20162   
20163                                 cat > conftest.$ac_ext <<EOF
20164 #line 20165 "configure"
20165 #include "confdefs.h"
20166
20167                                         #include <time.h>
20168                                     
20169 int main() {
20170
20171                                         int tz;
20172                                         tz = _timezone;
20173                                     
20174 ; return 0; }
20175 EOF
20176 if { (eval echo configure:20177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20177   rm -rf conftest*
20178   
20179                                         wx_cv_var_timezone=_timezone
20180                                     
20181 else
20182   echo "configure: failed program was:" >&5
20183   cat conftest.$ac_ext >&5
20184   rm -rf conftest*
20185   
20186                                         cat > conftest.$ac_ext <<EOF
20187 #line 20188 "configure"
20188 #include "confdefs.h"
20189
20190                                                 #include <time.h>
20191                                             
20192 int main() {
20193
20194                                                 int tz;
20195                                                 tz = __timezone;
20196                                             
20197 ; return 0; }
20198 EOF
20199 if { (eval echo configure:20200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20200   rm -rf conftest*
20201   
20202                                                 wx_cv_var_timezone=__timezone
20203                                             
20204 else
20205   echo "configure: failed program was:" >&5
20206   cat conftest.$ac_ext >&5
20207   rm -rf conftest*
20208   
20209                                                 if test "$USE_DOS" = 0 ; then
20210                                                     echo "configure: warning: no timezone variable" 1>&2
20211                                                 fi
20212                                             
20213                                         
20214 fi
20215 rm -f conftest*
20216                                     
20217                                 
20218 fi
20219 rm -f conftest*
20220                             
20221                         
20222 fi
20223 rm -f conftest*
20224                    
20225     
20226 fi
20227
20228 echo "$ac_t""$wx_cv_var_timezone" 1>&6
20229
20230         if test "x$wx_cv_var_timezone" != x ; then
20231         cat >> confdefs.h <<EOF
20232 #define WX_TIMEZONE $wx_cv_var_timezone
20233 EOF
20234
20235     fi
20236
20237         for ac_func in localtime
20238 do
20239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20240 echo "configure:20241: checking for $ac_func" >&5
20241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20242   echo $ac_n "(cached) $ac_c" 1>&6
20243 else
20244   cat > conftest.$ac_ext <<EOF
20245 #line 20246 "configure"
20246 #include "confdefs.h"
20247 /* System header to define __stub macros and hopefully few prototypes,
20248     which can conflict with char $ac_func(); below.  */
20249 #include <assert.h>
20250 /* Override any gcc2 internal prototype to avoid an error.  */
20251 /* We use char because int might match the return type of a gcc2
20252     builtin and then its argument prototype would still apply.  */
20253 char $ac_func();
20254
20255 int main() {
20256
20257 /* The GNU C library defines this for functions which it implements
20258     to always fail with ENOSYS.  Some functions are actually named
20259     something starting with __ and the normal name is an alias.  */
20260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20261 choke me
20262 #else
20263 $ac_func();
20264 #endif
20265
20266 ; return 0; }
20267 EOF
20268 if { (eval echo configure:20269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20269   rm -rf conftest*
20270   eval "ac_cv_func_$ac_func=yes"
20271 else
20272   echo "configure: failed program was:" >&5
20273   cat conftest.$ac_ext >&5
20274   rm -rf conftest*
20275   eval "ac_cv_func_$ac_func=no"
20276 fi
20277 rm -f conftest*
20278 fi
20279
20280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20281   echo "$ac_t""yes" 1>&6
20282     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20283   cat >> confdefs.h <<EOF
20284 #define $ac_tr_func 1
20285 EOF
20286  
20287 else
20288   echo "$ac_t""no" 1>&6
20289 fi
20290 done
20291
20292
20293     if test "$ac_cv_func_localtime" = "yes"; then
20294         echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
20295 echo "configure:20296: checking for tm_gmtoff in struct tm" >&5
20296 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
20297   echo $ac_n "(cached) $ac_c" 1>&6
20298 else
20299   
20300             cat > conftest.$ac_ext <<EOF
20301 #line 20302 "configure"
20302 #include "confdefs.h"
20303
20304                     #include <time.h>
20305                 
20306 int main() {
20307
20308                     struct tm tm;
20309                     tm.tm_gmtoff++;
20310                 
20311 ; return 0; }
20312 EOF
20313 if { (eval echo configure:20314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20314   rm -rf conftest*
20315   
20316                     wx_cv_struct_tm_has_gmtoff=yes
20317                 
20318 else
20319   echo "configure: failed program was:" >&5
20320   cat conftest.$ac_ext >&5
20321   rm -rf conftest*
20322   wx_cv_struct_tm_has_gmtoff=no
20323             
20324 fi
20325 rm -f conftest*
20326         
20327 fi
20328
20329 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
20330     fi
20331
20332     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
20333         cat >> confdefs.h <<\EOF
20334 #define WX_GMTOFF_IN_TM 1
20335 EOF
20336
20337     fi
20338
20339             for ac_func in gettimeofday ftime
20340 do
20341 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20342 echo "configure:20343: checking for $ac_func" >&5
20343 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20344   echo $ac_n "(cached) $ac_c" 1>&6
20345 else
20346   cat > conftest.$ac_ext <<EOF
20347 #line 20348 "configure"
20348 #include "confdefs.h"
20349 /* System header to define __stub macros and hopefully few prototypes,
20350     which can conflict with char $ac_func(); below.  */
20351 #include <assert.h>
20352 /* Override any gcc2 internal prototype to avoid an error.  */
20353 /* We use char because int might match the return type of a gcc2
20354     builtin and then its argument prototype would still apply.  */
20355 char $ac_func();
20356
20357 int main() {
20358
20359 /* The GNU C library defines this for functions which it implements
20360     to always fail with ENOSYS.  Some functions are actually named
20361     something starting with __ and the normal name is an alias.  */
20362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20363 choke me
20364 #else
20365 $ac_func();
20366 #endif
20367
20368 ; return 0; }
20369 EOF
20370 if { (eval echo configure:20371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20371   rm -rf conftest*
20372   eval "ac_cv_func_$ac_func=yes"
20373 else
20374   echo "configure: failed program was:" >&5
20375   cat conftest.$ac_ext >&5
20376   rm -rf conftest*
20377   eval "ac_cv_func_$ac_func=no"
20378 fi
20379 rm -f conftest*
20380 fi
20381
20382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20383   echo "$ac_t""yes" 1>&6
20384     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20385   cat >> confdefs.h <<EOF
20386 #define $ac_tr_func 1
20387 EOF
20388  break
20389 else
20390   echo "$ac_t""no" 1>&6
20391 fi
20392 done
20393
20394
20395     if test "$ac_cv_func_gettimeofday" = "yes"; then
20396         echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
20397 echo "configure:20398: checking whether gettimeofday takes two arguments" >&5
20398 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
20399   echo $ac_n "(cached) $ac_c" 1>&6
20400 else
20401   
20402                         
20403             ac_ext=C
20404 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20405 ac_cpp='$CXXCPP $CPPFLAGS'
20406 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20407 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20408 cross_compiling=$ac_cv_prog_cxx_cross
20409
20410
20411             cat > conftest.$ac_ext <<EOF
20412 #line 20413 "configure"
20413 #include "confdefs.h"
20414
20415                     #include <sys/time.h>
20416                     #include <unistd.h>
20417                 
20418 int main() {
20419
20420                     struct timeval tv;
20421                     gettimeofday(&tv, NULL);
20422                 
20423 ; return 0; }
20424 EOF
20425 if { (eval echo configure:20426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20426   rm -rf conftest*
20427   wx_cv_func_gettimeofday_has_2_args=yes
20428 else
20429   echo "configure: failed program was:" >&5
20430   cat conftest.$ac_ext >&5
20431   rm -rf conftest*
20432   cat > conftest.$ac_ext <<EOF
20433 #line 20434 "configure"
20434 #include "confdefs.h"
20435
20436                         #include <sys/time.h>
20437                         #include <unistd.h>
20438                     
20439 int main() {
20440
20441                         struct timeval tv;
20442                         gettimeofday(&tv);
20443                     
20444 ; return 0; }
20445 EOF
20446 if { (eval echo configure:20447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20447   rm -rf conftest*
20448   wx_cv_func_gettimeofday_has_2_args=no
20449 else
20450   echo "configure: failed program was:" >&5
20451   cat conftest.$ac_ext >&5
20452   rm -rf conftest*
20453   
20454                         echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
20455                         wx_cv_func_gettimeofday_has_2_args=unknown
20456                     
20457                 
20458 fi
20459 rm -f conftest*
20460             
20461 fi
20462 rm -f conftest*
20463             ac_ext=c
20464 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20465 ac_cpp='$CPP $CPPFLAGS'
20466 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20467 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20468 cross_compiling=$ac_cv_prog_cc_cross
20469
20470         
20471 fi
20472
20473 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
20474
20475         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
20476             cat >> confdefs.h <<\EOF
20477 #define WX_GETTIMEOFDAY_NO_TZ 1
20478 EOF
20479
20480         fi
20481     fi
20482
20483     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20484 fi
20485
20486
20487 if test "$wxUSE_SOCKETS" = "yes"; then
20488     if test "$wxUSE_MGL" = "1"; then
20489         echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
20490         wxUSE_SOCKETS="no"
20491     fi
20492 fi
20493
20494 if test "$wxUSE_SOCKETS" = "yes"; then
20495         if test "$TOOLKIT" != "MSW"; then
20496                 echo $ac_n "checking for socket""... $ac_c" 1>&6
20497 echo "configure:20498: checking for socket" >&5
20498 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20499   echo $ac_n "(cached) $ac_c" 1>&6
20500 else
20501   cat > conftest.$ac_ext <<EOF
20502 #line 20503 "configure"
20503 #include "confdefs.h"
20504 /* System header to define __stub macros and hopefully few prototypes,
20505     which can conflict with char socket(); below.  */
20506 #include <assert.h>
20507 /* Override any gcc2 internal prototype to avoid an error.  */
20508 /* We use char because int might match the return type of a gcc2
20509     builtin and then its argument prototype would still apply.  */
20510 char socket();
20511
20512 int main() {
20513
20514 /* The GNU C library defines this for functions which it implements
20515     to always fail with ENOSYS.  Some functions are actually named
20516     something starting with __ and the normal name is an alias.  */
20517 #if defined (__stub_socket) || defined (__stub___socket)
20518 choke me
20519 #else
20520 socket();
20521 #endif
20522
20523 ; return 0; }
20524 EOF
20525 if { (eval echo configure:20526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20526   rm -rf conftest*
20527   eval "ac_cv_func_socket=yes"
20528 else
20529   echo "configure: failed program was:" >&5
20530   cat conftest.$ac_ext >&5
20531   rm -rf conftest*
20532   eval "ac_cv_func_socket=no"
20533 fi
20534 rm -f conftest*
20535 fi
20536
20537 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20538   echo "$ac_t""yes" 1>&6
20539   :
20540 else
20541   echo "$ac_t""no" 1>&6
20542 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
20543 echo "configure:20544: checking for socket in -lsocket" >&5
20544 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20545 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20546   echo $ac_n "(cached) $ac_c" 1>&6
20547 else
20548   ac_save_LIBS="$LIBS"
20549 LIBS="-lsocket  $LIBS"
20550 cat > conftest.$ac_ext <<EOF
20551 #line 20552 "configure"
20552 #include "confdefs.h"
20553 /* Override any gcc2 internal prototype to avoid an error.  */
20554 /* We use char because int might match the return type of a gcc2
20555     builtin and then its argument prototype would still apply.  */
20556 char socket();
20557
20558 int main() {
20559 socket()
20560 ; return 0; }
20561 EOF
20562 if { (eval echo configure:20563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20563   rm -rf conftest*
20564   eval "ac_cv_lib_$ac_lib_var=yes"
20565 else
20566   echo "configure: failed program was:" >&5
20567   cat conftest.$ac_ext >&5
20568   rm -rf conftest*
20569   eval "ac_cv_lib_$ac_lib_var=no"
20570 fi
20571 rm -f conftest*
20572 LIBS="$ac_save_LIBS"
20573
20574 fi
20575 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20576   echo "$ac_t""yes" 1>&6
20577   if test "$INET_LINK" != " -lsocket"; then
20578                     INET_LINK="$INET_LINK -lsocket"
20579                 fi
20580 else
20581   echo "$ac_t""no" 1>&6
20582
20583                     echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
20584                     wxUSE_SOCKETS=no
20585                 
20586             
20587 fi
20588
20589         
20590 fi
20591
20592     fi
20593 fi
20594
20595 if test "$wxUSE_SOCKETS" = "yes" ; then
20596                 if test "$TOOLKIT" != "MSW"; then
20597                 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
20598 echo "configure:20599: checking what is the type of the third argument of getsockname" >&5
20599 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20600   echo $ac_n "(cached) $ac_c" 1>&6
20601 else
20602   
20603                 cat > conftest.$ac_ext <<EOF
20604 #line 20605 "configure"
20605 #include "confdefs.h"
20606
20607                         #include <sys/types.h>
20608                         #include <sys/socket.h>
20609                     
20610 int main() {
20611
20612                         socklen_t len;
20613                         getsockname(0, 0, &len);
20614                     
20615 ; return 0; }
20616 EOF
20617 if { (eval echo configure:20618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20618   rm -rf conftest*
20619   wx_cv_type_getsockname3=socklen_t
20620 else
20621   echo "configure: failed program was:" >&5
20622   cat conftest.$ac_ext >&5
20623   rm -rf conftest*
20624   
20625                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
20626                         if test "$GCC" = yes ; then
20627                             CFLAGS="$CFLAGS -Werror"
20628                         fi
20629
20630                         cat > conftest.$ac_ext <<EOF
20631 #line 20632 "configure"
20632 #include "confdefs.h"
20633
20634                                 #include <sys/types.h>
20635                                 #include <sys/socket.h>
20636                             
20637 int main() {
20638
20639                                 size_t len;
20640                                 getsockname(0, 0, &len);
20641                             
20642 ; return 0; }
20643 EOF
20644 if { (eval echo configure:20645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20645   rm -rf conftest*
20646   wx_cv_type_getsockname3=size_t
20647 else
20648   echo "configure: failed program was:" >&5
20649   cat conftest.$ac_ext >&5
20650   rm -rf conftest*
20651   cat > conftest.$ac_ext <<EOF
20652 #line 20653 "configure"
20653 #include "confdefs.h"
20654
20655                                     #include <sys/types.h>
20656                                     #include <sys/socket.h>
20657                                 
20658 int main() {
20659
20660                                     int len;
20661                                     getsockname(0, 0, &len);
20662                                 
20663 ; return 0; }
20664 EOF
20665 if { (eval echo configure:20666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20666   rm -rf conftest*
20667   wx_cv_type_getsockname3=int
20668 else
20669   echo "configure: failed program was:" >&5
20670   cat conftest.$ac_ext >&5
20671   rm -rf conftest*
20672   wx_cv_type_getsockname3=unknown
20673                             
20674 fi
20675 rm -f conftest*
20676                         
20677 fi
20678 rm -f conftest*
20679
20680                         CFLAGS="$CFLAGS_OLD"
20681                     
20682                 
20683 fi
20684 rm -f conftest*
20685             
20686 fi
20687
20688 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
20689
20690         if test "$wx_cv_type_getsockname3" = "unknown"; then
20691             wxUSE_SOCKETS=no
20692             echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
20693         else
20694             cat >> confdefs.h <<EOF
20695 #define SOCKLEN_T $wx_cv_type_getsockname3
20696 EOF
20697
20698         fi
20699     fi
20700 fi
20701
20702 if test "$wxUSE_SOCKETS" = "yes" ; then
20703     cat >> confdefs.h <<\EOF
20704 #define wxUSE_SOCKETS 1
20705 EOF
20706
20707     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
20708 fi
20709
20710
20711 if test "$wxUSE_GUI" = "yes"; then
20712
20713     if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
20714         echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
20715         wxUSE_JOYSTICK=no
20716      fi
20717     if test "$TOOLKIT" = "MOTIF"; then
20718         echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
20719         wxUSE_JOYSTICK=no
20720      fi
20721     if test "$TOOLKIT" = "X11"; then
20722         echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
20723         wxUSE_JOYSTICK=no
20724      fi
20725
20726         if test "$TOOLKIT" != "MSW"; then
20727         if test "$wxUSE_JOYSTICK" = "yes"; then
20728                         for ac_hdr in linux/joystick.h
20729 do
20730 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20731 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20732 echo "configure:20733: checking for $ac_hdr" >&5
20733 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20734   echo $ac_n "(cached) $ac_c" 1>&6
20735 else
20736   cat > conftest.$ac_ext <<EOF
20737 #line 20738 "configure"
20738 #include "confdefs.h"
20739 #include <$ac_hdr>
20740 EOF
20741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20742 { (eval echo configure:20743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20743 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20744 if test -z "$ac_err"; then
20745   rm -rf conftest*
20746   eval "ac_cv_header_$ac_safe=yes"
20747 else
20748   echo "$ac_err" >&5
20749   echo "configure: failed program was:" >&5
20750   cat conftest.$ac_ext >&5
20751   rm -rf conftest*
20752   eval "ac_cv_header_$ac_safe=no"
20753 fi
20754 rm -f conftest*
20755 fi
20756 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20757   echo "$ac_t""yes" 1>&6
20758     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20759   cat >> confdefs.h <<EOF
20760 #define $ac_tr_hdr 1
20761 EOF
20762  
20763 else
20764   echo "$ac_t""no" 1>&6
20765 fi
20766 done
20767
20768             if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20769                 wxUSE_JOYSTICK=no
20770                 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
20771             fi
20772         fi
20773     fi
20774
20775     if test "$wxUSE_JOYSTICK" = "yes"; then
20776         cat >> confdefs.h <<\EOF
20777 #define wxUSE_JOYSTICK 1
20778 EOF
20779
20780         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20781     fi
20782 fi
20783
20784
20785 if test "$TOOLKIT" != "MSW"; then
20786
20787     HAVE_DL_FUNCS=0
20788     HAVE_SHL_FUNCS=0
20789     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20790         if test "$USE_DARWIN" = 1; then
20791                         HAVE_DL_FUNCS=1
20792         else
20793                                                 for ac_func in dlopen
20794 do
20795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20796 echo "configure:20797: checking for $ac_func" >&5
20797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20798   echo $ac_n "(cached) $ac_c" 1>&6
20799 else
20800   cat > conftest.$ac_ext <<EOF
20801 #line 20802 "configure"
20802 #include "confdefs.h"
20803 /* System header to define __stub macros and hopefully few prototypes,
20804     which can conflict with char $ac_func(); below.  */
20805 #include <assert.h>
20806 /* Override any gcc2 internal prototype to avoid an error.  */
20807 /* We use char because int might match the return type of a gcc2
20808     builtin and then its argument prototype would still apply.  */
20809 char $ac_func();
20810
20811 int main() {
20812
20813 /* The GNU C library defines this for functions which it implements
20814     to always fail with ENOSYS.  Some functions are actually named
20815     something starting with __ and the normal name is an alias.  */
20816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20817 choke me
20818 #else
20819 $ac_func();
20820 #endif
20821
20822 ; return 0; }
20823 EOF
20824 if { (eval echo configure:20825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20825   rm -rf conftest*
20826   eval "ac_cv_func_$ac_func=yes"
20827 else
20828   echo "configure: failed program was:" >&5
20829   cat conftest.$ac_ext >&5
20830   rm -rf conftest*
20831   eval "ac_cv_func_$ac_func=no"
20832 fi
20833 rm -f conftest*
20834 fi
20835
20836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20837   echo "$ac_t""yes" 1>&6
20838     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20839   cat >> confdefs.h <<EOF
20840 #define $ac_tr_func 1
20841 EOF
20842  
20843                 cat >> confdefs.h <<\EOF
20844 #define HAVE_DLOPEN 1
20845 EOF
20846
20847                 HAVE_DL_FUNCS=1
20848             
20849 else
20850   echo "$ac_t""no" 1>&6
20851 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
20852 echo "configure:20853: checking for dlopen in -ldl" >&5
20853 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20854 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20855   echo $ac_n "(cached) $ac_c" 1>&6
20856 else
20857   ac_save_LIBS="$LIBS"
20858 LIBS="-ldl  $LIBS"
20859 cat > conftest.$ac_ext <<EOF
20860 #line 20861 "configure"
20861 #include "confdefs.h"
20862 /* Override any gcc2 internal prototype to avoid an error.  */
20863 /* We use char because int might match the return type of a gcc2
20864     builtin and then its argument prototype would still apply.  */
20865 char dlopen();
20866
20867 int main() {
20868 dlopen()
20869 ; return 0; }
20870 EOF
20871 if { (eval echo configure:20872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20872   rm -rf conftest*
20873   eval "ac_cv_lib_$ac_lib_var=yes"
20874 else
20875   echo "configure: failed program was:" >&5
20876   cat conftest.$ac_ext >&5
20877   rm -rf conftest*
20878   eval "ac_cv_lib_$ac_lib_var=no"
20879 fi
20880 rm -f conftest*
20881 LIBS="$ac_save_LIBS"
20882
20883 fi
20884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20885   echo "$ac_t""yes" 1>&6
20886   
20887                                 cat >> confdefs.h <<\EOF
20888 #define HAVE_DLOPEN 1
20889 EOF
20890
20891                                 HAVE_DL_FUNCS=1
20892                                 DL_LINK=" -ldl$DL_LINK"
20893                             
20894 else
20895   echo "$ac_t""no" 1>&6
20896
20897                                 for ac_func in shl_load
20898 do
20899 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20900 echo "configure:20901: checking for $ac_func" >&5
20901 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20902   echo $ac_n "(cached) $ac_c" 1>&6
20903 else
20904   cat > conftest.$ac_ext <<EOF
20905 #line 20906 "configure"
20906 #include "confdefs.h"
20907 /* System header to define __stub macros and hopefully few prototypes,
20908     which can conflict with char $ac_func(); below.  */
20909 #include <assert.h>
20910 /* Override any gcc2 internal prototype to avoid an error.  */
20911 /* We use char because int might match the return type of a gcc2
20912     builtin and then its argument prototype would still apply.  */
20913 char $ac_func();
20914
20915 int main() {
20916
20917 /* The GNU C library defines this for functions which it implements
20918     to always fail with ENOSYS.  Some functions are actually named
20919     something starting with __ and the normal name is an alias.  */
20920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20921 choke me
20922 #else
20923 $ac_func();
20924 #endif
20925
20926 ; return 0; }
20927 EOF
20928 if { (eval echo configure:20929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20929   rm -rf conftest*
20930   eval "ac_cv_func_$ac_func=yes"
20931 else
20932   echo "configure: failed program was:" >&5
20933   cat conftest.$ac_ext >&5
20934   rm -rf conftest*
20935   eval "ac_cv_func_$ac_func=no"
20936 fi
20937 rm -f conftest*
20938 fi
20939
20940 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20941   echo "$ac_t""yes" 1>&6
20942     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20943   cat >> confdefs.h <<EOF
20944 #define $ac_tr_func 1
20945 EOF
20946  
20947                                                 cat >> confdefs.h <<\EOF
20948 #define HAVE_SHL_LOAD 1
20949 EOF
20950
20951                                                 HAVE_SHL_FUNCS=1
20952                                               
20953 else
20954   echo "$ac_t""no" 1>&6
20955 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
20956 echo "configure:20957: checking for dld in -lshl_load" >&5
20957 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20958 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20959   echo $ac_n "(cached) $ac_c" 1>&6
20960 else
20961   ac_save_LIBS="$LIBS"
20962 LIBS="-lshl_load  $LIBS"
20963 cat > conftest.$ac_ext <<EOF
20964 #line 20965 "configure"
20965 #include "confdefs.h"
20966 /* Override any gcc2 internal prototype to avoid an error.  */
20967 /* We use char because int might match the return type of a gcc2
20968     builtin and then its argument prototype would still apply.  */
20969 char dld();
20970
20971 int main() {
20972 dld()
20973 ; return 0; }
20974 EOF
20975 if { (eval echo configure:20976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20976   rm -rf conftest*
20977   eval "ac_cv_lib_$ac_lib_var=yes"
20978 else
20979   echo "configure: failed program was:" >&5
20980   cat conftest.$ac_ext >&5
20981   rm -rf conftest*
20982   eval "ac_cv_lib_$ac_lib_var=no"
20983 fi
20984 rm -f conftest*
20985 LIBS="$ac_save_LIBS"
20986
20987 fi
20988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20989   echo "$ac_t""yes" 1>&6
20990   
20991                                                                 HAVE_SHL_FUNCS=1
20992                                                                 DL_LINK=" -ldld$DL_LINK"
20993                                                              
20994 else
20995   echo "$ac_t""no" 1>&6
20996 fi
20997
20998                                               
20999 fi
21000 done
21001
21002                             
21003 fi
21004
21005             
21006 fi
21007 done
21008
21009
21010                 if test "$HAVE_DL_FUNCS" = 1; then
21011             for ac_func in dlerror
21012 do
21013 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21014 echo "configure:21015: checking for $ac_func" >&5
21015 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21016   echo $ac_n "(cached) $ac_c" 1>&6
21017 else
21018   cat > conftest.$ac_ext <<EOF
21019 #line 21020 "configure"
21020 #include "confdefs.h"
21021 /* System header to define __stub macros and hopefully few prototypes,
21022     which can conflict with char $ac_func(); below.  */
21023 #include <assert.h>
21024 /* Override any gcc2 internal prototype to avoid an error.  */
21025 /* We use char because int might match the return type of a gcc2
21026     builtin and then its argument prototype would still apply.  */
21027 char $ac_func();
21028
21029 int main() {
21030
21031 /* The GNU C library defines this for functions which it implements
21032     to always fail with ENOSYS.  Some functions are actually named
21033     something starting with __ and the normal name is an alias.  */
21034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21035 choke me
21036 #else
21037 $ac_func();
21038 #endif
21039
21040 ; return 0; }
21041 EOF
21042 if { (eval echo configure:21043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21043   rm -rf conftest*
21044   eval "ac_cv_func_$ac_func=yes"
21045 else
21046   echo "configure: failed program was:" >&5
21047   cat conftest.$ac_ext >&5
21048   rm -rf conftest*
21049   eval "ac_cv_func_$ac_func=no"
21050 fi
21051 rm -f conftest*
21052 fi
21053
21054 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21055   echo "$ac_t""yes" 1>&6
21056     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21057   cat >> confdefs.h <<EOF
21058 #define $ac_tr_func 1
21059 EOF
21060  cat >> confdefs.h <<\EOF
21061 #define HAVE_DLERROR 1
21062 EOF
21063
21064 else
21065   echo "$ac_t""no" 1>&6
21066 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
21067 echo "configure:21068: checking for dlerror in -ldl" >&5
21068 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
21069 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21070   echo $ac_n "(cached) $ac_c" 1>&6
21071 else
21072   ac_save_LIBS="$LIBS"
21073 LIBS="-ldl  $LIBS"
21074 cat > conftest.$ac_ext <<EOF
21075 #line 21076 "configure"
21076 #include "confdefs.h"
21077 /* Override any gcc2 internal prototype to avoid an error.  */
21078 /* We use char because int might match the return type of a gcc2
21079     builtin and then its argument prototype would still apply.  */
21080 char dlerror();
21081
21082 int main() {
21083 dlerror()
21084 ; return 0; }
21085 EOF
21086 if { (eval echo configure:21087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21087   rm -rf conftest*
21088   eval "ac_cv_lib_$ac_lib_var=yes"
21089 else
21090   echo "configure: failed program was:" >&5
21091   cat conftest.$ac_ext >&5
21092   rm -rf conftest*
21093   eval "ac_cv_lib_$ac_lib_var=no"
21094 fi
21095 rm -f conftest*
21096 LIBS="$ac_save_LIBS"
21097
21098 fi
21099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21100   echo "$ac_t""yes" 1>&6
21101   cat >> confdefs.h <<\EOF
21102 #define HAVE_DLERROR 1
21103 EOF
21104
21105 else
21106   echo "$ac_t""no" 1>&6
21107 fi
21108
21109 fi
21110 done
21111
21112         fi
21113         fi
21114
21115         if test "$HAVE_DL_FUNCS" = 0; then
21116             if test "$HAVE_SHL_FUNCS" = 0; then
21117               if test "$USE_UNIX" = 1; then
21118                   echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
21119                   wxUSE_DYNAMIC_LOADER=no
21120                   wxUSE_DYNLIB_CLASS=no
21121               else
21122                   echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
21123               fi
21124             fi
21125         fi
21126     fi
21127 fi
21128
21129 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
21130     cat >> confdefs.h <<\EOF
21131 #define wxUSE_DYNAMIC_LOADER 1
21132 EOF
21133
21134 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
21135     cat >> confdefs.h <<\EOF
21136 #define wxUSE_DYNLIB_CLASS 1
21137 EOF
21138
21139 fi
21140
21141
21142 if test "$wxUSE_FONTMAP" = "yes" ; then
21143   cat >> confdefs.h <<\EOF
21144 #define wxUSE_FONTMAP 1
21145 EOF
21146
21147 fi
21148
21149 if test "$wxUSE_UNICODE" = "yes" ; then
21150   cat >> confdefs.h <<\EOF
21151 #define wxUSE_UNICODE 1
21152 EOF
21153
21154
21155   if test "$wxUSE_MSW" != 1; then
21156       wxUSE_UNICODE_MSLU=no
21157   fi
21158
21159   if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
21160         echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
21161 echo "configure:21162: checking for main in -lunicows" >&5
21162 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
21163 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21164   echo $ac_n "(cached) $ac_c" 1>&6
21165 else
21166   ac_save_LIBS="$LIBS"
21167 LIBS="-lunicows  $LIBS"
21168 cat > conftest.$ac_ext <<EOF
21169 #line 21170 "configure"
21170 #include "confdefs.h"
21171
21172 int main() {
21173 main()
21174 ; return 0; }
21175 EOF
21176 if { (eval echo configure:21177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21177   rm -rf conftest*
21178   eval "ac_cv_lib_$ac_lib_var=yes"
21179 else
21180   echo "configure: failed program was:" >&5
21181   cat conftest.$ac_ext >&5
21182   rm -rf conftest*
21183   eval "ac_cv_lib_$ac_lib_var=no"
21184 fi
21185 rm -f conftest*
21186 LIBS="$ac_save_LIBS"
21187
21188 fi
21189 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21190   echo "$ac_t""yes" 1>&6
21191   
21192                 cat >> confdefs.h <<\EOF
21193 #define wxUSE_UNICODE_MSLU 1
21194 EOF
21195
21196             
21197 else
21198   echo "$ac_t""no" 1>&6
21199
21200                 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
21201                              Applications will only run on Windows NT/2000/XP!" 1>&2
21202                 wxUSE_UNICODE_MSLU=no
21203             
21204 fi
21205
21206     fi
21207 fi
21208
21209 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
21210   cat >> confdefs.h <<\EOF
21211 #define wxUSE_EXPERIMENTAL_PRINTF 1
21212 EOF
21213
21214 fi
21215
21216
21217 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
21218   cat >> confdefs.h <<\EOF
21219 #define wxUSE_POSTSCRIPT 1
21220 EOF
21221
21222 fi
21223
21224 cat >> confdefs.h <<\EOF
21225 #define wxUSE_AFM_FOR_POSTSCRIPT 1
21226 EOF
21227
21228
21229 cat >> confdefs.h <<\EOF
21230 #define wxUSE_NORMALIZED_PS_FONTS 1
21231 EOF
21232
21233
21234
21235 if test "$wxUSE_CONSTRAINTS" = "yes"; then
21236     cat >> confdefs.h <<\EOF
21237 #define wxUSE_CONSTRAINTS 1
21238 EOF
21239
21240     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
21241 fi
21242
21243 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21244
21245
21246    if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21247        cat >> confdefs.h <<\EOF
21248 #define wxUSE_MDI_ARCHITECTURE 1
21249 EOF
21250
21251        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
21252    fi
21253 fi
21254
21255 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
21256     cat >> confdefs.h <<\EOF
21257 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
21258 EOF
21259
21260     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
21261     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21262         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
21263     fi
21264 fi
21265
21266 if test "$wxUSE_HELP" = "yes"; then
21267     cat >> confdefs.h <<\EOF
21268 #define wxUSE_HELP 1
21269 EOF
21270
21271     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
21272
21273     if test "$wxUSE_MSW" = 1; then
21274       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
21275         cat >> confdefs.h <<\EOF
21276 #define wxUSE_MS_HTML_HELP 1
21277 EOF
21278
21279       fi
21280     fi
21281
21282     if test "$wxUSE_WXHTML_HELP" = "yes"; then
21283       if test "$wxUSE_HTML" = "yes"; then
21284         cat >> confdefs.h <<\EOF
21285 #define wxUSE_WXHTML_HELP 1
21286 EOF
21287
21288       else
21289         echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
21290         wxUSE_WXHTML_HELP=no
21291       fi
21292     fi
21293 fi
21294
21295 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
21296     if test "$wxUSE_CONSTRAINTS" != "yes"; then
21297         echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
21298     else
21299         cat >> confdefs.h <<\EOF
21300 #define wxUSE_PRINTING_ARCHITECTURE 1
21301 EOF
21302
21303     fi
21304     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
21305 fi
21306
21307 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
21308     { echo "configure: error: wxExpr and old-style resources are now available in contrib only" 1>&2; exit 1; }
21309 fi
21310
21311
21312 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
21313                           -o "$wxUSE_CLIPBOARD"     = "yes" \
21314                           -o "$wxUSE_OLE"     = "yes" \
21315                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
21316     for ac_hdr in ole2.h
21317 do
21318 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21319 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21320 echo "configure:21321: checking for $ac_hdr" >&5
21321 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21322   echo $ac_n "(cached) $ac_c" 1>&6
21323 else
21324   cat > conftest.$ac_ext <<EOF
21325 #line 21326 "configure"
21326 #include "confdefs.h"
21327 #include <$ac_hdr>
21328 EOF
21329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21330 { (eval echo configure:21331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21332 if test -z "$ac_err"; then
21333   rm -rf conftest*
21334   eval "ac_cv_header_$ac_safe=yes"
21335 else
21336   echo "$ac_err" >&5
21337   echo "configure: failed program was:" >&5
21338   cat conftest.$ac_ext >&5
21339   rm -rf conftest*
21340   eval "ac_cv_header_$ac_safe=no"
21341 fi
21342 rm -f conftest*
21343 fi
21344 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21345   echo "$ac_t""yes" 1>&6
21346     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21347   cat >> confdefs.h <<EOF
21348 #define $ac_tr_hdr 1
21349 EOF
21350  
21351 else
21352   echo "$ac_t""no" 1>&6
21353 fi
21354 done
21355
21356
21357     if test "$ac_cv_header_ole2_h" = "yes" ; then
21358         if test "$GCC" = yes ; then
21359             
21360             ac_ext=C
21361 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21362 ac_cpp='$CXXCPP $CPPFLAGS'
21363 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21364 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21365 cross_compiling=$ac_cv_prog_cxx_cross
21366
21367
21368             echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
21369 echo "configure:21370: checking if g++ requires -fvtable-thunks" >&5
21370             cat > conftest.$ac_ext <<EOF
21371 #line 21372 "configure"
21372 #include "confdefs.h"
21373 #include <windows.h>
21374                             #include <ole2.h>
21375 int main() {
21376
21377 ; return 0; }
21378 EOF
21379 if { (eval echo configure:21380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21380   rm -rf conftest*
21381   echo "$ac_t""no" 1>&6
21382 else
21383   echo "configure: failed program was:" >&5
21384   cat conftest.$ac_ext >&5
21385   rm -rf conftest*
21386   echo "$ac_t""yes" 1>&6
21387                             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
21388 fi
21389 rm -f conftest*
21390             ac_ext=c
21391 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21392 ac_cpp='$CPP $CPPFLAGS'
21393 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21394 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21395 cross_compiling=$ac_cv_prog_cc_cross
21396
21397             ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
21398             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
21399             cat >> confdefs.h <<\EOF
21400 #define wxUSE_OLE 1
21401 EOF
21402
21403
21404         fi
21405
21406                 cat >> confdefs.h <<\EOF
21407 #define wxUSE_DATAOBJ 1
21408 EOF
21409
21410     else
21411         echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
21412
21413         wxUSE_CLIPBOARD=no
21414         wxUSE_DRAG_AND_DROP=no
21415         wxUSE_DATAOBJ=no
21416         wxUSE_OLE=no
21417     fi
21418
21419     if test "$wxUSE_METAFILE" = "yes"; then
21420         cat >> confdefs.h <<\EOF
21421 #define wxUSE_METAFILE 1
21422 EOF
21423
21424
21425                 cat >> confdefs.h <<\EOF
21426 #define wxUSE_ENH_METAFILE 1
21427 EOF
21428
21429     fi
21430 fi
21431
21432 if test "$wxUSE_IPC" = "yes"; then
21433     if test "$wxUSE_SOCKETS" != "yes"; then
21434         echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
21435     fi
21436
21437     cat >> confdefs.h <<\EOF
21438 #define wxUSE_IPC 1
21439 EOF
21440
21441 fi
21442
21443 if test "$wxUSE_CLIPBOARD" = "yes"; then
21444     if test "$wxUSE_MGL" = 1; then
21445         echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
21446         wxUSE_CLIPBOARD=no
21447     fi
21448
21449     if test "$wxUSE_CLIPBOARD" = "yes"; then
21450         cat >> confdefs.h <<\EOF
21451 #define wxUSE_CLIPBOARD 1
21452 EOF
21453
21454
21455                 cat >> confdefs.h <<\EOF
21456 #define wxUSE_DATAOBJ 1
21457 EOF
21458
21459     fi
21460 fi
21461
21462 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21463     if test "$wxUSE_GTK" = 1; then
21464         if test "$WXGTK12" != 1; then
21465             echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
21466             wxUSE_DRAG_AND_DROP=no
21467         fi
21468     fi
21469
21470     if test "$wxUSE_MOTIF" = 1; then
21471         echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
21472         wxUSE_DRAG_AND_DROP=no
21473     fi
21474
21475     if test "$wxUSE_X11" = 1; then
21476         echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
21477         wxUSE_DRAG_AND_DROP=no
21478     fi
21479
21480     if test "$wxUSE_MGL" = 1; then
21481         echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
21482         wxUSE_DRAG_AND_DROP=no
21483     fi
21484
21485     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
21486         cat >> confdefs.h <<\EOF
21487 #define wxUSE_DRAG_AND_DROP 1
21488 EOF
21489
21490         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21491     fi
21492
21493 fi
21494
21495 if test "$wxUSE_SPLINES" = "yes" ; then
21496   cat >> confdefs.h <<\EOF
21497 #define wxUSE_SPLINES 1
21498 EOF
21499
21500 fi
21501
21502
21503 USES_CONTROLS=0
21504 if test "$wxUSE_CONTROLS" = "yes"; then
21505   USES_CONTROLS=1
21506 fi
21507
21508 if test "$wxUSE_ACCEL" = "yes"; then
21509   cat >> confdefs.h <<\EOF
21510 #define wxUSE_ACCEL 1
21511 EOF
21512
21513   USES_CONTROLS=1
21514 fi
21515
21516 if test "$wxUSE_BUTTON" = "yes"; then
21517   cat >> confdefs.h <<\EOF
21518 #define wxUSE_BUTTON 1
21519 EOF
21520
21521   USES_CONTROLS=1
21522 fi
21523
21524 if test "$wxUSE_BMPBUTTON" = "yes"; then
21525   cat >> confdefs.h <<\EOF
21526 #define wxUSE_BMPBUTTON 1
21527 EOF
21528
21529   USES_CONTROLS=1
21530 fi
21531
21532 if test "$wxUSE_CALCTRL" = "yes"; then
21533   cat >> confdefs.h <<\EOF
21534 #define wxUSE_CALENDARCTRL 1
21535 EOF
21536
21537   USES_CONTROLS=1
21538   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
21539 fi
21540
21541 if test "$wxUSE_CARET" = "yes"; then
21542   cat >> confdefs.h <<\EOF
21543 #define wxUSE_CARET 1
21544 EOF
21545
21546   USES_CONTROLS=1
21547   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21548 fi
21549
21550 if test "$wxUSE_COMBOBOX" = "yes"; then
21551   cat >> confdefs.h <<\EOF
21552 #define wxUSE_COMBOBOX 1
21553 EOF
21554
21555   USES_CONTROLS=1
21556 fi
21557
21558 if test "$wxUSE_CHOICE" = "yes"; then
21559   cat >> confdefs.h <<\EOF
21560 #define wxUSE_CHOICE 1
21561 EOF
21562
21563   USES_CONTROLS=1
21564 fi
21565
21566 if test "$wxUSE_CHECKBOX" = "yes"; then
21567   cat >> confdefs.h <<\EOF
21568 #define wxUSE_CHECKBOX 1
21569 EOF
21570
21571   USES_CONTROLS=1
21572 fi
21573
21574 if test "$wxUSE_CHECKLST" = "yes"; then
21575   cat >> confdefs.h <<\EOF
21576 #define wxUSE_CHECKLISTBOX 1
21577 EOF
21578
21579   USES_CONTROLS=1
21580   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21581 fi
21582
21583 if test "$wxUSE_DISPLAY" = "yes"; then
21584     cat >> confdefs.h <<\EOF
21585 #define wxUSE_DISPLAY 1
21586 EOF
21587
21588     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
21589 fi
21590
21591 if test "$wxUSE_GAUGE" = "yes"; then
21592   cat >> confdefs.h <<\EOF
21593 #define wxUSE_GAUGE 1
21594 EOF
21595
21596   USES_CONTROLS=1
21597 fi
21598
21599 if test "$wxUSE_GRID" = "yes"; then
21600   cat >> confdefs.h <<\EOF
21601 #define wxUSE_GRID 1
21602 EOF
21603
21604   USES_CONTROLS=1
21605   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
21606 fi
21607
21608 if test "$wxUSE_IMAGLIST" = "yes"; then
21609     cat >> confdefs.h <<\EOF
21610 #define wxUSE_IMAGLIST 1
21611 EOF
21612
21613 fi
21614
21615 if test "$wxUSE_LISTBOX" = "yes"; then
21616     cat >> confdefs.h <<\EOF
21617 #define wxUSE_LISTBOX 1
21618 EOF
21619
21620     USES_CONTROLS=1
21621 fi
21622
21623 if test "$wxUSE_LISTCTRL" = "yes"; then
21624     if test "$wxUSE_IMAGLIST" = "yes"; then
21625         cat >> confdefs.h <<\EOF
21626 #define wxUSE_LISTCTRL 1
21627 EOF
21628
21629         USES_CONTROLS=1
21630         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21631     else
21632         echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
21633     fi
21634 fi
21635
21636 if test "$wxUSE_NOTEBOOK" = "yes"; then
21637     cat >> confdefs.h <<\EOF
21638 #define wxUSE_NOTEBOOK 1
21639 EOF
21640
21641     USES_CONTROLS=1
21642     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21643 fi
21644
21645
21646 if test "$wxUSE_RADIOBOX" = "yes"; then
21647     cat >> confdefs.h <<\EOF
21648 #define wxUSE_RADIOBOX 1
21649 EOF
21650
21651     USES_CONTROLS=1
21652 fi
21653
21654 if test "$wxUSE_RADIOBTN" = "yes"; then
21655     cat >> confdefs.h <<\EOF
21656 #define wxUSE_RADIOBTN 1
21657 EOF
21658
21659     USES_CONTROLS=1
21660 fi
21661
21662 if test "$wxUSE_SASH" = "yes"; then
21663     cat >> confdefs.h <<\EOF
21664 #define wxUSE_SASH 1
21665 EOF
21666
21667     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21668 fi
21669
21670 if test "$wxUSE_SCROLLBAR" = "yes"; then
21671     cat >> confdefs.h <<\EOF
21672 #define wxUSE_SCROLLBAR 1
21673 EOF
21674
21675     USES_CONTROLS=1
21676     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
21677 fi
21678
21679 if test "$wxUSE_SLIDER" = "yes"; then
21680     cat >> confdefs.h <<\EOF
21681 #define wxUSE_SLIDER 1
21682 EOF
21683
21684     USES_CONTROLS=1
21685 fi
21686
21687 if test "$wxUSE_SPINBTN" = "yes"; then
21688     cat >> confdefs.h <<\EOF
21689 #define wxUSE_SPINBTN 1
21690 EOF
21691
21692     USES_CONTROLS=1
21693 fi
21694
21695 if test "$wxUSE_SPINCTRL" = "yes"; then
21696     cat >> confdefs.h <<\EOF
21697 #define wxUSE_SPINCTRL 1
21698 EOF
21699
21700     USES_CONTROLS=1
21701 fi
21702
21703 if test "$wxUSE_SPLITTER" = "yes"; then
21704     cat >> confdefs.h <<\EOF
21705 #define wxUSE_SPLITTER 1
21706 EOF
21707
21708     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21709 fi
21710
21711 if test "$wxUSE_STATBMP" = "yes"; then
21712     cat >> confdefs.h <<\EOF
21713 #define wxUSE_STATBMP 1
21714 EOF
21715
21716     USES_CONTROLS=1
21717 fi
21718
21719 if test "$wxUSE_STATBOX" = "yes"; then
21720     cat >> confdefs.h <<\EOF
21721 #define wxUSE_STATBOX 1
21722 EOF
21723
21724     USES_CONTROLS=1
21725 fi
21726
21727 if test "$wxUSE_STATTEXT" = "yes"; then
21728     cat >> confdefs.h <<\EOF
21729 #define wxUSE_STATTEXT 1
21730 EOF
21731
21732     USES_CONTROLS=1
21733 fi
21734
21735 if test "$wxUSE_STATLINE" = "yes"; then
21736     cat >> confdefs.h <<\EOF
21737 #define wxUSE_STATLINE 1
21738 EOF
21739
21740     USES_CONTROLS=1
21741 fi
21742
21743 if test "$wxUSE_STATUSBAR" = "yes"; then
21744     cat >> confdefs.h <<\EOF
21745 #define wxUSE_STATUSBAR 1
21746 EOF
21747
21748     USES_CONTROLS=1
21749
21750     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
21751 fi
21752
21753 if test "$wxUSE_TABDIALOG" = "yes"; then
21754     cat >> confdefs.h <<\EOF
21755 #define wxUSE_TAB_DIALOG 1
21756 EOF
21757
21758     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21759 fi
21760
21761 if test "$wxUSE_TEXTCTRL" = "yes"; then
21762     cat >> confdefs.h <<\EOF
21763 #define wxUSE_TEXTCTRL 1
21764 EOF
21765
21766     USES_CONTROLS=1
21767     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21768 fi
21769
21770 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21771     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21772         echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
21773         wxUSE_TOGGLEBTN=no
21774     fi
21775     if test "$wxUSE_UNIVERSAL" = "yes"; then
21776         echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
21777         wxUSE_TOGGLEBTN=no
21778     fi
21779
21780     if test "$wxUSE_TOGGLEBTN" = "yes"; then
21781         cat >> confdefs.h <<\EOF
21782 #define wxUSE_TOGGLEBTN 1
21783 EOF
21784
21785         USES_CONTROLS=1
21786     fi
21787 fi
21788
21789 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
21790     cat >> confdefs.h <<\EOF
21791 #define wxUSE_TOOLBAR_SIMPLE 1
21792 EOF
21793
21794     wxUSE_TOOLBAR="yes"
21795     USES_CONTROLS=1
21796 fi
21797
21798 if test "$wxUSE_TOOLBAR" = "yes"; then
21799     cat >> confdefs.h <<\EOF
21800 #define wxUSE_TOOLBAR 1
21801 EOF
21802
21803     USES_CONTROLS=1
21804
21805         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21806         wxUSE_TOOLBAR_NATIVE="yes"
21807     fi
21808
21809     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
21810         cat >> confdefs.h <<\EOF
21811 #define wxUSE_TOOLBAR_NATIVE 1
21812 EOF
21813
21814         USES_CONTROLS=1
21815     fi
21816
21817     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
21818 fi
21819
21820 if test "$wxUSE_TOOLTIPS" = "yes"; then
21821     if test "$wxUSE_MOTIF" = 1; then
21822         echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
21823     else
21824         if test "$wxUSE_UNIVERSAL" = "yes"; then
21825             echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
21826         else
21827             cat >> confdefs.h <<\EOF
21828 #define wxUSE_TOOLTIPS 1
21829 EOF
21830
21831         fi
21832     fi
21833 fi
21834
21835 if test "$wxUSE_TREECTRL" = "yes"; then
21836     if test "$wxUSE_IMAGLIST" = "yes"; then
21837         cat >> confdefs.h <<\EOF
21838 #define wxUSE_TREECTRL 1
21839 EOF
21840
21841         USES_CONTROLS=1
21842         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21843     else
21844         echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
21845     fi
21846 fi
21847
21848 if test "$wxUSE_POPUPWIN" = "yes"; then
21849     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21850         echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
21851     else
21852         if test "$wxUSE_MOTIF" = 1; then
21853             echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
21854         else
21855             if test "$wxUSE_PM" = 1; then
21856                 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
21857             else
21858                 cat >> confdefs.h <<\EOF
21859 #define wxUSE_POPUPWIN 1
21860 EOF
21861
21862
21863                 USES_CONTROLS=1
21864             fi
21865         fi
21866     fi
21867 fi
21868
21869 if test "$wxUSE_TIPWINDOW" = "yes"; then
21870     if test "$wxUSE_PM" = 1; then
21871         echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
21872     else
21873         cat >> confdefs.h <<\EOF
21874 #define wxUSE_TIPWINDOW 1
21875 EOF
21876
21877     fi
21878 fi
21879
21880 if test "$USES_CONTROLS" = 1; then
21881     cat >> confdefs.h <<\EOF
21882 #define wxUSE_CONTROLS 1
21883 EOF
21884
21885 fi
21886
21887
21888
21889 if test "$wxUSE_DRAGIMAGE" = "yes"; then
21890     cat >> confdefs.h <<\EOF
21891 #define wxUSE_DRAGIMAGE 1
21892 EOF
21893
21894     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21895 fi
21896
21897 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
21898     cat >> confdefs.h <<\EOF
21899 #define wxUSE_ACCESSIBILITY 1
21900 EOF
21901
21902     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
21903 fi
21904
21905 if test "$wxUSE_MENUS" = "yes"; then
21906     cat >> confdefs.h <<\EOF
21907 #define wxUSE_MENUS 1
21908 EOF
21909
21910     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
21911 fi
21912
21913 if test "$wxUSE_METAFILE" = "yes"; then
21914     cat >> confdefs.h <<\EOF
21915 #define wxUSE_METAFILE 1
21916 EOF
21917
21918 fi
21919
21920 if test "$wxUSE_MIMETYPE" = "yes"; then
21921     cat >> confdefs.h <<\EOF
21922 #define wxUSE_MIMETYPE 1
21923 EOF
21924
21925 fi
21926
21927 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
21928     cat >> confdefs.h <<\EOF
21929 #define wxUSE_SYSTEM_OPTIONS 1
21930 EOF
21931
21932 if test "$TOOLKIT" = "MSW"; then
21933     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21934 fi
21935
21936 fi
21937
21938 if test "$wxUSE_PROTOCOL" = "yes"; then
21939     if test "$wxUSE_SOCKETS" != "yes"; then
21940         echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
21941         wxUSE_PROTOCOL=no
21942     fi
21943
21944     if test "$wxUSE_PROTOCOL" = "yes"; then
21945         cat >> confdefs.h <<\EOF
21946 #define wxUSE_PROTOCOL 1
21947 EOF
21948
21949
21950         if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
21951             cat >> confdefs.h <<\EOF
21952 #define wxUSE_PROTOCOL_HTTP 1
21953 EOF
21954
21955         fi
21956         if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
21957             cat >> confdefs.h <<\EOF
21958 #define wxUSE_PROTOCOL_FTP 1
21959 EOF
21960
21961         fi
21962         if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
21963             cat >> confdefs.h <<\EOF
21964 #define wxUSE_PROTOCOL_FILE 1
21965 EOF
21966
21967         fi
21968     fi
21969 fi
21970
21971 if test "$wxUSE_URL" = "yes"; then
21972     if test "$wxUSE_PROTOCOL" != "yes"; then
21973         echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
21974         wxUSE_URL=no
21975     fi
21976     if test "$wxUSE_URL" = "yes"; then
21977         cat >> confdefs.h <<\EOF
21978 #define wxUSE_URL 1
21979 EOF
21980
21981     fi
21982 fi
21983
21984 if test "$wxUSE_MINIFRAME" = "yes"; then
21985     cat >> confdefs.h <<\EOF
21986 #define wxUSE_MINIFRAME 1
21987 EOF
21988
21989     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21990 fi
21991
21992 if test "$wxUSE_HTML" = "yes"; then
21993     cat >> confdefs.h <<\EOF
21994 #define wxUSE_HTML 1
21995 EOF
21996
21997     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html htlbox"
21998 fi
21999
22000 if test "$wxUSE_VALIDATORS" = "yes"; then
22001     cat >> confdefs.h <<\EOF
22002 #define wxUSE_VALIDATORS 1
22003 EOF
22004
22005     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
22006 fi
22007
22008 if test "$wxUSE_PALETTE" = "yes" ; then
22009   cat >> confdefs.h <<\EOF
22010 #define wxUSE_PALETTE 1
22011 EOF
22012
22013 fi
22014
22015 if test "$wxUSE_IMAGE" = "yes" ; then
22016   cat >> confdefs.h <<\EOF
22017 #define wxUSE_IMAGE 1
22018 EOF
22019
22020 fi
22021
22022 if test "$wxUSE_GIF" = "yes" ; then
22023   cat >> confdefs.h <<\EOF
22024 #define wxUSE_GIF 1
22025 EOF
22026
22027 fi
22028
22029 if test "$wxUSE_PCX" = "yes" ; then
22030   cat >> confdefs.h <<\EOF
22031 #define wxUSE_PCX 1
22032 EOF
22033
22034 fi
22035
22036 if test "$wxUSE_IFF" = "yes" ; then
22037   cat >> confdefs.h <<\EOF
22038 #define wxUSE_IFF 1
22039 EOF
22040
22041 fi
22042
22043 if test "$wxUSE_PNM" = "yes" ; then
22044   cat >> confdefs.h <<\EOF
22045 #define wxUSE_PNM 1
22046 EOF
22047
22048 fi
22049
22050 if test "$wxUSE_XPM" = "yes" ; then
22051   cat >> confdefs.h <<\EOF
22052 #define wxUSE_XPM 1
22053 EOF
22054
22055 fi
22056
22057 if test "$wxUSE_ICO_CUR" = "yes" ; then
22058   cat >> confdefs.h <<\EOF
22059 #define wxUSE_ICO_CUR 1
22060 EOF
22061
22062 fi
22063
22064 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
22065     LIBS=" -lunicows $LIBS"
22066 fi
22067
22068
22069 if test "$wxUSE_CHOICEDLG" = "yes"; then
22070     cat >> confdefs.h <<\EOF
22071 #define wxUSE_CHOICEDLG 1
22072 EOF
22073
22074 fi
22075
22076 if test "$wxUSE_COLOURDLG" = "yes"; then
22077     cat >> confdefs.h <<\EOF
22078 #define wxUSE_COLOURDLG 1
22079 EOF
22080
22081 fi
22082
22083 if test "$wxUSE_FILEDLG" = "yes"; then
22084     cat >> confdefs.h <<\EOF
22085 #define wxUSE_FILEDLG 1
22086 EOF
22087
22088 fi
22089
22090 if test "$wxUSE_FINDREPLDLG" = "yes"; then
22091     cat >> confdefs.h <<\EOF
22092 #define wxUSE_FINDREPLDLG 1
22093 EOF
22094
22095 fi
22096
22097 if test "$wxUSE_FONTDLG" = "yes"; then
22098     cat >> confdefs.h <<\EOF
22099 #define wxUSE_FONTDLG 1
22100 EOF
22101
22102 fi
22103
22104 if test "$wxUSE_DIRDLG" = "yes"; then
22105     if test "$wxUSE_TREECTRL" != "yes"; then
22106         echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
22107     else
22108         cat >> confdefs.h <<\EOF
22109 #define wxUSE_DIRDLG 1
22110 EOF
22111
22112     fi
22113 fi
22114
22115 if test "$wxUSE_MSGDLG" = "yes"; then
22116     cat >> confdefs.h <<\EOF
22117 #define wxUSE_MSGDLG 1
22118 EOF
22119
22120 fi
22121
22122 if test "$wxUSE_NUMBERDLG" = "yes"; then
22123     cat >> confdefs.h <<\EOF
22124 #define wxUSE_NUMBERDLG 1
22125 EOF
22126
22127 fi
22128
22129 if test "$wxUSE_PROGRESSDLG" = "yes"; then
22130     if test "$wxUSE_CONSTRAINTS" != "yes"; then
22131        echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
22132     else
22133         cat >> confdefs.h <<\EOF
22134 #define wxUSE_PROGRESSDLG 1
22135 EOF
22136
22137     fi
22138 fi
22139
22140 if test "$wxUSE_SPLASH" = "yes"; then
22141     cat >> confdefs.h <<\EOF
22142 #define wxUSE_SPLASH 1
22143 EOF
22144
22145 fi
22146
22147 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
22148     if test "$wxUSE_CONSTRAINTS" != "yes"; then
22149        echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
22150     else
22151         cat >> confdefs.h <<\EOF
22152 #define wxUSE_STARTUP_TIPS 1
22153 EOF
22154
22155     fi
22156 fi
22157
22158 if test "$wxUSE_TEXTDLG" = "yes"; then
22159     cat >> confdefs.h <<\EOF
22160 #define wxUSE_TEXTDLG 1
22161 EOF
22162
22163 fi
22164
22165 if test "$wxUSE_WIZARDDLG" = "yes"; then
22166     cat >> confdefs.h <<\EOF
22167 #define wxUSE_WIZARDDLG 1
22168 EOF
22169
22170     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
22171 fi
22172
22173
22174 if test "$cross_compiling" = "yes"; then
22175         OSINFO="\"$host\""
22176 else
22177         OSINFO=`uname -s -r -m`
22178     OSINFO="\"$OSINFO\""
22179 fi
22180
22181 cat >> confdefs.h <<EOF
22182 #define WXWIN_OS_DESCRIPTION $OSINFO
22183 EOF
22184
22185
22186
22187 if test "x$prefix" != "xNONE"; then
22188     wxPREFIX=$prefix
22189 else
22190     wxPREFIX=$ac_default_prefix
22191 fi
22192
22193 cat >> confdefs.h <<EOF
22194 #define wxINSTALL_PREFIX "$wxPREFIX"
22195 EOF
22196
22197
22198 top_builddir=`pwd`
22199
22200
22201
22202
22203 if test "$wxUSE_MAC" = 1 ; then
22204     LDFLAGS="$LDFLAGS -framework Carbon -framework System"
22205 fi
22206 if test "$wxUSE_COCOA" = 1 ; then
22207     LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
22208 fi
22209
22210
22211 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
22212
22213 have_cos=0
22214 have_floor=0
22215 for ac_func in cos
22216 do
22217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22218 echo "configure:22219: checking for $ac_func" >&5
22219 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22220   echo $ac_n "(cached) $ac_c" 1>&6
22221 else
22222   cat > conftest.$ac_ext <<EOF
22223 #line 22224 "configure"
22224 #include "confdefs.h"
22225 /* System header to define __stub macros and hopefully few prototypes,
22226     which can conflict with char $ac_func(); below.  */
22227 #include <assert.h>
22228 /* Override any gcc2 internal prototype to avoid an error.  */
22229 /* We use char because int might match the return type of a gcc2
22230     builtin and then its argument prototype would still apply.  */
22231 char $ac_func();
22232
22233 int main() {
22234
22235 /* The GNU C library defines this for functions which it implements
22236     to always fail with ENOSYS.  Some functions are actually named
22237     something starting with __ and the normal name is an alias.  */
22238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22239 choke me
22240 #else
22241 $ac_func();
22242 #endif
22243
22244 ; return 0; }
22245 EOF
22246 if { (eval echo configure:22247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22247   rm -rf conftest*
22248   eval "ac_cv_func_$ac_func=yes"
22249 else
22250   echo "configure: failed program was:" >&5
22251   cat conftest.$ac_ext >&5
22252   rm -rf conftest*
22253   eval "ac_cv_func_$ac_func=no"
22254 fi
22255 rm -f conftest*
22256 fi
22257
22258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22259   echo "$ac_t""yes" 1>&6
22260     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22261   cat >> confdefs.h <<EOF
22262 #define $ac_tr_func 1
22263 EOF
22264  have_cos=1
22265 else
22266   echo "$ac_t""no" 1>&6
22267 fi
22268 done
22269
22270 for ac_func in floor
22271 do
22272 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22273 echo "configure:22274: checking for $ac_func" >&5
22274 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22275   echo $ac_n "(cached) $ac_c" 1>&6
22276 else
22277   cat > conftest.$ac_ext <<EOF
22278 #line 22279 "configure"
22279 #include "confdefs.h"
22280 /* System header to define __stub macros and hopefully few prototypes,
22281     which can conflict with char $ac_func(); below.  */
22282 #include <assert.h>
22283 /* Override any gcc2 internal prototype to avoid an error.  */
22284 /* We use char because int might match the return type of a gcc2
22285     builtin and then its argument prototype would still apply.  */
22286 char $ac_func();
22287
22288 int main() {
22289
22290 /* The GNU C library defines this for functions which it implements
22291     to always fail with ENOSYS.  Some functions are actually named
22292     something starting with __ and the normal name is an alias.  */
22293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22294 choke me
22295 #else
22296 $ac_func();
22297 #endif
22298
22299 ; return 0; }
22300 EOF
22301 if { (eval echo configure:22302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22302   rm -rf conftest*
22303   eval "ac_cv_func_$ac_func=yes"
22304 else
22305   echo "configure: failed program was:" >&5
22306   cat conftest.$ac_ext >&5
22307   rm -rf conftest*
22308   eval "ac_cv_func_$ac_func=no"
22309 fi
22310 rm -f conftest*
22311 fi
22312
22313 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22314   echo "$ac_t""yes" 1>&6
22315     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22316   cat >> confdefs.h <<EOF
22317 #define $ac_tr_func 1
22318 EOF
22319  have_floor=1
22320 else
22321   echo "$ac_t""no" 1>&6
22322 fi
22323 done
22324
22325 echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
22326 echo "configure:22327: checking if floating point functions link without -lm" >&5
22327 if test "$have_cos" = 1 -a "$have_floor" = 1; then
22328     echo "$ac_t""yes" 1>&6
22329 else
22330     echo "$ac_t""no" 1>&6
22331     LIBS="$LIBS -lm"
22332     # use different functions to avoid configure caching
22333     have_sin=0
22334     have_ceil=0
22335     for ac_func in sin
22336 do
22337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22338 echo "configure:22339: checking for $ac_func" >&5
22339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22340   echo $ac_n "(cached) $ac_c" 1>&6
22341 else
22342   cat > conftest.$ac_ext <<EOF
22343 #line 22344 "configure"
22344 #include "confdefs.h"
22345 /* System header to define __stub macros and hopefully few prototypes,
22346     which can conflict with char $ac_func(); below.  */
22347 #include <assert.h>
22348 /* Override any gcc2 internal prototype to avoid an error.  */
22349 /* We use char because int might match the return type of a gcc2
22350     builtin and then its argument prototype would still apply.  */
22351 char $ac_func();
22352
22353 int main() {
22354
22355 /* The GNU C library defines this for functions which it implements
22356     to always fail with ENOSYS.  Some functions are actually named
22357     something starting with __ and the normal name is an alias.  */
22358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22359 choke me
22360 #else
22361 $ac_func();
22362 #endif
22363
22364 ; return 0; }
22365 EOF
22366 if { (eval echo configure:22367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22367   rm -rf conftest*
22368   eval "ac_cv_func_$ac_func=yes"
22369 else
22370   echo "configure: failed program was:" >&5
22371   cat conftest.$ac_ext >&5
22372   rm -rf conftest*
22373   eval "ac_cv_func_$ac_func=no"
22374 fi
22375 rm -f conftest*
22376 fi
22377
22378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22379   echo "$ac_t""yes" 1>&6
22380     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22381   cat >> confdefs.h <<EOF
22382 #define $ac_tr_func 1
22383 EOF
22384  have_sin=1
22385 else
22386   echo "$ac_t""no" 1>&6
22387 fi
22388 done
22389
22390     for ac_func in ceil
22391 do
22392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22393 echo "configure:22394: checking for $ac_func" >&5
22394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22395   echo $ac_n "(cached) $ac_c" 1>&6
22396 else
22397   cat > conftest.$ac_ext <<EOF
22398 #line 22399 "configure"
22399 #include "confdefs.h"
22400 /* System header to define __stub macros and hopefully few prototypes,
22401     which can conflict with char $ac_func(); below.  */
22402 #include <assert.h>
22403 /* Override any gcc2 internal prototype to avoid an error.  */
22404 /* We use char because int might match the return type of a gcc2
22405     builtin and then its argument prototype would still apply.  */
22406 char $ac_func();
22407
22408 int main() {
22409
22410 /* The GNU C library defines this for functions which it implements
22411     to always fail with ENOSYS.  Some functions are actually named
22412     something starting with __ and the normal name is an alias.  */
22413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22414 choke me
22415 #else
22416 $ac_func();
22417 #endif
22418
22419 ; return 0; }
22420 EOF
22421 if { (eval echo configure:22422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22422   rm -rf conftest*
22423   eval "ac_cv_func_$ac_func=yes"
22424 else
22425   echo "configure: failed program was:" >&5
22426   cat conftest.$ac_ext >&5
22427   rm -rf conftest*
22428   eval "ac_cv_func_$ac_func=no"
22429 fi
22430 rm -f conftest*
22431 fi
22432
22433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22434   echo "$ac_t""yes" 1>&6
22435     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22436   cat >> confdefs.h <<EOF
22437 #define $ac_tr_func 1
22438 EOF
22439  have_ceil=1
22440 else
22441   echo "$ac_t""no" 1>&6
22442 fi
22443 done
22444
22445     echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
22446 echo "configure:22447: checking if floating point functions link with -lm" >&5
22447     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22448         echo "$ac_t""yes" 1>&6
22449     else
22450         echo "$ac_t""no" 1>&6
22451         # not sure we should warn the user, crash, etc.
22452     fi
22453 fi
22454
22455 if test "$wxUSE_GUI" = "yes"; then
22456
22457     LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22458
22459         
22460             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22461                      drawing dynamic erase event exec font image \
22462                      minimal propsize rotate shaped widgets"
22463
22464         CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22465 else
22466     SAMPLES_SUBDIRS="console"
22467 fi
22468
22469
22470 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22471 -I\${top_srcdir}/include \
22472 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22473 $TOOLKIT_INCLUDE"
22474
22475 if test "$wxUSE_GTK" = 1; then
22476     WXCONFIG_INCLUDE=
22477 else
22478     WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22479 fi
22480
22481 if test "$GXX" = yes ; then
22482         CXXWARNINGS="-Wall"
22483         
22484             if test "$wxUSE_NO_DEPS" = "no" ; then
22485         CFLAGS="-MMD $CFLAGS"
22486         CXXFLAGS="-MMD $CXXFLAGS"
22487     fi
22488 fi
22489
22490 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
22491
22492 CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
22493 CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22494 CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22495 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22496
22497 LDFLAGS="$LDFLAGS $PROFILE"
22498
22499 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22500
22501
22502
22503
22504
22505
22506
22507
22508
22509
22510
22511
22512
22513
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541
22542
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553
22554
22555
22556
22557
22558
22559
22560
22561
22562
22563
22564
22565
22566
22567
22568
22569
22570
22571
22572
22573
22574
22575
22576
22577
22578
22579
22580
22581
22582
22583
22584
22585
22586
22587
22588
22589
22590
22591
22592
22593
22594
22595
22596
22597
22598
22599
22600
22601 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
22602 echo "configure:22603: checking whether ${MAKE-make} sets \${MAKE}" >&5
22603 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22604 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22605   echo $ac_n "(cached) $ac_c" 1>&6
22606 else
22607   cat > conftestmake <<\EOF
22608 all:
22609         @echo 'ac_maketemp="${MAKE}"'
22610 EOF
22611 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22612 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
22613 if test -n "$ac_maketemp"; then
22614   eval ac_cv_prog_make_${ac_make}_set=yes
22615 else
22616   eval ac_cv_prog_make_${ac_make}_set=no
22617 fi
22618 rm -f conftestmake
22619 fi
22620 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
22621   echo "$ac_t""yes" 1>&6
22622   SET_MAKE=
22623 else
22624   echo "$ac_t""no" 1>&6
22625   SET_MAKE="MAKE=${MAKE-make}"
22626 fi
22627
22628
22629 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22630     mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
22631 fi
22632
22633
22634
22635 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22636 wx_cv_if_gnu_make=$IF_GNU_MAKE
22637 wx_cv_path_ifs=$PATH_IFS
22638 wx_cv_program_ext=$PROGRAM_EXT
22639 wx_cv_target_library=$WX_TARGET_LIBRARY
22640 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22641 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
22642 wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22643 wx_cv_release=${WX_RELEASE}
22644 wx_cv_current=${WX_CURRENT}
22645 wx_cv_revision=${WX_REVISION}
22646 wx_cv_age=${WX_AGE}
22647 wx_cv_use_gui=${USE_GUI}
22648 wx_cv_use_resources=${wxUSE_RESOURCES}
22649 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22650        wx_cv_path_ifs wx_cv_program_ext \
22651        wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
22652        wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
22653        wx_cv_use_gui wx_cv_use_resources
22654
22655 subdirs="demos samples utils contrib"
22656
22657
22658 trap '' 1 2 15
22659 cat > confcache <<\EOF
22660 # This file is a shell script that caches the results of configure
22661 # tests run on this system so they can be shared between configure
22662 # scripts and configure runs.  It is not useful on other systems.
22663 # If it contains results you don't want to keep, you may remove or edit it.
22664 #
22665 # By default, configure uses ./config.cache as the cache file,
22666 # creating it if it does not exist already.  You can give configure
22667 # the --cache-file=FILE option to use a different cache file; that is
22668 # what configure does when it calls configure scripts in
22669 # subdirectories, so they share the cache.
22670 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22671 # config.status only pays attention to the cache file if you give it the
22672 # --recheck option to rerun configure.
22673 #
22674 EOF
22675 # The following way of writing the cache mishandles newlines in values,
22676 # but we know of no workaround that is simple, portable, and efficient.
22677 # So, don't put newlines in cache variables' values.
22678 # Ultrix sh set writes to stderr and can't be redirected directly,
22679 # and sets the high bit in the cache file unless we assign to the vars.
22680 (set) 2>&1 |
22681   case `(ac_space=' '; set | grep ac_space) 2>&1` in
22682   *ac_space=\ *)
22683     # `set' does not quote correctly, so add quotes (double-quote substitution
22684     # turns \\\\ into \\, and sed turns \\ into \).
22685     sed -n \
22686       -e "s/'/'\\\\''/g" \
22687       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22688     ;;
22689   *)
22690     # `set' quotes correctly as required by POSIX, so do not add quotes.
22691     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22692     ;;
22693   esac >> confcache
22694 if cmp -s $cache_file confcache; then
22695   :
22696 else
22697   if test -w $cache_file; then
22698     echo "updating cache $cache_file"
22699     cat confcache > $cache_file
22700   else
22701     echo "not updating unwritable cache $cache_file"
22702   fi
22703 fi
22704 rm -f confcache
22705
22706 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22707
22708 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22709 # Let make expand exec_prefix.
22710 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22711
22712 # Any assignment to VPATH causes Sun make to only execute
22713 # the first set of double-colon rules, so remove it if not needed.
22714 # If there is a colon in the path, we need to keep it.
22715 if test "x$srcdir" = x.; then
22716   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
22717 fi
22718
22719 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22720
22721 DEFS=-DHAVE_CONFIG_H
22722
22723 # Without the "./", some shells look in PATH for config.status.
22724 : ${CONFIG_STATUS=./config.status}
22725
22726 echo creating $CONFIG_STATUS
22727 rm -f $CONFIG_STATUS
22728 cat > $CONFIG_STATUS <<EOF
22729 #! /bin/sh
22730 # Generated automatically by configure.
22731 # Run this file to recreate the current configuration.
22732 # This directory was configured as follows,
22733 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22734 #
22735 # $0 $ac_configure_args
22736 #
22737 # Compiler output produced by configure, useful for debugging
22738 # configure, is in ./config.log if it exists.
22739
22740 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22741 for ac_option
22742 do
22743   case "\$ac_option" in
22744   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22745     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22746     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22747   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22748     echo "$CONFIG_STATUS generated by autoconf version 2.13"
22749     exit 0 ;;
22750   -help | --help | --hel | --he | --h)
22751     echo "\$ac_cs_usage"; exit 0 ;;
22752   *) echo "\$ac_cs_usage"; exit 1 ;;
22753   esac
22754 done
22755
22756 ac_given_srcdir=$srcdir
22757 ac_given_INSTALL="$INSTALL"
22758
22759 trap 'rm -fr `echo "
22760             wx-config
22761             version-script
22762             src/make.env
22763             src/makeprog.env
22764             src/makelib.env
22765             Makefile
22766            setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22767 EOF
22768 cat >> $CONFIG_STATUS <<EOF
22769
22770 # Protect against being on the right side of a sed subst in config.status.
22771 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22772  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22773 $ac_vpsub
22774 $extrasub
22775 s%@SHELL@%$SHELL%g
22776 s%@CFLAGS@%$CFLAGS%g
22777 s%@CPPFLAGS@%$CPPFLAGS%g
22778 s%@CXXFLAGS@%$CXXFLAGS%g
22779 s%@FFLAGS@%$FFLAGS%g
22780 s%@DEFS@%$DEFS%g
22781 s%@LDFLAGS@%$LDFLAGS%g
22782 s%@LIBS@%$LIBS%g
22783 s%@exec_prefix@%$exec_prefix%g
22784 s%@prefix@%$prefix%g
22785 s%@program_transform_name@%$program_transform_name%g
22786 s%@bindir@%$bindir%g
22787 s%@sbindir@%$sbindir%g
22788 s%@libexecdir@%$libexecdir%g
22789 s%@datadir@%$datadir%g
22790 s%@sysconfdir@%$sysconfdir%g
22791 s%@sharedstatedir@%$sharedstatedir%g
22792 s%@localstatedir@%$localstatedir%g
22793 s%@libdir@%$libdir%g
22794 s%@includedir@%$includedir%g
22795 s%@oldincludedir@%$oldincludedir%g
22796 s%@infodir@%$infodir%g
22797 s%@mandir@%$mandir%g
22798 s%@host@%$host%g
22799 s%@host_alias@%$host_alias%g
22800 s%@host_cpu@%$host_cpu%g
22801 s%@host_vendor@%$host_vendor%g
22802 s%@host_os@%$host_os%g
22803 s%@target@%$target%g
22804 s%@target_alias@%$target_alias%g
22805 s%@target_cpu@%$target_cpu%g
22806 s%@target_vendor@%$target_vendor%g
22807 s%@target_os@%$target_os%g
22808 s%@build@%$build%g
22809 s%@build_alias@%$build_alias%g
22810 s%@build_cpu@%$build_cpu%g
22811 s%@build_vendor@%$build_vendor%g
22812 s%@build_os@%$build_os%g
22813 s%@CC@%$CC%g
22814 s%@CPP@%$CPP%g
22815 s%@CXX@%$CXX%g
22816 s%@RANLIB@%$RANLIB%g
22817 s%@AR@%$AR%g
22818 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22819 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22820 s%@INSTALL_DATA@%$INSTALL_DATA%g
22821 s%@STRIP@%$STRIP%g
22822 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22823 s%@YACC@%$YACC%g
22824 s%@LEX@%$LEX%g
22825 s%@LEXLIB@%$LEXLIB%g
22826 s%@LN_S@%$LN_S%g
22827 s%@CXXCPP@%$CXXCPP%g
22828 s%@PKG_CONFIG@%$PKG_CONFIG%g
22829 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22830 s%@GTK_LIBS@%$GTK_LIBS%g
22831 s%@GTK_CONFIG@%$GTK_CONFIG%g
22832 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22833 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22834 s%@X_CFLAGS@%$X_CFLAGS%g
22835 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22836 s%@X_LIBS@%$X_LIBS%g
22837 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
22838 s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22839 s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22840 s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22841 s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
22842 s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22843 s%@RESCOMP@%$RESCOMP%g
22844 s%@DEREZ@%$DEREZ%g
22845 s%@SETFILE@%$SETFILE%g
22846 s%@LIBICONV@%$LIBICONV%g
22847 s%@LEX_STEM@%$LEX_STEM%g
22848 s%@PATH_IFS@%$PATH_IFS%g
22849 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22850 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22851 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22852 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22853 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
22854 s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
22855 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22856 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22857 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22858 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22859 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22860 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22861 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22862 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22863 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22864 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22865 s%@WX_ALL@%$WX_ALL%g
22866 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22867 s%@SHARED_LD@%$SHARED_LD%g
22868 s%@PIC_FLAG@%$PIC_FLAG%g
22869 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22870 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22871 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22872 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22873 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22874 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
22875 s%@STATIC_FLAG@%$STATIC_FLAG%g
22876 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22877 s%@USE_GUI@%$USE_GUI%g
22878 s%@AFMINSTALL@%$AFMINSTALL%g
22879 s%@WIN32INSTALL@%$WIN32INSTALL%g
22880 s%@TOOLKIT@%$TOOLKIT%g
22881 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22882 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22883 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22884 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22885 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
22886 s%@top_builddir@%$top_builddir%g
22887 s%@cross_compiling@%$cross_compiling%g
22888 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22889 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22890 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22891 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22892 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22893 s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
22894 s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
22895 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22896 s%@ALL_HEADERS@%$ALL_HEADERS%g
22897 s%@ALL_SOURCES@%$ALL_SOURCES%g
22898 s%@GUIDIST@%$GUIDIST%g
22899 s%@PORT_FILES@%$PORT_FILES%g
22900 s%@DISTDIR@%$DISTDIR%g
22901 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22902 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
22903 s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
22904 s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22905 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22906 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22907 s%@EXTRADEFS@%$EXTRADEFS%g
22908 s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
22909 s%@RESFLAGS@%$RESFLAGS%g
22910 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22911 s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22912 s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22913 s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22914 s%@LIBWXMACRES@%$LIBWXMACRES%g
22915 s%@MACRESCOMP@%$MACRESCOMP%g
22916 s%@MACSETFILE@%$MACSETFILE%g
22917 s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
22918 s%@GCC@%$GCC%g
22919 s%@DLLTOOL@%$DLLTOOL%g
22920 s%@AS@%$AS%g
22921 s%@NM@%$NM%g
22922 s%@LD@%$LD%g
22923 s%@MAKEINFO@%$MAKEINFO%g
22924 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
22925 s%@INSTALL_DIR@%$INSTALL_DIR%g
22926 s%@SET_MAKE@%$SET_MAKE%g
22927 s%@subdirs@%$subdirs%g
22928
22929 CEOF
22930 EOF
22931
22932 cat >> $CONFIG_STATUS <<\EOF
22933
22934 # Split the substitutions into bite-sized pieces for seds with
22935 # small command number limits, like on Digital OSF/1 and HP-UX.
22936 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22937 ac_file=1 # Number of current file.
22938 ac_beg=1 # First line for current file.
22939 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22940 ac_more_lines=:
22941 ac_sed_cmds=""
22942 while $ac_more_lines; do
22943   if test $ac_beg -gt 1; then
22944     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22945   else
22946     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22947   fi
22948   if test ! -s conftest.s$ac_file; then
22949     ac_more_lines=false
22950     rm -f conftest.s$ac_file
22951   else
22952     if test -z "$ac_sed_cmds"; then
22953       ac_sed_cmds="sed -f conftest.s$ac_file"
22954     else
22955       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22956     fi
22957     ac_file=`expr $ac_file + 1`
22958     ac_beg=$ac_end
22959     ac_end=`expr $ac_end + $ac_max_sed_cmds`
22960   fi
22961 done
22962 if test -z "$ac_sed_cmds"; then
22963   ac_sed_cmds=cat
22964 fi
22965 EOF
22966
22967 cat >> $CONFIG_STATUS <<EOF
22968
22969 CONFIG_FILES=\${CONFIG_FILES-"wx-config
22970             version-script
22971             src/make.env
22972             src/makeprog.env
22973             src/makelib.env
22974             Makefile
22975           "}
22976 EOF
22977 cat >> $CONFIG_STATUS <<\EOF
22978 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22979   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22980   case "$ac_file" in
22981   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22982        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22983   *) ac_file_in="${ac_file}.in" ;;
22984   esac
22985
22986   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22987
22988   # Remove last slash and all that follows it.  Not all systems have dirname.
22989   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22990   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22991     # The file is in a subdirectory.
22992     test ! -d "$ac_dir" && mkdir "$ac_dir"
22993     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22994     # A "../" for each directory in $ac_dir_suffix.
22995     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22996   else
22997     ac_dir_suffix= ac_dots=
22998   fi
22999
23000   case "$ac_given_srcdir" in
23001   .)  srcdir=.
23002       if test -z "$ac_dots"; then top_srcdir=.
23003       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23004   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
23005   *) # Relative path.
23006     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23007     top_srcdir="$ac_dots$ac_given_srcdir" ;;
23008   esac
23009
23010   case "$ac_given_INSTALL" in
23011   [/$]*) INSTALL="$ac_given_INSTALL" ;;
23012   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23013   esac
23014
23015   echo creating "$ac_file"
23016   rm -f "$ac_file"
23017   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23018   case "$ac_file" in
23019   *Makefile*) ac_comsub="1i\\
23020 # $configure_input" ;;
23021   *) ac_comsub= ;;
23022   esac
23023
23024   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23025   sed -e "$ac_comsub
23026 s%@configure_input@%$configure_input%g
23027 s%@srcdir@%$srcdir%g
23028 s%@top_srcdir@%$top_srcdir%g
23029 s%@INSTALL@%$INSTALL%g
23030 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
23031 fi; done
23032 rm -f conftest.s*
23033
23034 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23035 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23036 #
23037 # ac_d sets the value in "#define NAME VALUE" lines.
23038 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
23039 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
23040 ac_dC='\3'
23041 ac_dD='%g'
23042 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23043 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23044 ac_uB='\([      ]\)%\1#\2define\3'
23045 ac_uC=' '
23046 ac_uD='\4%g'
23047 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23048 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23049 ac_eB='$%\1#\2define\3'
23050 ac_eC=' '
23051 ac_eD='%g'
23052
23053 if test "${CONFIG_HEADERS+set}" != set; then
23054 EOF
23055 cat >> $CONFIG_STATUS <<EOF
23056   CONFIG_HEADERS="setup.h:setup.h.in"
23057 EOF
23058 cat >> $CONFIG_STATUS <<\EOF
23059 fi
23060 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
23061   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23062   case "$ac_file" in
23063   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23064        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23065   *) ac_file_in="${ac_file}.in" ;;
23066   esac
23067
23068   echo creating $ac_file
23069
23070   rm -f conftest.frag conftest.in conftest.out
23071   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23072   cat $ac_file_inputs > conftest.in
23073
23074 EOF
23075
23076 # Transform confdefs.h into a sed script conftest.vals that substitutes
23077 # the proper values into config.h.in to produce config.h.  And first:
23078 # Protect against being on the right side of a sed subst in config.status.
23079 # Protect against being in an unquoted here document in config.status.
23080 rm -f conftest.vals
23081 cat > conftest.hdr <<\EOF
23082 s/[\\&%]/\\&/g
23083 s%[\\$`]%\\&%g
23084 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
23085 s%ac_d%ac_u%gp
23086 s%ac_u%ac_e%gp
23087 EOF
23088 sed -n -f conftest.hdr confdefs.h > conftest.vals
23089 rm -f conftest.hdr
23090
23091 # This sed command replaces #undef with comments.  This is necessary, for
23092 # example, in the case of _POSIX_SOURCE, which is predefined and required
23093 # on some systems where configure will not decide to define it.
23094 cat >> conftest.vals <<\EOF
23095 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
23096 EOF
23097
23098 # Break up conftest.vals because some shells have a limit on
23099 # the size of here documents, and old seds have small limits too.
23100
23101 rm -f conftest.tail
23102 while :
23103 do
23104   ac_lines=`grep -c . conftest.vals`
23105   # grep -c gives empty output for an empty file on some AIX systems.
23106   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
23107   # Write a limited-size here document to conftest.frag.
23108   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
23109   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
23110   echo 'CEOF
23111   sed -f conftest.frag conftest.in > conftest.out
23112   rm -f conftest.in
23113   mv conftest.out conftest.in
23114 ' >> $CONFIG_STATUS
23115   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23116   rm -f conftest.vals
23117   mv conftest.tail conftest.vals
23118 done
23119 rm -f conftest.vals
23120
23121 cat >> $CONFIG_STATUS <<\EOF
23122   rm -f conftest.frag conftest.h
23123   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
23124   cat conftest.in >> conftest.h
23125   rm -f conftest.in
23126   if cmp -s $ac_file conftest.h 2>/dev/null; then
23127     echo "$ac_file is unchanged"
23128     rm -f conftest.h
23129   else
23130     # Remove last slash and all that follows it.  Not all systems have dirname.
23131       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23132       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23133       # The file is in a subdirectory.
23134       test ! -d "$ac_dir" && mkdir "$ac_dir"
23135     fi
23136     rm -f $ac_file
23137     mv conftest.h $ac_file
23138   fi
23139 fi; done
23140
23141 EOF
23142 cat >> $CONFIG_STATUS <<EOF
23143
23144             TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
23145             LN_S="${LN_S}"
23146           
23147          
23148 EOF
23149 cat >> $CONFIG_STATUS <<\EOF
23150
23151                                                                                                 if test ! -h wx-config; then
23152                 chmod +x wx-config
23153                 mv wx-config wx${TOOLCHAIN_NAME}-config
23154                 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
23155             fi
23156
23157             if test ! -d lib; then
23158               mkdir lib
23159             fi
23160             if test ! -d lib/wx; then
23161               mkdir lib/wx
23162             fi
23163             if test ! -d lib/wx/include; then
23164               mkdir lib/wx/include
23165             fi
23166             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
23167               mkdir lib/wx/include/${TOOLCHAIN_NAME}
23168             fi
23169             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
23170               mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
23171             fi
23172             if test -f setup.h; then
23173               mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
23174             fi
23175           
23176 exit 0
23177 EOF
23178 chmod +x $CONFIG_STATUS
23179 rm -fr confdefs* $ac_clean_files
23180 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
23181
23182 if test "$no_recursion" != yes; then
23183
23184   # Remove --cache-file and --srcdir arguments so they do not pile up.
23185   ac_sub_configure_args=
23186   ac_prev=
23187   for ac_arg in $ac_configure_args; do
23188     if test -n "$ac_prev"; then
23189       ac_prev=
23190       continue
23191     fi
23192     case "$ac_arg" in
23193     -cache-file | --cache-file | --cache-fil | --cache-fi \
23194     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23195       ac_prev=cache_file ;;
23196     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23197     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
23198       ;;
23199     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23200       ac_prev=srcdir ;;
23201     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23202       ;;
23203     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23204     esac
23205   done
23206
23207   for ac_config_dir in demos samples utils contrib; do
23208
23209     # Do not complain, so a configure script can configure whichever
23210     # parts of a large source tree are present.
23211     if test ! -d $srcdir/$ac_config_dir; then
23212       continue
23213     fi
23214
23215     echo configuring in $ac_config_dir
23216
23217     case "$srcdir" in
23218     .) ;;
23219     *)
23220       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
23221       else
23222         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
23223       fi
23224       ;;
23225     esac
23226
23227     ac_popdir=`pwd`
23228     cd $ac_config_dir
23229
23230       # A "../" for each directory in /$ac_config_dir.
23231       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
23232
23233     case "$srcdir" in
23234     .) # No --srcdir option.  We are building in place.
23235       ac_sub_srcdir=$srcdir ;;
23236     /*) # Absolute path.
23237       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
23238     *) # Relative path.
23239       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
23240     esac
23241
23242     # Check for guested configure; otherwise get Cygnus style configure.
23243     if test -f $ac_sub_srcdir/configure; then
23244       ac_sub_configure=$ac_sub_srcdir/configure
23245     elif test -f $ac_sub_srcdir/configure.in; then
23246       ac_sub_configure=$ac_configure
23247     else
23248       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
23249       ac_sub_configure=
23250     fi
23251
23252     # The recursion is here.
23253     if test -n "$ac_sub_configure"; then
23254
23255       # Make the cache file name correct relative to the subdirectory.
23256       case "$cache_file" in
23257       /*) ac_sub_cache_file=$cache_file ;;
23258       *) # Relative path.
23259         ac_sub_cache_file="$ac_dots$cache_file" ;;
23260       esac
23261   case "$ac_given_INSTALL" in
23262         [/$]*) INSTALL="$ac_given_INSTALL" ;;
23263         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23264         esac
23265
23266       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
23267       # The eval makes quoting arguments work.
23268       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
23269       then :
23270       else
23271         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
23272       fi
23273     fi
23274
23275     cd $ac_popdir
23276   done
23277 fi
23278
23279
23280 echo
23281 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
23282 echo ""
23283 echo "  Which GUI toolkit should wxWindows use?                 ${TOOLKIT:-base only}"
23284
23285 echo "  Should wxWindows be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
23286 echo "  Should wxWindows be linked as a shared library?         ${wxUSE_SHARED:-no}"
23287 echo "  Should wxWindows be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
23288
23289 echo "  What level of wxWindows compatibility should be enabled?"
23290 echo "                                       wxWindows 2.0      ${WXWIN_COMPATIBILITY_2:-no}"
23291 echo "                                       wxWindows 2.2      ${WXWIN_COMPATIBILITY_2_2:-no}"
23292 echo "                                       wxWindows 2.4      ${WXWIN_COMPATIBILITY_2_4:-yes}"
23293
23294 echo "  Which libraries should wxWindows use?"
23295 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
23296 echo "                                       png                ${wxUSE_LIBPNG-none}"
23297 echo "                                       regex              ${wxUSE_REGEX}"
23298 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
23299 echo "                                       zlib               ${wxUSE_ZLIB}"
23300 echo "                                       odbc               ${wxUSE_ODBC}"
23301
23302 echo ""
23303