define _FILE_OFFSET_BITS/_LARGE_FILES on the compiler command line instead of wx...
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59 # Configure paths for GTK+
60 # Owen Taylor     1997-2001
61
62
63
64
65
66
67
68
69 # Configure paths for GTK+
70 # Owen Taylor     97-11-3
71
72
73
74 # Guess values for system-dependent variables and create Makefiles.
75 # Generated automatically using autoconf version 2.13 
76 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
77 #
78 # This configure script is free software; the Free Software Foundation
79 # gives unlimited permission to copy, distribute and modify it.
80
81 # Defaults:
82 ac_help=
83 ac_default_prefix=/usr/local
84 # Any additions from configure.in:
85 ac_help="$ac_help
86   --enable-gui            use GUI classes"
87 ac_help="$ac_help
88   --enable-universal      use wxWindows GUI controls instead of native ones"
89 ac_help="$ac_help
90   --with-gtk              use GTK+"
91 ac_help="$ac_help
92   --with-motif            use Motif/Lesstif"
93 ac_help="$ac_help
94   --with-mac              use Mac OS X"
95 ac_help="$ac_help
96   --with-wine             use WINE"
97 ac_help="$ac_help
98   --with-msw              use MS-Windows"
99 ac_help="$ac_help
100   --with-pm               use OS/2 Presentation Manager"
101 ac_help="$ac_help
102   --with-mgl              use SciTech MGL"
103 ac_help="$ac_help
104   --with-microwin         use MicroWindows"
105 ac_help="$ac_help
106   --with-x11              use X11"
107 ac_help="$ac_help
108   --enable-nanox          use NanoX"
109 ac_help="$ac_help
110   --enable-gtk2           use GTK+ 2.0 if available (EXPERIMENTAL)"
111 ac_help="$ac_help
112   --with-libpng           use libpng (PNG image format)"
113 ac_help="$ac_help
114   --with-libjpeg          use libjpeg (JPEG file format)"
115 ac_help="$ac_help
116   --with-libtiff          use libtiff (TIFF file format)"
117 ac_help="$ac_help
118   --with-opengl           use OpenGL (or Mesa)"
119 ac_help="$ac_help
120   --with-dmalloc          use dmalloc library (http://dmalloc.com/)"
121 ac_help="$ac_help
122   --with-regex            enable support for wxRegEx class"
123 ac_help="$ac_help
124   --with-zlib             use zlib for LZW compression"
125 ac_help="$ac_help
126   --with-odbc             use the IODBC and wxODBC classes"
127 ac_help="$ac_help
128   --enable-shared         create shared library code"
129 ac_help="$ac_help
130   --enable-soname         set the DT_SONAME field in ELF shared libraries"
131 ac_help="$ac_help
132   --enable-optimise       create optimised code"
133 ac_help="$ac_help
134   --enable-debug          same as debug_flag and debug_info"
135 ac_help="$ac_help
136   --enable-precomp        enable use of precompiled headers (Mac OS X)"
137 ac_help="$ac_help
138   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)"
139 ac_help="$ac_help
140   --enable-debug_info     create code with debugging information"
141 ac_help="$ac_help
142   --enable-debug_gdb      create code with extra GDB debugging information"
143 ac_help="$ac_help
144   --enable-debug_cntxt    use wxDebugContext"
145 ac_help="$ac_help
146   --enable-mem_tracing    create code with memory tracing"
147 ac_help="$ac_help
148   --enable-profile        create code with profiling information"
149 ac_help="$ac_help
150   --enable-no_rtti        create code without RTTI information"
151 ac_help="$ac_help
152   --enable-no_exceptions  create code without C++ exceptions handling"
153 ac_help="$ac_help
154   --enable-permissive     compile code disregarding strict ANSI"
155 ac_help="$ac_help
156   --enable-no_deps        create code without dependency information"
157 ac_help="$ac_help
158   --enable-compat20       enable wxWindows 2.0 compatibility"
159 ac_help="$ac_help
160   --disable-compat22      disable wxWindows 2.2 compatibility"
161 ac_help="$ac_help
162   --enable-rpath=DIR      output the rpath flag from wx-config"
163 ac_help="$ac_help
164   --enable-intl           use internationalization system"
165 ac_help="$ac_help
166   --enable-config         use wxConfig (and derived) classes"
167 ac_help="$ac_help
168   --enable-protocols      use wxProtocol and derived classes"
169 ac_help="$ac_help
170   --enable-ftp            use wxFTP (requires wxProtocol"
171 ac_help="$ac_help
172   --enable-http           use wxHTTP (requires wxProtocol"
173 ac_help="$ac_help
174   --enable-fileproto      use wxFileProto class (requires wxProtocol"
175 ac_help="$ac_help
176   --enable-sockets        use socket/network classes"
177 ac_help="$ac_help
178   --enable-ole            use OLE classes"
179 ac_help="$ac_help
180   --enable-dataobj        use data object classes"
181 ac_help="$ac_help
182   --enable-ipc            use interprocess communication (wxSocket etc.)"
183 ac_help="$ac_help
184   --enable-cmdline        use wxCmdLineParser class"
185 ac_help="$ac_help
186   --enable-datetime       use wxDateTime class"
187 ac_help="$ac_help
188   --enable-timedate       use obsolete wxDate/wxTime classes"
189 ac_help="$ac_help
190   --enable-stopwatch      use wxStopWatch class"
191 ac_help="$ac_help
192   --enable-dialupman      use dialup network classes"
193 ac_help="$ac_help
194   --enable-apple_ieee     use the Apple IEEE codec"
195 ac_help="$ac_help
196   --enable-timer          use wxTimer class"
197 ac_help="$ac_help
198   --enable-wave           use wxWave class"
199 ac_help="$ac_help
200   --enable-fraction       use wxFraction class"
201 ac_help="$ac_help
202   --enable-dynlib         use wxLibrary class for DLL loading"
203 ac_help="$ac_help
204   --enable-dynamicloader  use (new) wxDynamicLibrary class"
205 ac_help="$ac_help
206   --enable-longlong       use wxLongLong class"
207 ac_help="$ac_help
208   --enable-geometry       use geometry class"
209 ac_help="$ac_help
210   --enable-log            use logging system"
211 ac_help="$ac_help
212   --enable-streams        use wxStream etc classes"
213 ac_help="$ac_help
214   --enable-file           use wxFile classes"
215 ac_help="$ac_help
216   --enable-ffile          use wxFFile classes"
217 ac_help="$ac_help
218   --enable-textbuf        use wxTextBuffer class"
219 ac_help="$ac_help
220   --enable-textfile       use wxTextFile class"
221 ac_help="$ac_help
222   --enable-fontmap        use font encodings conversion classes"
223 ac_help="$ac_help
224   --enable-unicode        compile wxString with Unicode support"
225 ac_help="$ac_help
226   --enable-mslu           use MS Layer for Unicode on Windows 9x (win32 only)"
227 ac_help="$ac_help
228   --enable-wxprintfv      use wxWindows implementation of vprintf()"
229 ac_help="$ac_help
230   --enable-std_iostreams  use standard C++ stream classes"
231 ac_help="$ac_help
232   --enable-filesystem     use virtual file systems classes"
233 ac_help="$ac_help
234   --enable-fs_inet        use virtual HTTP/FTP filesystems"
235 ac_help="$ac_help
236   --enable-fs_zip         use virtual ZIP filesystems"
237 ac_help="$ac_help
238   --enable-zipstream      use wxZipInputStream"
239 ac_help="$ac_help
240   --enable-catch_segvs    catch signals and pass them to wxApp::OnFatalException"
241 ac_help="$ac_help
242   --enable-snglinst       use wxSingleInstanceChecker class"
243 ac_help="$ac_help
244   --enable-mimetype       use wxMimeTypesManager"
245 ac_help="$ac_help
246   --enable-sysoptions     use wxSystemOptions"
247 ac_help="$ac_help
248   --enable-url            use wxURL class"
249 ac_help="$ac_help
250   --enable-protocol       use wxProtocol class"
251 ac_help="$ac_help
252   --enable-protocol-http  HTTP support in wxProtocol"
253 ac_help="$ac_help
254   --enable-protocol-ftp   FTP support in wxProtocol"
255 ac_help="$ac_help
256   --enable-protocol-file  FILE support in wxProtocol"
257 ac_help="$ac_help
258   --enable-threads        use threads"
259 ac_help="$ac_help
260   --enable-docview        use document view architecture"
261 ac_help="$ac_help
262   --enable-help           use help subsystem"
263 ac_help="$ac_help
264   --enable-mshtmlhelp     use MS HTML Help (win32)"
265 ac_help="$ac_help
266   --enable-html           use wxHTML sub-library"
267 ac_help="$ac_help
268   --enable-htmlhelp       use wxHTML-based help"
269 ac_help="$ac_help
270   --enable-constraints    use layout-constraints system"
271 ac_help="$ac_help
272   --enable-printarch      use printing architecture"
273 ac_help="$ac_help
274   --enable-mdi            use multiple document interface architecture"
275 ac_help="$ac_help
276   --enable-loggui         use standard GUI logger"
277 ac_help="$ac_help
278   --enable-logwin         use wxLogWindow"
279 ac_help="$ac_help
280   --enable-logdialog      use wxLogDialog"
281 ac_help="$ac_help
282   --enable-postscript     use wxPostscriptDC device context (default for gtk+)"
283 ac_help="$ac_help
284   --enable-prologio       use Prolog IO library"
285 ac_help="$ac_help
286   --enable-resources      use wxWindows resources"
287 ac_help="$ac_help
288   --enable-xresources     use X resources for save (default for gtk+)"
289 ac_help="$ac_help
290   --enable-clipboard      use wxClipboard classes"
291 ac_help="$ac_help
292   --enable-dnd            use Drag'n'Drop classes"
293 ac_help="$ac_help
294   --enable-metafile       use win32 metafiles"
295 ac_help="$ac_help
296   --enable-treelayout     use wxTreeLayout classes"
297 ac_help="$ac_help
298   --enable-controls       use all usual controls"
299 ac_help="$ac_help
300   --enable-accel          use accelerators"
301 ac_help="$ac_help
302   --enable-button         use wxButton class"
303 ac_help="$ac_help
304   --enable-bmpbutton      use wxBitmapButton class"
305 ac_help="$ac_help
306   --enable-calendar       use wxCalendarCtrl class"
307 ac_help="$ac_help
308   --enable-caret          use wxCaret class"
309 ac_help="$ac_help
310   --enable-checkbox       use wxCheckBox class"
311 ac_help="$ac_help
312   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class"
313 ac_help="$ac_help
314   --enable-choice         use wxChoice class"
315 ac_help="$ac_help
316   --enable-combobox       use wxComboBox classes"
317 ac_help="$ac_help
318   --enable-gauge          use wxGauge class"
319 ac_help="$ac_help
320   --enable-grid           use wxGrid class"
321 ac_help="$ac_help
322   --enable-newgrid        use new wxGrid class"
323 ac_help="$ac_help
324   --enable-imaglist       use wxImageList class"
325 ac_help="$ac_help
326   --enable-listbox        use wxListBox class"
327 ac_help="$ac_help
328   --enable-listctrl       use wxListCtrl class"
329 ac_help="$ac_help
330   --enable-notebook       use wxNotebook class"
331 ac_help="$ac_help
332   --enable-propsheet      use wxPropertySheet class"
333 ac_help="$ac_help
334   --enable-radiobox       use wxRadioBox class"
335 ac_help="$ac_help
336   --enable-radiobtn       use wxRadioButton class"
337 ac_help="$ac_help
338   --enable-sash           use wxSashWindow class"
339 ac_help="$ac_help
340   --enable-scrollbar      use wxScrollBar class and scrollable windows"
341 ac_help="$ac_help
342   --enable-slider         use wxSlider class"
343 ac_help="$ac_help
344   --enable-spinbtn        use wxSpinButton class"
345 ac_help="$ac_help
346   --enable-spinctrl       use wxSpinCtrl class"
347 ac_help="$ac_help
348   --enable-splitter       use wxSplitterWindow class"
349 ac_help="$ac_help
350   --enable-statbmp        use wxStaticBitmap class"
351 ac_help="$ac_help
352   --enable-statbox        use wxStaticBox class"
353 ac_help="$ac_help
354   --enable-statline       use wxStaticLine class"
355 ac_help="$ac_help
356   --enable-stattext       use wxStaticText class"
357 ac_help="$ac_help
358   --enable-statusbar      use wxStatusBar class"
359 ac_help="$ac_help
360   --enable-tabdialog      use wxTabControl class"
361 ac_help="$ac_help
362   --enable-textctrl       use wxTextCtrl class"
363 ac_help="$ac_help
364   --enable-togglebtn      use wxToggleButton class"
365 ac_help="$ac_help
366   --enable-toolbar        use wxToolBar class"
367 ac_help="$ac_help
368   --enable-tbarnative     use native wxToolBar class"
369 ac_help="$ac_help
370   --enable-tbarsmpl       use wxToolBarSimple class"
371 ac_help="$ac_help
372   --enable-treectrl       use wxTreeCtrl class"
373 ac_help="$ac_help
374   --enable-tipwindow      use wxTipWindow class"
375 ac_help="$ac_help
376   --enable-popupwin       use wxPopUpWindow class"
377 ac_help="$ac_help
378   --enable-commondlg      use all common dialogs"
379 ac_help="$ac_help
380   --enable-choicedlg      use wxChoiceDialog"
381 ac_help="$ac_help
382   --enable-coldlg         use wxColourDialog"
383 ac_help="$ac_help
384   --enable-filedlg        use wxFileDialog"
385 ac_help="$ac_help
386   --enable-finddlg        use wxFindReplaceDialog"
387 ac_help="$ac_help
388   --enable-fontdlg        use wxFontDialog"
389 ac_help="$ac_help
390   --enable-dirdlg         use wxDirDialog"
391 ac_help="$ac_help
392   --enable-msgdlg         use wxMessageDialog"
393 ac_help="$ac_help
394   --enable-numberdlg      use wxNumberEntryDialog"
395 ac_help="$ac_help
396   --enable-splash         use wxSplashScreen"
397 ac_help="$ac_help
398   --enable-textdlg        use wxTextDialog"
399 ac_help="$ac_help
400   --enable-tipdlg         use startup tips"
401 ac_help="$ac_help
402   --enable-progressdlg    use wxProgressDialog"
403 ac_help="$ac_help
404   --enable-wizarddlg      use wxWizard"
405 ac_help="$ac_help
406   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes"
407 ac_help="$ac_help
408   --enable-miniframe      use wxMiniFrame class"
409 ac_help="$ac_help
410   --enable-tooltips       use wxToolTip class"
411 ac_help="$ac_help
412   --enable-splines        use spline drawing code"
413 ac_help="$ac_help
414   --enable-validators     use wxValidator and derived classes"
415 ac_help="$ac_help
416   --enable-busyinfo       use wxBusyInfo"
417 ac_help="$ac_help
418   --enable-joystick       use wxJoystick (Linux only)"
419 ac_help="$ac_help
420   --enable-metafiles      use wxMetaFile (Windows only)"
421 ac_help="$ac_help
422   --enable-dragimage      use wxDragImage"
423 ac_help="$ac_help
424   --enable-palette        use wxPalette class"
425 ac_help="$ac_help
426   --enable-image          use wxImage class"
427 ac_help="$ac_help
428   --enable-gif            use gif images (GIF file format)"
429 ac_help="$ac_help
430   --enable-pcx            use pcx images (PCX file format)"
431 ac_help="$ac_help
432   --enable-iff            use iff images (IFF file format)"
433 ac_help="$ac_help
434   --enable-pnm            use pnm images (PNM file format)"
435 ac_help="$ac_help
436   --enable-xpm            use xpm images (XPM file format)"
437 ac_help="$ac_help
438   --enable-icocur         use Windows ICO and CUR formats"
439 ac_help="$ac_help
440   --disable-largefile     omit support for large files"
441 ac_help="$ac_help
442   --disable-gtktest       do not try to compile and run a test GTK+ program"
443 ac_help="$ac_help
444   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
445 ac_help="$ac_help
446   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
447 ac_help="$ac_help
448   --disable-gtktest       Do not try to compile and run a test GTK program"
449 ac_help="$ac_help
450   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
451 ac_help="$ac_help
452   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
453 ac_help="$ac_help
454   --disable-gtktest       Do not try to compile and run a test GTK program"
455 ac_help="$ac_help
456   --with-x                use the X Window System"
457 ac_help="$ac_help
458   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib"
459
460 # Initialize some variables set by options.
461 # The variables have the same names as the options, with
462 # dashes changed to underlines.
463 build=NONE
464 cache_file=./config.cache
465 exec_prefix=NONE
466 host=NONE
467 no_create=
468 nonopt=NONE
469 no_recursion=
470 prefix=NONE
471 program_prefix=NONE
472 program_suffix=NONE
473 program_transform_name=s,x,x,
474 silent=
475 site=
476 srcdir=
477 target=NONE
478 verbose=
479 x_includes=NONE
480 x_libraries=NONE
481 bindir='${exec_prefix}/bin'
482 sbindir='${exec_prefix}/sbin'
483 libexecdir='${exec_prefix}/libexec'
484 datadir='${prefix}/share'
485 sysconfdir='${prefix}/etc'
486 sharedstatedir='${prefix}/com'
487 localstatedir='${prefix}/var'
488 libdir='${exec_prefix}/lib'
489 includedir='${prefix}/include'
490 oldincludedir='/usr/include'
491 infodir='${prefix}/info'
492 mandir='${prefix}/man'
493
494 # Initialize some other variables.
495 subdirs=
496 MFLAGS= MAKEFLAGS=
497 SHELL=${CONFIG_SHELL-/bin/sh}
498 # Maximum number of lines to put in a shell here document.
499 ac_max_here_lines=12
500
501 ac_prev=
502 for ac_option
503 do
504
505   # If the previous option needs an argument, assign it.
506   if test -n "$ac_prev"; then
507     eval "$ac_prev=\$ac_option"
508     ac_prev=
509     continue
510   fi
511
512   case "$ac_option" in
513   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
514   *) ac_optarg= ;;
515   esac
516
517   # Accept the important Cygnus configure options, so we can diagnose typos.
518
519   case "$ac_option" in
520
521   -bindir | --bindir | --bindi | --bind | --bin | --bi)
522     ac_prev=bindir ;;
523   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
524     bindir="$ac_optarg" ;;
525
526   -build | --build | --buil | --bui | --bu)
527     ac_prev=build ;;
528   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
529     build="$ac_optarg" ;;
530
531   -cache-file | --cache-file | --cache-fil | --cache-fi \
532   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
533     ac_prev=cache_file ;;
534   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
535   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
536     cache_file="$ac_optarg" ;;
537
538   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539     ac_prev=datadir ;;
540   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541   | --da=*)
542     datadir="$ac_optarg" ;;
543
544   -disable-* | --disable-*)
545     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
546     # Reject names that are not valid shell variable names.
547     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
548       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
549     fi
550     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
551     eval "enable_${ac_feature}=no" ;;
552
553   -enable-* | --enable-*)
554     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
555     # Reject names that are not valid shell variable names.
556     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
557       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
558     fi
559     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
560     case "$ac_option" in
561       *=*) ;;
562       *) ac_optarg=yes ;;
563     esac
564     eval "enable_${ac_feature}='$ac_optarg'" ;;
565
566   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568   | --exec | --exe | --ex)
569     ac_prev=exec_prefix ;;
570   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572   | --exec=* | --exe=* | --ex=*)
573     exec_prefix="$ac_optarg" ;;
574
575   -gas | --gas | --ga | --g)
576     # Obsolete; use --with-gas.
577     with_gas=yes ;;
578
579   -help | --help | --hel | --he)
580     # Omit some internal or obsolete options to make the list less imposing.
581     # This message is too long to be a string in the A/UX 3.1 sh.
582     cat << EOF
583 Usage: configure [options] [host]
584 Options: [defaults in brackets after descriptions]
585 Configuration:
586   --cache-file=FILE       cache test results in FILE
587   --help                  print this message
588   --no-create             do not create output files
589   --quiet, --silent       do not print \`checking...' messages
590   --version               print the version of autoconf that created configure
591 Directory and file names:
592   --prefix=PREFIX         install architecture-independent files in PREFIX
593                           [$ac_default_prefix]
594   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
595                           [same as prefix]
596   --bindir=DIR            user executables in DIR [EPREFIX/bin]
597   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
598   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
599   --datadir=DIR           read-only architecture-independent data in DIR
600                           [PREFIX/share]
601   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
602   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
603                           [PREFIX/com]
604   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
605   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
606   --includedir=DIR        C header files in DIR [PREFIX/include]
607   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
608   --infodir=DIR           info documentation in DIR [PREFIX/info]
609   --mandir=DIR            man documentation in DIR [PREFIX/man]
610   --srcdir=DIR            find the sources in DIR [configure dir or ..]
611   --program-prefix=PREFIX prepend PREFIX to installed program names
612   --program-suffix=SUFFIX append SUFFIX to installed program names
613   --program-transform-name=PROGRAM
614                           run sed PROGRAM on installed program names
615 EOF
616     cat << EOF
617 Host type:
618   --build=BUILD           configure for building on BUILD [BUILD=HOST]
619   --host=HOST             configure for HOST [guessed]
620   --target=TARGET         configure for TARGET [TARGET=HOST]
621 Features and packages:
622   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
623   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
624   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
625   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
626   --x-includes=DIR        X include files are in DIR
627   --x-libraries=DIR       X library files are in DIR
628 EOF
629     if test -n "$ac_help"; then
630       echo "--enable and --with options recognized:$ac_help"
631     fi
632     exit 0 ;;
633
634   -host | --host | --hos | --ho)
635     ac_prev=host ;;
636   -host=* | --host=* | --hos=* | --ho=*)
637     host="$ac_optarg" ;;
638
639   -includedir | --includedir | --includedi | --included | --include \
640   | --includ | --inclu | --incl | --inc)
641     ac_prev=includedir ;;
642   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
643   | --includ=* | --inclu=* | --incl=* | --inc=*)
644     includedir="$ac_optarg" ;;
645
646   -infodir | --infodir | --infodi | --infod | --info | --inf)
647     ac_prev=infodir ;;
648   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
649     infodir="$ac_optarg" ;;
650
651   -libdir | --libdir | --libdi | --libd)
652     ac_prev=libdir ;;
653   -libdir=* | --libdir=* | --libdi=* | --libd=*)
654     libdir="$ac_optarg" ;;
655
656   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
657   | --libexe | --libex | --libe)
658     ac_prev=libexecdir ;;
659   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
660   | --libexe=* | --libex=* | --libe=*)
661     libexecdir="$ac_optarg" ;;
662
663   -localstatedir | --localstatedir | --localstatedi | --localstated \
664   | --localstate | --localstat | --localsta | --localst \
665   | --locals | --local | --loca | --loc | --lo)
666     ac_prev=localstatedir ;;
667   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
668   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
669   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
670     localstatedir="$ac_optarg" ;;
671
672   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
673     ac_prev=mandir ;;
674   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
675     mandir="$ac_optarg" ;;
676
677   -nfp | --nfp | --nf)
678     # Obsolete; use --without-fp.
679     with_fp=no ;;
680
681   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
682   | --no-cr | --no-c)
683     no_create=yes ;;
684
685   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
686   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
687     no_recursion=yes ;;
688
689   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
690   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
691   | --oldin | --oldi | --old | --ol | --o)
692     ac_prev=oldincludedir ;;
693   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
694   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
695   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
696     oldincludedir="$ac_optarg" ;;
697
698   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
699     ac_prev=prefix ;;
700   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
701     prefix="$ac_optarg" ;;
702
703   -program-prefix | --program-prefix | --program-prefi | --program-pref \
704   | --program-pre | --program-pr | --program-p)
705     ac_prev=program_prefix ;;
706   -program-prefix=* | --program-prefix=* | --program-prefi=* \
707   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
708     program_prefix="$ac_optarg" ;;
709
710   -program-suffix | --program-suffix | --program-suffi | --program-suff \
711   | --program-suf | --program-su | --program-s)
712     ac_prev=program_suffix ;;
713   -program-suffix=* | --program-suffix=* | --program-suffi=* \
714   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
715     program_suffix="$ac_optarg" ;;
716
717   -program-transform-name | --program-transform-name \
718   | --program-transform-nam | --program-transform-na \
719   | --program-transform-n | --program-transform- \
720   | --program-transform | --program-transfor \
721   | --program-transfo | --program-transf \
722   | --program-trans | --program-tran \
723   | --progr-tra | --program-tr | --program-t)
724     ac_prev=program_transform_name ;;
725   -program-transform-name=* | --program-transform-name=* \
726   | --program-transform-nam=* | --program-transform-na=* \
727   | --program-transform-n=* | --program-transform-=* \
728   | --program-transform=* | --program-transfor=* \
729   | --program-transfo=* | --program-transf=* \
730   | --program-trans=* | --program-tran=* \
731   | --progr-tra=* | --program-tr=* | --program-t=*)
732     program_transform_name="$ac_optarg" ;;
733
734   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
735   | -silent | --silent | --silen | --sile | --sil)
736     silent=yes ;;
737
738   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
739     ac_prev=sbindir ;;
740   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
741   | --sbi=* | --sb=*)
742     sbindir="$ac_optarg" ;;
743
744   -sharedstatedir | --sharedstatedir | --sharedstatedi \
745   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
746   | --sharedst | --shareds | --shared | --share | --shar \
747   | --sha | --sh)
748     ac_prev=sharedstatedir ;;
749   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
750   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
751   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
752   | --sha=* | --sh=*)
753     sharedstatedir="$ac_optarg" ;;
754
755   -site | --site | --sit)
756     ac_prev=site ;;
757   -site=* | --site=* | --sit=*)
758     site="$ac_optarg" ;;
759
760   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
761     ac_prev=srcdir ;;
762   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
763     srcdir="$ac_optarg" ;;
764
765   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
766   | --syscon | --sysco | --sysc | --sys | --sy)
767     ac_prev=sysconfdir ;;
768   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
769   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
770     sysconfdir="$ac_optarg" ;;
771
772   -target | --target | --targe | --targ | --tar | --ta | --t)
773     ac_prev=target ;;
774   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
775     target="$ac_optarg" ;;
776
777   -v | -verbose | --verbose | --verbos | --verbo | --verb)
778     verbose=yes ;;
779
780   -version | --version | --versio | --versi | --vers)
781     echo "configure generated by autoconf version 2.13"
782     exit 0 ;;
783
784   -with-* | --with-*)
785     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
786     # Reject names that are not valid shell variable names.
787     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
788       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
789     fi
790     ac_package=`echo $ac_package| sed 's/-/_/g'`
791     case "$ac_option" in
792       *=*) ;;
793       *) ac_optarg=yes ;;
794     esac
795     eval "with_${ac_package}='$ac_optarg'" ;;
796
797   -without-* | --without-*)
798     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
799     # Reject names that are not valid shell variable names.
800     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
801       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
802     fi
803     ac_package=`echo $ac_package| sed 's/-/_/g'`
804     eval "with_${ac_package}=no" ;;
805
806   --x)
807     # Obsolete; use --with-x.
808     with_x=yes ;;
809
810   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
811   | --x-incl | --x-inc | --x-in | --x-i)
812     ac_prev=x_includes ;;
813   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
814   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
815     x_includes="$ac_optarg" ;;
816
817   -x-libraries | --x-libraries | --x-librarie | --x-librari \
818   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
819     ac_prev=x_libraries ;;
820   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
821   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
822     x_libraries="$ac_optarg" ;;
823
824   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
825     ;;
826
827   *)
828     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
829       echo "configure: warning: $ac_option: invalid host type" 1>&2
830     fi
831     if test "x$nonopt" != xNONE; then
832       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
833     fi
834     nonopt="$ac_option"
835     ;;
836
837   esac
838 done
839
840 if test -n "$ac_prev"; then
841   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
842 fi
843
844 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
845
846 # File descriptor usage:
847 # 0 standard input
848 # 1 file creation
849 # 2 errors and warnings
850 # 3 some systems may open it to /dev/tty
851 # 4 used on the Kubota Titan
852 # 6 checking for... messages and results
853 # 5 compiler messages saved in config.log
854 if test "$silent" = yes; then
855   exec 6>/dev/null
856 else
857   exec 6>&1
858 fi
859 exec 5>./config.log
860
861 echo "\
862 This file contains any messages produced by compilers while
863 running configure, to aid debugging if configure makes a mistake.
864 " 1>&5
865
866 # Strip out --no-create and --no-recursion so they do not pile up.
867 # Also quote any args containing shell metacharacters.
868 ac_configure_args=
869 for ac_arg
870 do
871   case "$ac_arg" in
872   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
873   | --no-cr | --no-c) ;;
874   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
875   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
876   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
877   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
878   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
879   esac
880 done
881
882 # NLS nuisances.
883 # Only set these to C if already set.  These must not be set unconditionally
884 # because not all systems understand e.g. LANG=C (notably SCO).
885 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
886 # Non-C LC_CTYPE values break the ctype check.
887 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
888 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
889 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
890 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
891
892 # confdefs.h avoids OS command line length limits that DEFS can exceed.
893 rm -rf conftest* confdefs.h
894 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
895 echo > confdefs.h
896
897 # A filename unique to this package, relative to the directory that
898 # configure is in, which we can look for to find out if srcdir is correct.
899 ac_unique_file=wx-config.in
900
901 # Find the source files, if location was not specified.
902 if test -z "$srcdir"; then
903   ac_srcdir_defaulted=yes
904   # Try the directory containing this script, then its parent.
905   ac_prog=$0
906   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
907   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
908   srcdir=$ac_confdir
909   if test ! -r $srcdir/$ac_unique_file; then
910     srcdir=..
911   fi
912 else
913   ac_srcdir_defaulted=no
914 fi
915 if test ! -r $srcdir/$ac_unique_file; then
916   if test "$ac_srcdir_defaulted" = yes; then
917     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
918   else
919     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
920   fi
921 fi
922 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
923
924 # Prefer explicitly selected file to automatically selected ones.
925 if test -z "$CONFIG_SITE"; then
926   if test "x$prefix" != xNONE; then
927     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
928   else
929     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
930   fi
931 fi
932 for ac_site_file in $CONFIG_SITE; do
933   if test -r "$ac_site_file"; then
934     echo "loading site script $ac_site_file"
935     . "$ac_site_file"
936   fi
937 done
938
939 if test -r "$cache_file"; then
940   echo "loading cache $cache_file"
941   . $cache_file
942 else
943   echo "creating cache $cache_file"
944   > $cache_file
945 fi
946
947 ac_ext=c
948 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
949 ac_cpp='$CPP $CPPFLAGS'
950 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
951 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
952 cross_compiling=$ac_cv_prog_cc_cross
953
954 ac_exeext=
955 ac_objext=o
956 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
957   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
958   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
959     ac_n= ac_c='
960 ' ac_t='        '
961   else
962     ac_n=-n ac_c= ac_t=
963   fi
964 else
965   ac_n= ac_c='\c' ac_t=
966 fi
967
968
969
970 ac_aux_dir=
971 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
972   if test -f $ac_dir/install-sh; then
973     ac_aux_dir=$ac_dir
974     ac_install_sh="$ac_aux_dir/install-sh -c"
975     break
976   elif 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   fi
981 done
982 if test -z "$ac_aux_dir"; then
983   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
984 fi
985 ac_config_guess=$ac_aux_dir/config.guess
986 ac_config_sub=$ac_aux_dir/config.sub
987 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
988
989
990 # Do some error checking and defaulting for the host and target type.
991 # The inputs are:
992 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
993 #
994 # The rules are:
995 # 1. You are not allowed to specify --host, --target, and nonopt at the
996 #    same time.
997 # 2. Host defaults to nonopt.
998 # 3. If nonopt is not specified, then host defaults to the current host,
999 #    as determined by config.guess.
1000 # 4. Target and build default to nonopt.
1001 # 5. If nonopt is not specified, then target and build default to host.
1002
1003 # The aliases save the names the user supplied, while $host etc.
1004 # will get canonicalized.
1005 case $host---$target---$nonopt in
1006 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1007 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1008 esac
1009
1010
1011 # Make sure we can run config.sub.
1012 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1013 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1014 fi
1015
1016 echo $ac_n "checking host system type""... $ac_c" 1>&6
1017 echo "configure:1018: checking host system type" >&5
1018
1019 host_alias=$host
1020 case "$host_alias" in
1021 NONE)
1022   case $nonopt in
1023   NONE)
1024     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1025     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1026     fi ;;
1027   *) host_alias=$nonopt ;;
1028   esac ;;
1029 esac
1030
1031 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1032 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1033 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1034 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1035 echo "$ac_t""$host" 1>&6
1036
1037 echo $ac_n "checking target system type""... $ac_c" 1>&6
1038 echo "configure:1039: checking target system type" >&5
1039
1040 target_alias=$target
1041 case "$target_alias" in
1042 NONE)
1043   case $nonopt in
1044   NONE) target_alias=$host_alias ;;
1045   *) target_alias=$nonopt ;;
1046   esac ;;
1047 esac
1048
1049 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1050 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1051 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1052 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1053 echo "$ac_t""$target" 1>&6
1054
1055 echo $ac_n "checking build system type""... $ac_c" 1>&6
1056 echo "configure:1057: checking build system type" >&5
1057
1058 build_alias=$build
1059 case "$build_alias" in
1060 NONE)
1061   case $nonopt in
1062   NONE) build_alias=$host_alias ;;
1063   *) build_alias=$nonopt ;;
1064   esac ;;
1065 esac
1066
1067 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1068 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1069 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1070 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1071 echo "$ac_t""$build" 1>&6
1072
1073 test "$host_alias" != "$target_alias" &&
1074   test "$program_prefix$program_suffix$program_transform_name" = \
1075     NONENONEs,x,x, &&
1076   program_prefix=${target_alias}-
1077
1078
1079
1080 WX_MAJOR_VERSION_NUMBER=2
1081 WX_MINOR_VERSION_NUMBER=3
1082 WX_RELEASE_NUMBER=3
1083
1084 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1085 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1086
1087 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1088
1089 WX_CURRENT=2
1090 WX_REVISION=0
1091 WX_AGE=0
1092
1093
1094
1095 USE_UNIX=1
1096 USE_WIN32=0
1097 USE_DOS=0
1098 USE_BEOS=0
1099 USE_MAC=0
1100
1101 USE_LINUX=
1102 USE_SGI=
1103 USE_HPUX=
1104 USE_SYSV=
1105 USE_SVR4=
1106 USE_AIX=
1107 USE_SUN=
1108 USE_SOLARIS=
1109 USE_SUNOS=
1110 USE_ALPHA=
1111 USE_OSF=
1112 USE_BSD=
1113 USE_DARWIN=
1114 USE_FREEBSD=
1115 USE_OPENBSD=
1116 USE_NETBSD=
1117 USE_VMS=
1118 USE_ULTRIX=
1119 USE_DATA_GENERAL=
1120
1121 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1122
1123 ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
1124
1125 DEFAULT_wxUSE_GTK=0
1126 DEFAULT_wxUSE_MAC=0
1127 DEFAULT_wxUSE_MGL=0
1128 DEFAULT_wxUSE_MICROWIN=0
1129 DEFAULT_wxUSE_MOTIF=0
1130 DEFAULT_wxUSE_MSW=0
1131 DEFAULT_wxUSE_PM=0
1132 DEFAULT_wxUSE_WINE=0
1133 DEFAULT_wxUSE_X11=0
1134
1135 DEFAULT_DEFAULT_wxUSE_GTK=0
1136 DEFAULT_DEFAULT_wxUSE_MAC=0
1137 DEFAULT_DEFAULT_wxUSE_MGL=0
1138 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1139 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1140 DEFAULT_DEFAULT_wxUSE_MSW=0
1141 DEFAULT_DEFAULT_wxUSE_PM=0
1142 DEFAULT_DEFAULT_wxUSE_WINE=0
1143 DEFAULT_DEFAULT_wxUSE_X11=0
1144
1145 PROGRAM_EXT=
1146 SO_SUFFIX=so
1147
1148 case "${host}" in
1149   *-hp-hpux* )
1150     USE_HPUX=1
1151     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1152     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1153     SO_SUFFIX=sl
1154     cat >> confdefs.h <<\EOF
1155 #define __HPUX__ 1
1156 EOF
1157
1158   ;;
1159   *-*-linux* )
1160     USE_LINUX=1
1161     cat >> confdefs.h <<\EOF
1162 #define __LINUX__ 1
1163 EOF
1164
1165     TMP=`uname -m`
1166     if test "x$TMP" = "xalpha"; then
1167       USE_ALPHA=1
1168       cat >> confdefs.h <<\EOF
1169 #define __ALPHA__ 1
1170 EOF
1171
1172     fi
1173     DEFAULT_DEFAULT_wxUSE_GTK=1
1174   ;;
1175   *-*-irix5* | *-*-irix6* )
1176     USE_SGI=1
1177     USE_SVR4=1
1178     cat >> confdefs.h <<\EOF
1179 #define __SGI__ 1
1180 EOF
1181
1182     cat >> confdefs.h <<\EOF
1183 #define __SVR4__ 1
1184 EOF
1185
1186     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1187   ;;
1188   *-*-solaris2* )
1189     USE_SUN=1
1190     USE_SOLARIS=1
1191     USE_SVR4=1
1192     cat >> confdefs.h <<\EOF
1193 #define __SUN__ 1
1194 EOF
1195
1196     cat >> confdefs.h <<\EOF
1197 #define __SOLARIS__ 1
1198 EOF
1199
1200     cat >> confdefs.h <<\EOF
1201 #define __SVR4__ 1
1202 EOF
1203
1204     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1205     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1206   ;;
1207   *-*-sunos4* )
1208     USE_SUN=1
1209     USE_SUNOS=1
1210     USE_BSD=1
1211     cat >> confdefs.h <<\EOF
1212 #define __SUN__ 1
1213 EOF
1214
1215     cat >> confdefs.h <<\EOF
1216 #define __SUNOS__ 1
1217 EOF
1218
1219     cat >> confdefs.h <<\EOF
1220 #define __BSD__ 1
1221 EOF
1222
1223     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1224   ;;
1225   *-*-freebsd*)
1226     USE_BSD=1
1227     USE_FREEBSD=1
1228     cat >> confdefs.h <<\EOF
1229 #define __FREEBSD__ 1
1230 EOF
1231
1232     cat >> confdefs.h <<\EOF
1233 #define __BSD__ 1
1234 EOF
1235
1236     DEFAULT_DEFAULT_wxUSE_GTK=1
1237   ;;
1238   *-*-openbsd*)
1239     USE_BSD=1
1240     USE_OPENBSD=1
1241     cat >> confdefs.h <<\EOF
1242 #define __FREEBSD__ 1
1243 EOF
1244
1245     cat >> confdefs.h <<\EOF
1246 #define __OPENBSD__ 1
1247 EOF
1248
1249     DEFAULT_DEFAULT_wxUSE_GTK=1
1250   ;;
1251   *-*-netbsd*)
1252     USE_BSD=1
1253     USE_NETBSD=1
1254     cat >> confdefs.h <<\EOF
1255 #define __FREEBSD__ 1
1256 EOF
1257
1258     cat >> confdefs.h <<\EOF
1259 #define __NETBSD__ 1
1260 EOF
1261
1262     DEFAULT_DEFAULT_wxUSE_GTK=1
1263   ;;
1264   *-*-osf* )
1265     USE_ALPHA=1
1266     USE_OSF=1
1267     cat >> confdefs.h <<\EOF
1268 #define __ALPHA__ 1
1269 EOF
1270
1271     cat >> confdefs.h <<\EOF
1272 #define __OSF__ 1
1273 EOF
1274
1275     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1276     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1277   ;;
1278   *-*-dgux5* )
1279     USE_ALPHA=1
1280     USE_SVR4=1
1281     cat >> confdefs.h <<\EOF
1282 #define __ALPHA__ 1
1283 EOF
1284
1285     cat >> confdefs.h <<\EOF
1286 #define __SVR4__ 1
1287 EOF
1288
1289     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1290   ;;
1291   *-*-sysv5* )
1292     USE_SYSV=1
1293     USE_SVR4=1
1294     cat >> confdefs.h <<\EOF
1295 #define __SYSV__ 1
1296 EOF
1297
1298     cat >> confdefs.h <<\EOF
1299 #define __SVR4__ 1
1300 EOF
1301
1302     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1303   ;;
1304   *-*-aix* )
1305     USE_AIX=1
1306     USE_SYSV=1
1307     USE_SVR4=1
1308             SO_SUFFIX=a
1309     cat >> confdefs.h <<\EOF
1310 #define __AIX__ 1
1311 EOF
1312
1313     cat >> confdefs.h <<\EOF
1314 #define __SYSV__ 1
1315 EOF
1316
1317     cat >> confdefs.h <<\EOF
1318 #define __SVR4__ 1
1319 EOF
1320
1321     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1322   ;;
1323
1324   *-*-cygwin* | *-*-mingw32* )
1325                 SO_SUFFIX=dll
1326     PROGRAM_EXT=".exe"
1327     RESCOMP=windres
1328     DEFAULT_DEFAULT_wxUSE_MSW=1
1329   ;;
1330
1331   *-pc-msdosdjgpp )
1332     USE_UNIX=0
1333     USE_DOS=1
1334     cat >> confdefs.h <<\EOF
1335 #define __DOS__ 1
1336 EOF
1337
1338     PROGRAM_EXT=".exe"
1339     DEFAULT_DEFAULT_wxUSE_MGL=1
1340         LIBS="$LIBS -lstdc++"
1341   ;;
1342
1343   *-pc-os2_emx | *-pc-os2-emx )
1344     cat >> confdefs.h <<\EOF
1345 #define __EMX__ 1
1346 EOF
1347
1348     PROGRAM_EXT=".exe"
1349     DEFAULT_DEFAULT_wxUSE_PM=1
1350   ;;
1351
1352   powerpc-*-darwin* )
1353         USE_BSD=1
1354     USE_DARWIN=1
1355     SO_SUFFIX=dylib
1356     cat >> confdefs.h <<\EOF
1357 #define __BSD__ 1
1358 EOF
1359
1360     cat >> confdefs.h <<\EOF
1361 #define __DARWIN__ 1
1362 EOF
1363
1364     cat >> confdefs.h <<\EOF
1365 #define __POWERPC__ 1
1366 EOF
1367
1368     DEFAULT_DEFAULT_wxUSE_MAC=1
1369   ;;
1370
1371   *-*-beos* )
1372         USE_BEOS=1
1373     cat >> confdefs.h <<\EOF
1374 #define __BEOS__ 1
1375 EOF
1376
1377   ;;
1378
1379   *)
1380     { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1381 esac
1382
1383
1384
1385
1386           wx_arg_cache_file="configarg.cache"
1387           echo "loading argument cache $wx_arg_cache_file"
1388           rm -f ${wx_arg_cache_file}.tmp
1389           touch ${wx_arg_cache_file}.tmp
1390           touch ${wx_arg_cache_file}
1391         
1392
1393 DEBUG_CONFIGURE=0
1394 if test $DEBUG_CONFIGURE = 1; then
1395   DEFAULT_wxUSE_UNIVERSAL=no
1396
1397   DEFAULT_wxUSE_NANOX=no
1398
1399   DEFAULT_wxUSE_THREADS=yes
1400
1401   DEFAULT_wxUSE_SHARED=yes
1402   DEFAULT_wxUSE_SONAME=no
1403   DEFAULT_wxUSE_OPTIMISE=no
1404   DEFAULT_wxUSE_PROFILE=no
1405   DEFAULT_wxUSE_NO_DEPS=no
1406   DEFAULT_wxUSE_NO_RTTI=no
1407   DEFAULT_wxUSE_NO_EXCEPTIONS=no
1408   DEFAULT_wxUSE_PERMISSIVE=no
1409   DEFAULT_wxUSE_DEBUG_FLAG=yes
1410   DEFAULT_wxUSE_DEBUG_INFO=yes
1411   DEFAULT_wxUSE_DEBUG_GDB=yes
1412   DEFAULT_wxUSE_MEM_TRACING=no
1413   DEFAULT_wxUSE_DEBUG_CONTEXT=no
1414   DEFAULT_wxUSE_DMALLOC=no
1415   DEFAULT_wxUSE_PRECOMP=no
1416   DEFAULT_wxUSE_APPLE_IEEE=no
1417
1418   DEFAULT_wxUSE_LOG=yes
1419   DEFAULT_wxUSE_LOGWINDOW=no
1420   DEFAULT_wxUSE_LOGGUI=no
1421   DEFAULT_wxUSE_LOGDIALOG=no
1422
1423   DEFAULT_wxUSE_GUI=yes
1424   DEFAULT_wxUSE_CONTROLS=no
1425
1426   DEFAULT_wxUSE_REGEX=no
1427   DEFAULT_wxUSE_ZLIB=no
1428   DEFAULT_wxUSE_LIBPNG=no
1429   DEFAULT_wxUSE_LIBJPEG=no
1430   DEFAULT_wxUSE_LIBTIFF=no
1431   DEFAULT_wxUSE_ODBC=no
1432   DEFAULT_wxUSE_OPENGL=no
1433
1434   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1435   DEFAULT_wxUSE_SNGLINST_CHECKER=no
1436   DEFAULT_wxUSE_STD_IOSTREAM=no
1437   DEFAULT_wxUSE_CMDLINE_PARSER=no
1438   DEFAULT_wxUSE_DATETIME=no
1439   DEFAULT_wxUSE_TIMEDATE=no
1440   DEFAULT_wxUSE_TIMER=no
1441   DEFAULT_wxUSE_STOPWATCH=no
1442   DEFAULT_wxUSE_FILE=no
1443   DEFAULT_wxUSE_FFILE=no
1444   DEFAULT_wxUSE_TEXTBUFFER=no
1445   DEFAULT_wxUSE_TEXTFILE=no
1446   DEFAULT_wxUSE_WAVE=no
1447   DEFAULT_wxUSE_INTL=no
1448   DEFAULT_wxUSE_CONFIG=no
1449   DEFAULT_wxUSE_FONTMAP=no
1450   DEFAULT_wxUSE_STREAMS=no
1451   DEFAULT_wxUSE_SOCKETS=no
1452   DEFAULT_wxUSE_OLE=no
1453   DEFAULT_wxUSE_DATAOBJ=no
1454   DEFAULT_wxUSE_DIALUP_MANAGER=no
1455   DEFAULT_wxUSE_JOYSTICK=no
1456   DEFAULT_wxUSE_DYNLIB_CLASS=no
1457   DEFAULT_wxUSE_DYNAMIC_LOADER=no
1458   DEFAULT_wxUSE_LONGLONG=no
1459   DEFAULT_wxUSE_GEOMETRY=no
1460
1461   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1462   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1463   DEFAULT_wxUSE_POSTSCRIPT=no
1464
1465   DEFAULT_wxUSE_X_RESOURCES=no
1466   DEFAULT_wxUSE_CLIPBOARD=no
1467   DEFAULT_wxUSE_TOOLTIPS=no
1468   DEFAULT_wxUSE_DRAG_AND_DROP=no
1469   DEFAULT_wxUSE_DRAGIMAGE=no
1470   DEFAULT_wxUSE_SPLINES=no
1471
1472   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1473   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1474   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1475
1476   DEFAULT_wxUSE_PROLOGIO=no
1477   DEFAULT_wxUSE_RESOURCES=no
1478   DEFAULT_wxUSE_CONSTRAINTS=no
1479   DEFAULT_wxUSE_IPC=no
1480   DEFAULT_wxUSE_HELP=no
1481   DEFAULT_wxUSE_MS_HTML_HELP=no
1482   DEFAULT_wxUSE_WXHTML_HELP=no
1483   DEFAULT_wxUSE_TREELAYOUT=no
1484   DEFAULT_wxUSE_METAFILE=no
1485   DEFAULT_wxUSE_MIMETYPE=no
1486   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1487   DEFAULT_wxUSE_PROTOCOL=no
1488   DEFAULT_wxUSE_PROTOCOL_HTTP=no
1489   DEFAULT_wxUSE_PROTOCOL_FTP=no
1490   DEFAULT_wxUSE_PROTOCOL_FILE=no
1491   DEFAULT_wxUSE_URL=no
1492
1493   DEFAULT_wxUSE_COMMONDLGS=no
1494   DEFAULT_wxUSE_CHOICEDLG=no
1495   DEFAULT_wxUSE_COLOURDLG=no
1496   DEFAULT_wxUSE_DIRDLG=no
1497   DEFAULT_wxUSE_FILEDLG=no
1498   DEFAULT_wxUSE_FINDREPLDLG=no
1499   DEFAULT_wxUSE_FONTDLG=no
1500   DEFAULT_wxUSE_MSGDLG=no
1501   DEFAULT_wxUSE_NUMBERDLG=no
1502   DEFAULT_wxUSE_TEXTDLG=no
1503   DEFAULT_wxUSE_SPLASH=no
1504   DEFAULT_wxUSE_STARTUP_TIPS=no
1505   DEFAULT_wxUSE_PROGRESSDLG=no
1506   DEFAULT_wxUSE_WIZARDDLG=no
1507
1508   DEFAULT_wxUSE_MENUS=no
1509   DEFAULT_wxUSE_MINIFRAME=no
1510   DEFAULT_wxUSE_HTML=no
1511   DEFAULT_wxUSE_FILESYSTEM=no
1512   DEFAULT_wxUSE_FS_INET=no
1513   DEFAULT_wxUSE_FS_ZIP=no
1514   DEFAULT_wxUSE_BUSYINFO=no
1515   DEFAULT_wxUSE_ZIPSTREAM=no
1516   DEFAULT_wxUSE_VALIDATORS=no
1517
1518   DEFAULT_wxUSE_ACCEL=no
1519   DEFAULT_wxUSE_BUTTON=no
1520   DEFAULT_wxUSE_BMPBUTTON=no
1521   DEFAULT_wxUSE_CALCTRL=no
1522   DEFAULT_wxUSE_CARET=no
1523   DEFAULT_wxUSE_CHECKBOX=no
1524   DEFAULT_wxUSE_CHECKLST=no
1525   DEFAULT_wxUSE_CHOICE=no
1526   DEFAULT_wxUSE_COMBOBOX=no
1527   DEFAULT_wxUSE_GAUGE=no
1528   DEFAULT_wxUSE_GRID=no
1529   DEFAULT_wxUSE_NEW_GRID=no
1530   DEFAULT_wxUSE_IMAGLIST=no
1531   DEFAULT_wxUSE_LISTBOX=no
1532   DEFAULT_wxUSE_LISTCTRL=no
1533   DEFAULT_wxUSE_NOTEBOOK=no
1534   DEFAULT_wxUSE_PROPSHEET=no
1535   DEFAULT_wxUSE_RADIOBOX=no
1536   DEFAULT_wxUSE_RADIOBTN=no
1537   DEFAULT_wxUSE_SASH=no
1538   DEFAULT_wxUSE_SCROLLBAR=no
1539   DEFAULT_wxUSE_SLIDER=no
1540   DEFAULT_wxUSE_SPINBTN=no
1541   DEFAULT_wxUSE_SPINCTRL=no
1542   DEFAULT_wxUSE_SPLITTER=no
1543   DEFAULT_wxUSE_STATBMP=no
1544   DEFAULT_wxUSE_STATBOX=no
1545   DEFAULT_wxUSE_STATLINE=no
1546   DEFAULT_wxUSE_STATTEXT=no
1547   DEFAULT_wxUSE_STATUSBAR=yes
1548   DEFAULT_wxUSE_TABDIALOG=no
1549   DEFAULT_wxUSE_TEXTCTRL=no
1550   DEFAULT_wxUSE_TOGGLEBTN=no
1551   DEFAULT_wxUSE_TOOLBAR=no
1552   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1553   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1554   DEFAULT_wxUSE_TREECTRL=no
1555   DEFAULT_wxUSE_POPUPWIN=no
1556   DEFAULT_wxUSE_TIPWINDOW=no
1557
1558   DEFAULT_wxUSE_UNICODE=no
1559   DEFAULT_wxUSE_UNICODE_MSLU=no
1560   DEFAULT_wxUSE_WCSRTOMBS=no
1561
1562   DEFAULT_wxUSE_PALETTE=no
1563   DEFAULT_wxUSE_IMAGE=no
1564   DEFAULT_wxUSE_GIF=no
1565   DEFAULT_wxUSE_PCX=no
1566   DEFAULT_wxUSE_PNM=no
1567   DEFAULT_wxUSE_IFF=no
1568   DEFAULT_wxUSE_XPM=no
1569   DEFAULT_wxUSE_ICO_CUR=no
1570 else
1571   DEFAULT_wxUSE_UNIVERSAL=no
1572
1573   DEFAULT_wxUSE_NANOX=no
1574
1575   DEFAULT_wxUSE_THREADS=yes
1576
1577   DEFAULT_wxUSE_SHARED=yes
1578   DEFAULT_wxUSE_SONAME=no
1579   DEFAULT_wxUSE_OPTIMISE=yes
1580   DEFAULT_wxUSE_PROFILE=no
1581   DEFAULT_wxUSE_NO_DEPS=no
1582   DEFAULT_wxUSE_NO_RTTI=no
1583   DEFAULT_wxUSE_NO_EXCEPTIONS=no
1584   DEFAULT_wxUSE_PERMISSIVE=no
1585   DEFAULT_wxUSE_DEBUG_FLAG=no
1586   DEFAULT_wxUSE_DEBUG_INFO=no
1587   DEFAULT_wxUSE_DEBUG_GDB=no
1588   DEFAULT_wxUSE_MEM_TRACING=no
1589   DEFAULT_wxUSE_DEBUG_CONTEXT=no
1590   DEFAULT_wxUSE_DMALLOC=no
1591   DEFAULT_wxUSE_PRECOMP=no
1592   DEFAULT_wxUSE_APPLE_IEEE=yes
1593
1594   DEFAULT_wxUSE_LOG=yes
1595   DEFAULT_wxUSE_LOGWINDOW=yes
1596   DEFAULT_wxUSE_LOGGUI=yes
1597   DEFAULT_wxUSE_LOGDIALOG=yes
1598
1599   DEFAULT_wxUSE_GUI=yes
1600
1601   DEFAULT_wxUSE_REGEX=yes
1602   DEFAULT_wxUSE_ZLIB=yes
1603   DEFAULT_wxUSE_LIBPNG=yes
1604   DEFAULT_wxUSE_LIBJPEG=yes
1605   DEFAULT_wxUSE_LIBTIFF=yes
1606   DEFAULT_wxUSE_ODBC=no
1607   DEFAULT_wxUSE_OPENGL=no
1608
1609   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1610   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1611   DEFAULT_wxUSE_STD_IOSTREAM=no
1612   DEFAULT_wxUSE_CMDLINE_PARSER=yes
1613   DEFAULT_wxUSE_DATETIME=yes
1614   DEFAULT_wxUSE_TIMEDATE=no
1615   DEFAULT_wxUSE_TIMER=yes
1616   DEFAULT_wxUSE_STOPWATCH=yes
1617   DEFAULT_wxUSE_FILE=yes
1618   DEFAULT_wxUSE_FFILE=yes
1619   DEFAULT_wxUSE_TEXTBUFFER=yes
1620   DEFAULT_wxUSE_TEXTFILE=yes
1621   DEFAULT_wxUSE_WAVE=no
1622   DEFAULT_wxUSE_INTL=yes
1623   DEFAULT_wxUSE_CONFIG=yes
1624   DEFAULT_wxUSE_FONTMAP=yes
1625   DEFAULT_wxUSE_STREAMS=yes
1626   DEFAULT_wxUSE_SOCKETS=yes
1627   DEFAULT_wxUSE_OLE=yes
1628   DEFAULT_wxUSE_DATAOBJ=yes
1629   DEFAULT_wxUSE_DIALUP_MANAGER=yes
1630   DEFAULT_wxUSE_JOYSTICK=yes
1631   DEFAULT_wxUSE_DYNLIB_CLASS=yes
1632   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1633   DEFAULT_wxUSE_LONGLONG=yes
1634   DEFAULT_wxUSE_GEOMETRY=yes
1635
1636   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1637   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1638   DEFAULT_wxUSE_POSTSCRIPT=yes
1639
1640   DEFAULT_wxUSE_X_RESOURCES=no
1641   DEFAULT_wxUSE_CLIPBOARD=yes
1642   DEFAULT_wxUSE_TOOLTIPS=yes
1643   DEFAULT_wxUSE_DRAG_AND_DROP=yes
1644   DEFAULT_wxUSE_DRAGIMAGE=yes
1645   DEFAULT_wxUSE_SPLINES=yes
1646
1647   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1648   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1649   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1650
1651   DEFAULT_wxUSE_PROLOGIO=yes
1652   DEFAULT_wxUSE_RESOURCES=yes
1653   DEFAULT_wxUSE_CONSTRAINTS=yes
1654   DEFAULT_wxUSE_IPC=yes
1655   DEFAULT_wxUSE_HELP=yes
1656   DEFAULT_wxUSE_MS_HTML_HELP=yes
1657   DEFAULT_wxUSE_WXHTML_HELP=yes
1658   DEFAULT_wxUSE_TREELAYOUT=yes
1659   DEFAULT_wxUSE_METAFILE=yes
1660   DEFAULT_wxUSE_MIMETYPE=yes
1661   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1662   DEFAULT_wxUSE_PROTOCOL=yes
1663   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1664   DEFAULT_wxUSE_PROTOCOL_FTP=yes
1665   DEFAULT_wxUSE_PROTOCOL_FILE=yes
1666   DEFAULT_wxUSE_URL=yes
1667
1668   DEFAULT_wxUSE_COMMONDLGS=yes
1669   DEFAULT_wxUSE_CHOICEDLG=yes
1670   DEFAULT_wxUSE_COLOURDLG=yes
1671   DEFAULT_wxUSE_DIRDLG=yes
1672   DEFAULT_wxUSE_FILEDLG=yes
1673   DEFAULT_wxUSE_FINDREPLDLG=yes
1674   DEFAULT_wxUSE_FONTDLG=yes
1675   DEFAULT_wxUSE_MSGDLG=yes
1676   DEFAULT_wxUSE_NUMBERDLG=yes
1677   DEFAULT_wxUSE_TEXTDLG=yes
1678   DEFAULT_wxUSE_SPLASH=yes
1679   DEFAULT_wxUSE_STARTUP_TIPS=yes
1680   DEFAULT_wxUSE_PROGRESSDLG=yes
1681   DEFAULT_wxUSE_WIZARDDLG=yes
1682
1683   DEFAULT_wxUSE_MENUS=yes
1684   DEFAULT_wxUSE_MINIFRAME=yes
1685   DEFAULT_wxUSE_HTML=yes
1686   DEFAULT_wxUSE_FILESYSTEM=yes
1687   DEFAULT_wxUSE_FS_INET=yes
1688   DEFAULT_wxUSE_FS_ZIP=yes
1689   DEFAULT_wxUSE_BUSYINFO=yes
1690   DEFAULT_wxUSE_ZIPSTREAM=yes
1691   DEFAULT_wxUSE_VALIDATORS=yes
1692
1693   DEFAULT_wxUSE_ACCEL=yes
1694   DEFAULT_wxUSE_BUTTON=yes
1695   DEFAULT_wxUSE_BMPBUTTON=yes
1696   DEFAULT_wxUSE_CALCTRL=yes
1697   DEFAULT_wxUSE_CARET=yes
1698   DEFAULT_wxUSE_CHECKBOX=yes
1699   DEFAULT_wxUSE_CHECKLST=yes
1700   DEFAULT_wxUSE_CHOICE=yes
1701   DEFAULT_wxUSE_COMBOBOX=yes
1702   DEFAULT_wxUSE_GAUGE=yes
1703   DEFAULT_wxUSE_GRID=yes
1704   DEFAULT_wxUSE_NEW_GRID=yes
1705   DEFAULT_wxUSE_IMAGLIST=yes
1706   DEFAULT_wxUSE_LISTBOX=yes
1707   DEFAULT_wxUSE_LISTCTRL=yes
1708   DEFAULT_wxUSE_NOTEBOOK=yes
1709   DEFAULT_wxUSE_PROPSHEET=yes
1710   DEFAULT_wxUSE_RADIOBOX=yes
1711   DEFAULT_wxUSE_RADIOBTN=yes
1712   DEFAULT_wxUSE_SASH=yes
1713   DEFAULT_wxUSE_SCROLLBAR=yes
1714   DEFAULT_wxUSE_SLIDER=yes
1715   DEFAULT_wxUSE_SPINBTN=yes
1716   DEFAULT_wxUSE_SPINCTRL=yes
1717   DEFAULT_wxUSE_SPLITTER=yes
1718   DEFAULT_wxUSE_STATBMP=yes
1719   DEFAULT_wxUSE_STATBOX=yes
1720   DEFAULT_wxUSE_STATLINE=yes
1721   DEFAULT_wxUSE_STATTEXT=yes
1722   DEFAULT_wxUSE_STATUSBAR=yes
1723   DEFAULT_wxUSE_TABDIALOG=no
1724   DEFAULT_wxUSE_TEXTCTRL=yes
1725   DEFAULT_wxUSE_TOGGLEBTN=yes
1726   DEFAULT_wxUSE_TOOLBAR=yes
1727   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1728   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1729   DEFAULT_wxUSE_TREECTRL=yes
1730   DEFAULT_wxUSE_POPUPWIN=yes
1731   DEFAULT_wxUSE_TIPWINDOW=yes
1732
1733   DEFAULT_wxUSE_UNICODE=no
1734   DEFAULT_wxUSE_UNICODE_MSLU=yes
1735   DEFAULT_wxUSE_WCSRTOMBS=no
1736
1737   DEFAULT_wxUSE_PALETTE=yes
1738   DEFAULT_wxUSE_IMAGE=yes
1739   DEFAULT_wxUSE_GIF=yes
1740   DEFAULT_wxUSE_PCX=yes
1741   DEFAULT_wxUSE_IFF=no
1742   DEFAULT_wxUSE_PNM=yes
1743   DEFAULT_wxUSE_XPM=yes
1744   DEFAULT_wxUSE_ICO_CUR=yes
1745 fi
1746
1747
1748
1749 for toolkit in `echo $ALL_TOOLKITS`; do
1750   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1751   if test "x$LINE" != "x" ; then
1752     has_toolkit_in_cache=1
1753     eval "DEFAULT_$LINE"
1754     eval "CACHE_$toolkit=1"
1755   fi
1756 done
1757
1758
1759
1760           echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1761 echo "configure:1762: checking for --enable-gui" >&5
1762           no_cache=0
1763           # Check whether --enable-gui or --disable-gui was given.
1764 if test "${enable_gui+set}" = set; then
1765   enableval="$enable_gui"
1766   
1767                           if test "$enableval" = yes; then
1768                             ac_cv_use_gui='wxUSE_GUI=yes'
1769                           else
1770                             ac_cv_use_gui='wxUSE_GUI=no'
1771                           fi
1772                         
1773 else
1774   
1775                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1776                           if test "x$LINE" != x ; then
1777                             eval "DEFAULT_$LINE"
1778                           else
1779                             no_cache=1
1780                           fi
1781
1782                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1783                         
1784 fi
1785
1786
1787           eval "$ac_cv_use_gui"
1788           if test "$no_cache" != 1; then
1789             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1790           fi
1791
1792           if test "$wxUSE_GUI" = yes; then
1793             echo "$ac_t""yes" 1>&6
1794           else
1795             echo "$ac_t""no" 1>&6
1796           fi
1797         
1798
1799 if test "$wxUSE_GUI" = "yes"; then
1800
1801
1802           echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1803 echo "configure:1804: checking for --enable-universal" >&5
1804           no_cache=0
1805           # Check whether --enable-universal or --disable-universal was given.
1806 if test "${enable_universal+set}" = set; then
1807   enableval="$enable_universal"
1808   
1809                           if test "$enableval" = yes; then
1810                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1811                           else
1812                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1813                           fi
1814                         
1815 else
1816   
1817                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1818                           if test "x$LINE" != x ; then
1819                             eval "DEFAULT_$LINE"
1820                           else
1821                             no_cache=1
1822                           fi
1823
1824                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1825                         
1826 fi
1827
1828
1829           eval "$ac_cv_use_universal"
1830           if test "$no_cache" != 1; then
1831             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1832           fi
1833
1834           if test "$wxUSE_UNIVERSAL" = yes; then
1835             echo "$ac_t""yes" 1>&6
1836           else
1837             echo "$ac_t""no" 1>&6
1838           fi
1839         
1840 # Check whether --with-gtk or --without-gtk was given.
1841 if test "${with_gtk+set}" = set; then
1842   withval="$with_gtk"
1843   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1844 fi
1845
1846 # Check whether --with-motif or --without-motif was given.
1847 if test "${with_motif+set}" = set; then
1848   withval="$with_motif"
1849   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1850 fi
1851
1852 # Check whether --with-mac or --without-mac was given.
1853 if test "${with_mac+set}" = set; then
1854   withval="$with_mac"
1855   wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1856 fi
1857
1858 # Check whether --with-wine or --without-wine was given.
1859 if test "${with_wine+set}" = set; then
1860   withval="$with_wine"
1861   wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1862 fi
1863
1864 # Check whether --with-msw or --without-msw was given.
1865 if test "${with_msw+set}" = set; then
1866   withval="$with_msw"
1867   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1868 fi
1869
1870 # Check whether --with-pm or --without-pm was given.
1871 if test "${with_pm+set}" = set; then
1872   withval="$with_pm"
1873   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1874 fi
1875
1876 # Check whether --with-mgl or --without-mgl was given.
1877 if test "${with_mgl+set}" = set; then
1878   withval="$with_mgl"
1879   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1880 fi
1881
1882 # Check whether --with-microwin or --without-microwin was given.
1883 if test "${with_microwin+set}" = set; then
1884   withval="$with_microwin"
1885   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1886 fi
1887
1888 # Check whether --with-x11 or --without-x11 was given.
1889 if test "${with_x11+set}" = set; then
1890   withval="$with_x11"
1891   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1892 fi
1893
1894
1895           echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6
1896 echo "configure:1897: checking for --enable-nanox" >&5
1897           no_cache=0
1898           # Check whether --enable-nanox or --disable-nanox was given.
1899 if test "${enable_nanox+set}" = set; then
1900   enableval="$enable_nanox"
1901   
1902                           if test "$enableval" = yes; then
1903                             ac_cv_use_nanox='wxUSE_NANOX=yes'
1904                           else
1905                             ac_cv_use_nanox='wxUSE_NANOX=no'
1906                           fi
1907                         
1908 else
1909   
1910                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1911                           if test "x$LINE" != x ; then
1912                             eval "DEFAULT_$LINE"
1913                           else
1914                             no_cache=1
1915                           fi
1916
1917                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1918                         
1919 fi
1920
1921
1922           eval "$ac_cv_use_nanox"
1923           if test "$no_cache" != 1; then
1924             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1925           fi
1926
1927           if test "$wxUSE_NANOX" = yes; then
1928             echo "$ac_t""yes" 1>&6
1929           else
1930             echo "$ac_t""no" 1>&6
1931           fi
1932         
1933
1934
1935           echo $ac_n "checking for --enable-gtk2""... $ac_c" 1>&6
1936 echo "configure:1937: checking for --enable-gtk2" >&5
1937           no_cache=0
1938           # Check whether --enable-gtk2 or --disable-gtk2 was given.
1939 if test "${enable_gtk2+set}" = set; then
1940   enableval="$enable_gtk2"
1941   
1942                           if test "$enableval" = yes; then
1943                             ac_cv_use_gtk2='wxUSE_GTK2=yes'
1944                           else
1945                             ac_cv_use_gtk2='wxUSE_GTK2=no'
1946                           fi
1947                         
1948 else
1949   
1950                           LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1951                           if test "x$LINE" != x ; then
1952                             eval "DEFAULT_$LINE"
1953                           else
1954                             no_cache=1
1955                           fi
1956
1957                           ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
1958                         
1959 fi
1960
1961
1962           eval "$ac_cv_use_gtk2"
1963           if test "$no_cache" != 1; then
1964             echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1965           fi
1966
1967           if test "$wxUSE_GTK2" = yes; then
1968             echo "$ac_t""yes" 1>&6
1969           else
1970             echo "$ac_t""no" 1>&6
1971           fi
1972         
1973
1974
1975           echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1976 echo "configure:1977: checking for --with-libpng" >&5
1977           no_cache=0
1978           # Check whether --with-libpng or --without-libpng was given.
1979 if test "${with_libpng+set}" = set; then
1980   withval="$with_libpng"
1981   
1982                         if test "$withval" = yes; then
1983                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1984                         elif test "$withval" = no; then
1985                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
1986                         elif test "$withval" = sys; then
1987                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1988                         elif test "$withval" = builtin; then
1989                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1990                         else
1991                           { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1992                         fi
1993                       
1994 else
1995   
1996                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1997                         if test "x$LINE" != x ; then
1998                           eval "DEFAULT_$LINE"
1999                         else
2000                           no_cache=1
2001                         fi
2002
2003                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2004                       
2005 fi
2006
2007
2008           eval "$ac_cv_use_libpng"
2009           if test "$no_cache" != 1; then
2010             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2011           fi
2012
2013           if test "$wxUSE_LIBPNG" = yes; then
2014             echo "$ac_t""yes" 1>&6
2015           elif test "$wxUSE_LIBPNG" = no; then
2016             echo "$ac_t""no" 1>&6
2017           elif test "$wxUSE_LIBPNG" = sys; then
2018             echo "$ac_t""system version" 1>&6
2019           elif test "$wxUSE_LIBPNG" = builtin; then
2020             echo "$ac_t""builtin version" 1>&6
2021           else
2022             { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2023           fi
2024         
2025
2026           echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2027 echo "configure:2028: checking for --with-libjpeg" >&5
2028           no_cache=0
2029           # Check whether --with-libjpeg or --without-libjpeg was given.
2030 if test "${with_libjpeg+set}" = set; then
2031   withval="$with_libjpeg"
2032   
2033                         if test "$withval" = yes; then
2034                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2035                         elif test "$withval" = no; then
2036                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2037                         elif test "$withval" = sys; then
2038                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2039                         elif test "$withval" = builtin; then
2040                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2041                         else
2042                           { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2043                         fi
2044                       
2045 else
2046   
2047                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2048                         if test "x$LINE" != x ; then
2049                           eval "DEFAULT_$LINE"
2050                         else
2051                           no_cache=1
2052                         fi
2053
2054                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2055                       
2056 fi
2057
2058
2059           eval "$ac_cv_use_libjpeg"
2060           if test "$no_cache" != 1; then
2061             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2062           fi
2063
2064           if test "$wxUSE_LIBJPEG" = yes; then
2065             echo "$ac_t""yes" 1>&6
2066           elif test "$wxUSE_LIBJPEG" = no; then
2067             echo "$ac_t""no" 1>&6
2068           elif test "$wxUSE_LIBJPEG" = sys; then
2069             echo "$ac_t""system version" 1>&6
2070           elif test "$wxUSE_LIBJPEG" = builtin; then
2071             echo "$ac_t""builtin version" 1>&6
2072           else
2073             { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2074           fi
2075         
2076
2077           echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2078 echo "configure:2079: checking for --with-libtiff" >&5
2079           no_cache=0
2080           # Check whether --with-libtiff or --without-libtiff was given.
2081 if test "${with_libtiff+set}" = set; then
2082   withval="$with_libtiff"
2083   
2084                         if test "$withval" = yes; then
2085                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2086                         elif test "$withval" = no; then
2087                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2088                         elif test "$withval" = sys; then
2089                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2090                         elif test "$withval" = builtin; then
2091                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2092                         else
2093                           { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2094                         fi
2095                       
2096 else
2097   
2098                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2099                         if test "x$LINE" != x ; then
2100                           eval "DEFAULT_$LINE"
2101                         else
2102                           no_cache=1
2103                         fi
2104
2105                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2106                       
2107 fi
2108
2109
2110           eval "$ac_cv_use_libtiff"
2111           if test "$no_cache" != 1; then
2112             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2113           fi
2114
2115           if test "$wxUSE_LIBTIFF" = yes; then
2116             echo "$ac_t""yes" 1>&6
2117           elif test "$wxUSE_LIBTIFF" = no; then
2118             echo "$ac_t""no" 1>&6
2119           elif test "$wxUSE_LIBTIFF" = sys; then
2120             echo "$ac_t""system version" 1>&6
2121           elif test "$wxUSE_LIBTIFF" = builtin; then
2122             echo "$ac_t""builtin version" 1>&6
2123           else
2124             { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2125           fi
2126         
2127
2128           echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2129 echo "configure:2130: checking for --with-opengl" >&5
2130           no_cache=0
2131           # Check whether --with-opengl or --without-opengl was given.
2132 if test "${with_opengl+set}" = set; then
2133   withval="$with_opengl"
2134   
2135                         if test "$withval" = yes; then
2136                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
2137                         else
2138                           ac_cv_use_opengl='wxUSE_OPENGL=no'
2139                         fi
2140                       
2141 else
2142   
2143                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2144                         if test "x$LINE" != x ; then
2145                           eval "DEFAULT_$LINE"
2146                         else
2147                           no_cache=1
2148                         fi
2149
2150                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2151                       
2152 fi
2153
2154
2155           eval "$ac_cv_use_opengl"
2156           if test "$no_cache" != 1; then
2157             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2158           fi
2159
2160           if test "$wxUSE_OPENGL" = yes; then
2161             echo "$ac_t""yes" 1>&6
2162           else
2163             echo "$ac_t""no" 1>&6
2164           fi
2165         
2166
2167 fi
2168
2169
2170           echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2171 echo "configure:2172: checking for --with-dmalloc" >&5
2172           no_cache=0
2173           # Check whether --with-dmalloc or --without-dmalloc was given.
2174 if test "${with_dmalloc+set}" = set; then
2175   withval="$with_dmalloc"
2176   
2177                         if test "$withval" = yes; then
2178                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2179                         else
2180                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2181                         fi
2182                       
2183 else
2184   
2185                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2186                         if test "x$LINE" != x ; then
2187                           eval "DEFAULT_$LINE"
2188                         else
2189                           no_cache=1
2190                         fi
2191
2192                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2193                       
2194 fi
2195
2196
2197           eval "$ac_cv_use_dmalloc"
2198           if test "$no_cache" != 1; then
2199             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2200           fi
2201
2202           if test "$wxUSE_DMALLOC" = yes; then
2203             echo "$ac_t""yes" 1>&6
2204           else
2205             echo "$ac_t""no" 1>&6
2206           fi
2207         
2208
2209           echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2210 echo "configure:2211: checking for --with-regex" >&5
2211           no_cache=0
2212           # Check whether --with-regex or --without-regex was given.
2213 if test "${with_regex+set}" = set; then
2214   withval="$with_regex"
2215   
2216                         if test "$withval" = yes; then
2217                           ac_cv_use_regex='wxUSE_REGEX=yes'
2218                         elif test "$withval" = no; then
2219                           ac_cv_use_regex='wxUSE_REGEX=no'
2220                         elif test "$withval" = sys; then
2221                           ac_cv_use_regex='wxUSE_REGEX=sys'
2222                         elif test "$withval" = builtin; then
2223                           ac_cv_use_regex='wxUSE_REGEX=builtin'
2224                         else
2225                           { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2226                         fi
2227                       
2228 else
2229   
2230                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2231                         if test "x$LINE" != x ; then
2232                           eval "DEFAULT_$LINE"
2233                         else
2234                           no_cache=1
2235                         fi
2236
2237                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2238                       
2239 fi
2240
2241
2242           eval "$ac_cv_use_regex"
2243           if test "$no_cache" != 1; then
2244             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2245           fi
2246
2247           if test "$wxUSE_REGEX" = yes; then
2248             echo "$ac_t""yes" 1>&6
2249           elif test "$wxUSE_REGEX" = no; then
2250             echo "$ac_t""no" 1>&6
2251           elif test "$wxUSE_REGEX" = sys; then
2252             echo "$ac_t""system version" 1>&6
2253           elif test "$wxUSE_REGEX" = builtin; then
2254             echo "$ac_t""builtin version" 1>&6
2255           else
2256             { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2257           fi
2258         
2259
2260           echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2261 echo "configure:2262: checking for --with-zlib" >&5
2262           no_cache=0
2263           # Check whether --with-zlib or --without-zlib was given.
2264 if test "${with_zlib+set}" = set; then
2265   withval="$with_zlib"
2266   
2267                         if test "$withval" = yes; then
2268                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
2269                         elif test "$withval" = no; then
2270                           ac_cv_use_zlib='wxUSE_ZLIB=no'
2271                         elif test "$withval" = sys; then
2272                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
2273                         elif test "$withval" = builtin; then
2274                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2275                         else
2276                           { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2277                         fi
2278                       
2279 else
2280   
2281                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2282                         if test "x$LINE" != x ; then
2283                           eval "DEFAULT_$LINE"
2284                         else
2285                           no_cache=1
2286                         fi
2287
2288                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2289                       
2290 fi
2291
2292
2293           eval "$ac_cv_use_zlib"
2294           if test "$no_cache" != 1; then
2295             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2296           fi
2297
2298           if test "$wxUSE_ZLIB" = yes; then
2299             echo "$ac_t""yes" 1>&6
2300           elif test "$wxUSE_ZLIB" = no; then
2301             echo "$ac_t""no" 1>&6
2302           elif test "$wxUSE_ZLIB" = sys; then
2303             echo "$ac_t""system version" 1>&6
2304           elif test "$wxUSE_ZLIB" = builtin; then
2305             echo "$ac_t""builtin version" 1>&6
2306           else
2307             { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2308           fi
2309         
2310
2311           echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2312 echo "configure:2313: checking for --with-odbc" >&5
2313           no_cache=0
2314           # Check whether --with-odbc or --without-odbc was given.
2315 if test "${with_odbc+set}" = set; then
2316   withval="$with_odbc"
2317   
2318                         if test "$withval" = yes; then
2319                           ac_cv_use_odbc='wxUSE_ODBC=yes'
2320                         else
2321                           ac_cv_use_odbc='wxUSE_ODBC=no'
2322                         fi
2323                       
2324 else
2325   
2326                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2327                         if test "x$LINE" != x ; then
2328                           eval "DEFAULT_$LINE"
2329                         else
2330                           no_cache=1
2331                         fi
2332
2333                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2334                       
2335 fi
2336
2337
2338           eval "$ac_cv_use_odbc"
2339           if test "$no_cache" != 1; then
2340             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2341           fi
2342
2343           if test "$wxUSE_ODBC" = yes; then
2344             echo "$ac_t""yes" 1>&6
2345           else
2346             echo "$ac_t""no" 1>&6
2347           fi
2348         
2349
2350
2351
2352           echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2353 echo "configure:2354: checking for --enable-shared" >&5
2354           no_cache=0
2355           # Check whether --enable-shared or --disable-shared was given.
2356 if test "${enable_shared+set}" = set; then
2357   enableval="$enable_shared"
2358   
2359                           if test "$enableval" = yes; then
2360                             ac_cv_use_shared='wxUSE_SHARED=yes'
2361                           else
2362                             ac_cv_use_shared='wxUSE_SHARED=no'
2363                           fi
2364                         
2365 else
2366   
2367                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2368                           if test "x$LINE" != x ; then
2369                             eval "DEFAULT_$LINE"
2370                           else
2371                             no_cache=1
2372                           fi
2373
2374                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2375                         
2376 fi
2377
2378
2379           eval "$ac_cv_use_shared"
2380           if test "$no_cache" != 1; then
2381             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2382           fi
2383
2384           if test "$wxUSE_SHARED" = yes; then
2385             echo "$ac_t""yes" 1>&6
2386           else
2387             echo "$ac_t""no" 1>&6
2388           fi
2389         
2390
2391           echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2392 echo "configure:2393: checking for --enable-soname" >&5
2393           no_cache=0
2394           # Check whether --enable-soname or --disable-soname was given.
2395 if test "${enable_soname+set}" = set; then
2396   enableval="$enable_soname"
2397   
2398                           if test "$enableval" = yes; then
2399                             ac_cv_use_soname='wxUSE_SONAME=yes'
2400                           else
2401                             ac_cv_use_soname='wxUSE_SONAME=no'
2402                           fi
2403                         
2404 else
2405   
2406                           LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2407                           if test "x$LINE" != x ; then
2408                             eval "DEFAULT_$LINE"
2409                           else
2410                             no_cache=1
2411                           fi
2412
2413                           ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2414                         
2415 fi
2416
2417
2418           eval "$ac_cv_use_soname"
2419           if test "$no_cache" != 1; then
2420             echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2421           fi
2422
2423           if test "$wxUSE_SONAME" = yes; then
2424             echo "$ac_t""yes" 1>&6
2425           else
2426             echo "$ac_t""no" 1>&6
2427           fi
2428         
2429
2430           echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2431 echo "configure:2432: checking for --enable-optimise" >&5
2432           no_cache=0
2433           # Check whether --enable-optimise or --disable-optimise was given.
2434 if test "${enable_optimise+set}" = set; then
2435   enableval="$enable_optimise"
2436   
2437                           if test "$enableval" = yes; then
2438                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2439                           else
2440                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2441                           fi
2442                         
2443 else
2444   
2445                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2446                           if test "x$LINE" != x ; then
2447                             eval "DEFAULT_$LINE"
2448                           else
2449                             no_cache=1
2450                           fi
2451
2452                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2453                         
2454 fi
2455
2456
2457           eval "$ac_cv_use_optimise"
2458           if test "$no_cache" != 1; then
2459             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2460           fi
2461
2462           if test "$wxUSE_OPTIMISE" = yes; then
2463             echo "$ac_t""yes" 1>&6
2464           else
2465             echo "$ac_t""no" 1>&6
2466           fi
2467         
2468
2469           echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2470 echo "configure:2471: checking for --enable-debug" >&5
2471           no_cache=0
2472           # Check whether --enable-debug or --disable-debug was given.
2473 if test "${enable_debug+set}" = set; then
2474   enableval="$enable_debug"
2475   
2476                           if test "$enableval" = yes; then
2477                             ac_cv_use_debug='wxUSE_DEBUG=yes'
2478                           else
2479                             ac_cv_use_debug='wxUSE_DEBUG=no'
2480                           fi
2481                         
2482 else
2483   
2484                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2485                           if test "x$LINE" != x ; then
2486                             eval "DEFAULT_$LINE"
2487                           else
2488                             no_cache=1
2489                           fi
2490
2491                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2492                         
2493 fi
2494
2495
2496           eval "$ac_cv_use_debug"
2497           if test "$no_cache" != 1; then
2498             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2499           fi
2500
2501           if test "$wxUSE_DEBUG" = yes; then
2502             echo "$ac_t""yes" 1>&6
2503           else
2504             echo "$ac_t""no" 1>&6
2505           fi
2506         
2507
2508
2509           echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2510 echo "configure:2511: checking for --enable-precomp" >&5
2511           no_cache=0
2512           # Check whether --enable-precomp or --disable-precomp was given.
2513 if test "${enable_precomp+set}" = set; then
2514   enableval="$enable_precomp"
2515   
2516                           if test "$enableval" = yes; then
2517                             ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2518                           else
2519                             ac_cv_use_precomp='wxUSE_PRECOMP=no'
2520                           fi
2521                         
2522 else
2523   
2524                           LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2525                           if test "x$LINE" != x ; then
2526                             eval "DEFAULT_$LINE"
2527                           else
2528                             no_cache=1
2529                           fi
2530
2531                           ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2532                         
2533 fi
2534
2535
2536           eval "$ac_cv_use_precomp"
2537           if test "$no_cache" != 1; then
2538             echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2539           fi
2540
2541           if test "$wxUSE_PRECOMP" = yes; then
2542             echo "$ac_t""yes" 1>&6
2543           else
2544             echo "$ac_t""no" 1>&6
2545           fi
2546         
2547
2548 if test "$wxUSE_DEBUG" = "yes"; then
2549   DEFAULT_wxUSE_DEBUG_FLAG=yes
2550   DEFAULT_wxUSE_DEBUG_INFO=yes
2551 elif test "$wxUSE_DEBUG" = "no"; then
2552   DEFAULT_wxUSE_DEBUG_FLAG=no
2553   DEFAULT_wxUSE_DEBUG_INFO=no
2554 fi
2555
2556
2557           echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2558 echo "configure:2559: checking for --enable-debug_flag" >&5
2559           no_cache=0
2560           # Check whether --enable-debug_flag or --disable-debug_flag was given.
2561 if test "${enable_debug_flag+set}" = set; then
2562   enableval="$enable_debug_flag"
2563   
2564                           if test "$enableval" = yes; then
2565                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2566                           else
2567                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2568                           fi
2569                         
2570 else
2571   
2572                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2573                           if test "x$LINE" != x ; then
2574                             eval "DEFAULT_$LINE"
2575                           else
2576                             no_cache=1
2577                           fi
2578
2579                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2580                         
2581 fi
2582
2583
2584           eval "$ac_cv_use_debug_flag"
2585           if test "$no_cache" != 1; then
2586             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2587           fi
2588
2589           if test "$wxUSE_DEBUG_FLAG" = yes; then
2590             echo "$ac_t""yes" 1>&6
2591           else
2592             echo "$ac_t""no" 1>&6
2593           fi
2594         
2595
2596           echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2597 echo "configure:2598: checking for --enable-debug_info" >&5
2598           no_cache=0
2599           # Check whether --enable-debug_info or --disable-debug_info was given.
2600 if test "${enable_debug_info+set}" = set; then
2601   enableval="$enable_debug_info"
2602   
2603                           if test "$enableval" = yes; then
2604                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2605                           else
2606                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2607                           fi
2608                         
2609 else
2610   
2611                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2612                           if test "x$LINE" != x ; then
2613                             eval "DEFAULT_$LINE"
2614                           else
2615                             no_cache=1
2616                           fi
2617
2618                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2619                         
2620 fi
2621
2622
2623           eval "$ac_cv_use_debug_info"
2624           if test "$no_cache" != 1; then
2625             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2626           fi
2627
2628           if test "$wxUSE_DEBUG_INFO" = yes; then
2629             echo "$ac_t""yes" 1>&6
2630           else
2631             echo "$ac_t""no" 1>&6
2632           fi
2633         
2634
2635           echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2636 echo "configure:2637: checking for --enable-debug_gdb" >&5
2637           no_cache=0
2638           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2639 if test "${enable_debug_gdb+set}" = set; then
2640   enableval="$enable_debug_gdb"
2641   
2642                           if test "$enableval" = yes; then
2643                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2644                           else
2645                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2646                           fi
2647                         
2648 else
2649   
2650                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2651                           if test "x$LINE" != x ; then
2652                             eval "DEFAULT_$LINE"
2653                           else
2654                             no_cache=1
2655                           fi
2656
2657                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2658                         
2659 fi
2660
2661
2662           eval "$ac_cv_use_debug_gdb"
2663           if test "$no_cache" != 1; then
2664             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2665           fi
2666
2667           if test "$wxUSE_DEBUG_GDB" = yes; then
2668             echo "$ac_t""yes" 1>&6
2669           else
2670             echo "$ac_t""no" 1>&6
2671           fi
2672         
2673
2674           echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2675 echo "configure:2676: checking for --enable-debug_cntxt" >&5
2676           no_cache=0
2677           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2678 if test "${enable_debug_cntxt+set}" = set; then
2679   enableval="$enable_debug_cntxt"
2680   
2681                           if test "$enableval" = yes; then
2682                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2683                           else
2684                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2685                           fi
2686                         
2687 else
2688   
2689                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2690                           if test "x$LINE" != x ; then
2691                             eval "DEFAULT_$LINE"
2692                           else
2693                             no_cache=1
2694                           fi
2695
2696                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2697                         
2698 fi
2699
2700
2701           eval "$ac_cv_use_debug_cntxt"
2702           if test "$no_cache" != 1; then
2703             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2704           fi
2705
2706           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2707             echo "$ac_t""yes" 1>&6
2708           else
2709             echo "$ac_t""no" 1>&6
2710           fi
2711         
2712
2713           echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2714 echo "configure:2715: checking for --enable-mem_tracing" >&5
2715           no_cache=0
2716           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2717 if test "${enable_mem_tracing+set}" = set; then
2718   enableval="$enable_mem_tracing"
2719   
2720                           if test "$enableval" = yes; then
2721                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2722                           else
2723                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2724                           fi
2725                         
2726 else
2727   
2728                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2729                           if test "x$LINE" != x ; then
2730                             eval "DEFAULT_$LINE"
2731                           else
2732                             no_cache=1
2733                           fi
2734
2735                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2736                         
2737 fi
2738
2739
2740           eval "$ac_cv_use_mem_tracing"
2741           if test "$no_cache" != 1; then
2742             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2743           fi
2744
2745           if test "$wxUSE_MEM_TRACING" = yes; then
2746             echo "$ac_t""yes" 1>&6
2747           else
2748             echo "$ac_t""no" 1>&6
2749           fi
2750         
2751
2752           echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2753 echo "configure:2754: checking for --enable-profile" >&5
2754           no_cache=0
2755           # Check whether --enable-profile or --disable-profile was given.
2756 if test "${enable_profile+set}" = set; then
2757   enableval="$enable_profile"
2758   
2759                           if test "$enableval" = yes; then
2760                             ac_cv_use_profile='wxUSE_PROFILE=yes'
2761                           else
2762                             ac_cv_use_profile='wxUSE_PROFILE=no'
2763                           fi
2764                         
2765 else
2766   
2767                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2768                           if test "x$LINE" != x ; then
2769                             eval "DEFAULT_$LINE"
2770                           else
2771                             no_cache=1
2772                           fi
2773
2774                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2775                         
2776 fi
2777
2778
2779           eval "$ac_cv_use_profile"
2780           if test "$no_cache" != 1; then
2781             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2782           fi
2783
2784           if test "$wxUSE_PROFILE" = yes; then
2785             echo "$ac_t""yes" 1>&6
2786           else
2787             echo "$ac_t""no" 1>&6
2788           fi
2789         
2790
2791           echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2792 echo "configure:2793: checking for --enable-no_rtti" >&5
2793           no_cache=0
2794           # Check whether --enable-no_rtti or --disable-no_rtti was given.
2795 if test "${enable_no_rtti+set}" = set; then
2796   enableval="$enable_no_rtti"
2797   
2798                           if test "$enableval" = yes; then
2799                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2800                           else
2801                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2802                           fi
2803                         
2804 else
2805   
2806                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2807                           if test "x$LINE" != x ; then
2808                             eval "DEFAULT_$LINE"
2809                           else
2810                             no_cache=1
2811                           fi
2812
2813                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2814                         
2815 fi
2816
2817
2818           eval "$ac_cv_use_no_rtti"
2819           if test "$no_cache" != 1; then
2820             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2821           fi
2822
2823           if test "$wxUSE_NO_RTTI" = yes; then
2824             echo "$ac_t""yes" 1>&6
2825           else
2826             echo "$ac_t""no" 1>&6
2827           fi
2828         
2829
2830           echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2831 echo "configure:2832: checking for --enable-no_exceptions" >&5
2832           no_cache=0
2833           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2834 if test "${enable_no_exceptions+set}" = set; then
2835   enableval="$enable_no_exceptions"
2836   
2837                           if test "$enableval" = yes; then
2838                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2839                           else
2840                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2841                           fi
2842                         
2843 else
2844   
2845                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2846                           if test "x$LINE" != x ; then
2847                             eval "DEFAULT_$LINE"
2848                           else
2849                             no_cache=1
2850                           fi
2851
2852                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2853                         
2854 fi
2855
2856
2857           eval "$ac_cv_use_no_exceptions"
2858           if test "$no_cache" != 1; then
2859             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2860           fi
2861
2862           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2863             echo "$ac_t""yes" 1>&6
2864           else
2865             echo "$ac_t""no" 1>&6
2866           fi
2867         
2868
2869           echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2870 echo "configure:2871: checking for --enable-permissive" >&5
2871           no_cache=0
2872           # Check whether --enable-permissive or --disable-permissive was given.
2873 if test "${enable_permissive+set}" = set; then
2874   enableval="$enable_permissive"
2875   
2876                           if test "$enableval" = yes; then
2877                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2878                           else
2879                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2880                           fi
2881                         
2882 else
2883   
2884                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2885                           if test "x$LINE" != x ; then
2886                             eval "DEFAULT_$LINE"
2887                           else
2888                             no_cache=1
2889                           fi
2890
2891                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2892                         
2893 fi
2894
2895
2896           eval "$ac_cv_use_permissive"
2897           if test "$no_cache" != 1; then
2898             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2899           fi
2900
2901           if test "$wxUSE_PERMISSIVE" = yes; then
2902             echo "$ac_t""yes" 1>&6
2903           else
2904             echo "$ac_t""no" 1>&6
2905           fi
2906         
2907
2908           echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2909 echo "configure:2910: checking for --enable-no_deps" >&5
2910           no_cache=0
2911           # Check whether --enable-no_deps or --disable-no_deps was given.
2912 if test "${enable_no_deps+set}" = set; then
2913   enableval="$enable_no_deps"
2914   
2915                           if test "$enableval" = yes; then
2916                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2917                           else
2918                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2919                           fi
2920                         
2921 else
2922   
2923                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2924                           if test "x$LINE" != x ; then
2925                             eval "DEFAULT_$LINE"
2926                           else
2927                             no_cache=1
2928                           fi
2929
2930                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2931                         
2932 fi
2933
2934
2935           eval "$ac_cv_use_no_deps"
2936           if test "$no_cache" != 1; then
2937             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2938           fi
2939
2940           if test "$wxUSE_NO_DEPS" = yes; then
2941             echo "$ac_t""yes" 1>&6
2942           else
2943             echo "$ac_t""no" 1>&6
2944           fi
2945         
2946
2947
2948           echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2949 echo "configure:2950: checking for --enable-compat20" >&5
2950           no_cache=0
2951           # Check whether --enable-compat20 or --disable-compat20 was given.
2952 if test "${enable_compat20+set}" = set; then
2953   enableval="$enable_compat20"
2954   
2955                           if test "$enableval" = yes; then
2956                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2957                           else
2958                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2959                           fi
2960                         
2961 else
2962   
2963                           LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2964                           if test "x$LINE" != x ; then
2965                             eval "DEFAULT_$LINE"
2966                           else
2967                             no_cache=1
2968                           fi
2969
2970                           ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2971                         
2972 fi
2973
2974
2975           eval "$ac_cv_use_compat20"
2976           if test "$no_cache" != 1; then
2977             echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2978           fi
2979
2980           if test "$WXWIN_COMPATIBILITY_2" = yes; then
2981             echo "$ac_t""yes" 1>&6
2982           else
2983             echo "$ac_t""no" 1>&6
2984           fi
2985         
2986
2987           echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2988 echo "configure:2989: checking for --enable-compat22" >&5
2989           no_cache=0
2990           # Check whether --enable-compat22 or --disable-compat22 was given.
2991 if test "${enable_compat22+set}" = set; then
2992   enableval="$enable_compat22"
2993   
2994                           if test "$enableval" = yes; then
2995                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2996                           else
2997                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2998                           fi
2999                         
3000 else
3001   
3002                           LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3003                           if test "x$LINE" != x ; then
3004                             eval "DEFAULT_$LINE"
3005                           else
3006                             no_cache=1
3007                           fi
3008
3009                           ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3010                         
3011 fi
3012
3013
3014           eval "$ac_cv_use_compat22"
3015           if test "$no_cache" != 1; then
3016             echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3017           fi
3018
3019           if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3020             echo "$ac_t""yes" 1>&6
3021           else
3022             echo "$ac_t""no" 1>&6
3023           fi
3024         
3025
3026 # Check whether --enable-rpath or --disable-rpath was given.
3027 if test "${enable_rpath+set}" = set; then
3028   enableval="$enable_rpath"
3029   wxRPATH_DIR="$enableval"
3030 fi
3031
3032
3033 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3034    WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3035 fi
3036
3037
3038
3039
3040           echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3041 echo "configure:3042: checking for --enable-intl" >&5
3042           no_cache=0
3043           # Check whether --enable-intl or --disable-intl was given.
3044 if test "${enable_intl+set}" = set; then
3045   enableval="$enable_intl"
3046   
3047                           if test "$enableval" = yes; then
3048                             ac_cv_use_intl='wxUSE_INTL=yes'
3049                           else
3050                             ac_cv_use_intl='wxUSE_INTL=no'
3051                           fi
3052                         
3053 else
3054   
3055                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3056                           if test "x$LINE" != x ; then
3057                             eval "DEFAULT_$LINE"
3058                           else
3059                             no_cache=1
3060                           fi
3061
3062                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3063                         
3064 fi
3065
3066
3067           eval "$ac_cv_use_intl"
3068           if test "$no_cache" != 1; then
3069             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3070           fi
3071
3072           if test "$wxUSE_INTL" = yes; then
3073             echo "$ac_t""yes" 1>&6
3074           else
3075             echo "$ac_t""no" 1>&6
3076           fi
3077         
3078
3079           echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3080 echo "configure:3081: checking for --enable-config" >&5
3081           no_cache=0
3082           # Check whether --enable-config or --disable-config was given.
3083 if test "${enable_config+set}" = set; then
3084   enableval="$enable_config"
3085   
3086                           if test "$enableval" = yes; then
3087                             ac_cv_use_config='wxUSE_CONFIG=yes'
3088                           else
3089                             ac_cv_use_config='wxUSE_CONFIG=no'
3090                           fi
3091                         
3092 else
3093   
3094                           LINE=`grep "wxUSE_CONFIG" ${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_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3102                         
3103 fi
3104
3105
3106           eval "$ac_cv_use_config"
3107           if test "$no_cache" != 1; then
3108             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3109           fi
3110
3111           if test "$wxUSE_CONFIG" = yes; then
3112             echo "$ac_t""yes" 1>&6
3113           else
3114             echo "$ac_t""no" 1>&6
3115           fi
3116         
3117
3118
3119           echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3120 echo "configure:3121: checking for --enable-protocols" >&5
3121           no_cache=0
3122           # Check whether --enable-protocols or --disable-protocols was given.
3123 if test "${enable_protocols+set}" = set; then
3124   enableval="$enable_protocols"
3125   
3126                           if test "$enableval" = yes; then
3127                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3128                           else
3129                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3130                           fi
3131                         
3132 else
3133   
3134                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3135                           if test "x$LINE" != x ; then
3136                             eval "DEFAULT_$LINE"
3137                           else
3138                             no_cache=1
3139                           fi
3140
3141                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3142                         
3143 fi
3144
3145
3146           eval "$ac_cv_use_protocols"
3147           if test "$no_cache" != 1; then
3148             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3149           fi
3150
3151           if test "$wxUSE_PROTOCOL" = yes; then
3152             echo "$ac_t""yes" 1>&6
3153           else
3154             echo "$ac_t""no" 1>&6
3155           fi
3156         
3157
3158           echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3159 echo "configure:3160: checking for --enable-ftp" >&5
3160           no_cache=0
3161           # Check whether --enable-ftp or --disable-ftp was given.
3162 if test "${enable_ftp+set}" = set; then
3163   enableval="$enable_ftp"
3164   
3165                           if test "$enableval" = yes; then
3166                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3167                           else
3168                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3169                           fi
3170                         
3171 else
3172   
3173                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3174                           if test "x$LINE" != x ; then
3175                             eval "DEFAULT_$LINE"
3176                           else
3177                             no_cache=1
3178                           fi
3179
3180                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3181                         
3182 fi
3183
3184
3185           eval "$ac_cv_use_ftp"
3186           if test "$no_cache" != 1; then
3187             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3188           fi
3189
3190           if test "$wxUSE_PROTOCOL_FTP" = yes; then
3191             echo "$ac_t""yes" 1>&6
3192           else
3193             echo "$ac_t""no" 1>&6
3194           fi
3195         
3196
3197           echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3198 echo "configure:3199: checking for --enable-http" >&5
3199           no_cache=0
3200           # Check whether --enable-http or --disable-http was given.
3201 if test "${enable_http+set}" = set; then
3202   enableval="$enable_http"
3203   
3204                           if test "$enableval" = yes; then
3205                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3206                           else
3207                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3208                           fi
3209                         
3210 else
3211   
3212                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3213                           if test "x$LINE" != x ; then
3214                             eval "DEFAULT_$LINE"
3215                           else
3216                             no_cache=1
3217                           fi
3218
3219                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3220                         
3221 fi
3222
3223
3224           eval "$ac_cv_use_http"
3225           if test "$no_cache" != 1; then
3226             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3227           fi
3228
3229           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3230             echo "$ac_t""yes" 1>&6
3231           else
3232             echo "$ac_t""no" 1>&6
3233           fi
3234         
3235
3236           echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3237 echo "configure:3238: checking for --enable-fileproto" >&5
3238           no_cache=0
3239           # Check whether --enable-fileproto or --disable-fileproto was given.
3240 if test "${enable_fileproto+set}" = set; then
3241   enableval="$enable_fileproto"
3242   
3243                           if test "$enableval" = yes; then
3244                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3245                           else
3246                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3247                           fi
3248                         
3249 else
3250   
3251                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3252                           if test "x$LINE" != x ; then
3253                             eval "DEFAULT_$LINE"
3254                           else
3255                             no_cache=1
3256                           fi
3257
3258                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3259                         
3260 fi
3261
3262
3263           eval "$ac_cv_use_fileproto"
3264           if test "$no_cache" != 1; then
3265             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3266           fi
3267
3268           if test "$wxUSE_PROTOCOL_FILE" = yes; then
3269             echo "$ac_t""yes" 1>&6
3270           else
3271             echo "$ac_t""no" 1>&6
3272           fi
3273         
3274
3275           echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3276 echo "configure:3277: checking for --enable-sockets" >&5
3277           no_cache=0
3278           # Check whether --enable-sockets or --disable-sockets was given.
3279 if test "${enable_sockets+set}" = set; then
3280   enableval="$enable_sockets"
3281   
3282                           if test "$enableval" = yes; then
3283                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3284                           else
3285                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
3286                           fi
3287                         
3288 else
3289   
3290                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3291                           if test "x$LINE" != x ; then
3292                             eval "DEFAULT_$LINE"
3293                           else
3294                             no_cache=1
3295                           fi
3296
3297                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3298                         
3299 fi
3300
3301
3302           eval "$ac_cv_use_sockets"
3303           if test "$no_cache" != 1; then
3304             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3305           fi
3306
3307           if test "$wxUSE_SOCKETS" = yes; then
3308             echo "$ac_t""yes" 1>&6
3309           else
3310             echo "$ac_t""no" 1>&6
3311           fi
3312         
3313
3314           echo $ac_n "checking for --enable-ole""... $ac_c" 1>&6
3315 echo "configure:3316: checking for --enable-ole" >&5
3316           no_cache=0
3317           # Check whether --enable-ole or --disable-ole was given.
3318 if test "${enable_ole+set}" = set; then
3319   enableval="$enable_ole"
3320   
3321                           if test "$enableval" = yes; then
3322                             ac_cv_use_ole='wxUSE_OLE=yes'
3323                           else
3324                             ac_cv_use_ole='wxUSE_OLE=no'
3325                           fi
3326                         
3327 else
3328   
3329                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3330                           if test "x$LINE" != x ; then
3331                             eval "DEFAULT_$LINE"
3332                           else
3333                             no_cache=1
3334                           fi
3335
3336                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3337                         
3338 fi
3339
3340
3341           eval "$ac_cv_use_ole"
3342           if test "$no_cache" != 1; then
3343             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3344           fi
3345
3346           if test "$wxUSE_OLE" = yes; then
3347             echo "$ac_t""yes" 1>&6
3348           else
3349             echo "$ac_t""no" 1>&6
3350           fi
3351         
3352
3353           echo $ac_n "checking for --enable-dataobj""... $ac_c" 1>&6
3354 echo "configure:3355: checking for --enable-dataobj" >&5
3355           no_cache=0
3356           # Check whether --enable-dataobj or --disable-dataobj was given.
3357 if test "${enable_dataobj+set}" = set; then
3358   enableval="$enable_dataobj"
3359   
3360                           if test "$enableval" = yes; then
3361                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3362                           else
3363                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3364                           fi
3365                         
3366 else
3367   
3368                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3369                           if test "x$LINE" != x ; then
3370                             eval "DEFAULT_$LINE"
3371                           else
3372                             no_cache=1
3373                           fi
3374
3375                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3376                         
3377 fi
3378
3379
3380           eval "$ac_cv_use_dataobj"
3381           if test "$no_cache" != 1; then
3382             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3383           fi
3384
3385           if test "$wxUSE_DATAOBJ" = yes; then
3386             echo "$ac_t""yes" 1>&6
3387           else
3388             echo "$ac_t""no" 1>&6
3389           fi
3390         
3391
3392
3393           echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3394 echo "configure:3395: checking for --enable-ipc" >&5
3395           no_cache=0
3396           # Check whether --enable-ipc or --disable-ipc was given.
3397 if test "${enable_ipc+set}" = set; then
3398   enableval="$enable_ipc"
3399   
3400                           if test "$enableval" = yes; then
3401                             ac_cv_use_ipc='wxUSE_IPC=yes'
3402                           else
3403                             ac_cv_use_ipc='wxUSE_IPC=no'
3404                           fi
3405                         
3406 else
3407   
3408                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3409                           if test "x$LINE" != x ; then
3410                             eval "DEFAULT_$LINE"
3411                           else
3412                             no_cache=1
3413                           fi
3414
3415                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3416                         
3417 fi
3418
3419
3420           eval "$ac_cv_use_ipc"
3421           if test "$no_cache" != 1; then
3422             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3423           fi
3424
3425           if test "$wxUSE_IPC" = yes; then
3426             echo "$ac_t""yes" 1>&6
3427           else
3428             echo "$ac_t""no" 1>&6
3429           fi
3430         
3431
3432
3433           echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3434 echo "configure:3435: checking for --enable-cmdline" >&5
3435           no_cache=0
3436           # Check whether --enable-cmdline or --disable-cmdline was given.
3437 if test "${enable_cmdline+set}" = set; then
3438   enableval="$enable_cmdline"
3439   
3440                           if test "$enableval" = yes; then
3441                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3442                           else
3443                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3444                           fi
3445                         
3446 else
3447   
3448                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3449                           if test "x$LINE" != x ; then
3450                             eval "DEFAULT_$LINE"
3451                           else
3452                             no_cache=1
3453                           fi
3454
3455                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3456                         
3457 fi
3458
3459
3460           eval "$ac_cv_use_cmdline"
3461           if test "$no_cache" != 1; then
3462             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3463           fi
3464
3465           if test "$wxUSE_CMDLINE_PARSER" = yes; then
3466             echo "$ac_t""yes" 1>&6
3467           else
3468             echo "$ac_t""no" 1>&6
3469           fi
3470         
3471
3472           echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3473 echo "configure:3474: checking for --enable-datetime" >&5
3474           no_cache=0
3475           # Check whether --enable-datetime or --disable-datetime was given.
3476 if test "${enable_datetime+set}" = set; then
3477   enableval="$enable_datetime"
3478   
3479                           if test "$enableval" = yes; then
3480                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
3481                           else
3482                             ac_cv_use_datetime='wxUSE_DATETIME=no'
3483                           fi
3484                         
3485 else
3486   
3487                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3488                           if test "x$LINE" != x ; then
3489                             eval "DEFAULT_$LINE"
3490                           else
3491                             no_cache=1
3492                           fi
3493
3494                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3495                         
3496 fi
3497
3498
3499           eval "$ac_cv_use_datetime"
3500           if test "$no_cache" != 1; then
3501             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3502           fi
3503
3504           if test "$wxUSE_DATETIME" = yes; then
3505             echo "$ac_t""yes" 1>&6
3506           else
3507             echo "$ac_t""no" 1>&6
3508           fi
3509         
3510
3511           echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3512 echo "configure:3513: checking for --enable-timedate" >&5
3513           no_cache=0
3514           # Check whether --enable-timedate or --disable-timedate was given.
3515 if test "${enable_timedate+set}" = set; then
3516   enableval="$enable_timedate"
3517   
3518                           if test "$enableval" = yes; then
3519                             ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3520                           else
3521                             ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3522                           fi
3523                         
3524 else
3525   
3526                           LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3527                           if test "x$LINE" != x ; then
3528                             eval "DEFAULT_$LINE"
3529                           else
3530                             no_cache=1
3531                           fi
3532
3533                           ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3534                         
3535 fi
3536
3537
3538           eval "$ac_cv_use_timedate"
3539           if test "$no_cache" != 1; then
3540             echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3541           fi
3542
3543           if test "$wxUSE_TIMEDATE" = yes; then
3544             echo "$ac_t""yes" 1>&6
3545           else
3546             echo "$ac_t""no" 1>&6
3547           fi
3548         
3549
3550           echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3551 echo "configure:3552: checking for --enable-stopwatch" >&5
3552           no_cache=0
3553           # Check whether --enable-stopwatch or --disable-stopwatch was given.
3554 if test "${enable_stopwatch+set}" = set; then
3555   enableval="$enable_stopwatch"
3556   
3557                           if test "$enableval" = yes; then
3558                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3559                           else
3560                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3561                           fi
3562                         
3563 else
3564   
3565                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3566                           if test "x$LINE" != x ; then
3567                             eval "DEFAULT_$LINE"
3568                           else
3569                             no_cache=1
3570                           fi
3571
3572                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3573                         
3574 fi
3575
3576
3577           eval "$ac_cv_use_stopwatch"
3578           if test "$no_cache" != 1; then
3579             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3580           fi
3581
3582           if test "$wxUSE_STOPWATCH" = yes; then
3583             echo "$ac_t""yes" 1>&6
3584           else
3585             echo "$ac_t""no" 1>&6
3586           fi
3587         
3588
3589           echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3590 echo "configure:3591: checking for --enable-dialupman" >&5
3591           no_cache=0
3592           # Check whether --enable-dialupman or --disable-dialupman was given.
3593 if test "${enable_dialupman+set}" = set; then
3594   enableval="$enable_dialupman"
3595   
3596                           if test "$enableval" = yes; then
3597                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3598                           else
3599                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3600                           fi
3601                         
3602 else
3603   
3604                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3605                           if test "x$LINE" != x ; then
3606                             eval "DEFAULT_$LINE"
3607                           else
3608                             no_cache=1
3609                           fi
3610
3611                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3612                         
3613 fi
3614
3615
3616           eval "$ac_cv_use_dialupman"
3617           if test "$no_cache" != 1; then
3618             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3619           fi
3620
3621           if test "$wxUSE_DIALUP_MANAGER" = yes; then
3622             echo "$ac_t""yes" 1>&6
3623           else
3624             echo "$ac_t""no" 1>&6
3625           fi
3626         
3627
3628           echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3629 echo "configure:3630: checking for --enable-apple_ieee" >&5
3630           no_cache=0
3631           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3632 if test "${enable_apple_ieee+set}" = set; then
3633   enableval="$enable_apple_ieee"
3634   
3635                           if test "$enableval" = yes; then
3636                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3637                           else
3638                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3639                           fi
3640                         
3641 else
3642   
3643                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3644                           if test "x$LINE" != x ; then
3645                             eval "DEFAULT_$LINE"
3646                           else
3647                             no_cache=1
3648                           fi
3649
3650                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3651                         
3652 fi
3653
3654
3655           eval "$ac_cv_use_apple_ieee"
3656           if test "$no_cache" != 1; then
3657             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3658           fi
3659
3660           if test "$wxUSE_APPLE_IEEE" = yes; then
3661             echo "$ac_t""yes" 1>&6
3662           else
3663             echo "$ac_t""no" 1>&6
3664           fi
3665         
3666
3667           echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3668 echo "configure:3669: checking for --enable-timer" >&5
3669           no_cache=0
3670           # Check whether --enable-timer or --disable-timer was given.
3671 if test "${enable_timer+set}" = set; then
3672   enableval="$enable_timer"
3673   
3674                           if test "$enableval" = yes; then
3675                             ac_cv_use_timer='wxUSE_TIMER=yes'
3676                           else
3677                             ac_cv_use_timer='wxUSE_TIMER=no'
3678                           fi
3679                         
3680 else
3681   
3682                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3683                           if test "x$LINE" != x ; then
3684                             eval "DEFAULT_$LINE"
3685                           else
3686                             no_cache=1
3687                           fi
3688
3689                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3690                         
3691 fi
3692
3693
3694           eval "$ac_cv_use_timer"
3695           if test "$no_cache" != 1; then
3696             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3697           fi
3698
3699           if test "$wxUSE_TIMER" = yes; then
3700             echo "$ac_t""yes" 1>&6
3701           else
3702             echo "$ac_t""no" 1>&6
3703           fi
3704         
3705
3706           echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3707 echo "configure:3708: checking for --enable-wave" >&5
3708           no_cache=0
3709           # Check whether --enable-wave or --disable-wave was given.
3710 if test "${enable_wave+set}" = set; then
3711   enableval="$enable_wave"
3712   
3713                           if test "$enableval" = yes; then
3714                             ac_cv_use_wave='wxUSE_WAVE=yes'
3715                           else
3716                             ac_cv_use_wave='wxUSE_WAVE=no'
3717                           fi
3718                         
3719 else
3720   
3721                           LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3722                           if test "x$LINE" != x ; then
3723                             eval "DEFAULT_$LINE"
3724                           else
3725                             no_cache=1
3726                           fi
3727
3728                           ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3729                         
3730 fi
3731
3732
3733           eval "$ac_cv_use_wave"
3734           if test "$no_cache" != 1; then
3735             echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3736           fi
3737
3738           if test "$wxUSE_WAVE" = yes; then
3739             echo "$ac_t""yes" 1>&6
3740           else
3741             echo "$ac_t""no" 1>&6
3742           fi
3743         
3744
3745           echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3746 echo "configure:3747: checking for --enable-fraction" >&5
3747           no_cache=0
3748           # Check whether --enable-fraction or --disable-fraction was given.
3749 if test "${enable_fraction+set}" = set; then
3750   enableval="$enable_fraction"
3751   
3752                           if test "$enableval" = yes; then
3753                             ac_cv_use_fraction='wxUSE_FRACTION=yes'
3754                           else
3755                             ac_cv_use_fraction='wxUSE_FRACTION=no'
3756                           fi
3757                         
3758 else
3759   
3760                           LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3761                           if test "x$LINE" != x ; then
3762                             eval "DEFAULT_$LINE"
3763                           else
3764                             no_cache=1
3765                           fi
3766
3767                           ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3768                         
3769 fi
3770
3771
3772           eval "$ac_cv_use_fraction"
3773           if test "$no_cache" != 1; then
3774             echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3775           fi
3776
3777           if test "$wxUSE_FRACTION" = yes; then
3778             echo "$ac_t""yes" 1>&6
3779           else
3780             echo "$ac_t""no" 1>&6
3781           fi
3782         
3783
3784           echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3785 echo "configure:3786: checking for --enable-dynlib" >&5
3786           no_cache=0
3787           # Check whether --enable-dynlib or --disable-dynlib was given.
3788 if test "${enable_dynlib+set}" = set; then
3789   enableval="$enable_dynlib"
3790   
3791                           if test "$enableval" = yes; then
3792                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3793                           else
3794                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3795                           fi
3796                         
3797 else
3798   
3799                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3800                           if test "x$LINE" != x ; then
3801                             eval "DEFAULT_$LINE"
3802                           else
3803                             no_cache=1
3804                           fi
3805
3806                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3807                         
3808 fi
3809
3810
3811           eval "$ac_cv_use_dynlib"
3812           if test "$no_cache" != 1; then
3813             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3814           fi
3815
3816           if test "$wxUSE_DYNLIB_CLASS" = yes; then
3817             echo "$ac_t""yes" 1>&6
3818           else
3819             echo "$ac_t""no" 1>&6
3820           fi
3821         
3822
3823           echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3824 echo "configure:3825: checking for --enable-dynamicloader" >&5
3825           no_cache=0
3826           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3827 if test "${enable_dynamicloader+set}" = set; then
3828   enableval="$enable_dynamicloader"
3829   
3830                           if test "$enableval" = yes; then
3831                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3832                           else
3833                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3834                           fi
3835                         
3836 else
3837   
3838                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3839                           if test "x$LINE" != x ; then
3840                             eval "DEFAULT_$LINE"
3841                           else
3842                             no_cache=1
3843                           fi
3844
3845                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3846                         
3847 fi
3848
3849
3850           eval "$ac_cv_use_dynamicloader"
3851           if test "$no_cache" != 1; then
3852             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3853           fi
3854
3855           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3856             echo "$ac_t""yes" 1>&6
3857           else
3858             echo "$ac_t""no" 1>&6
3859           fi
3860         
3861
3862           echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3863 echo "configure:3864: checking for --enable-longlong" >&5
3864           no_cache=0
3865           # Check whether --enable-longlong or --disable-longlong was given.
3866 if test "${enable_longlong+set}" = set; then
3867   enableval="$enable_longlong"
3868   
3869                           if test "$enableval" = yes; then
3870                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3871                           else
3872                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
3873                           fi
3874                         
3875 else
3876   
3877                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3878                           if test "x$LINE" != x ; then
3879                             eval "DEFAULT_$LINE"
3880                           else
3881                             no_cache=1
3882                           fi
3883
3884                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3885                         
3886 fi
3887
3888
3889           eval "$ac_cv_use_longlong"
3890           if test "$no_cache" != 1; then
3891             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3892           fi
3893
3894           if test "$wxUSE_LONGLONG" = yes; then
3895             echo "$ac_t""yes" 1>&6
3896           else
3897             echo "$ac_t""no" 1>&6
3898           fi
3899         
3900
3901           echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3902 echo "configure:3903: checking for --enable-geometry" >&5
3903           no_cache=0
3904           # Check whether --enable-geometry or --disable-geometry was given.
3905 if test "${enable_geometry+set}" = set; then
3906   enableval="$enable_geometry"
3907   
3908                           if test "$enableval" = yes; then
3909                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3910                           else
3911                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3912                           fi
3913                         
3914 else
3915   
3916                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3917                           if test "x$LINE" != x ; then
3918                             eval "DEFAULT_$LINE"
3919                           else
3920                             no_cache=1
3921                           fi
3922
3923                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3924                         
3925 fi
3926
3927
3928           eval "$ac_cv_use_geometry"
3929           if test "$no_cache" != 1; then
3930             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3931           fi
3932
3933           if test "$wxUSE_GEOMETRY" = yes; then
3934             echo "$ac_t""yes" 1>&6
3935           else
3936             echo "$ac_t""no" 1>&6
3937           fi
3938         
3939
3940           echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3941 echo "configure:3942: checking for --enable-log" >&5
3942           no_cache=0
3943           # Check whether --enable-log or --disable-log was given.
3944 if test "${enable_log+set}" = set; then
3945   enableval="$enable_log"
3946   
3947                           if test "$enableval" = yes; then
3948                             ac_cv_use_log='wxUSE_LOG=yes'
3949                           else
3950                             ac_cv_use_log='wxUSE_LOG=no'
3951                           fi
3952                         
3953 else
3954   
3955                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3956                           if test "x$LINE" != x ; then
3957                             eval "DEFAULT_$LINE"
3958                           else
3959                             no_cache=1
3960                           fi
3961
3962                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3963                         
3964 fi
3965
3966
3967           eval "$ac_cv_use_log"
3968           if test "$no_cache" != 1; then
3969             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3970           fi
3971
3972           if test "$wxUSE_LOG" = yes; then
3973             echo "$ac_t""yes" 1>&6
3974           else
3975             echo "$ac_t""no" 1>&6
3976           fi
3977         
3978
3979           echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3980 echo "configure:3981: checking for --enable-streams" >&5
3981           no_cache=0
3982           # Check whether --enable-streams or --disable-streams was given.
3983 if test "${enable_streams+set}" = set; then
3984   enableval="$enable_streams"
3985   
3986                           if test "$enableval" = yes; then
3987                             ac_cv_use_streams='wxUSE_STREAMS=yes'
3988                           else
3989                             ac_cv_use_streams='wxUSE_STREAMS=no'
3990                           fi
3991                         
3992 else
3993   
3994                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3995                           if test "x$LINE" != x ; then
3996                             eval "DEFAULT_$LINE"
3997                           else
3998                             no_cache=1
3999                           fi
4000
4001                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4002                         
4003 fi
4004
4005
4006           eval "$ac_cv_use_streams"
4007           if test "$no_cache" != 1; then
4008             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4009           fi
4010
4011           if test "$wxUSE_STREAMS" = yes; then
4012             echo "$ac_t""yes" 1>&6
4013           else
4014             echo "$ac_t""no" 1>&6
4015           fi
4016         
4017
4018           echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
4019 echo "configure:4020: checking for --enable-file" >&5
4020           no_cache=0
4021           # Check whether --enable-file or --disable-file was given.
4022 if test "${enable_file+set}" = set; then
4023   enableval="$enable_file"
4024   
4025                           if test "$enableval" = yes; then
4026                             ac_cv_use_file='wxUSE_FILE=yes'
4027                           else
4028                             ac_cv_use_file='wxUSE_FILE=no'
4029                           fi
4030                         
4031 else
4032   
4033                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4034                           if test "x$LINE" != x ; then
4035                             eval "DEFAULT_$LINE"
4036                           else
4037                             no_cache=1
4038                           fi
4039
4040                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4041                         
4042 fi
4043
4044
4045           eval "$ac_cv_use_file"
4046           if test "$no_cache" != 1; then
4047             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4048           fi
4049
4050           if test "$wxUSE_FILE" = yes; then
4051             echo "$ac_t""yes" 1>&6
4052           else
4053             echo "$ac_t""no" 1>&6
4054           fi
4055         
4056
4057           echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
4058 echo "configure:4059: checking for --enable-ffile" >&5
4059           no_cache=0
4060           # Check whether --enable-ffile or --disable-ffile was given.
4061 if test "${enable_ffile+set}" = set; then
4062   enableval="$enable_ffile"
4063   
4064                           if test "$enableval" = yes; then
4065                             ac_cv_use_ffile='wxUSE_FFILE=yes'
4066                           else
4067                             ac_cv_use_ffile='wxUSE_FFILE=no'
4068                           fi
4069                         
4070 else
4071   
4072                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4073                           if test "x$LINE" != x ; then
4074                             eval "DEFAULT_$LINE"
4075                           else
4076                             no_cache=1
4077                           fi
4078
4079                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4080                         
4081 fi
4082
4083
4084           eval "$ac_cv_use_ffile"
4085           if test "$no_cache" != 1; then
4086             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4087           fi
4088
4089           if test "$wxUSE_FFILE" = yes; then
4090             echo "$ac_t""yes" 1>&6
4091           else
4092             echo "$ac_t""no" 1>&6
4093           fi
4094         
4095
4096           echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
4097 echo "configure:4098: checking for --enable-textbuf" >&5
4098           no_cache=0
4099           # Check whether --enable-textbuf or --disable-textbuf was given.
4100 if test "${enable_textbuf+set}" = set; then
4101   enableval="$enable_textbuf"
4102   
4103                           if test "$enableval" = yes; then
4104                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4105                           else
4106                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4107                           fi
4108                         
4109 else
4110   
4111                           LINE=`grep "wxUSE_TEXTBUFFER" ${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_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4119                         
4120 fi
4121
4122
4123           eval "$ac_cv_use_textbuf"
4124           if test "$no_cache" != 1; then
4125             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4126           fi
4127
4128           if test "$wxUSE_TEXTBUFFER" = yes; then
4129             echo "$ac_t""yes" 1>&6
4130           else
4131             echo "$ac_t""no" 1>&6
4132           fi
4133         
4134
4135           echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
4136 echo "configure:4137: checking for --enable-textfile" >&5
4137           no_cache=0
4138           # Check whether --enable-textfile or --disable-textfile was given.
4139 if test "${enable_textfile+set}" = set; then
4140   enableval="$enable_textfile"
4141   
4142                           if test "$enableval" = yes; then
4143                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4144                           else
4145                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4146                           fi
4147                         
4148 else
4149   
4150                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4151                           if test "x$LINE" != x ; then
4152                             eval "DEFAULT_$LINE"
4153                           else
4154                             no_cache=1
4155                           fi
4156
4157                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4158                         
4159 fi
4160
4161
4162           eval "$ac_cv_use_textfile"
4163           if test "$no_cache" != 1; then
4164             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4165           fi
4166
4167           if test "$wxUSE_TEXTFILE" = yes; then
4168             echo "$ac_t""yes" 1>&6
4169           else
4170             echo "$ac_t""no" 1>&6
4171           fi
4172         
4173
4174           echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
4175 echo "configure:4176: checking for --enable-fontmap" >&5
4176           no_cache=0
4177           # Check whether --enable-fontmap or --disable-fontmap was given.
4178 if test "${enable_fontmap+set}" = set; then
4179   enableval="$enable_fontmap"
4180   
4181                           if test "$enableval" = yes; then
4182                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4183                           else
4184                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4185                           fi
4186                         
4187 else
4188   
4189                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4190                           if test "x$LINE" != x ; then
4191                             eval "DEFAULT_$LINE"
4192                           else
4193                             no_cache=1
4194                           fi
4195
4196                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4197                         
4198 fi
4199
4200
4201           eval "$ac_cv_use_fontmap"
4202           if test "$no_cache" != 1; then
4203             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4204           fi
4205
4206           if test "$wxUSE_FONTMAP" = yes; then
4207             echo "$ac_t""yes" 1>&6
4208           else
4209             echo "$ac_t""no" 1>&6
4210           fi
4211         
4212
4213           echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
4214 echo "configure:4215: checking for --enable-unicode" >&5
4215           no_cache=0
4216           # Check whether --enable-unicode or --disable-unicode was given.
4217 if test "${enable_unicode+set}" = set; then
4218   enableval="$enable_unicode"
4219   
4220                           if test "$enableval" = yes; then
4221                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
4222                           else
4223                             ac_cv_use_unicode='wxUSE_UNICODE=no'
4224                           fi
4225                         
4226 else
4227   
4228                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4229                           if test "x$LINE" != x ; then
4230                             eval "DEFAULT_$LINE"
4231                           else
4232                             no_cache=1
4233                           fi
4234
4235                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4236                         
4237 fi
4238
4239
4240           eval "$ac_cv_use_unicode"
4241           if test "$no_cache" != 1; then
4242             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4243           fi
4244
4245           if test "$wxUSE_UNICODE" = yes; then
4246             echo "$ac_t""yes" 1>&6
4247           else
4248             echo "$ac_t""no" 1>&6
4249           fi
4250         
4251
4252           echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
4253 echo "configure:4254: checking for --enable-mslu" >&5
4254           no_cache=0
4255           # Check whether --enable-mslu or --disable-mslu was given.
4256 if test "${enable_mslu+set}" = set; then
4257   enableval="$enable_mslu"
4258   
4259                           if test "$enableval" = yes; then
4260                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4261                           else
4262                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4263                           fi
4264                         
4265 else
4266   
4267                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4268                           if test "x$LINE" != x ; then
4269                             eval "DEFAULT_$LINE"
4270                           else
4271                             no_cache=1
4272                           fi
4273
4274                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4275                         
4276 fi
4277
4278
4279           eval "$ac_cv_use_mslu"
4280           if test "$no_cache" != 1; then
4281             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4282           fi
4283
4284           if test "$wxUSE_UNICODE_MSLU" = yes; then
4285             echo "$ac_t""yes" 1>&6
4286           else
4287             echo "$ac_t""no" 1>&6
4288           fi
4289         
4290
4291           echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
4292 echo "configure:4293: checking for --enable-wxprintfv" >&5
4293           no_cache=0
4294           # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4295 if test "${enable_wxprintfv+set}" = set; then
4296   enableval="$enable_wxprintfv"
4297   
4298                           if test "$enableval" = yes; then
4299                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4300                           else
4301                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4302                           fi
4303                         
4304 else
4305   
4306                           LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4307                           if test "x$LINE" != x ; then
4308                             eval "DEFAULT_$LINE"
4309                           else
4310                             no_cache=1
4311                           fi
4312
4313                           ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4314                         
4315 fi
4316
4317
4318           eval "$ac_cv_use_wxprintfv"
4319           if test "$no_cache" != 1; then
4320             echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4321           fi
4322
4323           if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4324             echo "$ac_t""yes" 1>&6
4325           else
4326             echo "$ac_t""no" 1>&6
4327           fi
4328         
4329
4330           echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4331 echo "configure:4332: checking for --enable-std_iostreams" >&5
4332           no_cache=0
4333           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4334 if test "${enable_std_iostreams+set}" = set; then
4335   enableval="$enable_std_iostreams"
4336   
4337                           if test "$enableval" = yes; then
4338                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4339                           else
4340                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4341                           fi
4342                         
4343 else
4344   
4345                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4346                           if test "x$LINE" != x ; then
4347                             eval "DEFAULT_$LINE"
4348                           else
4349                             no_cache=1
4350                           fi
4351
4352                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4353                         
4354 fi
4355
4356
4357           eval "$ac_cv_use_std_iostreams"
4358           if test "$no_cache" != 1; then
4359             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4360           fi
4361
4362           if test "$wxUSE_STD_IOSTREAM" = yes; then
4363             echo "$ac_t""yes" 1>&6
4364           else
4365             echo "$ac_t""no" 1>&6
4366           fi
4367         
4368
4369           echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4370 echo "configure:4371: checking for --enable-filesystem" >&5
4371           no_cache=0
4372           # Check whether --enable-filesystem or --disable-filesystem was given.
4373 if test "${enable_filesystem+set}" = set; then
4374   enableval="$enable_filesystem"
4375   
4376                           if test "$enableval" = yes; then
4377                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4378                           else
4379                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4380                           fi
4381                         
4382 else
4383   
4384                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4385                           if test "x$LINE" != x ; then
4386                             eval "DEFAULT_$LINE"
4387                           else
4388                             no_cache=1
4389                           fi
4390
4391                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4392                         
4393 fi
4394
4395
4396           eval "$ac_cv_use_filesystem"
4397           if test "$no_cache" != 1; then
4398             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4399           fi
4400
4401           if test "$wxUSE_FILESYSTEM" = yes; then
4402             echo "$ac_t""yes" 1>&6
4403           else
4404             echo "$ac_t""no" 1>&6
4405           fi
4406         
4407
4408           echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4409 echo "configure:4410: checking for --enable-fs_inet" >&5
4410           no_cache=0
4411           # Check whether --enable-fs_inet or --disable-fs_inet was given.
4412 if test "${enable_fs_inet+set}" = set; then
4413   enableval="$enable_fs_inet"
4414   
4415                           if test "$enableval" = yes; then
4416                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4417                           else
4418                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4419                           fi
4420                         
4421 else
4422   
4423                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4424                           if test "x$LINE" != x ; then
4425                             eval "DEFAULT_$LINE"
4426                           else
4427                             no_cache=1
4428                           fi
4429
4430                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4431                         
4432 fi
4433
4434
4435           eval "$ac_cv_use_fs_inet"
4436           if test "$no_cache" != 1; then
4437             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4438           fi
4439
4440           if test "$wxUSE_FS_INET" = yes; then
4441             echo "$ac_t""yes" 1>&6
4442           else
4443             echo "$ac_t""no" 1>&6
4444           fi
4445         
4446
4447           echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4448 echo "configure:4449: checking for --enable-fs_zip" >&5
4449           no_cache=0
4450           # Check whether --enable-fs_zip or --disable-fs_zip was given.
4451 if test "${enable_fs_zip+set}" = set; then
4452   enableval="$enable_fs_zip"
4453   
4454                           if test "$enableval" = yes; then
4455                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4456                           else
4457                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4458                           fi
4459                         
4460 else
4461   
4462                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4463                           if test "x$LINE" != x ; then
4464                             eval "DEFAULT_$LINE"
4465                           else
4466                             no_cache=1
4467                           fi
4468
4469                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4470                         
4471 fi
4472
4473
4474           eval "$ac_cv_use_fs_zip"
4475           if test "$no_cache" != 1; then
4476             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4477           fi
4478
4479           if test "$wxUSE_FS_ZIP" = yes; then
4480             echo "$ac_t""yes" 1>&6
4481           else
4482             echo "$ac_t""no" 1>&6
4483           fi
4484         
4485
4486           echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4487 echo "configure:4488: checking for --enable-zipstream" >&5
4488           no_cache=0
4489           # Check whether --enable-zipstream or --disable-zipstream was given.
4490 if test "${enable_zipstream+set}" = set; then
4491   enableval="$enable_zipstream"
4492   
4493                           if test "$enableval" = yes; then
4494                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4495                           else
4496                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4497                           fi
4498                         
4499 else
4500   
4501                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4502                           if test "x$LINE" != x ; then
4503                             eval "DEFAULT_$LINE"
4504                           else
4505                             no_cache=1
4506                           fi
4507
4508                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4509                         
4510 fi
4511
4512
4513           eval "$ac_cv_use_zipstream"
4514           if test "$no_cache" != 1; then
4515             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4516           fi
4517
4518           if test "$wxUSE_ZIPSTREAM" = yes; then
4519             echo "$ac_t""yes" 1>&6
4520           else
4521             echo "$ac_t""no" 1>&6
4522           fi
4523         
4524
4525
4526           echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4527 echo "configure:4528: checking for --enable-catch_segvs" >&5
4528           no_cache=0
4529           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4530 if test "${enable_catch_segvs+set}" = set; then
4531   enableval="$enable_catch_segvs"
4532   
4533                           if test "$enableval" = yes; then
4534                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4535                           else
4536                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4537                           fi
4538                         
4539 else
4540   
4541                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4542                           if test "x$LINE" != x ; then
4543                             eval "DEFAULT_$LINE"
4544                           else
4545                             no_cache=1
4546                           fi
4547
4548                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4549                         
4550 fi
4551
4552
4553           eval "$ac_cv_use_catch_segvs"
4554           if test "$no_cache" != 1; then
4555             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4556           fi
4557
4558           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4559             echo "$ac_t""yes" 1>&6
4560           else
4561             echo "$ac_t""no" 1>&6
4562           fi
4563         
4564
4565           echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4566 echo "configure:4567: checking for --enable-snglinst" >&5
4567           no_cache=0
4568           # Check whether --enable-snglinst or --disable-snglinst was given.
4569 if test "${enable_snglinst+set}" = set; then
4570   enableval="$enable_snglinst"
4571   
4572                           if test "$enableval" = yes; then
4573                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4574                           else
4575                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4576                           fi
4577                         
4578 else
4579   
4580                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4581                           if test "x$LINE" != x ; then
4582                             eval "DEFAULT_$LINE"
4583                           else
4584                             no_cache=1
4585                           fi
4586
4587                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4588                         
4589 fi
4590
4591
4592           eval "$ac_cv_use_snglinst"
4593           if test "$no_cache" != 1; then
4594             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4595           fi
4596
4597           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4598             echo "$ac_t""yes" 1>&6
4599           else
4600             echo "$ac_t""no" 1>&6
4601           fi
4602         
4603
4604
4605           echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4606 echo "configure:4607: checking for --enable-mimetype" >&5
4607           no_cache=0
4608           # Check whether --enable-mimetype or --disable-mimetype was given.
4609 if test "${enable_mimetype+set}" = set; then
4610   enableval="$enable_mimetype"
4611   
4612                           if test "$enableval" = yes; then
4613                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4614                           else
4615                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4616                           fi
4617                         
4618 else
4619   
4620                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4621                           if test "x$LINE" != x ; then
4622                             eval "DEFAULT_$LINE"
4623                           else
4624                             no_cache=1
4625                           fi
4626
4627                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4628                         
4629 fi
4630
4631
4632           eval "$ac_cv_use_mimetype"
4633           if test "$no_cache" != 1; then
4634             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4635           fi
4636
4637           if test "$wxUSE_MIMETYPE" = yes; then
4638             echo "$ac_t""yes" 1>&6
4639           else
4640             echo "$ac_t""no" 1>&6
4641           fi
4642         
4643
4644           echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4645 echo "configure:4646: checking for --enable-system_options" >&5
4646           no_cache=0
4647           # Check whether --enable-system_options or --disable-system_options was given.
4648 if test "${enable_system_options+set}" = set; then
4649   enableval="$enable_system_options"
4650   
4651                           if test "$enableval" = yes; then
4652                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4653                           else
4654                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4655                           fi
4656                         
4657 else
4658   
4659                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4660                           if test "x$LINE" != x ; then
4661                             eval "DEFAULT_$LINE"
4662                           else
4663                             no_cache=1
4664                           fi
4665
4666                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4667                         
4668 fi
4669
4670
4671           eval "$ac_cv_use_system_options"
4672           if test "$no_cache" != 1; then
4673             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4674           fi
4675
4676           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4677             echo "$ac_t""yes" 1>&6
4678           else
4679             echo "$ac_t""no" 1>&6
4680           fi
4681         
4682
4683
4684           echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
4685 echo "configure:4686: checking for --enable-url" >&5
4686           no_cache=0
4687           # Check whether --enable-url or --disable-url was given.
4688 if test "${enable_url+set}" = set; then
4689   enableval="$enable_url"
4690   
4691                           if test "$enableval" = yes; then
4692                             ac_cv_use_url='wxUSE_URL=yes'
4693                           else
4694                             ac_cv_use_url='wxUSE_URL=no'
4695                           fi
4696                         
4697 else
4698   
4699                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4700                           if test "x$LINE" != x ; then
4701                             eval "DEFAULT_$LINE"
4702                           else
4703                             no_cache=1
4704                           fi
4705
4706                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4707                         
4708 fi
4709
4710
4711           eval "$ac_cv_use_url"
4712           if test "$no_cache" != 1; then
4713             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4714           fi
4715
4716           if test "$wxUSE_URL" = yes; then
4717             echo "$ac_t""yes" 1>&6
4718           else
4719             echo "$ac_t""no" 1>&6
4720           fi
4721         
4722
4723           echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
4724 echo "configure:4725: checking for --enable-protocol" >&5
4725           no_cache=0
4726           # Check whether --enable-protocol or --disable-protocol was given.
4727 if test "${enable_protocol+set}" = set; then
4728   enableval="$enable_protocol"
4729   
4730                           if test "$enableval" = yes; then
4731                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4732                           else
4733                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4734                           fi
4735                         
4736 else
4737   
4738                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4739                           if test "x$LINE" != x ; then
4740                             eval "DEFAULT_$LINE"
4741                           else
4742                             no_cache=1
4743                           fi
4744
4745                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4746                         
4747 fi
4748
4749
4750           eval "$ac_cv_use_protocol"
4751           if test "$no_cache" != 1; then
4752             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4753           fi
4754
4755           if test "$wxUSE_PROTOCOL" = yes; then
4756             echo "$ac_t""yes" 1>&6
4757           else
4758             echo "$ac_t""no" 1>&6
4759           fi
4760         
4761
4762           echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
4763 echo "configure:4764: checking for --enable-protocol_http" >&5
4764           no_cache=0
4765           # Check whether --enable-protocol_http or --disable-protocol_http was given.
4766 if test "${enable_protocol_http+set}" = set; then
4767   enableval="$enable_protocol_http"
4768   
4769                           if test "$enableval" = yes; then
4770                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4771                           else
4772                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4773                           fi
4774                         
4775 else
4776   
4777                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4778                           if test "x$LINE" != x ; then
4779                             eval "DEFAULT_$LINE"
4780                           else
4781                             no_cache=1
4782                           fi
4783
4784                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4785                         
4786 fi
4787
4788
4789           eval "$ac_cv_use_protocol_http"
4790           if test "$no_cache" != 1; then
4791             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4792           fi
4793
4794           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4795             echo "$ac_t""yes" 1>&6
4796           else
4797             echo "$ac_t""no" 1>&6
4798           fi
4799         
4800
4801           echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
4802 echo "configure:4803: checking for --enable-protocol_ftp" >&5
4803           no_cache=0
4804           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4805 if test "${enable_protocol_ftp+set}" = set; then
4806   enableval="$enable_protocol_ftp"
4807   
4808                           if test "$enableval" = yes; then
4809                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4810                           else
4811                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4812                           fi
4813                         
4814 else
4815   
4816                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4817                           if test "x$LINE" != x ; then
4818                             eval "DEFAULT_$LINE"
4819                           else
4820                             no_cache=1
4821                           fi
4822
4823                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4824                         
4825 fi
4826
4827
4828           eval "$ac_cv_use_protocol_ftp"
4829           if test "$no_cache" != 1; then
4830             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4831           fi
4832
4833           if test "$wxUSE_PROTOCOL_FTP" = yes; then
4834             echo "$ac_t""yes" 1>&6
4835           else
4836             echo "$ac_t""no" 1>&6
4837           fi
4838         
4839
4840           echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
4841 echo "configure:4842: checking for --enable-protocol_file" >&5
4842           no_cache=0
4843           # Check whether --enable-protocol_file or --disable-protocol_file was given.
4844 if test "${enable_protocol_file+set}" = set; then
4845   enableval="$enable_protocol_file"
4846   
4847                           if test "$enableval" = yes; then
4848                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4849                           else
4850                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4851                           fi
4852                         
4853 else
4854   
4855                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4856                           if test "x$LINE" != x ; then
4857                             eval "DEFAULT_$LINE"
4858                           else
4859                             no_cache=1
4860                           fi
4861
4862                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4863                         
4864 fi
4865
4866
4867           eval "$ac_cv_use_protocol_file"
4868           if test "$no_cache" != 1; then
4869             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4870           fi
4871
4872           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4873             echo "$ac_t""yes" 1>&6
4874           else
4875             echo "$ac_t""no" 1>&6
4876           fi
4877         
4878
4879
4880
4881
4882           echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4883 echo "configure:4884: checking for --enable-threads" >&5
4884           no_cache=0
4885           # Check whether --enable-threads or --disable-threads was given.
4886 if test "${enable_threads+set}" = set; then
4887   enableval="$enable_threads"
4888   
4889                           if test "$enableval" = yes; then
4890                             ac_cv_use_threads='wxUSE_THREADS=yes'
4891                           else
4892                             ac_cv_use_threads='wxUSE_THREADS=no'
4893                           fi
4894                         
4895 else
4896   
4897                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4898                           if test "x$LINE" != x ; then
4899                             eval "DEFAULT_$LINE"
4900                           else
4901                             no_cache=1
4902                           fi
4903
4904                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4905                         
4906 fi
4907
4908
4909           eval "$ac_cv_use_threads"
4910           if test "$no_cache" != 1; then
4911             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4912           fi
4913
4914           if test "$wxUSE_THREADS" = yes; then
4915             echo "$ac_t""yes" 1>&6
4916           else
4917             echo "$ac_t""no" 1>&6
4918           fi
4919         
4920
4921 if test "$wxUSE_GUI" = "yes"; then
4922
4923
4924
4925           echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4926 echo "configure:4927: checking for --enable-docview" >&5
4927           no_cache=0
4928           # Check whether --enable-docview or --disable-docview was given.
4929 if test "${enable_docview+set}" = set; then
4930   enableval="$enable_docview"
4931   
4932                           if test "$enableval" = yes; then
4933                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4934                           else
4935                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4936                           fi
4937                         
4938 else
4939   
4940                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4941                           if test "x$LINE" != x ; then
4942                             eval "DEFAULT_$LINE"
4943                           else
4944                             no_cache=1
4945                           fi
4946
4947                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4948                         
4949 fi
4950
4951
4952           eval "$ac_cv_use_docview"
4953           if test "$no_cache" != 1; then
4954             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4955           fi
4956
4957           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4958             echo "$ac_t""yes" 1>&6
4959           else
4960             echo "$ac_t""no" 1>&6
4961           fi
4962         
4963
4964           echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4965 echo "configure:4966: checking for --enable-help" >&5
4966           no_cache=0
4967           # Check whether --enable-help or --disable-help was given.
4968 if test "${enable_help+set}" = set; then
4969   enableval="$enable_help"
4970   
4971                           if test "$enableval" = yes; then
4972                             ac_cv_use_help='wxUSE_HELP=yes'
4973                           else
4974                             ac_cv_use_help='wxUSE_HELP=no'
4975                           fi
4976                         
4977 else
4978   
4979                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4980                           if test "x$LINE" != x ; then
4981                             eval "DEFAULT_$LINE"
4982                           else
4983                             no_cache=1
4984                           fi
4985
4986                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4987                         
4988 fi
4989
4990
4991           eval "$ac_cv_use_help"
4992           if test "$no_cache" != 1; then
4993             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4994           fi
4995
4996           if test "$wxUSE_HELP" = yes; then
4997             echo "$ac_t""yes" 1>&6
4998           else
4999             echo "$ac_t""no" 1>&6
5000           fi
5001         
5002
5003           echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
5004 echo "configure:5005: checking for --enable-mshtmlhelp" >&5
5005           no_cache=0
5006           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5007 if test "${enable_mshtmlhelp+set}" = set; then
5008   enableval="$enable_mshtmlhelp"
5009   
5010                           if test "$enableval" = yes; then
5011                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5012                           else
5013                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5014                           fi
5015                         
5016 else
5017   
5018                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5019                           if test "x$LINE" != x ; then
5020                             eval "DEFAULT_$LINE"
5021                           else
5022                             no_cache=1
5023                           fi
5024
5025                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5026                         
5027 fi
5028
5029
5030           eval "$ac_cv_use_mshtmlhelp"
5031           if test "$no_cache" != 1; then
5032             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5033           fi
5034
5035           if test "$wxUSE_MS_HTML_HELP" = yes; then
5036             echo "$ac_t""yes" 1>&6
5037           else
5038             echo "$ac_t""no" 1>&6
5039           fi
5040         
5041
5042           echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
5043 echo "configure:5044: checking for --enable-html" >&5
5044           no_cache=0
5045           # Check whether --enable-html or --disable-html was given.
5046 if test "${enable_html+set}" = set; then
5047   enableval="$enable_html"
5048   
5049                           if test "$enableval" = yes; then
5050                             ac_cv_use_html='wxUSE_HTML=yes'
5051                           else
5052                             ac_cv_use_html='wxUSE_HTML=no'
5053                           fi
5054                         
5055 else
5056   
5057                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5058                           if test "x$LINE" != x ; then
5059                             eval "DEFAULT_$LINE"
5060                           else
5061                             no_cache=1
5062                           fi
5063
5064                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5065                         
5066 fi
5067
5068
5069           eval "$ac_cv_use_html"
5070           if test "$no_cache" != 1; then
5071             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5072           fi
5073
5074           if test "$wxUSE_HTML" = yes; then
5075             echo "$ac_t""yes" 1>&6
5076           else
5077             echo "$ac_t""no" 1>&6
5078           fi
5079         
5080
5081           echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
5082 echo "configure:5083: checking for --enable-htmlhelp" >&5
5083           no_cache=0
5084           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5085 if test "${enable_htmlhelp+set}" = set; then
5086   enableval="$enable_htmlhelp"
5087   
5088                           if test "$enableval" = yes; then
5089                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5090                           else
5091                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5092                           fi
5093                         
5094 else
5095   
5096                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5097                           if test "x$LINE" != x ; then
5098                             eval "DEFAULT_$LINE"
5099                           else
5100                             no_cache=1
5101                           fi
5102
5103                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5104                         
5105 fi
5106
5107
5108           eval "$ac_cv_use_htmlhelp"
5109           if test "$no_cache" != 1; then
5110             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5111           fi
5112
5113           if test "$wxUSE_WXHTML_HELP" = yes; then
5114             echo "$ac_t""yes" 1>&6
5115           else
5116             echo "$ac_t""no" 1>&6
5117           fi
5118         
5119
5120           echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
5121 echo "configure:5122: checking for --enable-constraints" >&5
5122           no_cache=0
5123           # Check whether --enable-constraints or --disable-constraints was given.
5124 if test "${enable_constraints+set}" = set; then
5125   enableval="$enable_constraints"
5126   
5127                           if test "$enableval" = yes; then
5128                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5129                           else
5130                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5131                           fi
5132                         
5133 else
5134   
5135                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5136                           if test "x$LINE" != x ; then
5137                             eval "DEFAULT_$LINE"
5138                           else
5139                             no_cache=1
5140                           fi
5141
5142                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5143                         
5144 fi
5145
5146
5147           eval "$ac_cv_use_constraints"
5148           if test "$no_cache" != 1; then
5149             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5150           fi
5151
5152           if test "$wxUSE_CONSTRAINTS" = yes; then
5153             echo "$ac_t""yes" 1>&6
5154           else
5155             echo "$ac_t""no" 1>&6
5156           fi
5157         
5158
5159           echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
5160 echo "configure:5161: checking for --enable-printarch" >&5
5161           no_cache=0
5162           # Check whether --enable-printarch or --disable-printarch was given.
5163 if test "${enable_printarch+set}" = set; then
5164   enableval="$enable_printarch"
5165   
5166                           if test "$enableval" = yes; then
5167                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5168                           else
5169                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5170                           fi
5171                         
5172 else
5173   
5174                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5175                           if test "x$LINE" != x ; then
5176                             eval "DEFAULT_$LINE"
5177                           else
5178                             no_cache=1
5179                           fi
5180
5181                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5182                         
5183 fi
5184
5185
5186           eval "$ac_cv_use_printarch"
5187           if test "$no_cache" != 1; then
5188             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5189           fi
5190
5191           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5192             echo "$ac_t""yes" 1>&6
5193           else
5194             echo "$ac_t""no" 1>&6
5195           fi
5196         
5197
5198           echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
5199 echo "configure:5200: checking for --enable-mdi" >&5
5200           no_cache=0
5201           # Check whether --enable-mdi or --disable-mdi was given.
5202 if test "${enable_mdi+set}" = set; then
5203   enableval="$enable_mdi"
5204   
5205                           if test "$enableval" = yes; then
5206                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5207                           else
5208                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5209                           fi
5210                         
5211 else
5212   
5213                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5214                           if test "x$LINE" != x ; then
5215                             eval "DEFAULT_$LINE"
5216                           else
5217                             no_cache=1
5218                           fi
5219
5220                           ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5221                         
5222 fi
5223
5224
5225           eval "$ac_cv_use_mdi"
5226           if test "$no_cache" != 1; then
5227             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5228           fi
5229
5230           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5231             echo "$ac_t""yes" 1>&6
5232           else
5233             echo "$ac_t""no" 1>&6
5234           fi
5235         
5236
5237           echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
5238 echo "configure:5239: checking for --enable-loggui" >&5
5239           no_cache=0
5240           # Check whether --enable-loggui or --disable-loggui was given.
5241 if test "${enable_loggui+set}" = set; then
5242   enableval="$enable_loggui"
5243   
5244                           if test "$enableval" = yes; then
5245                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5246                           else
5247                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
5248                           fi
5249                         
5250 else
5251   
5252                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5253                           if test "x$LINE" != x ; then
5254                             eval "DEFAULT_$LINE"
5255                           else
5256                             no_cache=1
5257                           fi
5258
5259                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5260                         
5261 fi
5262
5263
5264           eval "$ac_cv_use_loggui"
5265           if test "$no_cache" != 1; then
5266             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5267           fi
5268
5269           if test "$wxUSE_LOGGUI" = yes; then
5270             echo "$ac_t""yes" 1>&6
5271           else
5272             echo "$ac_t""no" 1>&6
5273           fi
5274         
5275
5276           echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
5277 echo "configure:5278: checking for --enable-logwin" >&5
5278           no_cache=0
5279           # Check whether --enable-logwin or --disable-logwin was given.
5280 if test "${enable_logwin+set}" = set; then
5281   enableval="$enable_logwin"
5282   
5283                           if test "$enableval" = yes; then
5284                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5285                           else
5286                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5287                           fi
5288                         
5289 else
5290   
5291                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5292                           if test "x$LINE" != x ; then
5293                             eval "DEFAULT_$LINE"
5294                           else
5295                             no_cache=1
5296                           fi
5297
5298                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5299                         
5300 fi
5301
5302
5303           eval "$ac_cv_use_logwin"
5304           if test "$no_cache" != 1; then
5305             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5306           fi
5307
5308           if test "$wxUSE_LOGWINDOW" = yes; then
5309             echo "$ac_t""yes" 1>&6
5310           else
5311             echo "$ac_t""no" 1>&6
5312           fi
5313         
5314
5315           echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
5316 echo "configure:5317: checking for --enable-logdialog" >&5
5317           no_cache=0
5318           # Check whether --enable-logdialog or --disable-logdialog was given.
5319 if test "${enable_logdialog+set}" = set; then
5320   enableval="$enable_logdialog"
5321   
5322                           if test "$enableval" = yes; then
5323                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5324                           else
5325                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5326                           fi
5327                         
5328 else
5329   
5330                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5331                           if test "x$LINE" != x ; then
5332                             eval "DEFAULT_$LINE"
5333                           else
5334                             no_cache=1
5335                           fi
5336
5337                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5338                         
5339 fi
5340
5341
5342           eval "$ac_cv_use_logdialog"
5343           if test "$no_cache" != 1; then
5344             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5345           fi
5346
5347           if test "$wxUSE_LOGDIALOG" = yes; then
5348             echo "$ac_t""yes" 1>&6
5349           else
5350             echo "$ac_t""no" 1>&6
5351           fi
5352         
5353
5354
5355           echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
5356 echo "configure:5357: checking for --enable-postscript" >&5
5357           no_cache=0
5358           # Check whether --enable-postscript or --disable-postscript was given.
5359 if test "${enable_postscript+set}" = set; then
5360   enableval="$enable_postscript"
5361   
5362                           if test "$enableval" = yes; then
5363                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5364                           else
5365                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5366                           fi
5367                         
5368 else
5369   
5370                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5371                           if test "x$LINE" != x ; then
5372                             eval "DEFAULT_$LINE"
5373                           else
5374                             no_cache=1
5375                           fi
5376
5377                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5378                         
5379 fi
5380
5381
5382           eval "$ac_cv_use_postscript"
5383           if test "$no_cache" != 1; then
5384             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5385           fi
5386
5387           if test "$wxUSE_POSTSCRIPT" = yes; then
5388             echo "$ac_t""yes" 1>&6
5389           else
5390             echo "$ac_t""no" 1>&6
5391           fi
5392         
5393
5394
5395
5396
5397           echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
5398 echo "configure:5399: checking for --enable-prologio" >&5
5399           no_cache=0
5400           # Check whether --enable-prologio or --disable-prologio was given.
5401 if test "${enable_prologio+set}" = set; then
5402   enableval="$enable_prologio"
5403   
5404                           if test "$enableval" = yes; then
5405                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5406                           else
5407                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5408                           fi
5409                         
5410 else
5411   
5412                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5413                           if test "x$LINE" != x ; then
5414                             eval "DEFAULT_$LINE"
5415                           else
5416                             no_cache=1
5417                           fi
5418
5419                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5420                         
5421 fi
5422
5423
5424           eval "$ac_cv_use_prologio"
5425           if test "$no_cache" != 1; then
5426             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5427           fi
5428
5429           if test "$wxUSE_PROLOGIO" = yes; then
5430             echo "$ac_t""yes" 1>&6
5431           else
5432             echo "$ac_t""no" 1>&6
5433           fi
5434         
5435
5436           echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
5437 echo "configure:5438: checking for --enable-resources" >&5
5438           no_cache=0
5439           # Check whether --enable-resources or --disable-resources was given.
5440 if test "${enable_resources+set}" = set; then
5441   enableval="$enable_resources"
5442   
5443                           if test "$enableval" = yes; then
5444                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
5445                           else
5446                             ac_cv_use_resources='wxUSE_RESOURCES=no'
5447                           fi
5448                         
5449 else
5450   
5451                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5452                           if test "x$LINE" != x ; then
5453                             eval "DEFAULT_$LINE"
5454                           else
5455                             no_cache=1
5456                           fi
5457
5458                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5459                         
5460 fi
5461
5462
5463           eval "$ac_cv_use_resources"
5464           if test "$no_cache" != 1; then
5465             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5466           fi
5467
5468           if test "$wxUSE_RESOURCES" = yes; then
5469             echo "$ac_t""yes" 1>&6
5470           else
5471             echo "$ac_t""no" 1>&6
5472           fi
5473         
5474
5475
5476           echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
5477 echo "configure:5478: checking for --enable-xresources" >&5
5478           no_cache=0
5479           # Check whether --enable-xresources or --disable-xresources was given.
5480 if test "${enable_xresources+set}" = set; then
5481   enableval="$enable_xresources"
5482   
5483                           if test "$enableval" = yes; then
5484                             ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5485                           else
5486                             ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5487                           fi
5488                         
5489 else
5490   
5491                           LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5492                           if test "x$LINE" != x ; then
5493                             eval "DEFAULT_$LINE"
5494                           else
5495                             no_cache=1
5496                           fi
5497
5498                           ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5499                         
5500 fi
5501
5502
5503           eval "$ac_cv_use_xresources"
5504           if test "$no_cache" != 1; then
5505             echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5506           fi
5507
5508           if test "$wxUSE_X_RESOURCES" = yes; then
5509             echo "$ac_t""yes" 1>&6
5510           else
5511             echo "$ac_t""no" 1>&6
5512           fi
5513         
5514
5515
5516
5517           echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
5518 echo "configure:5519: checking for --enable-clipboard" >&5
5519           no_cache=0
5520           # Check whether --enable-clipboard or --disable-clipboard was given.
5521 if test "${enable_clipboard+set}" = set; then
5522   enableval="$enable_clipboard"
5523   
5524                           if test "$enableval" = yes; then
5525                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5526                           else
5527                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5528                           fi
5529                         
5530 else
5531   
5532                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5533                           if test "x$LINE" != x ; then
5534                             eval "DEFAULT_$LINE"
5535                           else
5536                             no_cache=1
5537                           fi
5538
5539                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5540                         
5541 fi
5542
5543
5544           eval "$ac_cv_use_clipboard"
5545           if test "$no_cache" != 1; then
5546             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5547           fi
5548
5549           if test "$wxUSE_CLIPBOARD" = yes; then
5550             echo "$ac_t""yes" 1>&6
5551           else
5552             echo "$ac_t""no" 1>&6
5553           fi
5554         
5555
5556           echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5557 echo "configure:5558: checking for --enable-dnd" >&5
5558           no_cache=0
5559           # Check whether --enable-dnd or --disable-dnd was given.
5560 if test "${enable_dnd+set}" = set; then
5561   enableval="$enable_dnd"
5562   
5563                           if test "$enableval" = yes; then
5564                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5565                           else
5566                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5567                           fi
5568                         
5569 else
5570   
5571                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5572                           if test "x$LINE" != x ; then
5573                             eval "DEFAULT_$LINE"
5574                           else
5575                             no_cache=1
5576                           fi
5577
5578                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5579                         
5580 fi
5581
5582
5583           eval "$ac_cv_use_dnd"
5584           if test "$no_cache" != 1; then
5585             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5586           fi
5587
5588           if test "$wxUSE_DRAG_AND_DROP" = yes; then
5589             echo "$ac_t""yes" 1>&6
5590           else
5591             echo "$ac_t""no" 1>&6
5592           fi
5593         
5594
5595           echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5596 echo "configure:5597: checking for --enable-metafile" >&5
5597           no_cache=0
5598           # Check whether --enable-metafile or --disable-metafile was given.
5599 if test "${enable_metafile+set}" = set; then
5600   enableval="$enable_metafile"
5601   
5602                           if test "$enableval" = yes; then
5603                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
5604                           else
5605                             ac_cv_use_metafile='wxUSE_METAFILE=no'
5606                           fi
5607                         
5608 else
5609   
5610                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5611                           if test "x$LINE" != x ; then
5612                             eval "DEFAULT_$LINE"
5613                           else
5614                             no_cache=1
5615                           fi
5616
5617                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5618                         
5619 fi
5620
5621
5622           eval "$ac_cv_use_metafile"
5623           if test "$no_cache" != 1; then
5624             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5625           fi
5626
5627           if test "$wxUSE_METAFILE" = yes; then
5628             echo "$ac_t""yes" 1>&6
5629           else
5630             echo "$ac_t""no" 1>&6
5631           fi
5632         
5633
5634
5635           echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5636 echo "configure:5637: checking for --enable-treelayout" >&5
5637           no_cache=0
5638           # Check whether --enable-treelayout or --disable-treelayout was given.
5639 if test "${enable_treelayout+set}" = set; then
5640   enableval="$enable_treelayout"
5641   
5642                           if test "$enableval" = yes; then
5643                             ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5644                           else
5645                             ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5646                           fi
5647                         
5648 else
5649   
5650                           LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5651                           if test "x$LINE" != x ; then
5652                             eval "DEFAULT_$LINE"
5653                           else
5654                             no_cache=1
5655                           fi
5656
5657                           ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5658                         
5659 fi
5660
5661
5662           eval "$ac_cv_use_treelayout"
5663           if test "$no_cache" != 1; then
5664             echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5665           fi
5666
5667           if test "$wxUSE_TREELAYOUT" = yes; then
5668             echo "$ac_t""yes" 1>&6
5669           else
5670             echo "$ac_t""no" 1>&6
5671           fi
5672         
5673
5674
5675
5676           echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5677 echo "configure:5678: checking for --enable-controls" >&5
5678           no_cache=0
5679           # Check whether --enable-controls or --disable-controls was given.
5680 if test "${enable_controls+set}" = set; then
5681   enableval="$enable_controls"
5682   
5683                           if test "$enableval" = yes; then
5684                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
5685                           else
5686                             ac_cv_use_controls='wxUSE_CONTROLS=no'
5687                           fi
5688                         
5689 else
5690   
5691                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5692                           if test "x$LINE" != x ; then
5693                             eval "DEFAULT_$LINE"
5694                           else
5695                             no_cache=1
5696                           fi
5697
5698                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5699                         
5700 fi
5701
5702
5703           eval "$ac_cv_use_controls"
5704           if test "$no_cache" != 1; then
5705             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5706           fi
5707
5708           if test "$wxUSE_CONTROLS" = yes; then
5709             echo "$ac_t""yes" 1>&6
5710           else
5711             echo "$ac_t""no" 1>&6
5712           fi
5713         
5714
5715 if test "$wxUSE_CONTROLS" = "yes"; then
5716   DEFAULT_wxUSE_ACCEL=yes
5717   DEFAULT_wxUSE_BMPBUTTON=yes
5718   DEFAULT_wxUSE_BUTTON=yes
5719   DEFAULT_wxUSE_CALCTRL=no
5720   DEFAULT_wxUSE_CARET=yes
5721   DEFAULT_wxUSE_COMBOBOX=yes
5722   DEFAULT_wxUSE_CHECKBOX=yes
5723   DEFAULT_wxUSE_CHECKLISTBOX=yes
5724   DEFAULT_wxUSE_CHOICE=yes
5725   DEFAULT_wxUSE_GAUGE=yes
5726   DEFAULT_wxUSE_GRID=yes
5727   DEFAULT_wxUSE_NEW_GRID=yes
5728   DEFAULT_wxUSE_IMAGLIST=yes
5729   DEFAULT_wxUSE_LISTBOX=yes
5730   DEFAULT_wxUSE_LISTCTRL=yes
5731   DEFAULT_wxUSE_NOTEBOOK=yes
5732   DEFAULT_wxUSE_PROPSHEET=yes
5733   DEFAULT_wxUSE_RADIOBOX=yes
5734   DEFAULT_wxUSE_RADIOBTN=yes
5735   DEFAULT_wxUSE_SASH=yes
5736   DEFAULT_wxUSE_SCROLLBAR=yes
5737   DEFAULT_wxUSE_SLIDER=yes
5738   DEFAULT_wxUSE_SPINBTN=yes
5739   DEFAULT_wxUSE_SPINCTRL=yes
5740   DEFAULT_wxUSE_SPLITTER=yes
5741   DEFAULT_wxUSE_STATBMP=yes
5742   DEFAULT_wxUSE_STATBOX=yes
5743   DEFAULT_wxUSE_STATLINE=yes
5744   DEFAULT_wxUSE_STATUSBAR=yes
5745   DEFAULT_wxUSE_TAB_DIALOG=yes
5746   DEFAULT_wxUSE_TOGGLEBTN=yes
5747   DEFAULT_wxUSE_TOOLBAR=yes
5748   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5749   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5750   DEFAULT_wxUSE_TOOLTIPS=yes
5751   DEFAULT_wxUSE_TREECTRL=yes
5752   DEFAULT_wxUSE_POPUPWIN=yes
5753   DEFAULT_wxUSE_TIPWINDOW=yes
5754 elif test "$wxUSE_CONTROLS" = "no"; then
5755   DEFAULT_wxUSE_ACCEL=no
5756   DEFAULT_wxUSE_BMPBUTTON=no
5757   DEFAULT_wxUSE_BUTTON=no
5758   DEFAULT_wxUSE_CALCTRL=no
5759   DEFAULT_wxUSE_CARET=no
5760   DEFAULT_wxUSE_COMBOBOX=no
5761   DEFAULT_wxUSE_CHECKBOX=no
5762   DEFAULT_wxUSE_CHECKLISTBOX=no
5763   DEFAULT_wxUSE_CHOICE=no
5764   DEFAULT_wxUSE_GAUGE=no
5765   DEFAULT_wxUSE_GRID=no
5766   DEFAULT_wxUSE_NEW_GRID=no
5767   DEFAULT_wxUSE_IMAGLIST=no
5768   DEFAULT_wxUSE_LISTBOX=no
5769   DEFAULT_wxUSE_LISTCTRL=no
5770   DEFAULT_wxUSE_NOTEBOOK=no
5771   DEFAULT_wxUSE_PROPSHEET=no
5772   DEFAULT_wxUSE_RADIOBOX=no
5773   DEFAULT_wxUSE_RADIOBTN=no
5774   DEFAULT_wxUSE_SASH=no
5775   DEFAULT_wxUSE_SCROLLBAR=no
5776   DEFAULT_wxUSE_SLIDER=no
5777   DEFAULT_wxUSE_SPINBTN=no
5778   DEFAULT_wxUSE_SPINCTRL=no
5779   DEFAULT_wxUSE_SPLITTER=no
5780   DEFAULT_wxUSE_STATBMP=no
5781   DEFAULT_wxUSE_STATBOX=no
5782   DEFAULT_wxUSE_STATLINE=no
5783   DEFAULT_wxUSE_STATUSBAR=no
5784   DEFAULT_wxUSE_TAB_DIALOG=no
5785   DEFAULT_wxUSE_TOGGLEBTN=no
5786   DEFAULT_wxUSE_TOOLBAR=no
5787   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5788   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5789   DEFAULT_wxUSE_TOOLTIPS=no
5790   DEFAULT_wxUSE_TREECTRL=no
5791   DEFAULT_wxUSE_POPUPWIN=no
5792   DEFAULT_wxUSE_TIPWINDOW=no
5793 fi
5794
5795
5796           echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5797 echo "configure:5798: checking for --enable-accel" >&5
5798           no_cache=0
5799           # Check whether --enable-accel or --disable-accel was given.
5800 if test "${enable_accel+set}" = set; then
5801   enableval="$enable_accel"
5802   
5803                           if test "$enableval" = yes; then
5804                             ac_cv_use_accel='wxUSE_ACCEL=yes'
5805                           else
5806                             ac_cv_use_accel='wxUSE_ACCEL=no'
5807                           fi
5808                         
5809 else
5810   
5811                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5812                           if test "x$LINE" != x ; then
5813                             eval "DEFAULT_$LINE"
5814                           else
5815                             no_cache=1
5816                           fi
5817
5818                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5819                         
5820 fi
5821
5822
5823           eval "$ac_cv_use_accel"
5824           if test "$no_cache" != 1; then
5825             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5826           fi
5827
5828           if test "$wxUSE_ACCEL" = yes; then
5829             echo "$ac_t""yes" 1>&6
5830           else
5831             echo "$ac_t""no" 1>&6
5832           fi
5833         
5834
5835           echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5836 echo "configure:5837: checking for --enable-button" >&5
5837           no_cache=0
5838           # Check whether --enable-button or --disable-button was given.
5839 if test "${enable_button+set}" = set; then
5840   enableval="$enable_button"
5841   
5842                           if test "$enableval" = yes; then
5843                             ac_cv_use_button='wxUSE_BUTTON=yes'
5844                           else
5845                             ac_cv_use_button='wxUSE_BUTTON=no'
5846                           fi
5847                         
5848 else
5849   
5850                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5851                           if test "x$LINE" != x ; then
5852                             eval "DEFAULT_$LINE"
5853                           else
5854                             no_cache=1
5855                           fi
5856
5857                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5858                         
5859 fi
5860
5861
5862           eval "$ac_cv_use_button"
5863           if test "$no_cache" != 1; then
5864             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5865           fi
5866
5867           if test "$wxUSE_BUTTON" = yes; then
5868             echo "$ac_t""yes" 1>&6
5869           else
5870             echo "$ac_t""no" 1>&6
5871           fi
5872         
5873
5874           echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5875 echo "configure:5876: checking for --enable-bmpbutton" >&5
5876           no_cache=0
5877           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5878 if test "${enable_bmpbutton+set}" = set; then
5879   enableval="$enable_bmpbutton"
5880   
5881                           if test "$enableval" = yes; then
5882                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5883                           else
5884                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5885                           fi
5886                         
5887 else
5888   
5889                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5890                           if test "x$LINE" != x ; then
5891                             eval "DEFAULT_$LINE"
5892                           else
5893                             no_cache=1
5894                           fi
5895
5896                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5897                         
5898 fi
5899
5900
5901           eval "$ac_cv_use_bmpbutton"
5902           if test "$no_cache" != 1; then
5903             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5904           fi
5905
5906           if test "$wxUSE_BMPBUTTON" = yes; then
5907             echo "$ac_t""yes" 1>&6
5908           else
5909             echo "$ac_t""no" 1>&6
5910           fi
5911         
5912
5913           echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5914 echo "configure:5915: checking for --enable-calendar" >&5
5915           no_cache=0
5916           # Check whether --enable-calendar or --disable-calendar was given.
5917 if test "${enable_calendar+set}" = set; then
5918   enableval="$enable_calendar"
5919   
5920                           if test "$enableval" = yes; then
5921                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5922                           else
5923                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
5924                           fi
5925                         
5926 else
5927   
5928                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5929                           if test "x$LINE" != x ; then
5930                             eval "DEFAULT_$LINE"
5931                           else
5932                             no_cache=1
5933                           fi
5934
5935                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5936                         
5937 fi
5938
5939
5940           eval "$ac_cv_use_calendar"
5941           if test "$no_cache" != 1; then
5942             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5943           fi
5944
5945           if test "$wxUSE_CALCTRL" = yes; then
5946             echo "$ac_t""yes" 1>&6
5947           else
5948             echo "$ac_t""no" 1>&6
5949           fi
5950         
5951
5952           echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5953 echo "configure:5954: checking for --enable-caret" >&5
5954           no_cache=0
5955           # Check whether --enable-caret or --disable-caret was given.
5956 if test "${enable_caret+set}" = set; then
5957   enableval="$enable_caret"
5958   
5959                           if test "$enableval" = yes; then
5960                             ac_cv_use_caret='wxUSE_CARET=yes'
5961                           else
5962                             ac_cv_use_caret='wxUSE_CARET=no'
5963                           fi
5964                         
5965 else
5966   
5967                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5968                           if test "x$LINE" != x ; then
5969                             eval "DEFAULT_$LINE"
5970                           else
5971                             no_cache=1
5972                           fi
5973
5974                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5975                         
5976 fi
5977
5978
5979           eval "$ac_cv_use_caret"
5980           if test "$no_cache" != 1; then
5981             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5982           fi
5983
5984           if test "$wxUSE_CARET" = yes; then
5985             echo "$ac_t""yes" 1>&6
5986           else
5987             echo "$ac_t""no" 1>&6
5988           fi
5989         
5990
5991           echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5992 echo "configure:5993: checking for --enable-checkbox" >&5
5993           no_cache=0
5994           # Check whether --enable-checkbox or --disable-checkbox was given.
5995 if test "${enable_checkbox+set}" = set; then
5996   enableval="$enable_checkbox"
5997   
5998                           if test "$enableval" = yes; then
5999                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6000                           else
6001                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6002                           fi
6003                         
6004 else
6005   
6006                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6007                           if test "x$LINE" != x ; then
6008                             eval "DEFAULT_$LINE"
6009                           else
6010                             no_cache=1
6011                           fi
6012
6013                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6014                         
6015 fi
6016
6017
6018           eval "$ac_cv_use_checkbox"
6019           if test "$no_cache" != 1; then
6020             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6021           fi
6022
6023           if test "$wxUSE_CHECKBOX" = yes; then
6024             echo "$ac_t""yes" 1>&6
6025           else
6026             echo "$ac_t""no" 1>&6
6027           fi
6028         
6029
6030           echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
6031 echo "configure:6032: checking for --enable-checklst" >&5
6032           no_cache=0
6033           # Check whether --enable-checklst or --disable-checklst was given.
6034 if test "${enable_checklst+set}" = set; then
6035   enableval="$enable_checklst"
6036   
6037                           if test "$enableval" = yes; then
6038                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6039                           else
6040                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
6041                           fi
6042                         
6043 else
6044   
6045                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6046                           if test "x$LINE" != x ; then
6047                             eval "DEFAULT_$LINE"
6048                           else
6049                             no_cache=1
6050                           fi
6051
6052                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6053                         
6054 fi
6055
6056
6057           eval "$ac_cv_use_checklst"
6058           if test "$no_cache" != 1; then
6059             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6060           fi
6061
6062           if test "$wxUSE_CHECKLST" = yes; then
6063             echo "$ac_t""yes" 1>&6
6064           else
6065             echo "$ac_t""no" 1>&6
6066           fi
6067         
6068
6069           echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
6070 echo "configure:6071: checking for --enable-choice" >&5
6071           no_cache=0
6072           # Check whether --enable-choice or --disable-choice was given.
6073 if test "${enable_choice+set}" = set; then
6074   enableval="$enable_choice"
6075   
6076                           if test "$enableval" = yes; then
6077                             ac_cv_use_choice='wxUSE_CHOICE=yes'
6078                           else
6079                             ac_cv_use_choice='wxUSE_CHOICE=no'
6080                           fi
6081                         
6082 else
6083   
6084                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6085                           if test "x$LINE" != x ; then
6086                             eval "DEFAULT_$LINE"
6087                           else
6088                             no_cache=1
6089                           fi
6090
6091                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6092                         
6093 fi
6094
6095
6096           eval "$ac_cv_use_choice"
6097           if test "$no_cache" != 1; then
6098             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6099           fi
6100
6101           if test "$wxUSE_CHOICE" = yes; then
6102             echo "$ac_t""yes" 1>&6
6103           else
6104             echo "$ac_t""no" 1>&6
6105           fi
6106         
6107
6108           echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
6109 echo "configure:6110: checking for --enable-combobox" >&5
6110           no_cache=0
6111           # Check whether --enable-combobox or --disable-combobox was given.
6112 if test "${enable_combobox+set}" = set; then
6113   enableval="$enable_combobox"
6114   
6115                           if test "$enableval" = yes; then
6116                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6117                           else
6118                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6119                           fi
6120                         
6121 else
6122   
6123                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6124                           if test "x$LINE" != x ; then
6125                             eval "DEFAULT_$LINE"
6126                           else
6127                             no_cache=1
6128                           fi
6129
6130                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6131                         
6132 fi
6133
6134
6135           eval "$ac_cv_use_combobox"
6136           if test "$no_cache" != 1; then
6137             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6138           fi
6139
6140           if test "$wxUSE_COMBOBOX" = yes; then
6141             echo "$ac_t""yes" 1>&6
6142           else
6143             echo "$ac_t""no" 1>&6
6144           fi
6145         
6146
6147           echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
6148 echo "configure:6149: checking for --enable-gauge" >&5
6149           no_cache=0
6150           # Check whether --enable-gauge or --disable-gauge was given.
6151 if test "${enable_gauge+set}" = set; then
6152   enableval="$enable_gauge"
6153   
6154                           if test "$enableval" = yes; then
6155                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
6156                           else
6157                             ac_cv_use_gauge='wxUSE_GAUGE=no'
6158                           fi
6159                         
6160 else
6161   
6162                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6163                           if test "x$LINE" != x ; then
6164                             eval "DEFAULT_$LINE"
6165                           else
6166                             no_cache=1
6167                           fi
6168
6169                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6170                         
6171 fi
6172
6173
6174           eval "$ac_cv_use_gauge"
6175           if test "$no_cache" != 1; then
6176             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6177           fi
6178
6179           if test "$wxUSE_GAUGE" = yes; then
6180             echo "$ac_t""yes" 1>&6
6181           else
6182             echo "$ac_t""no" 1>&6
6183           fi
6184         
6185
6186           echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
6187 echo "configure:6188: checking for --enable-grid" >&5
6188           no_cache=0
6189           # Check whether --enable-grid or --disable-grid was given.
6190 if test "${enable_grid+set}" = set; then
6191   enableval="$enable_grid"
6192   
6193                           if test "$enableval" = yes; then
6194                             ac_cv_use_grid='wxUSE_GRID=yes'
6195                           else
6196                             ac_cv_use_grid='wxUSE_GRID=no'
6197                           fi
6198                         
6199 else
6200   
6201                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6202                           if test "x$LINE" != x ; then
6203                             eval "DEFAULT_$LINE"
6204                           else
6205                             no_cache=1
6206                           fi
6207
6208                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6209                         
6210 fi
6211
6212
6213           eval "$ac_cv_use_grid"
6214           if test "$no_cache" != 1; then
6215             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6216           fi
6217
6218           if test "$wxUSE_GRID" = yes; then
6219             echo "$ac_t""yes" 1>&6
6220           else
6221             echo "$ac_t""no" 1>&6
6222           fi
6223         
6224
6225           echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
6226 echo "configure:6227: checking for --enable-newgrid" >&5
6227           no_cache=0
6228           # Check whether --enable-newgrid or --disable-newgrid was given.
6229 if test "${enable_newgrid+set}" = set; then
6230   enableval="$enable_newgrid"
6231   
6232                           if test "$enableval" = yes; then
6233                             ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6234                           else
6235                             ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6236                           fi
6237                         
6238 else
6239   
6240                           LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6241                           if test "x$LINE" != x ; then
6242                             eval "DEFAULT_$LINE"
6243                           else
6244                             no_cache=1
6245                           fi
6246
6247                           ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6248                         
6249 fi
6250
6251
6252           eval "$ac_cv_use_newgrid"
6253           if test "$no_cache" != 1; then
6254             echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6255           fi
6256
6257           if test "$wxUSE_NEW_GRID" = yes; then
6258             echo "$ac_t""yes" 1>&6
6259           else
6260             echo "$ac_t""no" 1>&6
6261           fi
6262         
6263
6264           echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
6265 echo "configure:6266: checking for --enable-imaglist" >&5
6266           no_cache=0
6267           # Check whether --enable-imaglist or --disable-imaglist was given.
6268 if test "${enable_imaglist+set}" = set; then
6269   enableval="$enable_imaglist"
6270   
6271                           if test "$enableval" = yes; then
6272                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6273                           else
6274                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6275                           fi
6276                         
6277 else
6278   
6279                           LINE=`grep "wxUSE_IMAGLIST" ${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_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6287                         
6288 fi
6289
6290
6291           eval "$ac_cv_use_imaglist"
6292           if test "$no_cache" != 1; then
6293             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6294           fi
6295
6296           if test "$wxUSE_IMAGLIST" = yes; then
6297             echo "$ac_t""yes" 1>&6
6298           else
6299             echo "$ac_t""no" 1>&6
6300           fi
6301         
6302
6303           echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
6304 echo "configure:6305: checking for --enable-listbox" >&5
6305           no_cache=0
6306           # Check whether --enable-listbox or --disable-listbox was given.
6307 if test "${enable_listbox+set}" = set; then
6308   enableval="$enable_listbox"
6309   
6310                           if test "$enableval" = yes; then
6311                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6312                           else
6313                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
6314                           fi
6315                         
6316 else
6317   
6318                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6319                           if test "x$LINE" != x ; then
6320                             eval "DEFAULT_$LINE"
6321                           else
6322                             no_cache=1
6323                           fi
6324
6325                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6326                         
6327 fi
6328
6329
6330           eval "$ac_cv_use_listbox"
6331           if test "$no_cache" != 1; then
6332             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6333           fi
6334
6335           if test "$wxUSE_LISTBOX" = yes; then
6336             echo "$ac_t""yes" 1>&6
6337           else
6338             echo "$ac_t""no" 1>&6
6339           fi
6340         
6341
6342           echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
6343 echo "configure:6344: checking for --enable-listctrl" >&5
6344           no_cache=0
6345           # Check whether --enable-listctrl or --disable-listctrl was given.
6346 if test "${enable_listctrl+set}" = set; then
6347   enableval="$enable_listctrl"
6348   
6349                           if test "$enableval" = yes; then
6350                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6351                           else
6352                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6353                           fi
6354                         
6355 else
6356   
6357                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6358                           if test "x$LINE" != x ; then
6359                             eval "DEFAULT_$LINE"
6360                           else
6361                             no_cache=1
6362                           fi
6363
6364                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6365                         
6366 fi
6367
6368
6369           eval "$ac_cv_use_listctrl"
6370           if test "$no_cache" != 1; then
6371             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6372           fi
6373
6374           if test "$wxUSE_LISTCTRL" = yes; then
6375             echo "$ac_t""yes" 1>&6
6376           else
6377             echo "$ac_t""no" 1>&6
6378           fi
6379         
6380
6381           echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
6382 echo "configure:6383: checking for --enable-notebook" >&5
6383           no_cache=0
6384           # Check whether --enable-notebook or --disable-notebook was given.
6385 if test "${enable_notebook+set}" = set; then
6386   enableval="$enable_notebook"
6387   
6388                           if test "$enableval" = yes; then
6389                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6390                           else
6391                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6392                           fi
6393                         
6394 else
6395   
6396                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6397                           if test "x$LINE" != x ; then
6398                             eval "DEFAULT_$LINE"
6399                           else
6400                             no_cache=1
6401                           fi
6402
6403                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6404                         
6405 fi
6406
6407
6408           eval "$ac_cv_use_notebook"
6409           if test "$no_cache" != 1; then
6410             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6411           fi
6412
6413           if test "$wxUSE_NOTEBOOK" = yes; then
6414             echo "$ac_t""yes" 1>&6
6415           else
6416             echo "$ac_t""no" 1>&6
6417           fi
6418         
6419
6420           echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
6421 echo "configure:6422: checking for --enable-propsheet" >&5
6422           no_cache=0
6423           # Check whether --enable-propsheet or --disable-propsheet was given.
6424 if test "${enable_propsheet+set}" = set; then
6425   enableval="$enable_propsheet"
6426   
6427                           if test "$enableval" = yes; then
6428                             ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6429                           else
6430                             ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6431                           fi
6432                         
6433 else
6434   
6435                           LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6436                           if test "x$LINE" != x ; then
6437                             eval "DEFAULT_$LINE"
6438                           else
6439                             no_cache=1
6440                           fi
6441
6442                           ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6443                         
6444 fi
6445
6446
6447           eval "$ac_cv_use_propsheet"
6448           if test "$no_cache" != 1; then
6449             echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6450           fi
6451
6452           if test "$wxUSE_PROPSHEET" = yes; then
6453             echo "$ac_t""yes" 1>&6
6454           else
6455             echo "$ac_t""no" 1>&6
6456           fi
6457         
6458
6459           echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
6460 echo "configure:6461: checking for --enable-radiobox" >&5
6461           no_cache=0
6462           # Check whether --enable-radiobox or --disable-radiobox was given.
6463 if test "${enable_radiobox+set}" = set; then
6464   enableval="$enable_radiobox"
6465   
6466                           if test "$enableval" = yes; then
6467                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6468                           else
6469                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6470                           fi
6471                         
6472 else
6473   
6474                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6475                           if test "x$LINE" != x ; then
6476                             eval "DEFAULT_$LINE"
6477                           else
6478                             no_cache=1
6479                           fi
6480
6481                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6482                         
6483 fi
6484
6485
6486           eval "$ac_cv_use_radiobox"
6487           if test "$no_cache" != 1; then
6488             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6489           fi
6490
6491           if test "$wxUSE_RADIOBOX" = yes; then
6492             echo "$ac_t""yes" 1>&6
6493           else
6494             echo "$ac_t""no" 1>&6
6495           fi
6496         
6497
6498           echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
6499 echo "configure:6500: checking for --enable-radiobtn" >&5
6500           no_cache=0
6501           # Check whether --enable-radiobtn or --disable-radiobtn was given.
6502 if test "${enable_radiobtn+set}" = set; then
6503   enableval="$enable_radiobtn"
6504   
6505                           if test "$enableval" = yes; then
6506                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6507                           else
6508                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6509                           fi
6510                         
6511 else
6512   
6513                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6514                           if test "x$LINE" != x ; then
6515                             eval "DEFAULT_$LINE"
6516                           else
6517                             no_cache=1
6518                           fi
6519
6520                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6521                         
6522 fi
6523
6524
6525           eval "$ac_cv_use_radiobtn"
6526           if test "$no_cache" != 1; then
6527             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6528           fi
6529
6530           if test "$wxUSE_RADIOBTN" = yes; then
6531             echo "$ac_t""yes" 1>&6
6532           else
6533             echo "$ac_t""no" 1>&6
6534           fi
6535         
6536
6537           echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
6538 echo "configure:6539: checking for --enable-sash" >&5
6539           no_cache=0
6540           # Check whether --enable-sash or --disable-sash was given.
6541 if test "${enable_sash+set}" = set; then
6542   enableval="$enable_sash"
6543   
6544                           if test "$enableval" = yes; then
6545                             ac_cv_use_sash='wxUSE_SASH=yes'
6546                           else
6547                             ac_cv_use_sash='wxUSE_SASH=no'
6548                           fi
6549                         
6550 else
6551   
6552                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6553                           if test "x$LINE" != x ; then
6554                             eval "DEFAULT_$LINE"
6555                           else
6556                             no_cache=1
6557                           fi
6558
6559                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6560                         
6561 fi
6562
6563
6564           eval "$ac_cv_use_sash"
6565           if test "$no_cache" != 1; then
6566             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6567           fi
6568
6569           if test "$wxUSE_SASH" = yes; then
6570             echo "$ac_t""yes" 1>&6
6571           else
6572             echo "$ac_t""no" 1>&6
6573           fi
6574         
6575
6576           echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
6577 echo "configure:6578: checking for --enable-scrollbar" >&5
6578           no_cache=0
6579           # Check whether --enable-scrollbar or --disable-scrollbar was given.
6580 if test "${enable_scrollbar+set}" = set; then
6581   enableval="$enable_scrollbar"
6582   
6583                           if test "$enableval" = yes; then
6584                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6585                           else
6586                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6587                           fi
6588                         
6589 else
6590   
6591                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6592                           if test "x$LINE" != x ; then
6593                             eval "DEFAULT_$LINE"
6594                           else
6595                             no_cache=1
6596                           fi
6597
6598                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6599                         
6600 fi
6601
6602
6603           eval "$ac_cv_use_scrollbar"
6604           if test "$no_cache" != 1; then
6605             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6606           fi
6607
6608           if test "$wxUSE_SCROLLBAR" = yes; then
6609             echo "$ac_t""yes" 1>&6
6610           else
6611             echo "$ac_t""no" 1>&6
6612           fi
6613         
6614
6615           echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6616 echo "configure:6617: checking for --enable-slider" >&5
6617           no_cache=0
6618           # Check whether --enable-slider or --disable-slider was given.
6619 if test "${enable_slider+set}" = set; then
6620   enableval="$enable_slider"
6621   
6622                           if test "$enableval" = yes; then
6623                             ac_cv_use_slider='wxUSE_SLIDER=yes'
6624                           else
6625                             ac_cv_use_slider='wxUSE_SLIDER=no'
6626                           fi
6627                         
6628 else
6629   
6630                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6631                           if test "x$LINE" != x ; then
6632                             eval "DEFAULT_$LINE"
6633                           else
6634                             no_cache=1
6635                           fi
6636
6637                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6638                         
6639 fi
6640
6641
6642           eval "$ac_cv_use_slider"
6643           if test "$no_cache" != 1; then
6644             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6645           fi
6646
6647           if test "$wxUSE_SLIDER" = yes; then
6648             echo "$ac_t""yes" 1>&6
6649           else
6650             echo "$ac_t""no" 1>&6
6651           fi
6652         
6653
6654           echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6655 echo "configure:6656: checking for --enable-spinbtn" >&5
6656           no_cache=0
6657           # Check whether --enable-spinbtn or --disable-spinbtn was given.
6658 if test "${enable_spinbtn+set}" = set; then
6659   enableval="$enable_spinbtn"
6660   
6661                           if test "$enableval" = yes; then
6662                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6663                           else
6664                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6665                           fi
6666                         
6667 else
6668   
6669                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6670                           if test "x$LINE" != x ; then
6671                             eval "DEFAULT_$LINE"
6672                           else
6673                             no_cache=1
6674                           fi
6675
6676                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6677                         
6678 fi
6679
6680
6681           eval "$ac_cv_use_spinbtn"
6682           if test "$no_cache" != 1; then
6683             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6684           fi
6685
6686           if test "$wxUSE_SPINBTN" = yes; then
6687             echo "$ac_t""yes" 1>&6
6688           else
6689             echo "$ac_t""no" 1>&6
6690           fi
6691         
6692
6693           echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6694 echo "configure:6695: checking for --enable-spinctrl" >&5
6695           no_cache=0
6696           # Check whether --enable-spinctrl or --disable-spinctrl was given.
6697 if test "${enable_spinctrl+set}" = set; then
6698   enableval="$enable_spinctrl"
6699   
6700                           if test "$enableval" = yes; then
6701                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6702                           else
6703                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6704                           fi
6705                         
6706 else
6707   
6708                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6709                           if test "x$LINE" != x ; then
6710                             eval "DEFAULT_$LINE"
6711                           else
6712                             no_cache=1
6713                           fi
6714
6715                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6716                         
6717 fi
6718
6719
6720           eval "$ac_cv_use_spinctrl"
6721           if test "$no_cache" != 1; then
6722             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6723           fi
6724
6725           if test "$wxUSE_SPINCTRL" = yes; then
6726             echo "$ac_t""yes" 1>&6
6727           else
6728             echo "$ac_t""no" 1>&6
6729           fi
6730         
6731
6732           echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6733 echo "configure:6734: checking for --enable-splitter" >&5
6734           no_cache=0
6735           # Check whether --enable-splitter or --disable-splitter was given.
6736 if test "${enable_splitter+set}" = set; then
6737   enableval="$enable_splitter"
6738   
6739                           if test "$enableval" = yes; then
6740                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6741                           else
6742                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
6743                           fi
6744                         
6745 else
6746   
6747                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6748                           if test "x$LINE" != x ; then
6749                             eval "DEFAULT_$LINE"
6750                           else
6751                             no_cache=1
6752                           fi
6753
6754                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6755                         
6756 fi
6757
6758
6759           eval "$ac_cv_use_splitter"
6760           if test "$no_cache" != 1; then
6761             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6762           fi
6763
6764           if test "$wxUSE_SPLITTER" = yes; then
6765             echo "$ac_t""yes" 1>&6
6766           else
6767             echo "$ac_t""no" 1>&6
6768           fi
6769         
6770
6771           echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6772 echo "configure:6773: checking for --enable-statbmp" >&5
6773           no_cache=0
6774           # Check whether --enable-statbmp or --disable-statbmp was given.
6775 if test "${enable_statbmp+set}" = set; then
6776   enableval="$enable_statbmp"
6777   
6778                           if test "$enableval" = yes; then
6779                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6780                           else
6781                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
6782                           fi
6783                         
6784 else
6785   
6786                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6787                           if test "x$LINE" != x ; then
6788                             eval "DEFAULT_$LINE"
6789                           else
6790                             no_cache=1
6791                           fi
6792
6793                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6794                         
6795 fi
6796
6797
6798           eval "$ac_cv_use_statbmp"
6799           if test "$no_cache" != 1; then
6800             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6801           fi
6802
6803           if test "$wxUSE_STATBMP" = yes; then
6804             echo "$ac_t""yes" 1>&6
6805           else
6806             echo "$ac_t""no" 1>&6
6807           fi
6808         
6809
6810           echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6811 echo "configure:6812: checking for --enable-statbox" >&5
6812           no_cache=0
6813           # Check whether --enable-statbox or --disable-statbox was given.
6814 if test "${enable_statbox+set}" = set; then
6815   enableval="$enable_statbox"
6816   
6817                           if test "$enableval" = yes; then
6818                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
6819                           else
6820                             ac_cv_use_statbox='wxUSE_STATBOX=no'
6821                           fi
6822                         
6823 else
6824   
6825                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6826                           if test "x$LINE" != x ; then
6827                             eval "DEFAULT_$LINE"
6828                           else
6829                             no_cache=1
6830                           fi
6831
6832                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6833                         
6834 fi
6835
6836
6837           eval "$ac_cv_use_statbox"
6838           if test "$no_cache" != 1; then
6839             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6840           fi
6841
6842           if test "$wxUSE_STATBOX" = yes; then
6843             echo "$ac_t""yes" 1>&6
6844           else
6845             echo "$ac_t""no" 1>&6
6846           fi
6847         
6848
6849           echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6850 echo "configure:6851: checking for --enable-statline" >&5
6851           no_cache=0
6852           # Check whether --enable-statline or --disable-statline was given.
6853 if test "${enable_statline+set}" = set; then
6854   enableval="$enable_statline"
6855   
6856                           if test "$enableval" = yes; then
6857                             ac_cv_use_statline='wxUSE_STATLINE=yes'
6858                           else
6859                             ac_cv_use_statline='wxUSE_STATLINE=no'
6860                           fi
6861                         
6862 else
6863   
6864                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6865                           if test "x$LINE" != x ; then
6866                             eval "DEFAULT_$LINE"
6867                           else
6868                             no_cache=1
6869                           fi
6870
6871                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6872                         
6873 fi
6874
6875
6876           eval "$ac_cv_use_statline"
6877           if test "$no_cache" != 1; then
6878             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6879           fi
6880
6881           if test "$wxUSE_STATLINE" = yes; then
6882             echo "$ac_t""yes" 1>&6
6883           else
6884             echo "$ac_t""no" 1>&6
6885           fi
6886         
6887
6888           echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6889 echo "configure:6890: checking for --enable-stattext" >&5
6890           no_cache=0
6891           # Check whether --enable-stattext or --disable-stattext was given.
6892 if test "${enable_stattext+set}" = set; then
6893   enableval="$enable_stattext"
6894   
6895                           if test "$enableval" = yes; then
6896                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6897                           else
6898                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
6899                           fi
6900                         
6901 else
6902   
6903                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6904                           if test "x$LINE" != x ; then
6905                             eval "DEFAULT_$LINE"
6906                           else
6907                             no_cache=1
6908                           fi
6909
6910                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6911                         
6912 fi
6913
6914
6915           eval "$ac_cv_use_stattext"
6916           if test "$no_cache" != 1; then
6917             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6918           fi
6919
6920           if test "$wxUSE_STATTEXT" = yes; then
6921             echo "$ac_t""yes" 1>&6
6922           else
6923             echo "$ac_t""no" 1>&6
6924           fi
6925         
6926
6927           echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6928 echo "configure:6929: checking for --enable-statusbar" >&5
6929           no_cache=0
6930           # Check whether --enable-statusbar or --disable-statusbar was given.
6931 if test "${enable_statusbar+set}" = set; then
6932   enableval="$enable_statusbar"
6933   
6934                           if test "$enableval" = yes; then
6935                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6936                           else
6937                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6938                           fi
6939                         
6940 else
6941   
6942                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6943                           if test "x$LINE" != x ; then
6944                             eval "DEFAULT_$LINE"
6945                           else
6946                             no_cache=1
6947                           fi
6948
6949                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6950                         
6951 fi
6952
6953
6954           eval "$ac_cv_use_statusbar"
6955           if test "$no_cache" != 1; then
6956             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6957           fi
6958
6959           if test "$wxUSE_STATUSBAR" = yes; then
6960             echo "$ac_t""yes" 1>&6
6961           else
6962             echo "$ac_t""no" 1>&6
6963           fi
6964         
6965
6966           echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6967 echo "configure:6968: checking for --enable-tabdialog" >&5
6968           no_cache=0
6969           # Check whether --enable-tabdialog or --disable-tabdialog was given.
6970 if test "${enable_tabdialog+set}" = set; then
6971   enableval="$enable_tabdialog"
6972   
6973                           if test "$enableval" = yes; then
6974                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6975                           else
6976                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6977                           fi
6978                         
6979 else
6980   
6981                           LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6982                           if test "x$LINE" != x ; then
6983                             eval "DEFAULT_$LINE"
6984                           else
6985                             no_cache=1
6986                           fi
6987
6988                           ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6989                         
6990 fi
6991
6992
6993           eval "$ac_cv_use_tabdialog"
6994           if test "$no_cache" != 1; then
6995             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6996           fi
6997
6998           if test "$wxUSE_TABDIALOG" = yes; then
6999             echo "$ac_t""yes" 1>&6
7000           else
7001             echo "$ac_t""no" 1>&6
7002           fi
7003         
7004
7005           echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
7006 echo "configure:7007: checking for --enable-textctrl" >&5
7007           no_cache=0
7008           # Check whether --enable-textctrl or --disable-textctrl was given.
7009 if test "${enable_textctrl+set}" = set; then
7010   enableval="$enable_textctrl"
7011   
7012                           if test "$enableval" = yes; then
7013                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7014                           else
7015                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7016                           fi
7017                         
7018 else
7019   
7020                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7021                           if test "x$LINE" != x ; then
7022                             eval "DEFAULT_$LINE"
7023                           else
7024                             no_cache=1
7025                           fi
7026
7027                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7028                         
7029 fi
7030
7031
7032           eval "$ac_cv_use_textctrl"
7033           if test "$no_cache" != 1; then
7034             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7035           fi
7036
7037           if test "$wxUSE_TEXTCTRL" = yes; then
7038             echo "$ac_t""yes" 1>&6
7039           else
7040             echo "$ac_t""no" 1>&6
7041           fi
7042         
7043
7044           echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
7045 echo "configure:7046: checking for --enable-togglebtn" >&5
7046           no_cache=0
7047           # Check whether --enable-togglebtn or --disable-togglebtn was given.
7048 if test "${enable_togglebtn+set}" = set; then
7049   enableval="$enable_togglebtn"
7050   
7051                           if test "$enableval" = yes; then
7052                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7053                           else
7054                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7055                           fi
7056                         
7057 else
7058   
7059                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7060                           if test "x$LINE" != x ; then
7061                             eval "DEFAULT_$LINE"
7062                           else
7063                             no_cache=1
7064                           fi
7065
7066                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7067                         
7068 fi
7069
7070
7071           eval "$ac_cv_use_togglebtn"
7072           if test "$no_cache" != 1; then
7073             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7074           fi
7075
7076           if test "$wxUSE_TOGGLEBTN" = yes; then
7077             echo "$ac_t""yes" 1>&6
7078           else
7079             echo "$ac_t""no" 1>&6
7080           fi
7081         
7082
7083           echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
7084 echo "configure:7085: checking for --enable-toolbar" >&5
7085           no_cache=0
7086           # Check whether --enable-toolbar or --disable-toolbar was given.
7087 if test "${enable_toolbar+set}" = set; then
7088   enableval="$enable_toolbar"
7089   
7090                           if test "$enableval" = yes; then
7091                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7092                           else
7093                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7094                           fi
7095                         
7096 else
7097   
7098                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7099                           if test "x$LINE" != x ; then
7100                             eval "DEFAULT_$LINE"
7101                           else
7102                             no_cache=1
7103                           fi
7104
7105                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7106                         
7107 fi
7108
7109
7110           eval "$ac_cv_use_toolbar"
7111           if test "$no_cache" != 1; then
7112             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7113           fi
7114
7115           if test "$wxUSE_TOOLBAR" = yes; then
7116             echo "$ac_t""yes" 1>&6
7117           else
7118             echo "$ac_t""no" 1>&6
7119           fi
7120         
7121
7122           echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
7123 echo "configure:7124: checking for --enable-tbarnative" >&5
7124           no_cache=0
7125           # Check whether --enable-tbarnative or --disable-tbarnative was given.
7126 if test "${enable_tbarnative+set}" = set; then
7127   enableval="$enable_tbarnative"
7128   
7129                           if test "$enableval" = yes; then
7130                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7131                           else
7132                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7133                           fi
7134                         
7135 else
7136   
7137                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7138                           if test "x$LINE" != x ; then
7139                             eval "DEFAULT_$LINE"
7140                           else
7141                             no_cache=1
7142                           fi
7143
7144                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7145                         
7146 fi
7147
7148
7149           eval "$ac_cv_use_tbarnative"
7150           if test "$no_cache" != 1; then
7151             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7152           fi
7153
7154           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7155             echo "$ac_t""yes" 1>&6
7156           else
7157             echo "$ac_t""no" 1>&6
7158           fi
7159         
7160
7161           echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
7162 echo "configure:7163: checking for --enable-tbarsmpl" >&5
7163           no_cache=0
7164           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7165 if test "${enable_tbarsmpl+set}" = set; then
7166   enableval="$enable_tbarsmpl"
7167   
7168                           if test "$enableval" = yes; then
7169                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7170                           else
7171                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7172                           fi
7173                         
7174 else
7175   
7176                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7177                           if test "x$LINE" != x ; then
7178                             eval "DEFAULT_$LINE"
7179                           else
7180                             no_cache=1
7181                           fi
7182
7183                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7184                         
7185 fi
7186
7187
7188           eval "$ac_cv_use_tbarsmpl"
7189           if test "$no_cache" != 1; then
7190             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7191           fi
7192
7193           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7194             echo "$ac_t""yes" 1>&6
7195           else
7196             echo "$ac_t""no" 1>&6
7197           fi
7198         
7199
7200           echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
7201 echo "configure:7202: checking for --enable-treectrl" >&5
7202           no_cache=0
7203           # Check whether --enable-treectrl or --disable-treectrl was given.
7204 if test "${enable_treectrl+set}" = set; then
7205   enableval="$enable_treectrl"
7206   
7207                           if test "$enableval" = yes; then
7208                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7209                           else
7210                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7211                           fi
7212                         
7213 else
7214   
7215                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7216                           if test "x$LINE" != x ; then
7217                             eval "DEFAULT_$LINE"
7218                           else
7219                             no_cache=1
7220                           fi
7221
7222                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7223                         
7224 fi
7225
7226
7227           eval "$ac_cv_use_treectrl"
7228           if test "$no_cache" != 1; then
7229             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7230           fi
7231
7232           if test "$wxUSE_TREECTRL" = yes; then
7233             echo "$ac_t""yes" 1>&6
7234           else
7235             echo "$ac_t""no" 1>&6
7236           fi
7237         
7238
7239           echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
7240 echo "configure:7241: checking for --enable-tipwindow" >&5
7241           no_cache=0
7242           # Check whether --enable-tipwindow or --disable-tipwindow was given.
7243 if test "${enable_tipwindow+set}" = set; then
7244   enableval="$enable_tipwindow"
7245   
7246                           if test "$enableval" = yes; then
7247                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7248                           else
7249                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7250                           fi
7251                         
7252 else
7253   
7254                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7255                           if test "x$LINE" != x ; then
7256                             eval "DEFAULT_$LINE"
7257                           else
7258                             no_cache=1
7259                           fi
7260
7261                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7262                         
7263 fi
7264
7265
7266           eval "$ac_cv_use_tipwindow"
7267           if test "$no_cache" != 1; then
7268             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7269           fi
7270
7271           if test "$wxUSE_TIPWINDOW" = yes; then
7272             echo "$ac_t""yes" 1>&6
7273           else
7274             echo "$ac_t""no" 1>&6
7275           fi
7276         
7277
7278           echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
7279 echo "configure:7280: checking for --enable-popupwin" >&5
7280           no_cache=0
7281           # Check whether --enable-popupwin or --disable-popupwin was given.
7282 if test "${enable_popupwin+set}" = set; then
7283   enableval="$enable_popupwin"
7284   
7285                           if test "$enableval" = yes; then
7286                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7287                           else
7288                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7289                           fi
7290                         
7291 else
7292   
7293                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7294                           if test "x$LINE" != x ; then
7295                             eval "DEFAULT_$LINE"
7296                           else
7297                             no_cache=1
7298                           fi
7299
7300                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7301                         
7302 fi
7303
7304
7305           eval "$ac_cv_use_popupwin"
7306           if test "$no_cache" != 1; then
7307             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7308           fi
7309
7310           if test "$wxUSE_POPUPWIN" = yes; then
7311             echo "$ac_t""yes" 1>&6
7312           else
7313             echo "$ac_t""no" 1>&6
7314           fi
7315         
7316
7317
7318
7319           echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
7320 echo "configure:7321: checking for --enable-commondlg" >&5
7321           no_cache=0
7322           # Check whether --enable-commondlg or --disable-commondlg was given.
7323 if test "${enable_commondlg+set}" = set; then
7324   enableval="$enable_commondlg"
7325   
7326                           if test "$enableval" = yes; then
7327                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7328                           else
7329                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7330                           fi
7331                         
7332 else
7333   
7334                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7335                           if test "x$LINE" != x ; then
7336                             eval "DEFAULT_$LINE"
7337                           else
7338                             no_cache=1
7339                           fi
7340
7341                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7342                         
7343 fi
7344
7345
7346           eval "$ac_cv_use_commondlg"
7347           if test "$no_cache" != 1; then
7348             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7349           fi
7350
7351           if test "$wxUSE_COMMONDLGS" = yes; then
7352             echo "$ac_t""yes" 1>&6
7353           else
7354             echo "$ac_t""no" 1>&6
7355           fi
7356         
7357
7358           echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
7359 echo "configure:7360: checking for --enable-choicedlg" >&5
7360           no_cache=0
7361           # Check whether --enable-choicedlg or --disable-choicedlg was given.
7362 if test "${enable_choicedlg+set}" = set; then
7363   enableval="$enable_choicedlg"
7364   
7365                           if test "$enableval" = yes; then
7366                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7367                           else
7368                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7369                           fi
7370                         
7371 else
7372   
7373                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7374                           if test "x$LINE" != x ; then
7375                             eval "DEFAULT_$LINE"
7376                           else
7377                             no_cache=1
7378                           fi
7379
7380                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7381                         
7382 fi
7383
7384
7385           eval "$ac_cv_use_choicedlg"
7386           if test "$no_cache" != 1; then
7387             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7388           fi
7389
7390           if test "$wxUSE_CHOICEDLG" = yes; then
7391             echo "$ac_t""yes" 1>&6
7392           else
7393             echo "$ac_t""no" 1>&6
7394           fi
7395         
7396
7397           echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
7398 echo "configure:7399: checking for --enable-coldlg" >&5
7399           no_cache=0
7400           # Check whether --enable-coldlg or --disable-coldlg was given.
7401 if test "${enable_coldlg+set}" = set; then
7402   enableval="$enable_coldlg"
7403   
7404                           if test "$enableval" = yes; then
7405                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7406                           else
7407                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7408                           fi
7409                         
7410 else
7411   
7412                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7413                           if test "x$LINE" != x ; then
7414                             eval "DEFAULT_$LINE"
7415                           else
7416                             no_cache=1
7417                           fi
7418
7419                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7420                         
7421 fi
7422
7423
7424           eval "$ac_cv_use_coldlg"
7425           if test "$no_cache" != 1; then
7426             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7427           fi
7428
7429           if test "$wxUSE_COLOURDLG" = yes; then
7430             echo "$ac_t""yes" 1>&6
7431           else
7432             echo "$ac_t""no" 1>&6
7433           fi
7434         
7435
7436           echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7437 echo "configure:7438: checking for --enable-filedlg" >&5
7438           no_cache=0
7439           # Check whether --enable-filedlg or --disable-filedlg was given.
7440 if test "${enable_filedlg+set}" = set; then
7441   enableval="$enable_filedlg"
7442   
7443                           if test "$enableval" = yes; then
7444                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7445                           else
7446                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7447                           fi
7448                         
7449 else
7450   
7451                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7452                           if test "x$LINE" != x ; then
7453                             eval "DEFAULT_$LINE"
7454                           else
7455                             no_cache=1
7456                           fi
7457
7458                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7459                         
7460 fi
7461
7462
7463           eval "$ac_cv_use_filedlg"
7464           if test "$no_cache" != 1; then
7465             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7466           fi
7467
7468           if test "$wxUSE_FILEDLG" = yes; then
7469             echo "$ac_t""yes" 1>&6
7470           else
7471             echo "$ac_t""no" 1>&6
7472           fi
7473         
7474
7475           echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
7476 echo "configure:7477: checking for --enable-finddlg" >&5
7477           no_cache=0
7478           # Check whether --enable-finddlg or --disable-finddlg was given.
7479 if test "${enable_finddlg+set}" = set; then
7480   enableval="$enable_finddlg"
7481   
7482                           if test "$enableval" = yes; then
7483                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7484                           else
7485                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7486                           fi
7487                         
7488 else
7489   
7490                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7491                           if test "x$LINE" != x ; then
7492                             eval "DEFAULT_$LINE"
7493                           else
7494                             no_cache=1
7495                           fi
7496
7497                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7498                         
7499 fi
7500
7501
7502           eval "$ac_cv_use_finddlg"
7503           if test "$no_cache" != 1; then
7504             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7505           fi
7506
7507           if test "$wxUSE_FINDREPLDLG" = yes; then
7508             echo "$ac_t""yes" 1>&6
7509           else
7510             echo "$ac_t""no" 1>&6
7511           fi
7512         
7513
7514           echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7515 echo "configure:7516: checking for --enable-fontdlg" >&5
7516           no_cache=0
7517           # Check whether --enable-fontdlg or --disable-fontdlg was given.
7518 if test "${enable_fontdlg+set}" = set; then
7519   enableval="$enable_fontdlg"
7520   
7521                           if test "$enableval" = yes; then
7522                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7523                           else
7524                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7525                           fi
7526                         
7527 else
7528   
7529                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7530                           if test "x$LINE" != x ; then
7531                             eval "DEFAULT_$LINE"
7532                           else
7533                             no_cache=1
7534                           fi
7535
7536                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7537                         
7538 fi
7539
7540
7541           eval "$ac_cv_use_fontdlg"
7542           if test "$no_cache" != 1; then
7543             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7544           fi
7545
7546           if test "$wxUSE_FONTDLG" = yes; then
7547             echo "$ac_t""yes" 1>&6
7548           else
7549             echo "$ac_t""no" 1>&6
7550           fi
7551         
7552
7553           echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7554 echo "configure:7555: checking for --enable-dirdlg" >&5
7555           no_cache=0
7556           # Check whether --enable-dirdlg or --disable-dirdlg was given.
7557 if test "${enable_dirdlg+set}" = set; then
7558   enableval="$enable_dirdlg"
7559   
7560                           if test "$enableval" = yes; then
7561                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7562                           else
7563                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7564                           fi
7565                         
7566 else
7567   
7568                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7569                           if test "x$LINE" != x ; then
7570                             eval "DEFAULT_$LINE"
7571                           else
7572                             no_cache=1
7573                           fi
7574
7575                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7576                         
7577 fi
7578
7579
7580           eval "$ac_cv_use_dirdlg"
7581           if test "$no_cache" != 1; then
7582             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7583           fi
7584
7585           if test "$wxUSE_DIRDLG" = yes; then
7586             echo "$ac_t""yes" 1>&6
7587           else
7588             echo "$ac_t""no" 1>&6
7589           fi
7590         
7591
7592           echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7593 echo "configure:7594: checking for --enable-msgdlg" >&5
7594           no_cache=0
7595           # Check whether --enable-msgdlg or --disable-msgdlg was given.
7596 if test "${enable_msgdlg+set}" = set; then
7597   enableval="$enable_msgdlg"
7598   
7599                           if test "$enableval" = yes; then
7600                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7601                           else
7602                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7603                           fi
7604                         
7605 else
7606   
7607                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7608                           if test "x$LINE" != x ; then
7609                             eval "DEFAULT_$LINE"
7610                           else
7611                             no_cache=1
7612                           fi
7613
7614                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7615                         
7616 fi
7617
7618
7619           eval "$ac_cv_use_msgdlg"
7620           if test "$no_cache" != 1; then
7621             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7622           fi
7623
7624           if test "$wxUSE_MSGDLG" = yes; then
7625             echo "$ac_t""yes" 1>&6
7626           else
7627             echo "$ac_t""no" 1>&6
7628           fi
7629         
7630
7631           echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7632 echo "configure:7633: checking for --enable-numberdlg" >&5
7633           no_cache=0
7634           # Check whether --enable-numberdlg or --disable-numberdlg was given.
7635 if test "${enable_numberdlg+set}" = set; then
7636   enableval="$enable_numberdlg"
7637   
7638                           if test "$enableval" = yes; then
7639                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7640                           else
7641                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7642                           fi
7643                         
7644 else
7645   
7646                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7647                           if test "x$LINE" != x ; then
7648                             eval "DEFAULT_$LINE"
7649                           else
7650                             no_cache=1
7651                           fi
7652
7653                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7654                         
7655 fi
7656
7657
7658           eval "$ac_cv_use_numberdlg"
7659           if test "$no_cache" != 1; then
7660             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7661           fi
7662
7663           if test "$wxUSE_NUMBERDLG" = yes; then
7664             echo "$ac_t""yes" 1>&6
7665           else
7666             echo "$ac_t""no" 1>&6
7667           fi
7668         
7669
7670           echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7671 echo "configure:7672: checking for --enable-splash" >&5
7672           no_cache=0
7673           # Check whether --enable-splash or --disable-splash was given.
7674 if test "${enable_splash+set}" = set; then
7675   enableval="$enable_splash"
7676   
7677                           if test "$enableval" = yes; then
7678                             ac_cv_use_splash='wxUSE_SPLASH=yes'
7679                           else
7680                             ac_cv_use_splash='wxUSE_SPLASH=no'
7681                           fi
7682                         
7683 else
7684   
7685                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7686                           if test "x$LINE" != x ; then
7687                             eval "DEFAULT_$LINE"
7688                           else
7689                             no_cache=1
7690                           fi
7691
7692                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7693                         
7694 fi
7695
7696
7697           eval "$ac_cv_use_splash"
7698           if test "$no_cache" != 1; then
7699             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7700           fi
7701
7702           if test "$wxUSE_SPLASH" = yes; then
7703             echo "$ac_t""yes" 1>&6
7704           else
7705             echo "$ac_t""no" 1>&6
7706           fi
7707         
7708
7709           echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7710 echo "configure:7711: checking for --enable-textdlg" >&5
7711           no_cache=0
7712           # Check whether --enable-textdlg or --disable-textdlg was given.
7713 if test "${enable_textdlg+set}" = set; then
7714   enableval="$enable_textdlg"
7715   
7716                           if test "$enableval" = yes; then
7717                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7718                           else
7719                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7720                           fi
7721                         
7722 else
7723   
7724                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7725                           if test "x$LINE" != x ; then
7726                             eval "DEFAULT_$LINE"
7727                           else
7728                             no_cache=1
7729                           fi
7730
7731                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7732                         
7733 fi
7734
7735
7736           eval "$ac_cv_use_textdlg"
7737           if test "$no_cache" != 1; then
7738             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7739           fi
7740
7741           if test "$wxUSE_TEXTDLG" = yes; then
7742             echo "$ac_t""yes" 1>&6
7743           else
7744             echo "$ac_t""no" 1>&6
7745           fi
7746         
7747
7748           echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7749 echo "configure:7750: checking for --enable-tipdlg" >&5
7750           no_cache=0
7751           # Check whether --enable-tipdlg or --disable-tipdlg was given.
7752 if test "${enable_tipdlg+set}" = set; then
7753   enableval="$enable_tipdlg"
7754   
7755                           if test "$enableval" = yes; then
7756                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7757                           else
7758                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7759                           fi
7760                         
7761 else
7762   
7763                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7764                           if test "x$LINE" != x ; then
7765                             eval "DEFAULT_$LINE"
7766                           else
7767                             no_cache=1
7768                           fi
7769
7770                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7771                         
7772 fi
7773
7774
7775           eval "$ac_cv_use_tipdlg"
7776           if test "$no_cache" != 1; then
7777             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7778           fi
7779
7780           if test "$wxUSE_STARTUP_TIPS" = yes; then
7781             echo "$ac_t""yes" 1>&6
7782           else
7783             echo "$ac_t""no" 1>&6
7784           fi
7785         
7786
7787           echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7788 echo "configure:7789: checking for --enable-progressdlg" >&5
7789           no_cache=0
7790           # Check whether --enable-progressdlg or --disable-progressdlg was given.
7791 if test "${enable_progressdlg+set}" = set; then
7792   enableval="$enable_progressdlg"
7793   
7794                           if test "$enableval" = yes; then
7795                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7796                           else
7797                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7798                           fi
7799                         
7800 else
7801   
7802                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7803                           if test "x$LINE" != x ; then
7804                             eval "DEFAULT_$LINE"
7805                           else
7806                             no_cache=1
7807                           fi
7808
7809                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7810                         
7811 fi
7812
7813
7814           eval "$ac_cv_use_progressdlg"
7815           if test "$no_cache" != 1; then
7816             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7817           fi
7818
7819           if test "$wxUSE_PROGRESSDLG" = yes; then
7820             echo "$ac_t""yes" 1>&6
7821           else
7822             echo "$ac_t""no" 1>&6
7823           fi
7824         
7825
7826           echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7827 echo "configure:7828: checking for --enable-wizarddlg" >&5
7828           no_cache=0
7829           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7830 if test "${enable_wizarddlg+set}" = set; then
7831   enableval="$enable_wizarddlg"
7832   
7833                           if test "$enableval" = yes; then
7834                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7835                           else
7836                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7837                           fi
7838                         
7839 else
7840   
7841                           LINE=`grep "wxUSE_WIZARDDLG" ${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_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7849                         
7850 fi
7851
7852
7853           eval "$ac_cv_use_wizarddlg"
7854           if test "$no_cache" != 1; then
7855             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7856           fi
7857
7858           if test "$wxUSE_WIZARDDLG" = yes; then
7859             echo "$ac_t""yes" 1>&6
7860           else
7861             echo "$ac_t""no" 1>&6
7862           fi
7863         
7864
7865
7866
7867           echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7868 echo "configure:7869: checking for --enable-menus" >&5
7869           no_cache=0
7870           # Check whether --enable-menus or --disable-menus was given.
7871 if test "${enable_menus+set}" = set; then
7872   enableval="$enable_menus"
7873   
7874                           if test "$enableval" = yes; then
7875                             ac_cv_use_menus='wxUSE_MENUS=yes'
7876                           else
7877                             ac_cv_use_menus='wxUSE_MENUS=no'
7878                           fi
7879                         
7880 else
7881   
7882                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7883                           if test "x$LINE" != x ; then
7884                             eval "DEFAULT_$LINE"
7885                           else
7886                             no_cache=1
7887                           fi
7888
7889                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7890                         
7891 fi
7892
7893
7894           eval "$ac_cv_use_menus"
7895           if test "$no_cache" != 1; then
7896             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7897           fi
7898
7899           if test "$wxUSE_MENUS" = yes; then
7900             echo "$ac_t""yes" 1>&6
7901           else
7902             echo "$ac_t""no" 1>&6
7903           fi
7904         
7905
7906           echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7907 echo "configure:7908: checking for --enable-miniframe" >&5
7908           no_cache=0
7909           # Check whether --enable-miniframe or --disable-miniframe was given.
7910 if test "${enable_miniframe+set}" = set; then
7911   enableval="$enable_miniframe"
7912   
7913                           if test "$enableval" = yes; then
7914                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7915                           else
7916                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7917                           fi
7918                         
7919 else
7920   
7921                           LINE=`grep "wxUSE_MINIFRAME" ${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_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7929                         
7930 fi
7931
7932
7933           eval "$ac_cv_use_miniframe"
7934           if test "$no_cache" != 1; then
7935             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7936           fi
7937
7938           if test "$wxUSE_MINIFRAME" = yes; then
7939             echo "$ac_t""yes" 1>&6
7940           else
7941             echo "$ac_t""no" 1>&6
7942           fi
7943         
7944
7945           echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7946 echo "configure:7947: checking for --enable-tooltips" >&5
7947           no_cache=0
7948           # Check whether --enable-tooltips or --disable-tooltips was given.
7949 if test "${enable_tooltips+set}" = set; then
7950   enableval="$enable_tooltips"
7951   
7952                           if test "$enableval" = yes; then
7953                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7954                           else
7955                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7956                           fi
7957                         
7958 else
7959   
7960                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7961                           if test "x$LINE" != x ; then
7962                             eval "DEFAULT_$LINE"
7963                           else
7964                             no_cache=1
7965                           fi
7966
7967                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7968                         
7969 fi
7970
7971
7972           eval "$ac_cv_use_tooltips"
7973           if test "$no_cache" != 1; then
7974             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7975           fi
7976
7977           if test "$wxUSE_TOOLTIPS" = yes; then
7978             echo "$ac_t""yes" 1>&6
7979           else
7980             echo "$ac_t""no" 1>&6
7981           fi
7982         
7983
7984           echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7985 echo "configure:7986: checking for --enable-splines" >&5
7986           no_cache=0
7987           # Check whether --enable-splines or --disable-splines was given.
7988 if test "${enable_splines+set}" = set; then
7989   enableval="$enable_splines"
7990   
7991                           if test "$enableval" = yes; then
7992                             ac_cv_use_splines='wxUSE_SPLINES=yes'
7993                           else
7994                             ac_cv_use_splines='wxUSE_SPLINES=no'
7995                           fi
7996                         
7997 else
7998   
7999                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8000                           if test "x$LINE" != x ; then
8001                             eval "DEFAULT_$LINE"
8002                           else
8003                             no_cache=1
8004                           fi
8005
8006                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8007                         
8008 fi
8009
8010
8011           eval "$ac_cv_use_splines"
8012           if test "$no_cache" != 1; then
8013             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8014           fi
8015
8016           if test "$wxUSE_SPLINES" = yes; then
8017             echo "$ac_t""yes" 1>&6
8018           else
8019             echo "$ac_t""no" 1>&6
8020           fi
8021         
8022
8023           echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
8024 echo "configure:8025: checking for --enable-validators" >&5
8025           no_cache=0
8026           # Check whether --enable-validators or --disable-validators was given.
8027 if test "${enable_validators+set}" = set; then
8028   enableval="$enable_validators"
8029   
8030                           if test "$enableval" = yes; then
8031                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8032                           else
8033                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
8034                           fi
8035                         
8036 else
8037   
8038                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8039                           if test "x$LINE" != x ; then
8040                             eval "DEFAULT_$LINE"
8041                           else
8042                             no_cache=1
8043                           fi
8044
8045                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8046                         
8047 fi
8048
8049
8050           eval "$ac_cv_use_validators"
8051           if test "$no_cache" != 1; then
8052             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8053           fi
8054
8055           if test "$wxUSE_VALIDATORS" = yes; then
8056             echo "$ac_t""yes" 1>&6
8057           else
8058             echo "$ac_t""no" 1>&6
8059           fi
8060         
8061
8062           echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
8063 echo "configure:8064: checking for --enable-busyinfo" >&5
8064           no_cache=0
8065           # Check whether --enable-busyinfo or --disable-busyinfo was given.
8066 if test "${enable_busyinfo+set}" = set; then
8067   enableval="$enable_busyinfo"
8068   
8069                           if test "$enableval" = yes; then
8070                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8071                           else
8072                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8073                           fi
8074                         
8075 else
8076   
8077                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8078                           if test "x$LINE" != x ; then
8079                             eval "DEFAULT_$LINE"
8080                           else
8081                             no_cache=1
8082                           fi
8083
8084                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8085                         
8086 fi
8087
8088
8089           eval "$ac_cv_use_busyinfo"
8090           if test "$no_cache" != 1; then
8091             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8092           fi
8093
8094           if test "$wxUSE_BUSYINFO" = yes; then
8095             echo "$ac_t""yes" 1>&6
8096           else
8097             echo "$ac_t""no" 1>&6
8098           fi
8099         
8100
8101           echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
8102 echo "configure:8103: checking for --enable-joystick" >&5
8103           no_cache=0
8104           # Check whether --enable-joystick or --disable-joystick was given.
8105 if test "${enable_joystick+set}" = set; then
8106   enableval="$enable_joystick"
8107   
8108                           if test "$enableval" = yes; then
8109                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8110                           else
8111                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8112                           fi
8113                         
8114 else
8115   
8116                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8117                           if test "x$LINE" != x ; then
8118                             eval "DEFAULT_$LINE"
8119                           else
8120                             no_cache=1
8121                           fi
8122
8123                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8124                         
8125 fi
8126
8127
8128           eval "$ac_cv_use_joystick"
8129           if test "$no_cache" != 1; then
8130             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8131           fi
8132
8133           if test "$wxUSE_JOYSTICK" = yes; then
8134             echo "$ac_t""yes" 1>&6
8135           else
8136             echo "$ac_t""no" 1>&6
8137           fi
8138         
8139
8140           echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
8141 echo "configure:8142: checking for --enable-metafile" >&5
8142           no_cache=0
8143           # Check whether --enable-metafile or --disable-metafile was given.
8144 if test "${enable_metafile+set}" = set; then
8145   enableval="$enable_metafile"
8146   
8147                           if test "$enableval" = yes; then
8148                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
8149                           else
8150                             ac_cv_use_metafile='wxUSE_METAFILE=no'
8151                           fi
8152                         
8153 else
8154   
8155                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8156                           if test "x$LINE" != x ; then
8157                             eval "DEFAULT_$LINE"
8158                           else
8159                             no_cache=1
8160                           fi
8161
8162                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8163                         
8164 fi
8165
8166
8167           eval "$ac_cv_use_metafile"
8168           if test "$no_cache" != 1; then
8169             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8170           fi
8171
8172           if test "$wxUSE_METAFILE" = yes; then
8173             echo "$ac_t""yes" 1>&6
8174           else
8175             echo "$ac_t""no" 1>&6
8176           fi
8177         
8178
8179           echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
8180 echo "configure:8181: checking for --enable-dragimage" >&5
8181           no_cache=0
8182           # Check whether --enable-dragimage or --disable-dragimage was given.
8183 if test "${enable_dragimage+set}" = set; then
8184   enableval="$enable_dragimage"
8185   
8186                           if test "$enableval" = yes; then
8187                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8188                           else
8189                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8190                           fi
8191                         
8192 else
8193   
8194                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8195                           if test "x$LINE" != x ; then
8196                             eval "DEFAULT_$LINE"
8197                           else
8198                             no_cache=1
8199                           fi
8200
8201                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8202                         
8203 fi
8204
8205
8206           eval "$ac_cv_use_dragimage"
8207           if test "$no_cache" != 1; then
8208             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8209           fi
8210
8211           if test "$wxUSE_DRAGIMAGE" = yes; then
8212             echo "$ac_t""yes" 1>&6
8213           else
8214             echo "$ac_t""no" 1>&6
8215           fi
8216         
8217
8218
8219
8220           echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
8221 echo "configure:8222: checking for --enable-palette" >&5
8222           no_cache=0
8223           # Check whether --enable-palette or --disable-palette was given.
8224 if test "${enable_palette+set}" = set; then
8225   enableval="$enable_palette"
8226   
8227                           if test "$enableval" = yes; then
8228                             ac_cv_use_palette='wxUSE_PALETTE=yes'
8229                           else
8230                             ac_cv_use_palette='wxUSE_PALETTE=no'
8231                           fi
8232                         
8233 else
8234   
8235                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8236                           if test "x$LINE" != x ; then
8237                             eval "DEFAULT_$LINE"
8238                           else
8239                             no_cache=1
8240                           fi
8241
8242                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8243                         
8244 fi
8245
8246
8247           eval "$ac_cv_use_palette"
8248           if test "$no_cache" != 1; then
8249             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8250           fi
8251
8252           if test "$wxUSE_PALETTE" = yes; then
8253             echo "$ac_t""yes" 1>&6
8254           else
8255             echo "$ac_t""no" 1>&6
8256           fi
8257         
8258
8259           echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
8260 echo "configure:8261: checking for --enable-image" >&5
8261           no_cache=0
8262           # Check whether --enable-image or --disable-image was given.
8263 if test "${enable_image+set}" = set; then
8264   enableval="$enable_image"
8265   
8266                           if test "$enableval" = yes; then
8267                             ac_cv_use_image='wxUSE_IMAGE=yes'
8268                           else
8269                             ac_cv_use_image='wxUSE_IMAGE=no'
8270                           fi
8271                         
8272 else
8273   
8274                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8275                           if test "x$LINE" != x ; then
8276                             eval "DEFAULT_$LINE"
8277                           else
8278                             no_cache=1
8279                           fi
8280
8281                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8282                         
8283 fi
8284
8285
8286           eval "$ac_cv_use_image"
8287           if test "$no_cache" != 1; then
8288             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8289           fi
8290
8291           if test "$wxUSE_IMAGE" = yes; then
8292             echo "$ac_t""yes" 1>&6
8293           else
8294             echo "$ac_t""no" 1>&6
8295           fi
8296         
8297
8298           echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
8299 echo "configure:8300: checking for --enable-gif" >&5
8300           no_cache=0
8301           # Check whether --enable-gif or --disable-gif was given.
8302 if test "${enable_gif+set}" = set; then
8303   enableval="$enable_gif"
8304   
8305                           if test "$enableval" = yes; then
8306                             ac_cv_use_gif='wxUSE_GIF=yes'
8307                           else
8308                             ac_cv_use_gif='wxUSE_GIF=no'
8309                           fi
8310                         
8311 else
8312   
8313                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8314                           if test "x$LINE" != x ; then
8315                             eval "DEFAULT_$LINE"
8316                           else
8317                             no_cache=1
8318                           fi
8319
8320                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8321                         
8322 fi
8323
8324
8325           eval "$ac_cv_use_gif"
8326           if test "$no_cache" != 1; then
8327             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8328           fi
8329
8330           if test "$wxUSE_GIF" = yes; then
8331             echo "$ac_t""yes" 1>&6
8332           else
8333             echo "$ac_t""no" 1>&6
8334           fi
8335         
8336
8337           echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
8338 echo "configure:8339: checking for --enable-pcx" >&5
8339           no_cache=0
8340           # Check whether --enable-pcx or --disable-pcx was given.
8341 if test "${enable_pcx+set}" = set; then
8342   enableval="$enable_pcx"
8343   
8344                           if test "$enableval" = yes; then
8345                             ac_cv_use_pcx='wxUSE_PCX=yes'
8346                           else
8347                             ac_cv_use_pcx='wxUSE_PCX=no'
8348                           fi
8349                         
8350 else
8351   
8352                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8353                           if test "x$LINE" != x ; then
8354                             eval "DEFAULT_$LINE"
8355                           else
8356                             no_cache=1
8357                           fi
8358
8359                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8360                         
8361 fi
8362
8363
8364           eval "$ac_cv_use_pcx"
8365           if test "$no_cache" != 1; then
8366             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8367           fi
8368
8369           if test "$wxUSE_PCX" = yes; then
8370             echo "$ac_t""yes" 1>&6
8371           else
8372             echo "$ac_t""no" 1>&6
8373           fi
8374         
8375
8376           echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
8377 echo "configure:8378: checking for --enable-iff" >&5
8378           no_cache=0
8379           # Check whether --enable-iff or --disable-iff was given.
8380 if test "${enable_iff+set}" = set; then
8381   enableval="$enable_iff"
8382   
8383                           if test "$enableval" = yes; then
8384                             ac_cv_use_iff='wxUSE_IFF=yes'
8385                           else
8386                             ac_cv_use_iff='wxUSE_IFF=no'
8387                           fi
8388                         
8389 else
8390   
8391                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8392                           if test "x$LINE" != x ; then
8393                             eval "DEFAULT_$LINE"
8394                           else
8395                             no_cache=1
8396                           fi
8397
8398                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8399                         
8400 fi
8401
8402
8403           eval "$ac_cv_use_iff"
8404           if test "$no_cache" != 1; then
8405             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8406           fi
8407
8408           if test "$wxUSE_IFF" = yes; then
8409             echo "$ac_t""yes" 1>&6
8410           else
8411             echo "$ac_t""no" 1>&6
8412           fi
8413         
8414
8415           echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8416 echo "configure:8417: checking for --enable-pnm" >&5
8417           no_cache=0
8418           # Check whether --enable-pnm or --disable-pnm was given.
8419 if test "${enable_pnm+set}" = set; then
8420   enableval="$enable_pnm"
8421   
8422                           if test "$enableval" = yes; then
8423                             ac_cv_use_pnm='wxUSE_PNM=yes'
8424                           else
8425                             ac_cv_use_pnm='wxUSE_PNM=no'
8426                           fi
8427                         
8428 else
8429   
8430                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8431                           if test "x$LINE" != x ; then
8432                             eval "DEFAULT_$LINE"
8433                           else
8434                             no_cache=1
8435                           fi
8436
8437                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8438                         
8439 fi
8440
8441
8442           eval "$ac_cv_use_pnm"
8443           if test "$no_cache" != 1; then
8444             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8445           fi
8446
8447           if test "$wxUSE_PNM" = yes; then
8448             echo "$ac_t""yes" 1>&6
8449           else
8450             echo "$ac_t""no" 1>&6
8451           fi
8452         
8453
8454           echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
8455 echo "configure:8456: checking for --enable-xpm" >&5
8456           no_cache=0
8457           # Check whether --enable-xpm or --disable-xpm was given.
8458 if test "${enable_xpm+set}" = set; then
8459   enableval="$enable_xpm"
8460   
8461                           if test "$enableval" = yes; then
8462                             ac_cv_use_xpm='wxUSE_XPM=yes'
8463                           else
8464                             ac_cv_use_xpm='wxUSE_XPM=no'
8465                           fi
8466                         
8467 else
8468   
8469                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8470                           if test "x$LINE" != x ; then
8471                             eval "DEFAULT_$LINE"
8472                           else
8473                             no_cache=1
8474                           fi
8475
8476                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8477                         
8478 fi
8479
8480
8481           eval "$ac_cv_use_xpm"
8482           if test "$no_cache" != 1; then
8483             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8484           fi
8485
8486           if test "$wxUSE_XPM" = yes; then
8487             echo "$ac_t""yes" 1>&6
8488           else
8489             echo "$ac_t""no" 1>&6
8490           fi
8491         
8492
8493           echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
8494 echo "configure:8495: checking for --enable-ico_cur" >&5
8495           no_cache=0
8496           # Check whether --enable-ico_cur or --disable-ico_cur was given.
8497 if test "${enable_ico_cur+set}" = set; then
8498   enableval="$enable_ico_cur"
8499   
8500                           if test "$enableval" = yes; then
8501                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8502                           else
8503                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8504                           fi
8505                         
8506 else
8507   
8508                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8509                           if test "x$LINE" != x ; then
8510                             eval "DEFAULT_$LINE"
8511                           else
8512                             no_cache=1
8513                           fi
8514
8515                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8516                         
8517 fi
8518
8519
8520           eval "$ac_cv_use_ico_cur"
8521           if test "$no_cache" != 1; then
8522             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8523           fi
8524
8525           if test "$wxUSE_ICO_CUR" = yes; then
8526             echo "$ac_t""yes" 1>&6
8527           else
8528             echo "$ac_t""no" 1>&6
8529           fi
8530         
8531
8532 fi
8533
8534 case "${host}" in
8535   *-pc-os2_emx | *-pc-os2-emx )
8536     PATH_IFS=';'
8537     LEX_STEM="lexyy"
8538   ;;
8539   *)
8540     PATH_IFS=':'
8541     LEX_STEM="lex.yy"
8542   ;;
8543 esac
8544
8545
8546
8547           echo "saving argument cache $wx_arg_cache_file"
8548           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8549         
8550
8551
8552 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8553 echo "configure:8554: checking for toolkit" >&5
8554
8555 if test "$wxUSE_GUI" = "yes"; then
8556
8557     if test "$USE_BEOS" = 1; then
8558         { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8559     fi
8560
8561     if test "$TOOLKIT_GIVEN" = 1; then
8562             for toolkit in `echo $ALL_TOOLKITS`; do
8563         var=wxUSE_$toolkit
8564         eval "value=\$${var}"
8565         eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8566       done
8567     else
8568             for toolkit in `echo $ALL_TOOLKITS`; do
8569         if test "$has_toolkit_in_cache" != 1; then
8570           var=DEFAULT_DEFAULT_wxUSE_$toolkit
8571         else
8572           var=DEFAULT_wxUSE_$toolkit
8573         fi
8574         eval "wxUSE_$toolkit=\$${var}"
8575       done
8576     fi
8577
8578             NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0}  \
8579                   + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8580
8581         case "${host}" in
8582       *-pc-os2_emx | *-pc-os2-emx )
8583         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8584     esac
8585
8586     case "$NUM_TOOLKITS" in
8587       1)
8588       ;;
8589       0)
8590         { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
8591       ;;
8592       *)
8593         { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
8594     esac
8595
8596         for toolkit in `echo $ALL_TOOLKITS`; do
8597       var=wxUSE_$toolkit
8598       eval "value=\$${var}"
8599       if test "x$value" != x; then
8600         cache_var=CACHE_$toolkit
8601         eval "cache=\$${cache_var}"
8602         if test "$cache" = 1; then
8603           echo "$var=$value" >> ${wx_arg_cache_file}
8604         fi
8605         if test "$value" = 1; then
8606           toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8607           echo "$ac_t""$toolkit_echo" 1>&6
8608         fi
8609       fi
8610     done
8611 else
8612     echo "$ac_t""base ($host_alias hosted) only" 1>&6
8613 fi
8614
8615 case "${host}" in
8616   *-pc-os2_emx | *-pc-os2-emx )
8617             LIBS="$LIBS -lstdcpp"
8618       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
8619                             echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
8620 echo "configure:8621: checking for drand48 in -lcExt" >&5
8621 ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
8622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8623   echo $ac_n "(cached) $ac_c" 1>&6
8624 else
8625   ac_save_LIBS="$LIBS"
8626 LIBS="-lcExt  $LIBS"
8627 cat > conftest.$ac_ext <<EOF
8628 #line 8629 "configure"
8629 #include "confdefs.h"
8630 /* Override any gcc2 internal prototype to avoid an error.  */
8631 /* We use char because int might match the return type of a gcc2
8632     builtin and then its argument prototype would still apply.  */
8633 char drand48();
8634
8635 int main() {
8636 drand48()
8637 ; return 0; }
8638 EOF
8639 if { (eval echo configure:8640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8640   rm -rf conftest*
8641   eval "ac_cv_lib_$ac_lib_var=yes"
8642 else
8643   echo "configure: failed program was:" >&5
8644   cat conftest.$ac_ext >&5
8645   rm -rf conftest*
8646   eval "ac_cv_lib_$ac_lib_var=no"
8647 fi
8648 rm -f conftest*
8649 LIBS="$ac_save_LIBS"
8650
8651 fi
8652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8653   echo "$ac_t""yes" 1>&6
8654   LIBS="$LIBS -lcExt"
8655 else
8656   echo "$ac_t""no" 1>&6
8657 fi
8658
8659       else
8660                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
8661       fi
8662   ;;
8663 esac
8664
8665 wants_win32=0
8666 doesnt_want_win32=0
8667 case "${host}" in
8668   *-*-cygwin*)
8669       if test "$wxUSE_MSW" = 1 ; then
8670         wants_win32=1
8671       else
8672         doesnt_want_win32=1
8673       fi
8674   ;;
8675   *-*-mingw*)
8676       wants_win32=1
8677   ;;
8678 esac
8679
8680 if test "$wants_win32" = 1 ; then
8681     USE_UNIX=0
8682     USE_WIN32=1
8683     cat >> confdefs.h <<\EOF
8684 #define __WIN32__ 1
8685 EOF
8686
8687     cat >> confdefs.h <<\EOF
8688 #define __WIN95__ 1
8689 EOF
8690
8691     cat >> confdefs.h <<\EOF
8692 #define __WINDOWS__ 1
8693 EOF
8694
8695     cat >> confdefs.h <<\EOF
8696 #define __GNUWIN32__ 1
8697 EOF
8698
8699     cat >> confdefs.h <<\EOF
8700 #define STRICT 1
8701 EOF
8702
8703     cat >> confdefs.h <<\EOF
8704 #define WINVER 0x0400
8705 EOF
8706
8707 fi
8708 if test "$doesnt_want_win32" = 1 ; then
8709     USE_UNIX=1
8710     USE_WIN32=0
8711 fi
8712
8713 if test "$USE_UNIX" = 1 ; then
8714     wxUSE_UNIX=yes
8715     cat >> confdefs.h <<\EOF
8716 #define __UNIX__ 1
8717 EOF
8718
8719 fi
8720
8721
8722 cat > confcache <<\EOF
8723 # This file is a shell script that caches the results of configure
8724 # tests run on this system so they can be shared between configure
8725 # scripts and configure runs.  It is not useful on other systems.
8726 # If it contains results you don't want to keep, you may remove or edit it.
8727 #
8728 # By default, configure uses ./config.cache as the cache file,
8729 # creating it if it does not exist already.  You can give configure
8730 # the --cache-file=FILE option to use a different cache file; that is
8731 # what configure does when it calls configure scripts in
8732 # subdirectories, so they share the cache.
8733 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8734 # config.status only pays attention to the cache file if you give it the
8735 # --recheck option to rerun configure.
8736 #
8737 EOF
8738 # The following way of writing the cache mishandles newlines in values,
8739 # but we know of no workaround that is simple, portable, and efficient.
8740 # So, don't put newlines in cache variables' values.
8741 # Ultrix sh set writes to stderr and can't be redirected directly,
8742 # and sets the high bit in the cache file unless we assign to the vars.
8743 (set) 2>&1 |
8744   case `(ac_space=' '; set | grep ac_space) 2>&1` in
8745   *ac_space=\ *)
8746     # `set' does not quote correctly, so add quotes (double-quote substitution
8747     # turns \\\\ into \\, and sed turns \\ into \).
8748     sed -n \
8749       -e "s/'/'\\\\''/g" \
8750       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8751     ;;
8752   *)
8753     # `set' quotes correctly as required by POSIX, so do not add quotes.
8754     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8755     ;;
8756   esac >> confcache
8757 if cmp -s $cache_file confcache; then
8758   :
8759 else
8760   if test -w $cache_file; then
8761     echo "updating cache $cache_file"
8762     cat confcache > $cache_file
8763   else
8764     echo "not updating unwritable cache $cache_file"
8765   fi
8766 fi
8767 rm -f confcache
8768
8769
8770 if test "$build" != "$host" ; then
8771     if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8772         CC=$host_alias-gcc
8773         CXX=$host_alias-c++
8774         AR=$host_alias-ar
8775         RANLIB=$host_alias-ranlib
8776         DLLTOOL=$host_alias-dlltool
8777         RESCOMP=$host_alias-windres
8778         LD=$host_alias-ld
8779         NM=$host_alias-nm
8780         STRIP=$host_alias-strip
8781     else
8782         { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8783     fi
8784 fi
8785
8786 CFLAGS=${CFLAGS:=}
8787 # Extract the first word of "gcc", so it can be a program name with args.
8788 set dummy gcc; ac_word=$2
8789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8790 echo "configure:8791: checking for $ac_word" >&5
8791 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8792   echo $ac_n "(cached) $ac_c" 1>&6
8793 else
8794   if test -n "$CC"; then
8795   ac_cv_prog_CC="$CC" # Let the user override the test.
8796 else
8797   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8798   ac_dummy="$PATH"
8799   for ac_dir in $ac_dummy; do
8800     test -z "$ac_dir" && ac_dir=.
8801     if test -f $ac_dir/$ac_word; then
8802       ac_cv_prog_CC="gcc"
8803       break
8804     fi
8805   done
8806   IFS="$ac_save_ifs"
8807 fi
8808 fi
8809 CC="$ac_cv_prog_CC"
8810 if test -n "$CC"; then
8811   echo "$ac_t""$CC" 1>&6
8812 else
8813   echo "$ac_t""no" 1>&6
8814 fi
8815
8816 if test -z "$CC"; then
8817   # Extract the first word of "cc", so it can be a program name with args.
8818 set dummy cc; ac_word=$2
8819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8820 echo "configure:8821: checking for $ac_word" >&5
8821 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8822   echo $ac_n "(cached) $ac_c" 1>&6
8823 else
8824   if test -n "$CC"; then
8825   ac_cv_prog_CC="$CC" # Let the user override the test.
8826 else
8827   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8828   ac_prog_rejected=no
8829   ac_dummy="$PATH"
8830   for ac_dir in $ac_dummy; do
8831     test -z "$ac_dir" && ac_dir=.
8832     if test -f $ac_dir/$ac_word; then
8833       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8834         ac_prog_rejected=yes
8835         continue
8836       fi
8837       ac_cv_prog_CC="cc"
8838       break
8839     fi
8840   done
8841   IFS="$ac_save_ifs"
8842 if test $ac_prog_rejected = yes; then
8843   # We found a bogon in the path, so make sure we never use it.
8844   set dummy $ac_cv_prog_CC
8845   shift
8846   if test $# -gt 0; then
8847     # We chose a different compiler from the bogus one.
8848     # However, it has the same basename, so the bogon will be chosen
8849     # first if we set CC to just the basename; use the full file name.
8850     shift
8851     set dummy "$ac_dir/$ac_word" "$@"
8852     shift
8853     ac_cv_prog_CC="$@"
8854   fi
8855 fi
8856 fi
8857 fi
8858 CC="$ac_cv_prog_CC"
8859 if test -n "$CC"; then
8860   echo "$ac_t""$CC" 1>&6
8861 else
8862   echo "$ac_t""no" 1>&6
8863 fi
8864
8865   if test -z "$CC"; then
8866     case "`uname -s`" in
8867     *win32* | *WIN32*)
8868       # Extract the first word of "cl", so it can be a program name with args.
8869 set dummy cl; ac_word=$2
8870 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8871 echo "configure:8872: checking for $ac_word" >&5
8872 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8873   echo $ac_n "(cached) $ac_c" 1>&6
8874 else
8875   if test -n "$CC"; then
8876   ac_cv_prog_CC="$CC" # Let the user override the test.
8877 else
8878   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8879   ac_dummy="$PATH"
8880   for ac_dir in $ac_dummy; do
8881     test -z "$ac_dir" && ac_dir=.
8882     if test -f $ac_dir/$ac_word; then
8883       ac_cv_prog_CC="cl"
8884       break
8885     fi
8886   done
8887   IFS="$ac_save_ifs"
8888 fi
8889 fi
8890 CC="$ac_cv_prog_CC"
8891 if test -n "$CC"; then
8892   echo "$ac_t""$CC" 1>&6
8893 else
8894   echo "$ac_t""no" 1>&6
8895 fi
8896  ;;
8897     esac
8898   fi
8899   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8900 fi
8901
8902 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8903 echo "configure:8904: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8904
8905 ac_ext=c
8906 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8907 ac_cpp='$CPP $CPPFLAGS'
8908 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8909 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8910 cross_compiling=$ac_cv_prog_cc_cross
8911
8912 cat > conftest.$ac_ext << EOF
8913
8914 #line 8915 "configure"
8915 #include "confdefs.h"
8916
8917 main(){return(0);}
8918 EOF
8919 if { (eval echo configure:8920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8920   ac_cv_prog_cc_works=yes
8921   # If we can't run a trivial program, we are probably using a cross compiler.
8922   if (./conftest; exit) 2>/dev/null; then
8923     ac_cv_prog_cc_cross=no
8924   else
8925     ac_cv_prog_cc_cross=yes
8926   fi
8927 else
8928   echo "configure: failed program was:" >&5
8929   cat conftest.$ac_ext >&5
8930   ac_cv_prog_cc_works=no
8931 fi
8932 rm -fr conftest*
8933 ac_ext=c
8934 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8935 ac_cpp='$CPP $CPPFLAGS'
8936 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8937 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8938 cross_compiling=$ac_cv_prog_cc_cross
8939
8940 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8941 if test $ac_cv_prog_cc_works = no; then
8942   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8943 fi
8944 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8945 echo "configure:8946: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8946 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8947 cross_compiling=$ac_cv_prog_cc_cross
8948
8949 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8950 echo "configure:8951: checking whether we are using GNU C" >&5
8951 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8952   echo $ac_n "(cached) $ac_c" 1>&6
8953 else
8954   cat > conftest.c <<EOF
8955 #ifdef __GNUC__
8956   yes;
8957 #endif
8958 EOF
8959 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8960   ac_cv_prog_gcc=yes
8961 else
8962   ac_cv_prog_gcc=no
8963 fi
8964 fi
8965
8966 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8967
8968 if test $ac_cv_prog_gcc = yes; then
8969   GCC=yes
8970 else
8971   GCC=
8972 fi
8973
8974 ac_test_CFLAGS="${CFLAGS+set}"
8975 ac_save_CFLAGS="$CFLAGS"
8976 CFLAGS=
8977 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8978 echo "configure:8979: checking whether ${CC-cc} accepts -g" >&5
8979 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8980   echo $ac_n "(cached) $ac_c" 1>&6
8981 else
8982   echo 'void f(){}' > conftest.c
8983 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8984   ac_cv_prog_cc_g=yes
8985 else
8986   ac_cv_prog_cc_g=no
8987 fi
8988 rm -f conftest*
8989
8990 fi
8991
8992 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8993 if test "$ac_test_CFLAGS" = set; then
8994   CFLAGS="$ac_save_CFLAGS"
8995 elif test $ac_cv_prog_cc_g = yes; then
8996   if test "$GCC" = yes; then
8997     CFLAGS="-g -O2"
8998   else
8999     CFLAGS="-g"
9000   fi
9001 else
9002   if test "$GCC" = yes; then
9003     CFLAGS="-O2"
9004   else
9005     CFLAGS=
9006   fi
9007 fi
9008
9009
9010 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9011 echo "configure:9012: checking how to run the C preprocessor" >&5
9012 # On Suns, sometimes $CPP names a directory.
9013 if test -n "$CPP" && test -d "$CPP"; then
9014   CPP=
9015 fi
9016 if test -z "$CPP"; then
9017 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9018   echo $ac_n "(cached) $ac_c" 1>&6
9019 else
9020     # This must be in double quotes, not single quotes, because CPP may get
9021   # substituted into the Makefile and "${CC-cc}" will confuse make.
9022   CPP="${CC-cc} -E"
9023   # On the NeXT, cc -E runs the code through the compiler's parser,
9024   # not just through cpp.
9025   cat > conftest.$ac_ext <<EOF
9026 #line 9027 "configure"
9027 #include "confdefs.h"
9028 #include <assert.h>
9029 Syntax Error
9030 EOF
9031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9032 { (eval echo configure:9033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9034 if test -z "$ac_err"; then
9035   :
9036 else
9037   echo "$ac_err" >&5
9038   echo "configure: failed program was:" >&5
9039   cat conftest.$ac_ext >&5
9040   rm -rf conftest*
9041   CPP="${CC-cc} -E -traditional-cpp"
9042   cat > conftest.$ac_ext <<EOF
9043 #line 9044 "configure"
9044 #include "confdefs.h"
9045 #include <assert.h>
9046 Syntax Error
9047 EOF
9048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9049 { (eval echo configure:9050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9050 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9051 if test -z "$ac_err"; then
9052   :
9053 else
9054   echo "$ac_err" >&5
9055   echo "configure: failed program was:" >&5
9056   cat conftest.$ac_ext >&5
9057   rm -rf conftest*
9058   CPP="${CC-cc} -nologo -E"
9059   cat > conftest.$ac_ext <<EOF
9060 #line 9061 "configure"
9061 #include "confdefs.h"
9062 #include <assert.h>
9063 Syntax Error
9064 EOF
9065 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9066 { (eval echo configure:9067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9067 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9068 if test -z "$ac_err"; then
9069   :
9070 else
9071   echo "$ac_err" >&5
9072   echo "configure: failed program was:" >&5
9073   cat conftest.$ac_ext >&5
9074   rm -rf conftest*
9075   CPP=/lib/cpp
9076 fi
9077 rm -f conftest*
9078 fi
9079 rm -f conftest*
9080 fi
9081 rm -f conftest*
9082   ac_cv_prog_CPP="$CPP"
9083 fi
9084   CPP="$ac_cv_prog_CPP"
9085 else
9086   ac_cv_prog_CPP="$CPP"
9087 fi
9088 echo "$ac_t""$CPP" 1>&6
9089
9090 if test $ac_cv_prog_gcc = yes; then
9091     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9092 echo "configure:9093: checking whether ${CC-cc} needs -traditional" >&5
9093 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9094   echo $ac_n "(cached) $ac_c" 1>&6
9095 else
9096     ac_pattern="Autoconf.*'x'"
9097   cat > conftest.$ac_ext <<EOF
9098 #line 9099 "configure"
9099 #include "confdefs.h"
9100 #include <sgtty.h>
9101 Autoconf TIOCGETP
9102 EOF
9103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9104   egrep "$ac_pattern" >/dev/null 2>&1; then
9105   rm -rf conftest*
9106   ac_cv_prog_gcc_traditional=yes
9107 else
9108   rm -rf conftest*
9109   ac_cv_prog_gcc_traditional=no
9110 fi
9111 rm -f conftest*
9112
9113
9114   if test $ac_cv_prog_gcc_traditional = no; then
9115     cat > conftest.$ac_ext <<EOF
9116 #line 9117 "configure"
9117 #include "confdefs.h"
9118 #include <termio.h>
9119 Autoconf TCGETA
9120 EOF
9121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9122   egrep "$ac_pattern" >/dev/null 2>&1; then
9123   rm -rf conftest*
9124   ac_cv_prog_gcc_traditional=yes
9125 fi
9126 rm -f conftest*
9127
9128   fi
9129 fi
9130
9131 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
9132   if test $ac_cv_prog_gcc_traditional = yes; then
9133     CC="$CC -traditional"
9134   fi
9135 fi
9136
9137
9138
9139 ac_ext=C
9140 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9141 ac_cpp='$CXXCPP $CPPFLAGS'
9142 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9143 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9144 cross_compiling=$ac_cv_prog_cxx_cross
9145
9146
9147 CXXFLAGS=${CXXFLAGS:=}
9148 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9149 do
9150 # Extract the first word of "$ac_prog", so it can be a program name with args.
9151 set dummy $ac_prog; ac_word=$2
9152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9153 echo "configure:9154: checking for $ac_word" >&5
9154 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9155   echo $ac_n "(cached) $ac_c" 1>&6
9156 else
9157   if test -n "$CXX"; then
9158   ac_cv_prog_CXX="$CXX" # Let the user override the test.
9159 else
9160   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9161   ac_dummy="$PATH"
9162   for ac_dir in $ac_dummy; do
9163     test -z "$ac_dir" && ac_dir=.
9164     if test -f $ac_dir/$ac_word; then
9165       ac_cv_prog_CXX="$ac_prog"
9166       break
9167     fi
9168   done
9169   IFS="$ac_save_ifs"
9170 fi
9171 fi
9172 CXX="$ac_cv_prog_CXX"
9173 if test -n "$CXX"; then
9174   echo "$ac_t""$CXX" 1>&6
9175 else
9176   echo "$ac_t""no" 1>&6
9177 fi
9178
9179 test -n "$CXX" && break
9180 done
9181 test -n "$CXX" || CXX="gcc"
9182
9183
9184 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9185 echo "configure:9186: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9186
9187 ac_ext=C
9188 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9189 ac_cpp='$CXXCPP $CPPFLAGS'
9190 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9191 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9192 cross_compiling=$ac_cv_prog_cxx_cross
9193
9194 cat > conftest.$ac_ext << EOF
9195
9196 #line 9197 "configure"
9197 #include "confdefs.h"
9198
9199 int main(){return(0);}
9200 EOF
9201 if { (eval echo configure:9202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9202   ac_cv_prog_cxx_works=yes
9203   # If we can't run a trivial program, we are probably using a cross compiler.
9204   if (./conftest; exit) 2>/dev/null; then
9205     ac_cv_prog_cxx_cross=no
9206   else
9207     ac_cv_prog_cxx_cross=yes
9208   fi
9209 else
9210   echo "configure: failed program was:" >&5
9211   cat conftest.$ac_ext >&5
9212   ac_cv_prog_cxx_works=no
9213 fi
9214 rm -fr conftest*
9215 ac_ext=C
9216 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9217 ac_cpp='$CXXCPP $CPPFLAGS'
9218 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9219 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9220 cross_compiling=$ac_cv_prog_cxx_cross
9221
9222 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9223 if test $ac_cv_prog_cxx_works = no; then
9224   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9225 fi
9226 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9227 echo "configure:9228: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9228 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9229 cross_compiling=$ac_cv_prog_cxx_cross
9230
9231 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9232 echo "configure:9233: checking whether we are using GNU C++" >&5
9233 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9234   echo $ac_n "(cached) $ac_c" 1>&6
9235 else
9236   cat > conftest.C <<EOF
9237 #ifdef __GNUC__
9238   yes;
9239 #endif
9240 EOF
9241 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9242   ac_cv_prog_gxx=yes
9243 else
9244   ac_cv_prog_gxx=no
9245 fi
9246 fi
9247
9248 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9249
9250 if test $ac_cv_prog_gxx = yes; then
9251   GXX=yes
9252 else
9253   GXX=
9254 fi
9255
9256 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9257 ac_save_CXXFLAGS="$CXXFLAGS"
9258 CXXFLAGS=
9259 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9260 echo "configure:9261: checking whether ${CXX-g++} accepts -g" >&5
9261 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9262   echo $ac_n "(cached) $ac_c" 1>&6
9263 else
9264   echo 'void f(){}' > conftest.cc
9265 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9266   ac_cv_prog_cxx_g=yes
9267 else
9268   ac_cv_prog_cxx_g=no
9269 fi
9270 rm -f conftest*
9271
9272 fi
9273
9274 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9275 if test "$ac_test_CXXFLAGS" = set; then
9276   CXXFLAGS="$ac_save_CXXFLAGS"
9277 elif test $ac_cv_prog_cxx_g = yes; then
9278   if test "$GXX" = yes; then
9279     CXXFLAGS="-g -O2"
9280   else
9281     CXXFLAGS="-g"
9282   fi
9283 else
9284   if test "$GXX" = yes; then
9285     CXXFLAGS="-O2"
9286   else
9287     CXXFLAGS=
9288   fi
9289 fi
9290
9291
9292 ac_ext=c
9293 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9294 ac_cpp='$CPP $CPPFLAGS'
9295 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9296 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9297 cross_compiling=$ac_cv_prog_cc_cross
9298
9299
9300 # Extract the first word of "ranlib", so it can be a program name with args.
9301 set dummy ranlib; ac_word=$2
9302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9303 echo "configure:9304: checking for $ac_word" >&5
9304 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9305   echo $ac_n "(cached) $ac_c" 1>&6
9306 else
9307   if test -n "$RANLIB"; then
9308   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9309 else
9310   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9311   ac_dummy="$PATH"
9312   for ac_dir in $ac_dummy; do
9313     test -z "$ac_dir" && ac_dir=.
9314     if test -f $ac_dir/$ac_word; then
9315       ac_cv_prog_RANLIB="ranlib"
9316       break
9317     fi
9318   done
9319   IFS="$ac_save_ifs"
9320   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9321 fi
9322 fi
9323 RANLIB="$ac_cv_prog_RANLIB"
9324 if test -n "$RANLIB"; then
9325   echo "$ac_t""$RANLIB" 1>&6
9326 else
9327   echo "$ac_t""no" 1>&6
9328 fi
9329
9330
9331 # Extract the first word of "ar", so it can be a program name with args.
9332 set dummy ar; ac_word=$2
9333 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9334 echo "configure:9335: checking for $ac_word" >&5
9335 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9336   echo $ac_n "(cached) $ac_c" 1>&6
9337 else
9338   if test -n "$AR"; then
9339   ac_cv_prog_AR="$AR" # Let the user override the test.
9340 else
9341   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9342   ac_dummy="$PATH"
9343   for ac_dir in $ac_dummy; do
9344     test -z "$ac_dir" && ac_dir=.
9345     if test -f $ac_dir/$ac_word; then
9346       ac_cv_prog_AR="ar"
9347       break
9348     fi
9349   done
9350   IFS="$ac_save_ifs"
9351   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9352 fi
9353 fi
9354 AR="$ac_cv_prog_AR"
9355 if test -n "$AR"; then
9356   echo "$ac_t""$AR" 1>&6
9357 else
9358   echo "$ac_t""no" 1>&6
9359 fi
9360
9361
9362 # Find a good install program.  We prefer a C program (faster),
9363 # so one script is as good as another.  But avoid the broken or
9364 # incompatible versions:
9365 # SysV /etc/install, /usr/sbin/install
9366 # SunOS /usr/etc/install
9367 # IRIX /sbin/install
9368 # AIX /bin/install
9369 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9370 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9371 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9372 # ./install, which can be erroneously created by make from ./install.sh.
9373 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9374 echo "configure:9375: checking for a BSD compatible install" >&5
9375 if test -z "$INSTALL"; then
9376 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9377   echo $ac_n "(cached) $ac_c" 1>&6
9378 else
9379     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
9380   for ac_dir in $PATH; do
9381     # Account for people who put trailing slashes in PATH elements.
9382     case "$ac_dir/" in
9383     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9384     *)
9385       # OSF1 and SCO ODT 3.0 have their own names for install.
9386       # Don't use installbsd from OSF since it installs stuff as root
9387       # by default.
9388       for ac_prog in ginstall scoinst install; do
9389         if test -f $ac_dir/$ac_prog; then
9390           if test $ac_prog = install &&
9391             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9392             # AIX install.  It has an incompatible calling convention.
9393             :
9394           else
9395             ac_cv_path_install="$ac_dir/$ac_prog -c"
9396             break 2
9397           fi
9398         fi
9399       done
9400       ;;
9401     esac
9402   done
9403   IFS="$ac_save_IFS"
9404
9405 fi
9406   if test "${ac_cv_path_install+set}" = set; then
9407     INSTALL="$ac_cv_path_install"
9408   else
9409     # As a last resort, use the slow shell script.  We don't cache a
9410     # path for INSTALL within a source directory, because that will
9411     # break other packages using the cache if that directory is
9412     # removed, or if the path is relative.
9413     INSTALL="$ac_install_sh"
9414   fi
9415 fi
9416 echo "$ac_t""$INSTALL" 1>&6
9417
9418 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9419 # It thinks the first close brace ends the variable substitution.
9420 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9421
9422 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9423
9424 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9425
9426
9427 case ${INSTALL} in
9428   /* ) # Absolute
9429      ;;
9430   *)
9431      INSTALL=`pwd`/${INSTALL} ;;
9432 esac
9433
9434
9435 case "${host}" in
9436
9437                 powerpc-*-darwin* )
9438         INSTALL_PROGRAM="cp -fp"
9439         INSTALL_DATA="cp -fp"
9440         ;;
9441     *)
9442         ;;
9443 esac
9444
9445 # Extract the first word of "strip", so it can be a program name with args.
9446 set dummy strip; ac_word=$2
9447 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9448 echo "configure:9449: checking for $ac_word" >&5
9449 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9450   echo $ac_n "(cached) $ac_c" 1>&6
9451 else
9452   if test -n "$STRIP"; then
9453   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9454 else
9455   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9456   ac_dummy="$PATH"
9457   for ac_dir in $ac_dummy; do
9458     test -z "$ac_dir" && ac_dir=.
9459     if test -f $ac_dir/$ac_word; then
9460       ac_cv_prog_STRIP="strip"
9461       break
9462     fi
9463   done
9464   IFS="$ac_save_ifs"
9465   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9466 fi
9467 fi
9468 STRIP="$ac_cv_prog_STRIP"
9469 if test -n "$STRIP"; then
9470   echo "$ac_t""$STRIP" 1>&6
9471 else
9472   echo "$ac_t""no" 1>&6
9473 fi
9474
9475
9476 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9477 echo "configure:9478: checking if make is GNU make" >&5
9478 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9479   echo $ac_n "(cached) $ac_c" 1>&6
9480 else
9481   
9482     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9483             egrep -s GNU > /dev/null); then
9484         wx_cv_prog_makeisgnu="yes"
9485     else
9486         wx_cv_prog_makeisgnu="no"
9487     fi
9488
9489 fi
9490
9491 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9492
9493 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9494     IF_GNU_MAKE=""
9495 else
9496     IF_GNU_MAKE="#"
9497 fi
9498
9499
9500
9501 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9502 echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9503 echo "configure:9504: checking if make supports VPATH" >&5
9504 if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9505   echo $ac_n "(cached) $ac_c" 1>&6
9506 else
9507   
9508 cat - << EOF > confMake
9509 check : file
9510         cp \$? \$@
9511         cp \$? final_file
9512 EOF
9513
9514 if test ! -d sub ; then
9515   mkdir sub
9516 fi
9517 echo dummy > sub/file
9518 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9519 RESULT=$?
9520 rm -f sub/file check final_file confMake
9521 rmdir sub
9522 if test "$RESULT" = 0; then
9523   wx_cv_prog_makevpath="yes"
9524 else
9525   wx_cv_prog_makevpath="no"
9526 fi
9527
9528 fi
9529
9530 echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9531
9532 if test "x$wx_cv_prog_makevpath" != "xyes"; then
9533 { echo "configure: error: 
9534 You need a make-utility that is able to use the variable
9535 VPATH correctly.
9536 If your version of make does not support VPATH correctly,
9537 please install GNU-make (possibly as gmake), and start
9538 configure with the following command:
9539 export MAKE=gmake; ./configure  for sh-type shells
9540 setenv MAKE gmake; ./configure  for csh-type shells
9541 Also please do remember to use gmake in this case every time
9542 you are trying to compile.
9543 " 1>&2; exit 1; }
9544 fi fi 
9545 for ac_prog in 'bison -y' byacc
9546 do
9547 # Extract the first word of "$ac_prog", so it can be a program name with args.
9548 set dummy $ac_prog; ac_word=$2
9549 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9550 echo "configure:9551: checking for $ac_word" >&5
9551 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9552   echo $ac_n "(cached) $ac_c" 1>&6
9553 else
9554   if test -n "$YACC"; then
9555   ac_cv_prog_YACC="$YACC" # Let the user override the test.
9556 else
9557   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9558   ac_dummy="$PATH"
9559   for ac_dir in $ac_dummy; do
9560     test -z "$ac_dir" && ac_dir=.
9561     if test -f $ac_dir/$ac_word; then
9562       ac_cv_prog_YACC="$ac_prog"
9563       break
9564     fi
9565   done
9566   IFS="$ac_save_ifs"
9567 fi
9568 fi
9569 YACC="$ac_cv_prog_YACC"
9570 if test -n "$YACC"; then
9571   echo "$ac_t""$YACC" 1>&6
9572 else
9573   echo "$ac_t""no" 1>&6
9574 fi
9575
9576 test -n "$YACC" && break
9577 done
9578 test -n "$YACC" || YACC="yacc"
9579
9580
9581 # Extract the first word of "flex", so it can be a program name with args.
9582 set dummy flex; ac_word=$2
9583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9584 echo "configure:9585: checking for $ac_word" >&5
9585 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9586   echo $ac_n "(cached) $ac_c" 1>&6
9587 else
9588   if test -n "$LEX"; then
9589   ac_cv_prog_LEX="$LEX" # Let the user override the test.
9590 else
9591   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9592   ac_dummy="$PATH"
9593   for ac_dir in $ac_dummy; do
9594     test -z "$ac_dir" && ac_dir=.
9595     if test -f $ac_dir/$ac_word; then
9596       ac_cv_prog_LEX="flex"
9597       break
9598     fi
9599   done
9600   IFS="$ac_save_ifs"
9601   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9602 fi
9603 fi
9604 LEX="$ac_cv_prog_LEX"
9605 if test -n "$LEX"; then
9606   echo "$ac_t""$LEX" 1>&6
9607 else
9608   echo "$ac_t""no" 1>&6
9609 fi
9610
9611 if test -z "$LEXLIB"
9612 then
9613   case "$LEX" in
9614   flex*) ac_lib=fl ;;
9615   *) ac_lib=l ;;
9616   esac
9617   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9618 echo "configure:9619: checking for yywrap in -l$ac_lib" >&5
9619 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9620 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9621   echo $ac_n "(cached) $ac_c" 1>&6
9622 else
9623   ac_save_LIBS="$LIBS"
9624 LIBS="-l$ac_lib  $LIBS"
9625 cat > conftest.$ac_ext <<EOF
9626 #line 9627 "configure"
9627 #include "confdefs.h"
9628 /* Override any gcc2 internal prototype to avoid an error.  */
9629 /* We use char because int might match the return type of a gcc2
9630     builtin and then its argument prototype would still apply.  */
9631 char yywrap();
9632
9633 int main() {
9634 yywrap()
9635 ; return 0; }
9636 EOF
9637 if { (eval echo configure:9638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9638   rm -rf conftest*
9639   eval "ac_cv_lib_$ac_lib_var=yes"
9640 else
9641   echo "configure: failed program was:" >&5
9642   cat conftest.$ac_ext >&5
9643   rm -rf conftest*
9644   eval "ac_cv_lib_$ac_lib_var=no"
9645 fi
9646 rm -f conftest*
9647 LIBS="$ac_save_LIBS"
9648
9649 fi
9650 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9651   echo "$ac_t""yes" 1>&6
9652   LEXLIB="-l$ac_lib"
9653 else
9654   echo "$ac_t""no" 1>&6
9655 fi
9656
9657 fi
9658
9659
9660 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9661 echo "configure:9662: checking whether ln -s works" >&5
9662 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9663   echo $ac_n "(cached) $ac_c" 1>&6
9664 else
9665   rm -f conftestdata
9666 if ln -s X conftestdata 2>/dev/null
9667 then
9668   rm -f conftestdata
9669   ac_cv_prog_LN_S="ln -s"
9670 else
9671   ac_cv_prog_LN_S=ln
9672 fi
9673 fi
9674 LN_S="$ac_cv_prog_LN_S"
9675 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9676   echo "$ac_t""yes" 1>&6
9677 else
9678   echo "$ac_t""no" 1>&6
9679 fi
9680
9681
9682
9683 if test "$wxUSE_MAC" != 1; then
9684     for ac_hdr in strings.h
9685 do
9686 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9687 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9688 echo "configure:9689: checking for $ac_hdr" >&5
9689 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9690   echo $ac_n "(cached) $ac_c" 1>&6
9691 else
9692   cat > conftest.$ac_ext <<EOF
9693 #line 9694 "configure"
9694 #include "confdefs.h"
9695 #include <$ac_hdr>
9696 EOF
9697 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9698 { (eval echo configure:9699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9699 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9700 if test -z "$ac_err"; then
9701   rm -rf conftest*
9702   eval "ac_cv_header_$ac_safe=yes"
9703 else
9704   echo "$ac_err" >&5
9705   echo "configure: failed program was:" >&5
9706   cat conftest.$ac_ext >&5
9707   rm -rf conftest*
9708   eval "ac_cv_header_$ac_safe=no"
9709 fi
9710 rm -f conftest*
9711 fi
9712 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9713   echo "$ac_t""yes" 1>&6
9714     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9715   cat >> confdefs.h <<EOF
9716 #define $ac_tr_hdr 1
9717 EOF
9718  
9719 else
9720   echo "$ac_t""no" 1>&6
9721 fi
9722 done
9723
9724 fi
9725
9726 for ac_hdr in stdlib.h
9727 do
9728 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9729 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9730 echo "configure:9731: checking for $ac_hdr" >&5
9731 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9732   echo $ac_n "(cached) $ac_c" 1>&6
9733 else
9734   cat > conftest.$ac_ext <<EOF
9735 #line 9736 "configure"
9736 #include "confdefs.h"
9737 #include <$ac_hdr>
9738 EOF
9739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9740 { (eval echo configure:9741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9741 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9742 if test -z "$ac_err"; then
9743   rm -rf conftest*
9744   eval "ac_cv_header_$ac_safe=yes"
9745 else
9746   echo "$ac_err" >&5
9747   echo "configure: failed program was:" >&5
9748   cat conftest.$ac_ext >&5
9749   rm -rf conftest*
9750   eval "ac_cv_header_$ac_safe=no"
9751 fi
9752 rm -f conftest*
9753 fi
9754 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9755   echo "$ac_t""yes" 1>&6
9756     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9757   cat >> confdefs.h <<EOF
9758 #define $ac_tr_hdr 1
9759 EOF
9760  
9761 else
9762   echo "$ac_t""no" 1>&6
9763 fi
9764 done
9765
9766 for ac_hdr in malloc.h
9767 do
9768 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9769 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9770 echo "configure:9771: checking for $ac_hdr" >&5
9771 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9772   echo $ac_n "(cached) $ac_c" 1>&6
9773 else
9774   cat > conftest.$ac_ext <<EOF
9775 #line 9776 "configure"
9776 #include "confdefs.h"
9777 #include <$ac_hdr>
9778 EOF
9779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9780 { (eval echo configure:9781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9782 if test -z "$ac_err"; then
9783   rm -rf conftest*
9784   eval "ac_cv_header_$ac_safe=yes"
9785 else
9786   echo "$ac_err" >&5
9787   echo "configure: failed program was:" >&5
9788   cat conftest.$ac_ext >&5
9789   rm -rf conftest*
9790   eval "ac_cv_header_$ac_safe=no"
9791 fi
9792 rm -f conftest*
9793 fi
9794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9795   echo "$ac_t""yes" 1>&6
9796     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9797   cat >> confdefs.h <<EOF
9798 #define $ac_tr_hdr 1
9799 EOF
9800  
9801 else
9802   echo "$ac_t""no" 1>&6
9803 fi
9804 done
9805
9806 for ac_hdr in unistd.h
9807 do
9808 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9809 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9810 echo "configure:9811: checking for $ac_hdr" >&5
9811 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9812   echo $ac_n "(cached) $ac_c" 1>&6
9813 else
9814   cat > conftest.$ac_ext <<EOF
9815 #line 9816 "configure"
9816 #include "confdefs.h"
9817 #include <$ac_hdr>
9818 EOF
9819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9820 { (eval echo configure:9821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9821 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9822 if test -z "$ac_err"; then
9823   rm -rf conftest*
9824   eval "ac_cv_header_$ac_safe=yes"
9825 else
9826   echo "$ac_err" >&5
9827   echo "configure: failed program was:" >&5
9828   cat conftest.$ac_ext >&5
9829   rm -rf conftest*
9830   eval "ac_cv_header_$ac_safe=no"
9831 fi
9832 rm -f conftest*
9833 fi
9834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9835   echo "$ac_t""yes" 1>&6
9836     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9837   cat >> confdefs.h <<EOF
9838 #define $ac_tr_hdr 1
9839 EOF
9840  
9841 else
9842   echo "$ac_t""no" 1>&6
9843 fi
9844 done
9845
9846 for ac_hdr in wchar.h
9847 do
9848 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9849 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9850 echo "configure:9851: checking for $ac_hdr" >&5
9851 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9852   echo $ac_n "(cached) $ac_c" 1>&6
9853 else
9854   cat > conftest.$ac_ext <<EOF
9855 #line 9856 "configure"
9856 #include "confdefs.h"
9857 #include <$ac_hdr>
9858 EOF
9859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9860 { (eval echo configure:9861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9862 if test -z "$ac_err"; then
9863   rm -rf conftest*
9864   eval "ac_cv_header_$ac_safe=yes"
9865 else
9866   echo "$ac_err" >&5
9867   echo "configure: failed program was:" >&5
9868   cat conftest.$ac_ext >&5
9869   rm -rf conftest*
9870   eval "ac_cv_header_$ac_safe=no"
9871 fi
9872 rm -f conftest*
9873 fi
9874 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9875   echo "$ac_t""yes" 1>&6
9876     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9877   cat >> confdefs.h <<EOF
9878 #define $ac_tr_hdr 1
9879 EOF
9880  
9881 else
9882   echo "$ac_t""no" 1>&6
9883 fi
9884 done
9885
9886
9887 if test "$ac_cv_header_wchar_h" != "yes"; then
9888         for ac_hdr in wcstr.h
9889 do
9890 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9891 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9892 echo "configure:9893: checking for $ac_hdr" >&5
9893 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9894   echo $ac_n "(cached) $ac_c" 1>&6
9895 else
9896   cat > conftest.$ac_ext <<EOF
9897 #line 9898 "configure"
9898 #include "confdefs.h"
9899 #include <$ac_hdr>
9900 EOF
9901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9902 { (eval echo configure:9903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9904 if test -z "$ac_err"; then
9905   rm -rf conftest*
9906   eval "ac_cv_header_$ac_safe=yes"
9907 else
9908   echo "$ac_err" >&5
9909   echo "configure: failed program was:" >&5
9910   cat conftest.$ac_ext >&5
9911   rm -rf conftest*
9912   eval "ac_cv_header_$ac_safe=no"
9913 fi
9914 rm -f conftest*
9915 fi
9916 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9917   echo "$ac_t""yes" 1>&6
9918     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9919   cat >> confdefs.h <<EOF
9920 #define $ac_tr_hdr 1
9921 EOF
9922  
9923 else
9924   echo "$ac_t""no" 1>&6
9925 fi
9926 done
9927
9928 fi
9929
9930 for ac_hdr in fnmatch.h
9931 do
9932 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9933 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9934 echo "configure:9935: checking for $ac_hdr" >&5
9935 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9936   echo $ac_n "(cached) $ac_c" 1>&6
9937 else
9938   cat > conftest.$ac_ext <<EOF
9939 #line 9940 "configure"
9940 #include "confdefs.h"
9941 #include <$ac_hdr>
9942 EOF
9943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9944 { (eval echo configure:9945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9946 if test -z "$ac_err"; then
9947   rm -rf conftest*
9948   eval "ac_cv_header_$ac_safe=yes"
9949 else
9950   echo "$ac_err" >&5
9951   echo "configure: failed program was:" >&5
9952   cat conftest.$ac_ext >&5
9953   rm -rf conftest*
9954   eval "ac_cv_header_$ac_safe=no"
9955 fi
9956 rm -f conftest*
9957 fi
9958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9959   echo "$ac_t""yes" 1>&6
9960     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9961   cat >> confdefs.h <<EOF
9962 #define $ac_tr_hdr 1
9963 EOF
9964  
9965 else
9966   echo "$ac_t""no" 1>&6
9967 fi
9968 done
9969
9970
9971 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
9972     for ac_func in fnmatch
9973 do
9974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9975 echo "configure:9976: checking for $ac_func" >&5
9976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9977   echo $ac_n "(cached) $ac_c" 1>&6
9978 else
9979   cat > conftest.$ac_ext <<EOF
9980 #line 9981 "configure"
9981 #include "confdefs.h"
9982 /* System header to define __stub macros and hopefully few prototypes,
9983     which can conflict with char $ac_func(); below.  */
9984 #include <assert.h>
9985 /* Override any gcc2 internal prototype to avoid an error.  */
9986 /* We use char because int might match the return type of a gcc2
9987     builtin and then its argument prototype would still apply.  */
9988 char $ac_func();
9989
9990 int main() {
9991
9992 /* The GNU C library defines this for functions which it implements
9993     to always fail with ENOSYS.  Some functions are actually named
9994     something starting with __ and the normal name is an alias.  */
9995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9996 choke me
9997 #else
9998 $ac_func();
9999 #endif
10000
10001 ; return 0; }
10002 EOF
10003 if { (eval echo configure:10004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10004   rm -rf conftest*
10005   eval "ac_cv_func_$ac_func=yes"
10006 else
10007   echo "configure: failed program was:" >&5
10008   cat conftest.$ac_ext >&5
10009   rm -rf conftest*
10010   eval "ac_cv_func_$ac_func=no"
10011 fi
10012 rm -f conftest*
10013 fi
10014
10015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10016   echo "$ac_t""yes" 1>&6
10017     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10018   cat >> confdefs.h <<EOF
10019 #define $ac_tr_func 1
10020 EOF
10021  
10022 else
10023   echo "$ac_t""no" 1>&6
10024 fi
10025 done
10026
10027 fi
10028
10029 for ac_hdr in langinfo.h
10030 do
10031 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10032 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10033 echo "configure:10034: checking for $ac_hdr" >&5
10034 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10035   echo $ac_n "(cached) $ac_c" 1>&6
10036 else
10037   cat > conftest.$ac_ext <<EOF
10038 #line 10039 "configure"
10039 #include "confdefs.h"
10040 #include <$ac_hdr>
10041 EOF
10042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10043 { (eval echo configure:10044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10045 if test -z "$ac_err"; then
10046   rm -rf conftest*
10047   eval "ac_cv_header_$ac_safe=yes"
10048 else
10049   echo "$ac_err" >&5
10050   echo "configure: failed program was:" >&5
10051   cat conftest.$ac_ext >&5
10052   rm -rf conftest*
10053   eval "ac_cv_header_$ac_safe=no"
10054 fi
10055 rm -f conftest*
10056 fi
10057 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10058   echo "$ac_t""yes" 1>&6
10059     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10060   cat >> confdefs.h <<EOF
10061 #define $ac_tr_hdr 1
10062 EOF
10063  
10064 else
10065   echo "$ac_t""no" 1>&6
10066 fi
10067 done
10068
10069
10070 if test "$wxUSE_GUI" = "yes"; then
10071     if test "$wxUSE_UNIX" = "yes"; then
10072                 for ac_hdr in X11/XKBlib.h
10073 do
10074 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10075 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10076 echo "configure:10077: checking for $ac_hdr" >&5
10077 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10078   echo $ac_n "(cached) $ac_c" 1>&6
10079 else
10080   cat > conftest.$ac_ext <<EOF
10081 #line 10082 "configure"
10082 #include "confdefs.h"
10083 #include <$ac_hdr>
10084 EOF
10085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10086 { (eval echo configure:10087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10088 if test -z "$ac_err"; then
10089   rm -rf conftest*
10090   eval "ac_cv_header_$ac_safe=yes"
10091 else
10092   echo "$ac_err" >&5
10093   echo "configure: failed program was:" >&5
10094   cat conftest.$ac_ext >&5
10095   rm -rf conftest*
10096   eval "ac_cv_header_$ac_safe=no"
10097 fi
10098 rm -f conftest*
10099 fi
10100 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10101   echo "$ac_t""yes" 1>&6
10102     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10103   cat >> confdefs.h <<EOF
10104 #define $ac_tr_hdr 1
10105 EOF
10106  
10107 else
10108   echo "$ac_t""no" 1>&6
10109 fi
10110 done
10111
10112     fi
10113 fi
10114
10115
10116 echo $ac_n "checking for working const""... $ac_c" 1>&6
10117 echo "configure:10118: checking for working const" >&5
10118 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10119   echo $ac_n "(cached) $ac_c" 1>&6
10120 else
10121   cat > conftest.$ac_ext <<EOF
10122 #line 10123 "configure"
10123 #include "confdefs.h"
10124
10125 int main() {
10126
10127 /* Ultrix mips cc rejects this.  */
10128 typedef int charset[2]; const charset x;
10129 /* SunOS 4.1.1 cc rejects this.  */
10130 char const *const *ccp;
10131 char **p;
10132 /* NEC SVR4.0.2 mips cc rejects this.  */
10133 struct point {int x, y;};
10134 static struct point const zero = {0,0};
10135 /* AIX XL C 1.02.0.0 rejects this.
10136    It does not let you subtract one const X* pointer from another in an arm
10137    of an if-expression whose if-part is not a constant expression */
10138 const char *g = "string";
10139 ccp = &g + (g ? g-g : 0);
10140 /* HPUX 7.0 cc rejects these. */
10141 ++ccp;
10142 p = (char**) ccp;
10143 ccp = (char const *const *) p;
10144 { /* SCO 3.2v4 cc rejects this.  */
10145   char *t;
10146   char const *s = 0 ? (char *) 0 : (char const *) 0;
10147
10148   *t++ = 0;
10149 }
10150 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10151   int x[] = {25, 17};
10152   const int *foo = &x[0];
10153   ++foo;
10154 }
10155 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10156   typedef const int *iptr;
10157   iptr p = 0;
10158   ++p;
10159 }
10160 { /* AIX XL C 1.02.0.0 rejects this saying
10161      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10162   struct s { int j; const int *ap[3]; };
10163   struct s *b; b->j = 5;
10164 }
10165 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10166   const int foo = 10;
10167 }
10168
10169 ; return 0; }
10170 EOF
10171 if { (eval echo configure:10172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10172   rm -rf conftest*
10173   ac_cv_c_const=yes
10174 else
10175   echo "configure: failed program was:" >&5
10176   cat conftest.$ac_ext >&5
10177   rm -rf conftest*
10178   ac_cv_c_const=no
10179 fi
10180 rm -f conftest*
10181 fi
10182
10183 echo "$ac_t""$ac_cv_c_const" 1>&6
10184 if test $ac_cv_c_const = no; then
10185   cat >> confdefs.h <<\EOF
10186 #define const 
10187 EOF
10188
10189 fi
10190
10191 echo $ac_n "checking for inline""... $ac_c" 1>&6
10192 echo "configure:10193: checking for inline" >&5
10193 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10194   echo $ac_n "(cached) $ac_c" 1>&6
10195 else
10196   ac_cv_c_inline=no
10197 for ac_kw in inline __inline__ __inline; do
10198   cat > conftest.$ac_ext <<EOF
10199 #line 10200 "configure"
10200 #include "confdefs.h"
10201
10202 int main() {
10203 } $ac_kw foo() {
10204 ; return 0; }
10205 EOF
10206 if { (eval echo configure:10207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10207   rm -rf conftest*
10208   ac_cv_c_inline=$ac_kw; break
10209 else
10210   echo "configure: failed program was:" >&5
10211   cat conftest.$ac_ext >&5
10212 fi
10213 rm -f conftest*
10214 done
10215
10216 fi
10217
10218 echo "$ac_t""$ac_cv_c_inline" 1>&6
10219 case "$ac_cv_c_inline" in
10220   inline | yes) ;;
10221   no) cat >> confdefs.h <<\EOF
10222 #define inline 
10223 EOF
10224  ;;
10225   *)  cat >> confdefs.h <<EOF
10226 #define inline $ac_cv_c_inline
10227 EOF
10228  ;;
10229 esac
10230
10231
10232 echo $ac_n "checking size of char""... $ac_c" 1>&6
10233 echo "configure:10234: checking size of char" >&5
10234 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10235   echo $ac_n "(cached) $ac_c" 1>&6
10236 else
10237   if test "$cross_compiling" = yes; then
10238   ac_cv_sizeof_char=1
10239 else
10240   cat > conftest.$ac_ext <<EOF
10241 #line 10242 "configure"
10242 #include "confdefs.h"
10243 #include <stdio.h>
10244 main()
10245 {
10246   FILE *f=fopen("conftestval", "w");
10247   if (!f) exit(1);
10248   fprintf(f, "%d\n", sizeof(char));
10249   exit(0);
10250 }
10251 EOF
10252 if { (eval echo configure:10253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10253 then
10254   ac_cv_sizeof_char=`cat conftestval`
10255 else
10256   echo "configure: failed program was:" >&5
10257   cat conftest.$ac_ext >&5
10258   rm -fr conftest*
10259   ac_cv_sizeof_char=0
10260 fi
10261 rm -fr conftest*
10262 fi
10263
10264 fi
10265 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10266 cat >> confdefs.h <<EOF
10267 #define SIZEOF_CHAR $ac_cv_sizeof_char
10268 EOF
10269
10270
10271 echo $ac_n "checking size of short""... $ac_c" 1>&6
10272 echo "configure:10273: checking size of short" >&5
10273 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10274   echo $ac_n "(cached) $ac_c" 1>&6
10275 else
10276   if test "$cross_compiling" = yes; then
10277   ac_cv_sizeof_short=2
10278 else
10279   cat > conftest.$ac_ext <<EOF
10280 #line 10281 "configure"
10281 #include "confdefs.h"
10282 #include <stdio.h>
10283 main()
10284 {
10285   FILE *f=fopen("conftestval", "w");
10286   if (!f) exit(1);
10287   fprintf(f, "%d\n", sizeof(short));
10288   exit(0);
10289 }
10290 EOF
10291 if { (eval echo configure:10292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10292 then
10293   ac_cv_sizeof_short=`cat conftestval`
10294 else
10295   echo "configure: failed program was:" >&5
10296   cat conftest.$ac_ext >&5
10297   rm -fr conftest*
10298   ac_cv_sizeof_short=0
10299 fi
10300 rm -fr conftest*
10301 fi
10302
10303 fi
10304 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10305 cat >> confdefs.h <<EOF
10306 #define SIZEOF_SHORT $ac_cv_sizeof_short
10307 EOF
10308
10309
10310 echo $ac_n "checking size of void *""... $ac_c" 1>&6
10311 echo "configure:10312: checking size of void *" >&5
10312 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10313   echo $ac_n "(cached) $ac_c" 1>&6
10314 else
10315   if test "$cross_compiling" = yes; then
10316   ac_cv_sizeof_void_p=4
10317 else
10318   cat > conftest.$ac_ext <<EOF
10319 #line 10320 "configure"
10320 #include "confdefs.h"
10321 #include <stdio.h>
10322 main()
10323 {
10324   FILE *f=fopen("conftestval", "w");
10325   if (!f) exit(1);
10326   fprintf(f, "%d\n", sizeof(void *));
10327   exit(0);
10328 }
10329 EOF
10330 if { (eval echo configure:10331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10331 then
10332   ac_cv_sizeof_void_p=`cat conftestval`
10333 else
10334   echo "configure: failed program was:" >&5
10335   cat conftest.$ac_ext >&5
10336   rm -fr conftest*
10337   ac_cv_sizeof_void_p=0
10338 fi
10339 rm -fr conftest*
10340 fi
10341
10342 fi
10343 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10344 cat >> confdefs.h <<EOF
10345 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10346 EOF
10347
10348
10349 echo $ac_n "checking size of int""... $ac_c" 1>&6
10350 echo "configure:10351: checking size of int" >&5
10351 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10352   echo $ac_n "(cached) $ac_c" 1>&6
10353 else
10354   if test "$cross_compiling" = yes; then
10355   ac_cv_sizeof_int=4
10356 else
10357   cat > conftest.$ac_ext <<EOF
10358 #line 10359 "configure"
10359 #include "confdefs.h"
10360 #include <stdio.h>
10361 main()
10362 {
10363   FILE *f=fopen("conftestval", "w");
10364   if (!f) exit(1);
10365   fprintf(f, "%d\n", sizeof(int));
10366   exit(0);
10367 }
10368 EOF
10369 if { (eval echo configure:10370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10370 then
10371   ac_cv_sizeof_int=`cat conftestval`
10372 else
10373   echo "configure: failed program was:" >&5
10374   cat conftest.$ac_ext >&5
10375   rm -fr conftest*
10376   ac_cv_sizeof_int=0
10377 fi
10378 rm -fr conftest*
10379 fi
10380
10381 fi
10382 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10383 cat >> confdefs.h <<EOF
10384 #define SIZEOF_INT $ac_cv_sizeof_int
10385 EOF
10386
10387
10388 echo $ac_n "checking size of long""... $ac_c" 1>&6
10389 echo "configure:10390: checking size of long" >&5
10390 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10391   echo $ac_n "(cached) $ac_c" 1>&6
10392 else
10393   if test "$cross_compiling" = yes; then
10394   ac_cv_sizeof_long=4
10395 else
10396   cat > conftest.$ac_ext <<EOF
10397 #line 10398 "configure"
10398 #include "confdefs.h"
10399 #include <stdio.h>
10400 main()
10401 {
10402   FILE *f=fopen("conftestval", "w");
10403   if (!f) exit(1);
10404   fprintf(f, "%d\n", sizeof(long));
10405   exit(0);
10406 }
10407 EOF
10408 if { (eval echo configure:10409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10409 then
10410   ac_cv_sizeof_long=`cat conftestval`
10411 else
10412   echo "configure: failed program was:" >&5
10413   cat conftest.$ac_ext >&5
10414   rm -fr conftest*
10415   ac_cv_sizeof_long=0
10416 fi
10417 rm -fr conftest*
10418 fi
10419
10420 fi
10421 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10422 cat >> confdefs.h <<EOF
10423 #define SIZEOF_LONG $ac_cv_sizeof_long
10424 EOF
10425
10426
10427
10428 case "${host}" in
10429     arm-*-linux* )
10430         echo $ac_n "checking size of long long""... $ac_c" 1>&6
10431 echo "configure:10432: checking size of long long" >&5
10432 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10433   echo $ac_n "(cached) $ac_c" 1>&6
10434 else
10435   if test "$cross_compiling" = yes; then
10436   ac_cv_sizeof_long_long=8
10437 else
10438   cat > conftest.$ac_ext <<EOF
10439 #line 10440 "configure"
10440 #include "confdefs.h"
10441 #include <stdio.h>
10442 main()
10443 {
10444   FILE *f=fopen("conftestval", "w");
10445   if (!f) exit(1);
10446   fprintf(f, "%d\n", sizeof(long long));
10447   exit(0);
10448 }
10449 EOF
10450 if { (eval echo configure:10451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10451 then
10452   ac_cv_sizeof_long_long=`cat conftestval`
10453 else
10454   echo "configure: failed program was:" >&5
10455   cat conftest.$ac_ext >&5
10456   rm -fr conftest*
10457   ac_cv_sizeof_long_long=0
10458 fi
10459 rm -fr conftest*
10460 fi
10461
10462 fi
10463 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10464 cat >> confdefs.h <<EOF
10465 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10466 EOF
10467
10468
10469     ;;
10470     * )
10471         echo $ac_n "checking size of long long""... $ac_c" 1>&6
10472 echo "configure:10473: checking size of long long" >&5
10473 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10474   echo $ac_n "(cached) $ac_c" 1>&6
10475 else
10476   if test "$cross_compiling" = yes; then
10477   ac_cv_sizeof_long_long=0
10478 else
10479   cat > conftest.$ac_ext <<EOF
10480 #line 10481 "configure"
10481 #include "confdefs.h"
10482 #include <stdio.h>
10483 main()
10484 {
10485   FILE *f=fopen("conftestval", "w");
10486   if (!f) exit(1);
10487   fprintf(f, "%d\n", sizeof(long long));
10488   exit(0);
10489 }
10490 EOF
10491 if { (eval echo configure:10492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10492 then
10493   ac_cv_sizeof_long_long=`cat conftestval`
10494 else
10495   echo "configure: failed program was:" >&5
10496   cat conftest.$ac_ext >&5
10497   rm -fr conftest*
10498   ac_cv_sizeof_long_long=0
10499 fi
10500 rm -fr conftest*
10501 fi
10502
10503 fi
10504 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10505 cat >> confdefs.h <<EOF
10506 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10507 EOF
10508
10509
10510 esac
10511
10512 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10513 echo "configure:10514: checking size of wchar_t" >&5
10514 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10515   echo $ac_n "(cached) $ac_c" 1>&6
10516 else
10517   
10518     if test "$cross_compiling" = yes; then
10519   wx_cv_sizeof_wchar_t=4
10520     
10521 else
10522   cat > conftest.$ac_ext <<EOF
10523 #line 10524 "configure"
10524 #include "confdefs.h"
10525
10526             #ifdef HAVE_WCHAR_H
10527             #  ifdef __CYGWIN__
10528             #    include <stddef.h>
10529             #  endif
10530             #  include <wchar.h>
10531             #endif
10532             #ifdef HAVE_STDLIB_H
10533             #  include <stdlib.h>
10534             #endif
10535             #include <stdio.h>
10536             int main()
10537             {
10538                 FILE *f=fopen("conftestval", "w");
10539                 if (!f) exit(1);
10540                 fprintf(f, "%i", sizeof(wchar_t));
10541                 exit(0);
10542             }
10543         
10544 EOF
10545 if { (eval echo configure:10546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10546 then
10547   wx_cv_sizeof_wchar_t=`cat conftestval`
10548 else
10549   echo "configure: failed program was:" >&5
10550   cat conftest.$ac_ext >&5
10551   rm -fr conftest*
10552   wx_cv_sizeof_wchar_t=0
10553 fi
10554 rm -fr conftest*
10555 fi
10556
10557
10558 fi
10559
10560 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10561
10562 cat >> confdefs.h <<EOF
10563 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10564 EOF
10565
10566
10567 # Check whether --enable-largefile or --disable-largefile was given.
10568 if test "${enable_largefile+set}" = set; then
10569   enableval="$enable_largefile"
10570   :
10571 fi
10572
10573 if test "$enable_largefile" != no; then
10574             wx_largefile=no
10575     
10576     echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10577 echo "configure:10578: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10578 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10579   echo $ac_n "(cached) $ac_c" 1>&6
10580 else
10581   
10582           cat > conftest.$ac_ext <<EOF
10583 #line 10584 "configure"
10584 #include "confdefs.h"
10585 #define _FILE_OFFSET_BITS 64
10586                           #include <sys/types.h>
10587 int main() {
10588 typedef struct {
10589     unsigned int field: sizeof(off_t) == 8;
10590 } wxlf;
10591
10592 ; return 0; }
10593 EOF
10594 if { (eval echo configure:10595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10595   rm -rf conftest*
10596   ac_cv_sys_file_offset_bits=64
10597 else
10598   echo "configure: failed program was:" >&5
10599   cat conftest.$ac_ext >&5
10600   rm -rf conftest*
10601   ac_cv_sys_file_offset_bits=no
10602 fi
10603 rm -f conftest*
10604         
10605     
10606 fi
10607
10608 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10609
10610     if test "$ac_cv_sys_file_offset_bits" != no; then
10611         wx_largefile=yes
10612         cat >> confdefs.h <<EOF
10613 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10614 EOF
10615
10616     fi
10617
10618     if test "x$wx_largefile" != "xyes"; then
10619         
10620     echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10621 echo "configure:10622: checking for _LARGE_FILES value needed for large files" >&5
10622 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10623   echo $ac_n "(cached) $ac_c" 1>&6
10624 else
10625   
10626           cat > conftest.$ac_ext <<EOF
10627 #line 10628 "configure"
10628 #include "confdefs.h"
10629 #define _LARGE_FILES 1
10630                           #include <sys/types.h>
10631 int main() {
10632 typedef struct {
10633     unsigned int field: sizeof(off_t) == 8;
10634 } wxlf;
10635
10636 ; return 0; }
10637 EOF
10638 if { (eval echo configure:10639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10639   rm -rf conftest*
10640   ac_cv_sys_large_files=1
10641 else
10642   echo "configure: failed program was:" >&5
10643   cat conftest.$ac_ext >&5
10644   rm -rf conftest*
10645   ac_cv_sys_large_files=no
10646 fi
10647 rm -f conftest*
10648         
10649     
10650 fi
10651
10652 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10653
10654     if test "$ac_cv_sys_large_files" != no; then
10655         wx_largefile=yes
10656         cat >> confdefs.h <<EOF
10657 #define _LARGE_FILES $ac_cv_sys_large_files
10658 EOF
10659
10660     fi
10661
10662     fi
10663
10664     echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10665 echo "configure:10666: checking if large file support is available" >&5
10666     if test "x$wx_largefile" = "xyes"; then
10667         cat >> confdefs.h <<\EOF
10668 #define HAVE_LARGEFILE_SUPPORT 1
10669 EOF
10670
10671     fi
10672     echo "$ac_t""$wx_largefile" 1>&6
10673 fi
10674
10675
10676 if test "x$wx_largefile" = "xyes"; then
10677     if test "x$ac_cv_sys_file_offset_bits" = "xyes"; then
10678         CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
10679     else
10680         CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
10681     fi
10682 fi
10683
10684 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10685 echo "configure:10686: checking whether byte ordering is bigendian" >&5
10686 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10687   echo $ac_n "(cached) $ac_c" 1>&6
10688 else
10689   ac_cv_c_bigendian=unknown
10690 # See if sys/param.h defines the BYTE_ORDER macro.
10691 cat > conftest.$ac_ext <<EOF
10692 #line 10693 "configure"
10693 #include "confdefs.h"
10694 #include <sys/types.h>
10695 #include <sys/param.h>
10696 int main() {
10697
10698 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10699  bogus endian macros
10700 #endif
10701 ; return 0; }
10702 EOF
10703 if { (eval echo configure:10704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10704   rm -rf conftest*
10705   # It does; now see whether it defined to BIG_ENDIAN or not.
10706 cat > conftest.$ac_ext <<EOF
10707 #line 10708 "configure"
10708 #include "confdefs.h"
10709 #include <sys/types.h>
10710 #include <sys/param.h>
10711 int main() {
10712
10713 #if BYTE_ORDER != BIG_ENDIAN
10714  not big endian
10715 #endif
10716 ; return 0; }
10717 EOF
10718 if { (eval echo configure:10719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10719   rm -rf conftest*
10720   ac_cv_c_bigendian=yes
10721 else
10722   echo "configure: failed program was:" >&5
10723   cat conftest.$ac_ext >&5
10724   rm -rf conftest*
10725   ac_cv_c_bigendian=no
10726 fi
10727 rm -f conftest*
10728 else
10729   echo "configure: failed program was:" >&5
10730   cat conftest.$ac_ext >&5
10731 fi
10732 rm -f conftest*
10733 if test $ac_cv_c_bigendian = unknown; then
10734 if test "$cross_compiling" = yes; then
10735   ac_cv_c_bigendian=unknown
10736 else
10737   cat > conftest.$ac_ext <<EOF
10738 #line 10739 "configure"
10739 #include "confdefs.h"
10740 main () {
10741   /* Are we little or big endian?  From Harbison&Steele.  */
10742   union
10743   {
10744     long l;
10745     char c[sizeof (long)];
10746   } u;
10747   u.l = 1;
10748   exit (u.c[sizeof (long) - 1] == 1);
10749 }
10750 EOF
10751 if { (eval echo configure:10752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10752 then
10753   ac_cv_c_bigendian=no
10754 else
10755   echo "configure: failed program was:" >&5
10756   cat conftest.$ac_ext >&5
10757   rm -fr conftest*
10758   ac_cv_c_bigendian=yes
10759 fi
10760 rm -fr conftest*
10761 fi
10762
10763 fi
10764 fi
10765
10766 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10767 if test $ac_cv_c_bigendian = unknown; then
10768   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
10769 fi
10770 if test $ac_cv_c_bigendian = yes; then
10771   cat >> confdefs.h <<\EOF
10772 #define WORDS_BIGENDIAN 1
10773 EOF
10774
10775 fi
10776
10777
10778 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
10779 echo "configure:10780: checking how to run the C++ preprocessor" >&5
10780 if test -z "$CXXCPP"; then
10781 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
10782   echo $ac_n "(cached) $ac_c" 1>&6
10783 else
10784   ac_ext=C
10785 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10786 ac_cpp='$CXXCPP $CPPFLAGS'
10787 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10788 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10789 cross_compiling=$ac_cv_prog_cxx_cross
10790   CXXCPP="${CXX-g++} -E"
10791   cat > conftest.$ac_ext <<EOF
10792 #line 10793 "configure"
10793 #include "confdefs.h"
10794 #include <stdlib.h>
10795 EOF
10796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10797 { (eval echo configure:10798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10799 if test -z "$ac_err"; then
10800   :
10801 else
10802   echo "$ac_err" >&5
10803   echo "configure: failed program was:" >&5
10804   cat conftest.$ac_ext >&5
10805   rm -rf conftest*
10806   CXXCPP=/lib/cpp
10807 fi
10808 rm -f conftest*
10809   ac_cv_prog_CXXCPP="$CXXCPP"
10810 ac_ext=C
10811 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10812 ac_cpp='$CXXCPP $CPPFLAGS'
10813 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10814 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10815 cross_compiling=$ac_cv_prog_cxx_cross
10816 fi
10817 fi
10818 CXXCPP="$ac_cv_prog_CXXCPP"
10819 echo "$ac_t""$CXXCPP" 1>&6
10820
10821
10822   if test "$cross_compiling" = "yes"; then
10823     cat >> confdefs.h <<\EOF
10824 #define wxUSE_IOSTREAMH 1
10825 EOF
10826
10827   else
10828     
10829     ac_ext=C
10830 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10831 ac_cpp='$CXXCPP $CPPFLAGS'
10832 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10833 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10834 cross_compiling=$ac_cv_prog_cxx_cross
10835
10836
10837     for ac_hdr in iostream
10838 do
10839 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10840 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10841 echo "configure:10842: checking for $ac_hdr" >&5
10842 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10843   echo $ac_n "(cached) $ac_c" 1>&6
10844 else
10845   cat > conftest.$ac_ext <<EOF
10846 #line 10847 "configure"
10847 #include "confdefs.h"
10848 #include <$ac_hdr>
10849 EOF
10850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10851 { (eval echo configure:10852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10853 if test -z "$ac_err"; then
10854   rm -rf conftest*
10855   eval "ac_cv_header_$ac_safe=yes"
10856 else
10857   echo "$ac_err" >&5
10858   echo "configure: failed program was:" >&5
10859   cat conftest.$ac_ext >&5
10860   rm -rf conftest*
10861   eval "ac_cv_header_$ac_safe=no"
10862 fi
10863 rm -f conftest*
10864 fi
10865 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10866   echo "$ac_t""yes" 1>&6
10867     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10868   cat >> confdefs.h <<EOF
10869 #define $ac_tr_hdr 1
10870 EOF
10871  
10872 else
10873   echo "$ac_t""no" 1>&6
10874 fi
10875 done
10876
10877
10878     if test "$ac_cv_header_iostream" = "yes" ; then
10879       :
10880     else
10881       cat >> confdefs.h <<\EOF
10882 #define wxUSE_IOSTREAMH 1
10883 EOF
10884
10885     fi
10886
10887     ac_ext=c
10888 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10889 ac_cpp='$CPP $CPPFLAGS'
10890 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10891 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10892 cross_compiling=$ac_cv_prog_cc_cross
10893
10894   fi
10895
10896
10897
10898   echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
10899 echo "configure:10900: checking if C++ compiler supports bool" >&5
10900 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10901   echo $ac_n "(cached) $ac_c" 1>&6
10902 else
10903   
10904     
10905     ac_ext=C
10906 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10907 ac_cpp='$CXXCPP $CPPFLAGS'
10908 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10909 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10910 cross_compiling=$ac_cv_prog_cxx_cross
10911
10912
10913     cat > conftest.$ac_ext <<EOF
10914 #line 10915 "configure"
10915 #include "confdefs.h"
10916
10917       
10918 int main() {
10919
10920         bool b = true;
10921
10922         return 0;
10923       
10924 ; return 0; }
10925 EOF
10926 if { (eval echo configure:10927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10927   rm -rf conftest*
10928   
10929         wx_cv_cpp_bool=yes
10930       
10931 else
10932   echo "configure: failed program was:" >&5
10933   cat conftest.$ac_ext >&5
10934   rm -rf conftest*
10935   
10936         wx_cv_cpp_bool=no
10937       
10938     
10939 fi
10940 rm -f conftest*
10941
10942     ac_ext=c
10943 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10944 ac_cpp='$CPP $CPPFLAGS'
10945 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10946 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10947 cross_compiling=$ac_cv_prog_cc_cross
10948
10949   
10950 fi
10951
10952 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10953
10954   if test "$wx_cv_cpp_bool" = "yes"; then
10955     cat >> confdefs.h <<\EOF
10956 #define HAVE_BOOL 1
10957 EOF
10958
10959   fi
10960
10961
10962
10963   echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
10964 echo "configure:10965: checking if C++ compiler supports the explicit keyword" >&5
10965 if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
10966   echo $ac_n "(cached) $ac_c" 1>&6
10967 else
10968   
10969     
10970     ac_ext=C
10971 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10972 ac_cpp='$CXXCPP $CPPFLAGS'
10973 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10974 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10975 cross_compiling=$ac_cv_prog_cxx_cross
10976
10977
10978             cat > conftest.$ac_ext <<EOF
10979 #line 10980 "configure"
10980 #include "confdefs.h"
10981
10982         class Foo { public: explicit Foo(int) {} };
10983       
10984 int main() {
10985
10986         return 0;
10987       
10988 ; return 0; }
10989 EOF
10990 if { (eval echo configure:10991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10991   rm -rf conftest*
10992   
10993         cat > conftest.$ac_ext <<EOF
10994 #line 10995 "configure"
10995 #include "confdefs.h"
10996
10997                 class Foo { public: explicit Foo(int) {} };
10998                 static void TakeFoo(const Foo& foo) { }
10999             
11000 int main() {
11001
11002                 TakeFoo(17);
11003                 return 0;
11004             
11005 ; return 0; }
11006 EOF
11007 if { (eval echo configure:11008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11008   rm -rf conftest*
11009   wx_cv_explicit=no
11010 else
11011   echo "configure: failed program was:" >&5
11012   cat conftest.$ac_ext >&5
11013   rm -rf conftest*
11014   wx_cv_explicit=yes
11015         
11016 fi
11017 rm -f conftest*
11018       
11019 else
11020   echo "configure: failed program was:" >&5
11021   cat conftest.$ac_ext >&5
11022   rm -rf conftest*
11023   wx_cv_explicit=no
11024     
11025 fi
11026 rm -f conftest*
11027
11028     ac_ext=c
11029 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11030 ac_cpp='$CPP $CPPFLAGS'
11031 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11032 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11033 cross_compiling=$ac_cv_prog_cc_cross
11034
11035   
11036 fi
11037
11038 echo "$ac_t""$wx_cv_explicit" 1>&6
11039
11040   if test "$wx_cv_explicit" = "yes"; then
11041     cat >> confdefs.h <<\EOF
11042 #define HAVE_EXPLICIT 1
11043 EOF
11044
11045   fi
11046
11047
11048
11049 SEARCH_INCLUDE="\
11050     /usr/local/include        \
11051                               \
11052     /usr/Motif-1.2/include    \
11053     /usr/Motif-2.1/include    \
11054                               \
11055     /usr/include/Motif1.2     \
11056     /opt/xpm/include/X11      \
11057     /opt/GBxpm/include/       \
11058     /opt/GBxpm/X11/include/   \
11059                               \
11060     /usr/Motif1.2/include     \
11061     /usr/dt/include           \
11062     /usr/openwin/include      \
11063                               \
11064     /usr/include/Xm           \
11065                               \
11066     /usr/X11R6/include        \
11067     /usr/X11R6.4/include      \
11068     /usr/X11R5/include        \
11069     /usr/X11R4/include        \
11070                               \
11071     /usr/include/X11R6        \
11072     /usr/include/X11R5        \
11073     /usr/include/X11R4        \
11074                               \
11075     /usr/local/X11R6/include  \
11076     /usr/local/X11R5/include  \
11077     /usr/local/X11R4/include  \
11078                               \
11079     /usr/local/include/X11R6  \
11080     /usr/local/include/X11R5  \
11081     /usr/local/include/X11R4  \
11082                               \
11083     /usr/X11/include          \
11084     /usr/include/X11          \
11085     /usr/local/X11/include    \
11086     /usr/local/include/X11    \
11087                               \
11088     /usr/X386/include         \
11089     /usr/x386/include         \
11090     /usr/XFree86/include/X11  \
11091                               \
11092     X:/XFree86/include        \
11093     X:/XFree86/include/X11    \
11094                               \
11095     /usr/include/gtk          \
11096     /usr/local/include/gtk    \
11097     /usr/include/glib         \
11098     /usr/local/include/glib   \
11099                               \
11100     /usr/include/qt           \
11101     /usr/local/include/qt     \
11102                               \
11103     /usr/include/windows      \
11104     /usr/include/wine         \
11105     /usr/local/include/wine   \
11106                               \
11107     /usr/unsupported/include  \
11108     /usr/athena/include       \
11109     /usr/local/x11r5/include  \
11110     /usr/lpp/Xamples/include  \
11111                               \
11112     /usr/openwin/share/include \
11113                                \
11114     /usr/include"
11115
11116 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11117
11118
11119 cat > confcache <<\EOF
11120 # This file is a shell script that caches the results of configure
11121 # tests run on this system so they can be shared between configure
11122 # scripts and configure runs.  It is not useful on other systems.
11123 # If it contains results you don't want to keep, you may remove or edit it.
11124 #
11125 # By default, configure uses ./config.cache as the cache file,
11126 # creating it if it does not exist already.  You can give configure
11127 # the --cache-file=FILE option to use a different cache file; that is
11128 # what configure does when it calls configure scripts in
11129 # subdirectories, so they share the cache.
11130 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11131 # config.status only pays attention to the cache file if you give it the
11132 # --recheck option to rerun configure.
11133 #
11134 EOF
11135 # The following way of writing the cache mishandles newlines in values,
11136 # but we know of no workaround that is simple, portable, and efficient.
11137 # So, don't put newlines in cache variables' values.
11138 # Ultrix sh set writes to stderr and can't be redirected directly,
11139 # and sets the high bit in the cache file unless we assign to the vars.
11140 (set) 2>&1 |
11141   case `(ac_space=' '; set | grep ac_space) 2>&1` in
11142   *ac_space=\ *)
11143     # `set' does not quote correctly, so add quotes (double-quote substitution
11144     # turns \\\\ into \\, and sed turns \\ into \).
11145     sed -n \
11146       -e "s/'/'\\\\''/g" \
11147       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11148     ;;
11149   *)
11150     # `set' quotes correctly as required by POSIX, so do not add quotes.
11151     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11152     ;;
11153   esac >> confcache
11154 if cmp -s $cache_file confcache; then
11155   :
11156 else
11157   if test -w $cache_file; then
11158     echo "updating cache $cache_file"
11159     cat confcache > $cache_file
11160   else
11161     echo "not updating unwritable cache $cache_file"
11162   fi
11163 fi
11164 rm -f confcache
11165
11166
11167 if test "$USE_LINUX" = 1; then
11168     echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
11169 echo "configure:11170: checking for glibc 2.1 or later" >&5
11170 if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11171   echo $ac_n "(cached) $ac_c" 1>&6
11172 else
11173   
11174         cat > conftest.$ac_ext <<EOF
11175 #line 11176 "configure"
11176 #include "confdefs.h"
11177 #include <features.h>
11178 int main() {
11179
11180                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11181                     #error not glibc2.1
11182                 #endif
11183             
11184 ; return 0; }
11185 EOF
11186 if { (eval echo configure:11187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11187   rm -rf conftest*
11188   
11189                 wx_cv_lib_glibc21=yes
11190             
11191 else
11192   echo "configure: failed program was:" >&5
11193   cat conftest.$ac_ext >&5
11194   rm -rf conftest*
11195   
11196                 wx_cv_lib_glibc21=no
11197             
11198         
11199 fi
11200 rm -f conftest*
11201     
11202 fi
11203
11204 echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11205     if test "$wx_cv_lib_glibc21" = "yes"; then
11206         cat >> confdefs.h <<\EOF
11207 #define wxHAVE_GLIBC2 1
11208 EOF
11209
11210     fi
11211 fi
11212
11213 if test "x$wx_cv_lib_glibc21" = "xyes"; then
11214     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11215         cat >> confdefs.h <<\EOF
11216 #define _GNU_SOURCE 1
11217 EOF
11218
11219     fi
11220 fi
11221
11222
11223
11224 REGEX_INCLUDE=
11225 if test "$wxUSE_REGEX" != "no"; then
11226     cat >> confdefs.h <<\EOF
11227 #define wxUSE_REGEX 1
11228 EOF
11229
11230
11231     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11232                         ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11233 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11234 echo "configure:11235: checking for regex.h" >&5
11235 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11236   echo $ac_n "(cached) $ac_c" 1>&6
11237 else
11238   cat > conftest.$ac_ext <<EOF
11239 #line 11240 "configure"
11240 #include "confdefs.h"
11241 #include <regex.h>
11242 EOF
11243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11244 { (eval echo configure:11245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11246 if test -z "$ac_err"; then
11247   rm -rf conftest*
11248   eval "ac_cv_header_$ac_safe=yes"
11249 else
11250   echo "$ac_err" >&5
11251   echo "configure: failed program was:" >&5
11252   cat conftest.$ac_ext >&5
11253   rm -rf conftest*
11254   eval "ac_cv_header_$ac_safe=no"
11255 fi
11256 rm -f conftest*
11257 fi
11258 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11259   echo "$ac_t""yes" 1>&6
11260   for ac_func in regcomp
11261 do
11262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11263 echo "configure:11264: checking for $ac_func" >&5
11264 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11265   echo $ac_n "(cached) $ac_c" 1>&6
11266 else
11267   cat > conftest.$ac_ext <<EOF
11268 #line 11269 "configure"
11269 #include "confdefs.h"
11270 /* System header to define __stub macros and hopefully few prototypes,
11271     which can conflict with char $ac_func(); below.  */
11272 #include <assert.h>
11273 /* Override any gcc2 internal prototype to avoid an error.  */
11274 /* We use char because int might match the return type of a gcc2
11275     builtin and then its argument prototype would still apply.  */
11276 char $ac_func();
11277
11278 int main() {
11279
11280 /* The GNU C library defines this for functions which it implements
11281     to always fail with ENOSYS.  Some functions are actually named
11282     something starting with __ and the normal name is an alias.  */
11283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11284 choke me
11285 #else
11286 $ac_func();
11287 #endif
11288
11289 ; return 0; }
11290 EOF
11291 if { (eval echo configure:11292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11292   rm -rf conftest*
11293   eval "ac_cv_func_$ac_func=yes"
11294 else
11295   echo "configure: failed program was:" >&5
11296   cat conftest.$ac_ext >&5
11297   rm -rf conftest*
11298   eval "ac_cv_func_$ac_func=no"
11299 fi
11300 rm -f conftest*
11301 fi
11302
11303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11304   echo "$ac_t""yes" 1>&6
11305     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11306   cat >> confdefs.h <<EOF
11307 #define $ac_tr_func 1
11308 EOF
11309  
11310 else
11311   echo "$ac_t""no" 1>&6
11312 fi
11313 done
11314
11315 else
11316   echo "$ac_t""no" 1>&6
11317 fi
11318
11319
11320         if test "x$ac_cv_func_regcomp" != "xyes"; then
11321             if test "$wxUSE_REGEX" = "sys" ; then
11322                 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11323             else
11324                 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11325                 wxUSE_REGEX=builtin
11326             fi
11327         else
11328                         wxUSE_REGEX=sys
11329         fi
11330     fi
11331
11332     if test "$wxUSE_REGEX" = "builtin" ; then
11333         REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11334     fi
11335 fi
11336
11337
11338 ZLIB_INCLUDE=
11339 ZLIB_LINK=
11340 if test "$wxUSE_ZLIB" != "no" ; then
11341     cat >> confdefs.h <<\EOF
11342 #define wxUSE_ZLIB 1
11343 EOF
11344
11345
11346     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11347         ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11348 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11349 echo "configure:11350: checking for zlib.h" >&5
11350 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11351   echo $ac_n "(cached) $ac_c" 1>&6
11352 else
11353   cat > conftest.$ac_ext <<EOF
11354 #line 11355 "configure"
11355 #include "confdefs.h"
11356 #include <zlib.h>
11357 EOF
11358 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11359 { (eval echo configure:11360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11360 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11361 if test -z "$ac_err"; then
11362   rm -rf conftest*
11363   eval "ac_cv_header_$ac_safe=yes"
11364 else
11365   echo "$ac_err" >&5
11366   echo "configure: failed program was:" >&5
11367   cat conftest.$ac_ext >&5
11368   rm -rf conftest*
11369   eval "ac_cv_header_$ac_safe=no"
11370 fi
11371 rm -f conftest*
11372 fi
11373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11374   echo "$ac_t""yes" 1>&6
11375   echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11376 echo "configure:11377: checking for deflate in -lz" >&5
11377 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11378 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11379   echo $ac_n "(cached) $ac_c" 1>&6
11380 else
11381   ac_save_LIBS="$LIBS"
11382 LIBS="-lz  $LIBS"
11383 cat > conftest.$ac_ext <<EOF
11384 #line 11385 "configure"
11385 #include "confdefs.h"
11386 /* Override any gcc2 internal prototype to avoid an error.  */
11387 /* We use char because int might match the return type of a gcc2
11388     builtin and then its argument prototype would still apply.  */
11389 char deflate();
11390
11391 int main() {
11392 deflate()
11393 ; return 0; }
11394 EOF
11395 if { (eval echo configure:11396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11396   rm -rf conftest*
11397   eval "ac_cv_lib_$ac_lib_var=yes"
11398 else
11399   echo "configure: failed program was:" >&5
11400   cat conftest.$ac_ext >&5
11401   rm -rf conftest*
11402   eval "ac_cv_lib_$ac_lib_var=no"
11403 fi
11404 rm -f conftest*
11405 LIBS="$ac_save_LIBS"
11406
11407 fi
11408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11409   echo "$ac_t""yes" 1>&6
11410   ZLIB_LINK=" -lz"
11411 else
11412   echo "$ac_t""no" 1>&6
11413 fi
11414
11415 else
11416   echo "$ac_t""no" 1>&6
11417 fi
11418
11419
11420         if test "x$ZLIB_LINK" = "x" ; then
11421             if test "$wxUSE_ZLIB" = "sys" ; then
11422                 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11423             else
11424                 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
11425                 wxUSE_ZLIB=builtin
11426             fi
11427         else
11428                         wxUSE_ZLIB=sys
11429         fi
11430     fi
11431
11432     if test "$wxUSE_ZLIB" = "builtin" ; then
11433         ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11434     fi
11435 fi
11436
11437
11438 PNG_INCLUDE=
11439 PNG_LINK=
11440 if test "$wxUSE_LIBPNG" != "no" ; then
11441     cat >> confdefs.h <<\EOF
11442 #define wxUSE_LIBPNG 1
11443 EOF
11444
11445
11446     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11447         echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11448         wxUSE_LIBPNG=sys
11449     fi
11450
11451                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11452         echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11453         wxUSE_LIBPNG=builtin
11454     fi
11455
11456     if test "$wxUSE_MGL" != 1 ; then
11457                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11458             ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11459 echo $ac_n "checking for png.h""... $ac_c" 1>&6
11460 echo "configure:11461: checking for png.h" >&5
11461 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11462   echo $ac_n "(cached) $ac_c" 1>&6
11463 else
11464   cat > conftest.$ac_ext <<EOF
11465 #line 11466 "configure"
11466 #include "confdefs.h"
11467 #include <png.h>
11468 EOF
11469 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11470 { (eval echo configure:11471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11471 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11472 if test -z "$ac_err"; then
11473   rm -rf conftest*
11474   eval "ac_cv_header_$ac_safe=yes"
11475 else
11476   echo "$ac_err" >&5
11477   echo "configure: failed program was:" >&5
11478   cat conftest.$ac_ext >&5
11479   rm -rf conftest*
11480   eval "ac_cv_header_$ac_safe=no"
11481 fi
11482 rm -f conftest*
11483 fi
11484 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11485   echo "$ac_t""yes" 1>&6
11486   echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11487 echo "configure:11488: checking for png_check_sig in -lpng" >&5
11488 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11489 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11490   echo $ac_n "(cached) $ac_c" 1>&6
11491 else
11492   ac_save_LIBS="$LIBS"
11493 LIBS="-lpng -lz -lm $LIBS"
11494 cat > conftest.$ac_ext <<EOF
11495 #line 11496 "configure"
11496 #include "confdefs.h"
11497 /* Override any gcc2 internal prototype to avoid an error.  */
11498 /* We use char because int might match the return type of a gcc2
11499     builtin and then its argument prototype would still apply.  */
11500 char png_check_sig();
11501
11502 int main() {
11503 png_check_sig()
11504 ; return 0; }
11505 EOF
11506 if { (eval echo configure:11507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11507   rm -rf conftest*
11508   eval "ac_cv_lib_$ac_lib_var=yes"
11509 else
11510   echo "configure: failed program was:" >&5
11511   cat conftest.$ac_ext >&5
11512   rm -rf conftest*
11513   eval "ac_cv_lib_$ac_lib_var=no"
11514 fi
11515 rm -f conftest*
11516 LIBS="$ac_save_LIBS"
11517
11518 fi
11519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11520   echo "$ac_t""yes" 1>&6
11521   PNG_LINK=" -lpng"
11522 else
11523   echo "$ac_t""no" 1>&6
11524 fi
11525
11526                            
11527 else
11528   echo "$ac_t""no" 1>&6
11529 fi
11530
11531
11532             if test "x$PNG_LINK" = "x" ; then
11533                 if test "$wxUSE_LIBPNG" = "sys" ; then
11534                     { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11535                 else
11536                     echo "configure: warning: system png library not found, will use built-in instead" 1>&2
11537                     wxUSE_LIBPNG=builtin
11538                 fi
11539             else
11540                                 wxUSE_LIBPNG=yes
11541             fi
11542         fi
11543     fi
11544
11545     if test "$wxUSE_LIBPNG" = "builtin" ; then
11546         PNG_INCLUDE="-I\${top_srcdir}/src/png"
11547     fi
11548
11549     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11550 fi
11551
11552
11553 JPEG_INCLUDE=
11554 JPEG_LINK=
11555 if test "$wxUSE_LIBJPEG" != "no" ; then
11556     cat >> confdefs.h <<\EOF
11557 #define wxUSE_LIBJPEG 1
11558 EOF
11559
11560
11561     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11562         echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11563         wxUSE_LIBJPEG=sys
11564     fi
11565
11566     if test "$wxUSE_MGL" != 1 ; then
11567                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11568                                                 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11569 echo "configure:11570: checking for jpeglib.h" >&5
11570             if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11571   echo $ac_n "(cached) $ac_c" 1>&6
11572 else
11573   cat > conftest.$ac_ext <<EOF
11574 #line 11575 "configure"
11575 #include "confdefs.h"
11576
11577                         #undef HAVE_STDLIB_H
11578                         #include <stdio.h>
11579                         #include <jpeglib.h>
11580                     
11581 int main() {
11582
11583                     
11584 ; return 0; }
11585 EOF
11586 if { (eval echo configure:11587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11587   rm -rf conftest*
11588   ac_cv_header_jpeglib_h=yes
11589 else
11590   echo "configure: failed program was:" >&5
11591   cat conftest.$ac_ext >&5
11592   rm -rf conftest*
11593   ac_cv_header_jpeglib_h=no
11594                 
11595 fi
11596 rm -f conftest*
11597             
11598 fi
11599
11600             echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11601
11602             if test "$ac_cv_header_jpeglib_h" = "yes"; then
11603                 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11604 echo "configure:11605: checking for jpeg_read_header in -ljpeg" >&5
11605 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11606 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11607   echo $ac_n "(cached) $ac_c" 1>&6
11608 else
11609   ac_save_LIBS="$LIBS"
11610 LIBS="-ljpeg  $LIBS"
11611 cat > conftest.$ac_ext <<EOF
11612 #line 11613 "configure"
11613 #include "confdefs.h"
11614 /* Override any gcc2 internal prototype to avoid an error.  */
11615 /* We use char because int might match the return type of a gcc2
11616     builtin and then its argument prototype would still apply.  */
11617 char jpeg_read_header();
11618
11619 int main() {
11620 jpeg_read_header()
11621 ; return 0; }
11622 EOF
11623 if { (eval echo configure:11624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11624   rm -rf conftest*
11625   eval "ac_cv_lib_$ac_lib_var=yes"
11626 else
11627   echo "configure: failed program was:" >&5
11628   cat conftest.$ac_ext >&5
11629   rm -rf conftest*
11630   eval "ac_cv_lib_$ac_lib_var=no"
11631 fi
11632 rm -f conftest*
11633 LIBS="$ac_save_LIBS"
11634
11635 fi
11636 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11637   echo "$ac_t""yes" 1>&6
11638   JPEG_LINK=" -ljpeg"
11639 else
11640   echo "$ac_t""no" 1>&6
11641 fi
11642
11643             fi
11644
11645             if test "x$JPEG_LINK" = "x" ; then
11646                 if test "$wxUSE_LIBJPEG" = "sys" ; then
11647                     { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
11648                 else
11649                     echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
11650                     wxUSE_LIBJPEG=builtin
11651                 fi
11652             else
11653                                 wxUSE_LIBJPEG=sys
11654             fi
11655         fi
11656     fi
11657
11658     if test "$wxUSE_LIBJPEG" = "builtin" ; then
11659         JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11660     fi
11661 fi
11662
11663
11664 TIFF_INCLUDE=
11665 TIFF_LINK=
11666 if test "$wxUSE_LIBTIFF" != "no" ; then
11667     cat >> confdefs.h <<\EOF
11668 #define wxUSE_LIBTIFF 1
11669 EOF
11670
11671
11672     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
11673         ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11674 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
11675 echo "configure:11676: checking for tiffio.h" >&5
11676 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11677   echo $ac_n "(cached) $ac_c" 1>&6
11678 else
11679   cat > conftest.$ac_ext <<EOF
11680 #line 11681 "configure"
11681 #include "confdefs.h"
11682 #include <tiffio.h>
11683 EOF
11684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11685 { (eval echo configure:11686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11687 if test -z "$ac_err"; then
11688   rm -rf conftest*
11689   eval "ac_cv_header_$ac_safe=yes"
11690 else
11691   echo "$ac_err" >&5
11692   echo "configure: failed program was:" >&5
11693   cat conftest.$ac_ext >&5
11694   rm -rf conftest*
11695   eval "ac_cv_header_$ac_safe=no"
11696 fi
11697 rm -f conftest*
11698 fi
11699 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11700   echo "$ac_t""yes" 1>&6
11701   echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
11702 echo "configure:11703: checking for TIFFError in -ltiff" >&5
11703 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
11704 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11705   echo $ac_n "(cached) $ac_c" 1>&6
11706 else
11707   ac_save_LIBS="$LIBS"
11708 LIBS="-ltiff -lm $LIBS"
11709 cat > conftest.$ac_ext <<EOF
11710 #line 11711 "configure"
11711 #include "confdefs.h"
11712 /* Override any gcc2 internal prototype to avoid an error.  */
11713 /* We use char because int might match the return type of a gcc2
11714     builtin and then its argument prototype would still apply.  */
11715 char TIFFError();
11716
11717 int main() {
11718 TIFFError()
11719 ; return 0; }
11720 EOF
11721 if { (eval echo configure:11722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11722   rm -rf conftest*
11723   eval "ac_cv_lib_$ac_lib_var=yes"
11724 else
11725   echo "configure: failed program was:" >&5
11726   cat conftest.$ac_ext >&5
11727   rm -rf conftest*
11728   eval "ac_cv_lib_$ac_lib_var=no"
11729 fi
11730 rm -f conftest*
11731 LIBS="$ac_save_LIBS"
11732
11733 fi
11734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11735   echo "$ac_t""yes" 1>&6
11736   TIFF_LINK=" -ltiff"
11737 else
11738   echo "$ac_t""no" 1>&6
11739 fi
11740
11741                        
11742 else
11743   echo "$ac_t""no" 1>&6
11744 fi
11745
11746
11747         if test "x$TIFF_LINK" = "x" ; then
11748             if test "$wxUSE_LIBTIFF" = "sys" ; then
11749                 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
11750             else
11751                 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
11752                 wxUSE_LIBTIFF=builtin
11753             fi
11754         else
11755                         wxUSE_LIBTIFF=sys
11756         fi
11757     fi
11758
11759     if test "$wxUSE_LIBTIFF" = "builtin" ; then
11760         TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11761     fi
11762 fi
11763
11764
11765 AFMINSTALL=
11766
11767 TOOLKIT=
11768 TOOLKIT_INCLUDE=
11769 WIDGET_SET=
11770
11771 if test "$USE_WIN32" = 1 ; then
11772     for ac_hdr in w32api.h
11773 do
11774 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11775 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11776 echo "configure:11777: checking for $ac_hdr" >&5
11777 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11778   echo $ac_n "(cached) $ac_c" 1>&6
11779 else
11780   cat > conftest.$ac_ext <<EOF
11781 #line 11782 "configure"
11782 #include "confdefs.h"
11783 #include <$ac_hdr>
11784 EOF
11785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11786 { (eval echo configure:11787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11787 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11788 if test -z "$ac_err"; then
11789   rm -rf conftest*
11790   eval "ac_cv_header_$ac_safe=yes"
11791 else
11792   echo "$ac_err" >&5
11793   echo "configure: failed program was:" >&5
11794   cat conftest.$ac_ext >&5
11795   rm -rf conftest*
11796   eval "ac_cv_header_$ac_safe=no"
11797 fi
11798 rm -f conftest*
11799 fi
11800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11801   echo "$ac_t""yes" 1>&6
11802     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11803   cat >> confdefs.h <<EOF
11804 #define $ac_tr_hdr 1
11805 EOF
11806  
11807 else
11808   echo "$ac_t""no" 1>&6
11809 fi
11810 done
11811
11812     ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11813 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
11814 echo "configure:11815: checking for windows.h" >&5
11815 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11816   echo $ac_n "(cached) $ac_c" 1>&6
11817 else
11818   cat > conftest.$ac_ext <<EOF
11819 #line 11820 "configure"
11820 #include "confdefs.h"
11821 #include <windows.h>
11822 EOF
11823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11824 { (eval echo configure:11825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11826 if test -z "$ac_err"; then
11827   rm -rf conftest*
11828   eval "ac_cv_header_$ac_safe=yes"
11829 else
11830   echo "$ac_err" >&5
11831   echo "configure: failed program was:" >&5
11832   cat conftest.$ac_ext >&5
11833   rm -rf conftest*
11834   eval "ac_cv_header_$ac_safe=no"
11835 fi
11836 rm -f conftest*
11837 fi
11838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11839   echo "$ac_t""yes" 1>&6
11840   :
11841 else
11842   echo "$ac_t""no" 1>&6
11843
11844         { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
11845     
11846 fi
11847
11848
11849         echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
11850 echo "configure:11851: checking if w32api has good enough MSIE support" >&5
11851 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
11852   echo $ac_n "(cached) $ac_c" 1>&6
11853 else
11854   
11855       cat > conftest.$ac_ext <<EOF
11856 #line 11857 "configure"
11857 #include "confdefs.h"
11858 #include <w32api.h>
11859 int main() {
11860
11861                        #define wxCHECK_W32API_VERSION( major, minor ) \
11862                        ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
11863                        && ( ( __W32API_MAJOR_VERSION > (major) ) \
11864                        || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
11865
11866                        #if !wxCHECK_W32API_VERSION(1,1)
11867                        #error You need w32api 1.1 or newer
11868                        #endif
11869                      
11870 ; return 0; }
11871 EOF
11872 if { (eval echo configure:11873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11873   rm -rf conftest*
11874   
11875                         wx_cv_w32api_win32_ie=yes
11876                      
11877 else
11878   echo "configure: failed program was:" >&5
11879   cat conftest.$ac_ext >&5
11880   rm -rf conftest*
11881   
11882                         wx_cv_w32api_win32_ie=no
11883                      
11884 fi
11885 rm -f conftest*
11886     
11887 fi
11888
11889 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
11890     if test "$wx_cv_w32api_win32_ie" = "yes" ; then
11891         CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
11892     fi
11893
11894             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
11895
11896     case "${host}" in
11897         *-*-cygwin* )
11898                         LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
11899             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
11900     esac
11901
11902         if test "$wxUSE_ODBC" = "yes" ; then
11903         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
11904     fi
11905
11906     RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
11907     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
11908 fi
11909
11910 if test "$wxUSE_GUI" = "yes"; then
11911     USE_GUI=1
11912
11913     GUI_TK_LIBRARY=
11914
11915     WXGTK12=
11916     WXGTK127=
11917     WXGTK20=
11918
11919     if test "$wxUSE_MSW" = 1 ; then
11920         TOOLKIT=MSW
11921         GUIDIST=MSW_DIST
11922
11923                                 case "${host}" in
11924             *-*-mingw32* )
11925                 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
11926         esac
11927     fi
11928
11929     if test "$wxUSE_GTK" = 1; then
11930         echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
11931 echo "configure:11932: checking for GTK+ version" >&5
11932
11933         gtk_version_cached=1
11934         if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
11935   echo $ac_n "(cached) $ac_c" 1>&6
11936 else
11937   
11938                                                 gtk_version_cached=0
11939                 echo "$ac_t""" 1>&6
11940
11941                                                 GTK_MODULES=
11942                 if test "$wxUSE_THREADS" = "yes"; then
11943                     GTK_MODULES=gthread
11944                 fi
11945
11946                 wx_cv_lib_gtk=
11947                 if test "x$wxUSE_GTK2" = "xyes"; then
11948                     # Check whether --enable-gtktest or --disable-gtktest was given.
11949 if test "${enable_gtktest+set}" = set; then
11950   enableval="$enable_gtktest"
11951   :
11952 else
11953   enable_gtktest=yes
11954 fi
11955
11956
11957   pkg_config_args=gtk+-2.0
11958   for module in . $GTK_MODULES
11959   do
11960       case "$module" in
11961          gthread) 
11962              pkg_config_args="$pkg_config_args gthread-2.0"
11963          ;;
11964       esac
11965   done
11966
11967   no_gtk=""
11968
11969   # Extract the first word of "pkg-config", so it can be a program name with args.
11970 set dummy pkg-config; ac_word=$2
11971 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11972 echo "configure:11973: checking for $ac_word" >&5
11973 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
11974   echo $ac_n "(cached) $ac_c" 1>&6
11975 else
11976   case "$PKG_CONFIG" in
11977   /*)
11978   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11979   ;;
11980   ?:/*)                  
11981   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
11982   ;;
11983   *)
11984   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
11985   ac_dummy="$PATH"
11986   for ac_dir in $ac_dummy; do 
11987     test -z "$ac_dir" && ac_dir=.
11988     if test -f $ac_dir/$ac_word; then
11989       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
11990       break
11991     fi
11992   done
11993   IFS="$ac_save_ifs"
11994   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11995   ;;
11996 esac
11997 fi
11998 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11999 if test -n "$PKG_CONFIG"; then
12000   echo "$ac_t""$PKG_CONFIG" 1>&6
12001 else
12002   echo "$ac_t""no" 1>&6
12003 fi
12004
12005
12006   if test x$PKG_CONFIG != xno ; then
12007     if pkg-config --atleast-pkgconfig-version 0.7 ; then
12008       :
12009     else
12010       echo *** pkg-config too old; version 0.7 or better required.
12011       no_gtk=yes
12012       PKG_CONFIG=no
12013     fi
12014   else
12015     no_gtk=yes
12016   fi
12017
12018   min_gtk_version=2.0.0
12019   echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
12020 echo "configure:12021: checking for GTK+ - version >= $min_gtk_version" >&5
12021
12022   if test x$PKG_CONFIG != xno ; then
12023     ## don't try to run the test against uninstalled libtool libs
12024     if $PKG_CONFIG --uninstalled $pkg_config_args; then
12025           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12026           enable_gtktest=no
12027     fi
12028
12029     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12030           :
12031     else
12032           no_gtk=yes
12033     fi
12034   fi
12035
12036   if test x"$no_gtk" = x ; then
12037     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12038     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12039     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12040            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12041     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12042            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12043     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12044            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12045     if test "x$enable_gtktest" = "xyes" ; then
12046       ac_save_CFLAGS="$CFLAGS"
12047       ac_save_LIBS="$LIBS"
12048       CFLAGS="$CFLAGS $GTK_CFLAGS"
12049       LIBS="$GTK_LIBS $LIBS"
12050       rm -f conf.gtktest
12051       if test "$cross_compiling" = yes; then
12052   echo $ac_n "cross compiling; assumed OK... $ac_c"
12053 else
12054   cat > conftest.$ac_ext <<EOF
12055 #line 12056 "configure"
12056 #include "confdefs.h"
12057
12058 #include <gtk/gtk.h>
12059 #include <stdio.h>
12060 #include <stdlib.h>
12061
12062 int 
12063 main ()
12064 {
12065   int major, minor, micro;
12066   char *tmp_version;
12067
12068   system ("touch conf.gtktest");
12069
12070   /* HP/UX 9 (%@#!) writes to sscanf strings */
12071   tmp_version = g_strdup("$min_gtk_version");
12072   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12073      printf("%s, bad version string\n", "$min_gtk_version");
12074      exit(1);
12075    }
12076
12077   if ((gtk_major_version != $gtk_config_major_version) ||
12078       (gtk_minor_version != $gtk_config_minor_version) ||
12079       (gtk_micro_version != $gtk_config_micro_version))
12080     {
12081       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
12082              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12083              gtk_major_version, gtk_minor_version, gtk_micro_version);
12084       printf ("*** was found! If pkg-config was correct, then it is best\n");
12085       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12086       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12087       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12088       printf("*** required on your system.\n");
12089       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12090       printf("*** to point to the correct configuration files\n");
12091     } 
12092   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12093            (gtk_minor_version != GTK_MINOR_VERSION) ||
12094            (gtk_micro_version != GTK_MICRO_VERSION))
12095     {
12096       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12097              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12098       printf("*** library (version %d.%d.%d)\n",
12099              gtk_major_version, gtk_minor_version, gtk_micro_version);
12100     }
12101   else
12102     {
12103       if ((gtk_major_version > major) ||
12104         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12105         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12106       {
12107         return 0;
12108        }
12109      else
12110       {
12111         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12112                gtk_major_version, gtk_minor_version, gtk_micro_version);
12113         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12114                major, minor, micro);
12115         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12116         printf("***\n");
12117         printf("*** If you have already installed a sufficiently new version, this error\n");
12118         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12119         printf("*** being found. The easiest way to fix this is to remove the old version\n");
12120         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12121         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12122         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12123         printf("*** so that the correct libraries are found at run-time))\n");
12124       }
12125     }
12126   return 1;
12127 }
12128
12129 EOF
12130 if { (eval echo configure:12131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12131 then
12132   :
12133 else
12134   echo "configure: failed program was:" >&5
12135   cat conftest.$ac_ext >&5
12136   rm -fr conftest*
12137   no_gtk=yes
12138 fi
12139 rm -fr conftest*
12140 fi
12141
12142        CFLAGS="$ac_save_CFLAGS"
12143        LIBS="$ac_save_LIBS"
12144      fi
12145   fi
12146   if test "x$no_gtk" = x ; then
12147      echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12148      wx_cv_lib_gtk=2.0     
12149   else
12150      echo "$ac_t""no" 1>&6
12151      if test "$PKG_CONFIG" = "no" ; then
12152        echo "*** A new enough version of pkg-config was not found."
12153        echo "*** See http://pkgconfig.sourceforge.net"
12154      else
12155        if test -f conf.gtktest ; then
12156         :
12157        else
12158           echo "*** Could not run GTK+ test program, checking why..."
12159           ac_save_CFLAGS="$CFLAGS"
12160           ac_save_LIBS="$LIBS"
12161           CFLAGS="$CFLAGS $GTK_CFLAGS"
12162           LIBS="$LIBS $GTK_LIBS"
12163           cat > conftest.$ac_ext <<EOF
12164 #line 12165 "configure"
12165 #include "confdefs.h"
12166
12167 #include <gtk/gtk.h>
12168 #include <stdio.h>
12169
12170 int main() {
12171  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
12172 ; return 0; }
12173 EOF
12174 if { (eval echo configure:12175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12175   rm -rf conftest*
12176    echo "*** The test program compiled, but did not run. This usually means"
12177           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12178           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12179           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12180           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12181           echo "*** is required on your system"
12182           echo "***"
12183           echo "*** If you have an old version installed, it is best to remove it, although"
12184           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 
12185 else
12186   echo "configure: failed program was:" >&5
12187   cat conftest.$ac_ext >&5
12188   rm -rf conftest*
12189    echo "*** The test program failed to compile or link. See the file config.log for the"
12190           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12191 fi
12192 rm -f conftest*
12193           CFLAGS="$ac_save_CFLAGS"
12194           LIBS="$ac_save_LIBS"
12195        fi
12196      fi
12197      GTK_CFLAGS=""
12198      GTK_LIBS=""
12199      :
12200   fi
12201   
12202   
12203   rm -f conf.gtktest
12204
12205                 fi
12206
12207                 if test -z "$wx_cv_lib_gtk"; then
12208                     # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12209 if test "${with_gtk_prefix+set}" = set; then
12210   withval="$with_gtk_prefix"
12211   gtk_config_prefix="$withval"
12212 else
12213   gtk_config_prefix=""
12214 fi
12215
12216 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12217 if test "${with_gtk_exec_prefix+set}" = set; then
12218   withval="$with_gtk_exec_prefix"
12219   gtk_config_exec_prefix="$withval"
12220 else
12221   gtk_config_exec_prefix=""
12222 fi
12223
12224 # Check whether --enable-gtktest or --disable-gtktest was given.
12225 if test "${enable_gtktest+set}" = set; then
12226   enableval="$enable_gtktest"
12227   :
12228 else
12229   enable_gtktest=yes
12230 fi
12231
12232
12233   for module in . $GTK_MODULES
12234   do
12235       case "$module" in
12236          gthread) 
12237              gtk_config_args="$gtk_config_args gthread"
12238          ;;
12239       esac
12240   done
12241
12242   if test x$gtk_config_exec_prefix != x ; then
12243      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12244      if test x${GTK_CONFIG+set} != xset ; then
12245         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12246      fi
12247   fi
12248   if test x$gtk_config_prefix != x ; then
12249      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12250      if test x${GTK_CONFIG+set} != xset ; then
12251         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12252      fi
12253   fi
12254
12255   # Extract the first word of "gtk-config", so it can be a program name with args.
12256 set dummy gtk-config; ac_word=$2
12257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12258 echo "configure:12259: checking for $ac_word" >&5
12259 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12260   echo $ac_n "(cached) $ac_c" 1>&6
12261 else
12262   case "$GTK_CONFIG" in
12263   /*)
12264   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12265   ;;
12266   ?:/*)                  
12267   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12268   ;;
12269   *)
12270   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
12271   ac_dummy="$PATH"
12272   for ac_dir in $ac_dummy; do 
12273     test -z "$ac_dir" && ac_dir=.
12274     if test -f $ac_dir/$ac_word; then
12275       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12276       break
12277     fi
12278   done
12279   IFS="$ac_save_ifs"
12280   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12281   ;;
12282 esac
12283 fi
12284 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12285 if test -n "$GTK_CONFIG"; then
12286   echo "$ac_t""$GTK_CONFIG" 1>&6
12287 else
12288   echo "$ac_t""no" 1>&6
12289 fi
12290
12291   min_gtk_version=1.2.7
12292   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12293 echo "configure:12294: checking for GTK - version >= $min_gtk_version" >&5
12294   no_gtk=""
12295   if test "$GTK_CONFIG" = "no" ; then
12296     no_gtk=yes
12297   else
12298     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12299     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12300     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12301            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12302     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12303            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12304     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12305            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12306     if test "x$enable_gtktest" = "xyes" ; then
12307       ac_save_CFLAGS="$CFLAGS"
12308       ac_save_LIBS="$LIBS"
12309       CFLAGS="$CFLAGS $GTK_CFLAGS"
12310       LIBS="$GTK_LIBS $LIBS"
12311       rm -f conf.gtktest
12312       if test "$cross_compiling" = yes; then
12313   echo $ac_n "cross compiling; assumed OK... $ac_c"
12314 else
12315   cat > conftest.$ac_ext <<EOF
12316 #line 12317 "configure"
12317 #include "confdefs.h"
12318
12319 #include <gtk/gtk.h>
12320 #include <stdio.h>
12321 #include <stdlib.h>
12322
12323 int 
12324 main ()
12325 {
12326   int major, minor, micro;
12327   char *tmp_version;
12328
12329   system ("touch conf.gtktest");
12330
12331   /* HP/UX 9 (%@#!) writes to sscanf strings */
12332   tmp_version = g_strdup("$min_gtk_version");
12333   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12334      printf("%s, bad version string\n", "$min_gtk_version");
12335      exit(1);
12336    }
12337
12338   if ((gtk_major_version != $gtk_config_major_version) ||
12339       (gtk_minor_version != $gtk_config_minor_version) ||
12340       (gtk_micro_version != $gtk_config_micro_version))
12341     {
12342       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
12343              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12344              gtk_major_version, gtk_minor_version, gtk_micro_version);
12345       printf ("*** was found! If gtk-config was correct, then it is best\n");
12346       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12347       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12348       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12349       printf("*** required on your system.\n");
12350       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12351       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12352       printf("*** before re-running configure\n");
12353     } 
12354 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12355   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12356            (gtk_minor_version != GTK_MINOR_VERSION) ||
12357            (gtk_micro_version != GTK_MICRO_VERSION))
12358     {
12359       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12360              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12361       printf("*** library (version %d.%d.%d)\n",
12362              gtk_major_version, gtk_minor_version, gtk_micro_version);
12363     }
12364 #endif /* defined (GTK_MAJOR_VERSION) ... */
12365   else
12366     {
12367       if ((gtk_major_version > major) ||
12368         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12369         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12370       {
12371         return 0;
12372        }
12373      else
12374       {
12375         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12376                gtk_major_version, gtk_minor_version, gtk_micro_version);
12377         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12378                major, minor, micro);
12379         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12380         printf("***\n");
12381         printf("*** If you have already installed a sufficiently new version, this error\n");
12382         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12383         printf("*** being found. The easiest way to fix this is to remove the old version\n");
12384         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12385         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12386         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12387         printf("*** so that the correct libraries are found at run-time))\n");
12388       }
12389     }
12390   return 1;
12391 }
12392
12393 EOF
12394 if { (eval echo configure:12395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12395 then
12396   :
12397 else
12398   echo "configure: failed program was:" >&5
12399   cat conftest.$ac_ext >&5
12400   rm -fr conftest*
12401   no_gtk=yes
12402 fi
12403 rm -fr conftest*
12404 fi
12405
12406        CFLAGS="$ac_save_CFLAGS"
12407        LIBS="$ac_save_LIBS"
12408      fi
12409   fi
12410   if test "x$no_gtk" = x ; then
12411      echo "$ac_t""yes" 1>&6
12412      wx_cv_lib_gtk=1.2.7     
12413   else
12414      echo "$ac_t""no" 1>&6
12415      if test "$GTK_CONFIG" = "no" ; then
12416        echo "*** The gtk-config script installed by GTK could not be found"
12417        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12418        echo "*** your path, or set the GTK_CONFIG environment variable to the"
12419        echo "*** full path to gtk-config."
12420      else
12421        if test -f conf.gtktest ; then
12422         :
12423        else
12424           echo "*** Could not run GTK test program, checking why..."
12425           CFLAGS="$CFLAGS $GTK_CFLAGS"
12426           LIBS="$LIBS $GTK_LIBS"
12427           cat > conftest.$ac_ext <<EOF
12428 #line 12429 "configure"
12429 #include "confdefs.h"
12430
12431 #include <gtk/gtk.h>
12432 #include <stdio.h>
12433
12434 int main() {
12435  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
12436 ; return 0; }
12437 EOF
12438 if { (eval echo configure:12439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12439   rm -rf conftest*
12440    echo "*** The test program compiled, but did not run. This usually means"
12441           echo "*** that the run-time linker is not finding GTK or finding the wrong"
12442           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12443           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12444           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12445           echo "*** is required on your system"
12446           echo "***"
12447           echo "*** If you have an old version installed, it is best to remove it, although"
12448           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12449           echo "***"
12450           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12451           echo "*** came with the system with the command"
12452           echo "***"
12453           echo "***    rpm --erase --nodeps gtk gtk-devel" 
12454 else
12455   echo "configure: failed program was:" >&5
12456   cat conftest.$ac_ext >&5
12457   rm -rf conftest*
12458    echo "*** The test program failed to compile or link. See the file config.log for the"
12459           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12460           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12461           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
12462 fi
12463 rm -f conftest*
12464           CFLAGS="$ac_save_CFLAGS"
12465           LIBS="$ac_save_LIBS"
12466        fi
12467      fi
12468      GTK_CFLAGS=""
12469      GTK_LIBS=""
12470      :
12471   fi
12472   
12473   
12474   rm -f conf.gtktest
12475
12476                 fi
12477
12478                 if test -z "$wx_cv_lib_gtk"; then
12479                     # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12480 if test "${with_gtk_prefix+set}" = set; then
12481   withval="$with_gtk_prefix"
12482   gtk_config_prefix="$withval"
12483 else
12484   gtk_config_prefix=""
12485 fi
12486
12487 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12488 if test "${with_gtk_exec_prefix+set}" = set; then
12489   withval="$with_gtk_exec_prefix"
12490   gtk_config_exec_prefix="$withval"
12491 else
12492   gtk_config_exec_prefix=""
12493 fi
12494
12495 # Check whether --enable-gtktest or --disable-gtktest was given.
12496 if test "${enable_gtktest+set}" = set; then
12497   enableval="$enable_gtktest"
12498   :
12499 else
12500   enable_gtktest=yes
12501 fi
12502
12503
12504   for module in . $GTK_MODULES
12505   do
12506       case "$module" in
12507          gthread) 
12508              gtk_config_args="$gtk_config_args gthread"
12509          ;;
12510       esac
12511   done
12512
12513   if test x$gtk_config_exec_prefix != x ; then
12514      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12515      if test x${GTK_CONFIG+set} != xset ; then
12516         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12517      fi
12518   fi
12519   if test x$gtk_config_prefix != x ; then
12520      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12521      if test x${GTK_CONFIG+set} != xset ; then
12522         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12523      fi
12524   fi
12525
12526   # Extract the first word of "gtk-config", so it can be a program name with args.
12527 set dummy gtk-config; ac_word=$2
12528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12529 echo "configure:12530: checking for $ac_word" >&5
12530 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12531   echo $ac_n "(cached) $ac_c" 1>&6
12532 else
12533   case "$GTK_CONFIG" in
12534   /*)
12535   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12536   ;;
12537   ?:/*)                  
12538   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12539   ;;
12540   *)
12541   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
12542   ac_dummy="$PATH"
12543   for ac_dir in $ac_dummy; do 
12544     test -z "$ac_dir" && ac_dir=.
12545     if test -f $ac_dir/$ac_word; then
12546       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12547       break
12548     fi
12549   done
12550   IFS="$ac_save_ifs"
12551   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12552   ;;
12553 esac
12554 fi
12555 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12556 if test -n "$GTK_CONFIG"; then
12557   echo "$ac_t""$GTK_CONFIG" 1>&6
12558 else
12559   echo "$ac_t""no" 1>&6
12560 fi
12561
12562   min_gtk_version=1.2.3
12563   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12564 echo "configure:12565: checking for GTK - version >= $min_gtk_version" >&5
12565   no_gtk=""
12566   if test "$GTK_CONFIG" = "no" ; then
12567     no_gtk=yes
12568   else
12569     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12570     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12571     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12572            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12573     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12574            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12575     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12576            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12577     if test "x$enable_gtktest" = "xyes" ; then
12578       ac_save_CFLAGS="$CFLAGS"
12579       ac_save_LIBS="$LIBS"
12580       CFLAGS="$CFLAGS $GTK_CFLAGS"
12581       LIBS="$GTK_LIBS $LIBS"
12582       rm -f conf.gtktest
12583       if test "$cross_compiling" = yes; then
12584   echo $ac_n "cross compiling; assumed OK... $ac_c"
12585 else
12586   cat > conftest.$ac_ext <<EOF
12587 #line 12588 "configure"
12588 #include "confdefs.h"
12589
12590 #include <gtk/gtk.h>
12591 #include <stdio.h>
12592 #include <stdlib.h>
12593
12594 int 
12595 main ()
12596 {
12597   int major, minor, micro;
12598   char *tmp_version;
12599
12600   system ("touch conf.gtktest");
12601
12602   /* HP/UX 9 (%@#!) writes to sscanf strings */
12603   tmp_version = g_strdup("$min_gtk_version");
12604   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12605      printf("%s, bad version string\n", "$min_gtk_version");
12606      exit(1);
12607    }
12608
12609   if ((gtk_major_version != $gtk_config_major_version) ||
12610       (gtk_minor_version != $gtk_config_minor_version) ||
12611       (gtk_micro_version != $gtk_config_micro_version))
12612     {
12613       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
12614              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12615              gtk_major_version, gtk_minor_version, gtk_micro_version);
12616       printf ("*** was found! If gtk-config was correct, then it is best\n");
12617       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12618       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12619       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12620       printf("*** required on your system.\n");
12621       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12622       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12623       printf("*** before re-running configure\n");
12624     } 
12625 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12626   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12627            (gtk_minor_version != GTK_MINOR_VERSION) ||
12628            (gtk_micro_version != GTK_MICRO_VERSION))
12629     {
12630       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12631              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12632       printf("*** library (version %d.%d.%d)\n",
12633              gtk_major_version, gtk_minor_version, gtk_micro_version);
12634     }
12635 #endif /* defined (GTK_MAJOR_VERSION) ... */
12636   else
12637     {
12638       if ((gtk_major_version > major) ||
12639         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12640         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12641       {
12642         return 0;
12643        }
12644      else
12645       {
12646         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12647                gtk_major_version, gtk_minor_version, gtk_micro_version);
12648         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12649                major, minor, micro);
12650         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12651         printf("***\n");
12652         printf("*** If you have already installed a sufficiently new version, this error\n");
12653         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12654         printf("*** being found. The easiest way to fix this is to remove the old version\n");
12655         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12656         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12657         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12658         printf("*** so that the correct libraries are found at run-time))\n");
12659       }
12660     }
12661   return 1;
12662 }
12663
12664 EOF
12665 if { (eval echo configure:12666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12666 then
12667   :
12668 else
12669   echo "configure: failed program was:" >&5
12670   cat conftest.$ac_ext >&5
12671   rm -fr conftest*
12672   no_gtk=yes
12673 fi
12674 rm -fr conftest*
12675 fi
12676
12677        CFLAGS="$ac_save_CFLAGS"
12678        LIBS="$ac_save_LIBS"
12679      fi
12680   fi
12681   if test "x$no_gtk" = x ; then
12682      echo "$ac_t""yes" 1>&6
12683      wx_cv_lib_gtk=1.2.3     
12684   else
12685      echo "$ac_t""no" 1>&6
12686      if test "$GTK_CONFIG" = "no" ; then
12687        echo "*** The gtk-config script installed by GTK could not be found"
12688        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12689        echo "*** your path, or set the GTK_CONFIG environment variable to the"
12690        echo "*** full path to gtk-config."
12691      else
12692        if test -f conf.gtktest ; then
12693         :
12694        else
12695           echo "*** Could not run GTK test program, checking why..."
12696           CFLAGS="$CFLAGS $GTK_CFLAGS"
12697           LIBS="$LIBS $GTK_LIBS"
12698           cat > conftest.$ac_ext <<EOF
12699 #line 12700 "configure"
12700 #include "confdefs.h"
12701
12702 #include <gtk/gtk.h>
12703 #include <stdio.h>
12704
12705 int main() {
12706  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
12707 ; return 0; }
12708 EOF
12709 if { (eval echo configure:12710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12710   rm -rf conftest*
12711    echo "*** The test program compiled, but did not run. This usually means"
12712           echo "*** that the run-time linker is not finding GTK or finding the wrong"
12713           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12714           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12715           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12716           echo "*** is required on your system"
12717           echo "***"
12718           echo "*** If you have an old version installed, it is best to remove it, although"
12719           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12720           echo "***"
12721           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12722           echo "*** came with the system with the command"
12723           echo "***"
12724           echo "***    rpm --erase --nodeps gtk gtk-devel" 
12725 else
12726   echo "configure: failed program was:" >&5
12727   cat conftest.$ac_ext >&5
12728   rm -rf conftest*
12729    echo "*** The test program failed to compile or link. See the file config.log for the"
12730           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12731           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12732           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
12733 fi
12734 rm -f conftest*
12735           CFLAGS="$ac_save_CFLAGS"
12736           LIBS="$ac_save_LIBS"
12737        fi
12738      fi
12739      GTK_CFLAGS=""
12740      GTK_LIBS=""
12741      :
12742   fi
12743   
12744   
12745   rm -f conf.gtktest
12746
12747                 fi
12748
12749                 if test -z "$wx_cv_lib_gtk"; then
12750                                         wx_cv_lib_gtk=none
12751                 else
12752                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
12753                     wx_cv_libs_gtk=$GTK_LIBS
12754                 fi
12755             
12756         
12757 fi
12758
12759
12760                         if test "$gtk_version_cached" = 1; then
12761             echo "$ac_t""$wx_cv_lib_gtk" 1>&6
12762         fi
12763
12764         case "$wx_cv_lib_gtk" in
12765             2.0)    WXGTK20=1
12766                     ;;
12767             1.2.7)  WXGTK127=1
12768                     WXGTK12=1
12769                     ;;
12770             1.2.3)  WXGTK12=1
12771                     ;;
12772             *)      { echo "configure: error: 
12773 Please check that gtk-config is in path, the directory
12774 where GTK+ libraries are installed (returned by
12775 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
12776 equivalent variable and GTK+ is version 1.2.3 or above.
12777                             " 1>&2; exit 1; }
12778                     ;;
12779         esac
12780
12781         if test "$WXGTK20" = 1; then
12782             if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
12783                 
12784   succeeded=no
12785
12786   if test -z "$PKG_CONFIG"; then
12787     # Extract the first word of "pkg-config", so it can be a program name with args.
12788 set dummy pkg-config; ac_word=$2
12789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12790 echo "configure:12791: checking for $ac_word" >&5
12791 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12792   echo $ac_n "(cached) $ac_c" 1>&6
12793 else
12794   case "$PKG_CONFIG" in
12795   /*)
12796   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12797   ;;
12798   ?:/*)                  
12799   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12800   ;;
12801   *)
12802   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
12803   ac_dummy="$PATH"
12804   for ac_dir in $ac_dummy; do 
12805     test -z "$ac_dir" && ac_dir=.
12806     if test -f $ac_dir/$ac_word; then
12807       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12808       break
12809     fi
12810   done
12811   IFS="$ac_save_ifs"
12812   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12813   ;;
12814 esac
12815 fi
12816 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12817 if test -n "$PKG_CONFIG"; then
12818   echo "$ac_t""$PKG_CONFIG" 1>&6
12819 else
12820   echo "$ac_t""no" 1>&6
12821 fi
12822
12823   fi
12824
12825   if test "$PKG_CONFIG" = "no" ; then
12826      echo "*** The pkg-config script could not be found. Make sure it is"
12827      echo "*** in your path, or set the PKG_CONFIG environment variable"
12828      echo "*** to the full path to pkg-config."
12829      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12830   else
12831      PKG_CONFIG_MIN_VERSION=0.9.0
12832      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12833         echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
12834 echo "configure:12835: checking for pangoft2" >&5
12835
12836         if $PKG_CONFIG --exists "pangoft2" ; then
12837             echo "$ac_t""yes" 1>&6
12838             succeeded=yes
12839
12840             echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
12841 echo "configure:12842: checking PANGOFT2_CFLAGS" >&5
12842             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
12843             echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
12844
12845             echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
12846 echo "configure:12847: checking PANGOFT2_LIBS" >&5
12847             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
12848             echo "$ac_t""$PANGOFT2_LIBS" 1>&6
12849         else
12850             PANGOFT2_CFLAGS=""
12851             PANGOFT2_LIBS=""
12852             ## If we have a custom action on failure, don't print errors, but 
12853             ## do set a variable so people can do so.
12854             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
12855             
12856         fi
12857
12858         
12859         
12860      else
12861         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12862         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12863      fi
12864   fi
12865
12866   if test $succeeded = yes; then
12867      
12868                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
12869                         LIBS="$LIBS $PANGOFT2_LIBS"
12870                     
12871   else
12872      
12873                         echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
12874                         wxUSE_PRINTING_ARCHITECTURE="no"
12875                     
12876                 
12877   fi
12878
12879             fi
12880         fi
12881
12882         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
12883         GUI_TK_LIBRARY="$wx_cv_libs_gtk"
12884
12885         AFMINSTALL=afminstall
12886         TOOLKIT=GTK
12887         GUIDIST=GTK_DIST
12888
12889                 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
12890 echo "configure:12891: checking for gdk_im_open in -lgdk" >&5
12891 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
12892 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12893   echo $ac_n "(cached) $ac_c" 1>&6
12894 else
12895   ac_save_LIBS="$LIBS"
12896 LIBS="-lgdk  $LIBS"
12897 cat > conftest.$ac_ext <<EOF
12898 #line 12899 "configure"
12899 #include "confdefs.h"
12900 /* Override any gcc2 internal prototype to avoid an error.  */
12901 /* We use char because int might match the return type of a gcc2
12902     builtin and then its argument prototype would still apply.  */
12903 char gdk_im_open();
12904
12905 int main() {
12906 gdk_im_open()
12907 ; return 0; }
12908 EOF
12909 if { (eval echo configure:12910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12910   rm -rf conftest*
12911   eval "ac_cv_lib_$ac_lib_var=yes"
12912 else
12913   echo "configure: failed program was:" >&5
12914   cat conftest.$ac_ext >&5
12915   rm -rf conftest*
12916   eval "ac_cv_lib_$ac_lib_var=no"
12917 fi
12918 rm -f conftest*
12919 LIBS="$ac_save_LIBS"
12920
12921 fi
12922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12923   echo "$ac_t""yes" 1>&6
12924   cat >> confdefs.h <<\EOF
12925 #define HAVE_XIM 1
12926 EOF
12927
12928 else
12929   echo "$ac_t""no" 1>&6
12930 fi
12931
12932     fi
12933
12934     if test "$wxUSE_MGL" = 1; then
12935         echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
12936 echo "configure:12937: checking for SciTech MGL library" >&5
12937         if test "x$MGL_ROOT" = x ; then
12938             echo "$ac_t""not found" 1>&6
12939             { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
12940         else
12941             echo "$ac_t""$MGL_ROOT" 1>&6
12942         fi
12943
12944                         case "${host}" in
12945             *-*-linux* )
12946               mgl_os=linux/gcc/glibc
12947               ;;
12948             *-pc-msdosdjgpp )
12949               mgl_os=dos32/dj2
12950               ;;
12951             *)
12952               { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
12953         esac
12954
12955         mgl_lib_type=""
12956
12957         if test "$wxUSE_DEBUG_FLAG" = yes ; then
12958             if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
12959                     -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
12960                 mgl_lib_type=debug
12961             fi
12962         fi
12963         if test "x$mgl_lib_type" = x ; then
12964             if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
12965                     -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
12966                 mgl_lib_type=release
12967             else
12968                 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
12969             fi
12970         fi
12971
12972         wxUSE_UNIVERSAL="yes"
12973
12974         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
12975         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
12976
12977         AFMINSTALL=afminstall
12978         TOOLKIT=MGL
12979         GUIDIST=MGL_DIST
12980     fi
12981
12982     if test "$wxUSE_MICROWIN" = 1; then
12983         echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
12984 echo "configure:12985: checking for MicroWindows" >&5
12985         if test "x$MICROWINDOWS" = x ; then
12986             echo "$ac_t""not found" 1>&6
12987             { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
12988         else
12989             echo "$ac_t""$MICROWINDOWS" 1>&6
12990         fi
12991
12992         if test -f $MICROWINDOWS/lib/libmwin.a; then
12993             echo "$ac_t""MicroWindows' libraries found." 1>&6
12994         else
12995             { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
12996         fi
12997
12998         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
12999         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13000
13001         wxUSE_UNIVERSAL="yes"
13002
13003         AFMINSTALL=afminstall
13004         TOOLKIT=MICROWIN
13005         GUIDIST=MICROWIN_DIST
13006
13007         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
13008     fi
13009
13010     if test "$wxUSE_X11" = 1; then
13011                         # If we find X, set shell vars x_includes and x_libraries to the
13012 # paths, otherwise set no_x=yes.
13013 # Uses ac_ vars as temps to allow command line to override cache and checks.
13014 # --without-x overrides everything else, but does not touch the cache.
13015 echo $ac_n "checking for X""... $ac_c" 1>&6
13016 echo "configure:13017: checking for X" >&5
13017
13018 # Check whether --with-x or --without-x was given.
13019 if test "${with_x+set}" = set; then
13020   withval="$with_x"
13021   :
13022 fi
13023
13024 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13025 if test "x$with_x" = xno; then
13026   # The user explicitly disabled X.
13027   have_x=disabled
13028 else
13029   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13030     # Both variables are already set.
13031     have_x=yes
13032   else
13033 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13034   echo $ac_n "(cached) $ac_c" 1>&6
13035 else
13036   # One or both of the vars are not set, and there is no cached value.
13037 ac_x_includes=NO ac_x_libraries=NO
13038 rm -fr conftestdir
13039 if mkdir conftestdir; then
13040   cd conftestdir
13041   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
13042   cat > Imakefile <<'EOF'
13043 acfindx:
13044         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
13045 EOF
13046   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13047     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13048     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13049     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13050     for ac_extension in a so sl; do
13051       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
13052         test -f $ac_im_libdir/libX11.$ac_extension; then
13053         ac_im_usrlibdir=$ac_im_libdir; break
13054       fi
13055     done
13056     # Screen out bogus values from the imake configuration.  They are
13057     # bogus both because they are the default anyway, and because
13058     # using them would break gcc on systems where it needs fixed includes.
13059     case "$ac_im_incroot" in
13060         /usr/include) ;;
13061         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
13062     esac
13063     case "$ac_im_usrlibdir" in
13064         /usr/lib | /lib) ;;
13065         *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
13066     esac
13067   fi
13068   cd ..
13069   rm -fr conftestdir
13070 fi
13071
13072 if test "$ac_x_includes" = NO; then
13073   # Guess where to find include files, by looking for this one X11 .h file.
13074   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13075
13076   # First, try using that file with no special directory specified.
13077 cat > conftest.$ac_ext <<EOF
13078 #line 13079 "configure"
13079 #include "confdefs.h"
13080 #include <$x_direct_test_include>
13081 EOF
13082 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13083 { (eval echo configure:13084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13084 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13085 if test -z "$ac_err"; then
13086   rm -rf conftest*
13087   # We can compile using X headers with no special include directory.
13088 ac_x_includes=
13089 else
13090   echo "$ac_err" >&5
13091   echo "configure: failed program was:" >&5
13092   cat conftest.$ac_ext >&5
13093   rm -rf conftest*
13094   # Look for the header file in a standard set of common directories.
13095 # Check X11 before X11Rn because it is often a symlink to the current release.
13096   for ac_dir in               \
13097     /usr/X11/include          \
13098     /usr/X11R6/include        \
13099     /usr/X11R5/include        \
13100     /usr/X11R4/include        \
13101                               \
13102     /usr/include/X11          \
13103     /usr/include/X11R6        \
13104     /usr/include/X11R5        \
13105     /usr/include/X11R4        \
13106                               \
13107     /usr/local/X11/include    \
13108     /usr/local/X11R6/include  \
13109     /usr/local/X11R5/include  \
13110     /usr/local/X11R4/include  \
13111                               \
13112     /usr/local/include/X11    \
13113     /usr/local/include/X11R6  \
13114     /usr/local/include/X11R5  \
13115     /usr/local/include/X11R4  \
13116                               \
13117     /usr/X386/include         \
13118     /usr/x386/include         \
13119     /usr/XFree86/include/X11  \
13120                               \
13121     /usr/include              \
13122     /usr/local/include        \
13123     /usr/unsupported/include  \
13124     /usr/athena/include       \
13125     /usr/local/x11r5/include  \
13126     /usr/lpp/Xamples/include  \
13127                               \
13128     /usr/openwin/include      \
13129     /usr/openwin/share/include \
13130     ; \
13131   do
13132     if test -r "$ac_dir/$x_direct_test_include"; then
13133       ac_x_includes=$ac_dir
13134       break
13135     fi
13136   done
13137 fi
13138 rm -f conftest*
13139 fi # $ac_x_includes = NO
13140
13141 if test "$ac_x_libraries" = NO; then
13142   # Check for the libraries.
13143
13144   test -z "$x_direct_test_library" && x_direct_test_library=Xt
13145   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13146
13147   # See if we find them without any special options.
13148   # Don't add to $LIBS permanently.
13149   ac_save_LIBS="$LIBS"
13150   LIBS="-l$x_direct_test_library $LIBS"
13151 cat > conftest.$ac_ext <<EOF
13152 #line 13153 "configure"
13153 #include "confdefs.h"
13154
13155 int main() {
13156 ${x_direct_test_function}()
13157 ; return 0; }
13158 EOF
13159 if { (eval echo configure:13160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13160   rm -rf conftest*
13161   LIBS="$ac_save_LIBS"
13162 # We can link X programs with no special library path.
13163 ac_x_libraries=
13164 else
13165   echo "configure: failed program was:" >&5
13166   cat conftest.$ac_ext >&5
13167   rm -rf conftest*
13168   LIBS="$ac_save_LIBS"
13169 # First see if replacing the include by lib works.
13170 # Check X11 before X11Rn because it is often a symlink to the current release.
13171 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13172     /usr/X11/lib          \
13173     /usr/X11R6/lib        \
13174     /usr/X11R5/lib        \
13175     /usr/X11R4/lib        \
13176                           \
13177     /usr/lib/X11          \
13178     /usr/lib/X11R6        \
13179     /usr/lib/X11R5        \
13180     /usr/lib/X11R4        \
13181                           \
13182     /usr/local/X11/lib    \
13183     /usr/local/X11R6/lib  \
13184     /usr/local/X11R5/lib  \
13185     /usr/local/X11R4/lib  \
13186                           \
13187     /usr/local/lib/X11    \
13188     /usr/local/lib/X11R6  \
13189     /usr/local/lib/X11R5  \
13190     /usr/local/lib/X11R4  \
13191                           \
13192     /usr/X386/lib         \
13193     /usr/x386/lib         \
13194     /usr/XFree86/lib/X11  \
13195                           \
13196     /usr/lib              \
13197     /usr/local/lib        \
13198     /usr/unsupported/lib  \
13199     /usr/athena/lib       \
13200     /usr/local/x11r5/lib  \
13201     /usr/lpp/Xamples/lib  \
13202     /lib/usr/lib/X11      \
13203                           \
13204     /usr/openwin/lib      \
13205     /usr/openwin/share/lib \
13206     ; \
13207 do
13208   for ac_extension in a so sl; do
13209     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13210       ac_x_libraries=$ac_dir
13211       break 2
13212     fi
13213   done
13214 done
13215 fi
13216 rm -f conftest*
13217 fi # $ac_x_libraries = NO
13218
13219 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13220   # Didn't find X anywhere.  Cache the known absence of X.
13221   ac_cv_have_x="have_x=no"
13222 else
13223   # Record where we found X for the cache.
13224   ac_cv_have_x="have_x=yes \
13225                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13226 fi
13227 fi
13228   fi
13229   eval "$ac_cv_have_x"
13230 fi # $with_x != no
13231
13232 if test "$have_x" != yes; then
13233   echo "$ac_t""$have_x" 1>&6
13234   no_x=yes
13235 else
13236   # If each of the values was on the command line, it overrides each guess.
13237   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13238   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13239   # Update the cache value to reflect the command line values.
13240   ac_cv_have_x="have_x=yes \
13241                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13242   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13243 fi
13244
13245 if test "$no_x" = yes; then
13246   # Not all programs may use this symbol, but it does not hurt to define it.
13247   cat >> confdefs.h <<\EOF
13248 #define X_DISPLAY_MISSING 1
13249 EOF
13250
13251   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13252 else
13253   if test -n "$x_includes"; then
13254     X_CFLAGS="$X_CFLAGS -I$x_includes"
13255   fi
13256
13257   # It would also be nice to do this for all -L options, not just this one.
13258   if test -n "$x_libraries"; then
13259     X_LIBS="$X_LIBS -L$x_libraries"
13260     # For Solaris; some versions of Sun CC require a space after -R and
13261     # others require no space.  Words are not sufficient . . . .
13262     case "`(uname -sr) 2>/dev/null`" in
13263     "SunOS 5"*)
13264       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13265 echo "configure:13266: checking whether -R must be followed by a space" >&5
13266       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13267       cat > conftest.$ac_ext <<EOF
13268 #line 13269 "configure"
13269 #include "confdefs.h"
13270
13271 int main() {
13272
13273 ; return 0; }
13274 EOF
13275 if { (eval echo configure:13276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13276   rm -rf conftest*
13277   ac_R_nospace=yes
13278 else
13279   echo "configure: failed program was:" >&5
13280   cat conftest.$ac_ext >&5
13281   rm -rf conftest*
13282   ac_R_nospace=no
13283 fi
13284 rm -f conftest*
13285       if test $ac_R_nospace = yes; then
13286         echo "$ac_t""no" 1>&6
13287         X_LIBS="$X_LIBS -R$x_libraries"
13288       else
13289         LIBS="$ac_xsave_LIBS -R $x_libraries"
13290         cat > conftest.$ac_ext <<EOF
13291 #line 13292 "configure"
13292 #include "confdefs.h"
13293
13294 int main() {
13295
13296 ; return 0; }
13297 EOF
13298 if { (eval echo configure:13299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13299   rm -rf conftest*
13300   ac_R_space=yes
13301 else
13302   echo "configure: failed program was:" >&5
13303   cat conftest.$ac_ext >&5
13304   rm -rf conftest*
13305   ac_R_space=no
13306 fi
13307 rm -f conftest*
13308         if test $ac_R_space = yes; then
13309           echo "$ac_t""yes" 1>&6
13310           X_LIBS="$X_LIBS -R $x_libraries"
13311         else
13312           echo "$ac_t""neither works" 1>&6
13313         fi
13314       fi
13315       LIBS="$ac_xsave_LIBS"
13316     esac
13317   fi
13318
13319   # Check for system-dependent libraries X programs must link with.
13320   # Do this before checking for the system-independent R6 libraries
13321   # (-lICE), since we may need -lsocket or whatever for X linking.
13322
13323   if test "$ISC" = yes; then
13324     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13325   else
13326     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13327     # libraries were built with DECnet support.  And karl@cs.umb.edu says
13328     # the Alpha needs dnet_stub (dnet does not exist).
13329     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13330 echo "configure:13331: checking for dnet_ntoa in -ldnet" >&5
13331 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13332 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13333   echo $ac_n "(cached) $ac_c" 1>&6
13334 else
13335   ac_save_LIBS="$LIBS"
13336 LIBS="-ldnet  $LIBS"
13337 cat > conftest.$ac_ext <<EOF
13338 #line 13339 "configure"
13339 #include "confdefs.h"
13340 /* Override any gcc2 internal prototype to avoid an error.  */
13341 /* We use char because int might match the return type of a gcc2
13342     builtin and then its argument prototype would still apply.  */
13343 char dnet_ntoa();
13344
13345 int main() {
13346 dnet_ntoa()
13347 ; return 0; }
13348 EOF
13349 if { (eval echo configure:13350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13350   rm -rf conftest*
13351   eval "ac_cv_lib_$ac_lib_var=yes"
13352 else
13353   echo "configure: failed program was:" >&5
13354   cat conftest.$ac_ext >&5
13355   rm -rf conftest*
13356   eval "ac_cv_lib_$ac_lib_var=no"
13357 fi
13358 rm -f conftest*
13359 LIBS="$ac_save_LIBS"
13360
13361 fi
13362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13363   echo "$ac_t""yes" 1>&6
13364   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13365 else
13366   echo "$ac_t""no" 1>&6
13367 fi
13368
13369     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13370       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13371 echo "configure:13372: checking for dnet_ntoa in -ldnet_stub" >&5
13372 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13373 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13374   echo $ac_n "(cached) $ac_c" 1>&6
13375 else
13376   ac_save_LIBS="$LIBS"
13377 LIBS="-ldnet_stub  $LIBS"
13378 cat > conftest.$ac_ext <<EOF
13379 #line 13380 "configure"
13380 #include "confdefs.h"
13381 /* Override any gcc2 internal prototype to avoid an error.  */
13382 /* We use char because int might match the return type of a gcc2
13383     builtin and then its argument prototype would still apply.  */
13384 char dnet_ntoa();
13385
13386 int main() {
13387 dnet_ntoa()
13388 ; return 0; }
13389 EOF
13390 if { (eval echo configure:13391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13391   rm -rf conftest*
13392   eval "ac_cv_lib_$ac_lib_var=yes"
13393 else
13394   echo "configure: failed program was:" >&5
13395   cat conftest.$ac_ext >&5
13396   rm -rf conftest*
13397   eval "ac_cv_lib_$ac_lib_var=no"
13398 fi
13399 rm -f conftest*
13400 LIBS="$ac_save_LIBS"
13401
13402 fi
13403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13404   echo "$ac_t""yes" 1>&6
13405   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13406 else
13407   echo "$ac_t""no" 1>&6
13408 fi
13409
13410     fi
13411
13412     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13413     # to get the SysV transport functions.
13414     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13415     # needs -lnsl.
13416     # The nsl library prevents programs from opening the X display
13417     # on Irix 5.2, according to dickey@clark.net.
13418     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13419 echo "configure:13420: checking for gethostbyname" >&5
13420 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13421   echo $ac_n "(cached) $ac_c" 1>&6
13422 else
13423   cat > conftest.$ac_ext <<EOF
13424 #line 13425 "configure"
13425 #include "confdefs.h"
13426 /* System header to define __stub macros and hopefully few prototypes,
13427     which can conflict with char gethostbyname(); below.  */
13428 #include <assert.h>
13429 /* Override any gcc2 internal prototype to avoid an error.  */
13430 /* We use char because int might match the return type of a gcc2
13431     builtin and then its argument prototype would still apply.  */
13432 char gethostbyname();
13433
13434 int main() {
13435
13436 /* The GNU C library defines this for functions which it implements
13437     to always fail with ENOSYS.  Some functions are actually named
13438     something starting with __ and the normal name is an alias.  */
13439 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13440 choke me
13441 #else
13442 gethostbyname();
13443 #endif
13444
13445 ; return 0; }
13446 EOF
13447 if { (eval echo configure:13448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13448   rm -rf conftest*
13449   eval "ac_cv_func_gethostbyname=yes"
13450 else
13451   echo "configure: failed program was:" >&5
13452   cat conftest.$ac_ext >&5
13453   rm -rf conftest*
13454   eval "ac_cv_func_gethostbyname=no"
13455 fi
13456 rm -f conftest*
13457 fi
13458
13459 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13460   echo "$ac_t""yes" 1>&6
13461   :
13462 else
13463   echo "$ac_t""no" 1>&6
13464 fi
13465
13466     if test $ac_cv_func_gethostbyname = no; then
13467       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13468 echo "configure:13469: checking for gethostbyname in -lnsl" >&5
13469 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13471   echo $ac_n "(cached) $ac_c" 1>&6
13472 else
13473   ac_save_LIBS="$LIBS"
13474 LIBS="-lnsl  $LIBS"
13475 cat > conftest.$ac_ext <<EOF
13476 #line 13477 "configure"
13477 #include "confdefs.h"
13478 /* Override any gcc2 internal prototype to avoid an error.  */
13479 /* We use char because int might match the return type of a gcc2
13480     builtin and then its argument prototype would still apply.  */
13481 char gethostbyname();
13482
13483 int main() {
13484 gethostbyname()
13485 ; return 0; }
13486 EOF
13487 if { (eval echo configure:13488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13488   rm -rf conftest*
13489   eval "ac_cv_lib_$ac_lib_var=yes"
13490 else
13491   echo "configure: failed program was:" >&5
13492   cat conftest.$ac_ext >&5
13493   rm -rf conftest*
13494   eval "ac_cv_lib_$ac_lib_var=no"
13495 fi
13496 rm -f conftest*
13497 LIBS="$ac_save_LIBS"
13498
13499 fi
13500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13501   echo "$ac_t""yes" 1>&6
13502   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13503 else
13504   echo "$ac_t""no" 1>&6
13505 fi
13506
13507     fi
13508
13509     # lieder@skyler.mavd.honeywell.com says without -lsocket,
13510     # socket/setsockopt and other routines are undefined under SCO ODT
13511     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
13512     # on later versions), says simon@lia.di.epfl.ch: it contains
13513     # gethostby* variants that don't use the nameserver (or something).
13514     # -lsocket must be given before -lnsl if both are needed.
13515     # We assume that if connect needs -lnsl, so does gethostbyname.
13516     echo $ac_n "checking for connect""... $ac_c" 1>&6
13517 echo "configure:13518: checking for connect" >&5
13518 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13519   echo $ac_n "(cached) $ac_c" 1>&6
13520 else
13521   cat > conftest.$ac_ext <<EOF
13522 #line 13523 "configure"
13523 #include "confdefs.h"
13524 /* System header to define __stub macros and hopefully few prototypes,
13525     which can conflict with char connect(); below.  */
13526 #include <assert.h>
13527 /* Override any gcc2 internal prototype to avoid an error.  */
13528 /* We use char because int might match the return type of a gcc2
13529     builtin and then its argument prototype would still apply.  */
13530 char connect();
13531
13532 int main() {
13533
13534 /* The GNU C library defines this for functions which it implements
13535     to always fail with ENOSYS.  Some functions are actually named
13536     something starting with __ and the normal name is an alias.  */
13537 #if defined (__stub_connect) || defined (__stub___connect)
13538 choke me
13539 #else
13540 connect();
13541 #endif
13542
13543 ; return 0; }
13544 EOF
13545 if { (eval echo configure:13546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13546   rm -rf conftest*
13547   eval "ac_cv_func_connect=yes"
13548 else
13549   echo "configure: failed program was:" >&5
13550   cat conftest.$ac_ext >&5
13551   rm -rf conftest*
13552   eval "ac_cv_func_connect=no"
13553 fi
13554 rm -f conftest*
13555 fi
13556
13557 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13558   echo "$ac_t""yes" 1>&6
13559   :
13560 else
13561   echo "$ac_t""no" 1>&6
13562 fi
13563
13564     if test $ac_cv_func_connect = no; then
13565       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
13566 echo "configure:13567: checking for connect in -lsocket" >&5
13567 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13568 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13569   echo $ac_n "(cached) $ac_c" 1>&6
13570 else
13571   ac_save_LIBS="$LIBS"
13572 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13573 cat > conftest.$ac_ext <<EOF
13574 #line 13575 "configure"
13575 #include "confdefs.h"
13576 /* Override any gcc2 internal prototype to avoid an error.  */
13577 /* We use char because int might match the return type of a gcc2
13578     builtin and then its argument prototype would still apply.  */
13579 char connect();
13580
13581 int main() {
13582 connect()
13583 ; return 0; }
13584 EOF
13585 if { (eval echo configure:13586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13586   rm -rf conftest*
13587   eval "ac_cv_lib_$ac_lib_var=yes"
13588 else
13589   echo "configure: failed program was:" >&5
13590   cat conftest.$ac_ext >&5
13591   rm -rf conftest*
13592   eval "ac_cv_lib_$ac_lib_var=no"
13593 fi
13594 rm -f conftest*
13595 LIBS="$ac_save_LIBS"
13596
13597 fi
13598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13599   echo "$ac_t""yes" 1>&6
13600   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13601 else
13602   echo "$ac_t""no" 1>&6
13603 fi
13604
13605     fi
13606
13607     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
13608     echo $ac_n "checking for remove""... $ac_c" 1>&6
13609 echo "configure:13610: checking for remove" >&5
13610 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
13611   echo $ac_n "(cached) $ac_c" 1>&6
13612 else
13613   cat > conftest.$ac_ext <<EOF
13614 #line 13615 "configure"
13615 #include "confdefs.h"
13616 /* System header to define __stub macros and hopefully few prototypes,
13617     which can conflict with char remove(); below.  */
13618 #include <assert.h>
13619 /* Override any gcc2 internal prototype to avoid an error.  */
13620 /* We use char because int might match the return type of a gcc2
13621     builtin and then its argument prototype would still apply.  */
13622 char remove();
13623
13624 int main() {
13625
13626 /* The GNU C library defines this for functions which it implements
13627     to always fail with ENOSYS.  Some functions are actually named
13628     something starting with __ and the normal name is an alias.  */
13629 #if defined (__stub_remove) || defined (__stub___remove)
13630 choke me
13631 #else
13632 remove();
13633 #endif
13634
13635 ; return 0; }
13636 EOF
13637 if { (eval echo configure:13638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13638   rm -rf conftest*
13639   eval "ac_cv_func_remove=yes"
13640 else
13641   echo "configure: failed program was:" >&5
13642   cat conftest.$ac_ext >&5
13643   rm -rf conftest*
13644   eval "ac_cv_func_remove=no"
13645 fi
13646 rm -f conftest*
13647 fi
13648
13649 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
13650   echo "$ac_t""yes" 1>&6
13651   :
13652 else
13653   echo "$ac_t""no" 1>&6
13654 fi
13655
13656     if test $ac_cv_func_remove = no; then
13657       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
13658 echo "configure:13659: checking for remove in -lposix" >&5
13659 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
13660 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13661   echo $ac_n "(cached) $ac_c" 1>&6
13662 else
13663   ac_save_LIBS="$LIBS"
13664 LIBS="-lposix  $LIBS"
13665 cat > conftest.$ac_ext <<EOF
13666 #line 13667 "configure"
13667 #include "confdefs.h"
13668 /* Override any gcc2 internal prototype to avoid an error.  */
13669 /* We use char because int might match the return type of a gcc2
13670     builtin and then its argument prototype would still apply.  */
13671 char remove();
13672
13673 int main() {
13674 remove()
13675 ; return 0; }
13676 EOF
13677 if { (eval echo configure:13678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13678   rm -rf conftest*
13679   eval "ac_cv_lib_$ac_lib_var=yes"
13680 else
13681   echo "configure: failed program was:" >&5
13682   cat conftest.$ac_ext >&5
13683   rm -rf conftest*
13684   eval "ac_cv_lib_$ac_lib_var=no"
13685 fi
13686 rm -f conftest*
13687 LIBS="$ac_save_LIBS"
13688
13689 fi
13690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13691   echo "$ac_t""yes" 1>&6
13692   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13693 else
13694   echo "$ac_t""no" 1>&6
13695 fi
13696
13697     fi
13698
13699     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13700     echo $ac_n "checking for shmat""... $ac_c" 1>&6
13701 echo "configure:13702: checking for shmat" >&5
13702 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
13703   echo $ac_n "(cached) $ac_c" 1>&6
13704 else
13705   cat > conftest.$ac_ext <<EOF
13706 #line 13707 "configure"
13707 #include "confdefs.h"
13708 /* System header to define __stub macros and hopefully few prototypes,
13709     which can conflict with char shmat(); below.  */
13710 #include <assert.h>
13711 /* Override any gcc2 internal prototype to avoid an error.  */
13712 /* We use char because int might match the return type of a gcc2
13713     builtin and then its argument prototype would still apply.  */
13714 char shmat();
13715
13716 int main() {
13717
13718 /* The GNU C library defines this for functions which it implements
13719     to always fail with ENOSYS.  Some functions are actually named
13720     something starting with __ and the normal name is an alias.  */
13721 #if defined (__stub_shmat) || defined (__stub___shmat)
13722 choke me
13723 #else
13724 shmat();
13725 #endif
13726
13727 ; return 0; }
13728 EOF
13729 if { (eval echo configure:13730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13730   rm -rf conftest*
13731   eval "ac_cv_func_shmat=yes"
13732 else
13733   echo "configure: failed program was:" >&5
13734   cat conftest.$ac_ext >&5
13735   rm -rf conftest*
13736   eval "ac_cv_func_shmat=no"
13737 fi
13738 rm -f conftest*
13739 fi
13740
13741 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
13742   echo "$ac_t""yes" 1>&6
13743   :
13744 else
13745   echo "$ac_t""no" 1>&6
13746 fi
13747
13748     if test $ac_cv_func_shmat = no; then
13749       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
13750 echo "configure:13751: checking for shmat in -lipc" >&5
13751 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
13752 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13753   echo $ac_n "(cached) $ac_c" 1>&6
13754 else
13755   ac_save_LIBS="$LIBS"
13756 LIBS="-lipc  $LIBS"
13757 cat > conftest.$ac_ext <<EOF
13758 #line 13759 "configure"
13759 #include "confdefs.h"
13760 /* Override any gcc2 internal prototype to avoid an error.  */
13761 /* We use char because int might match the return type of a gcc2
13762     builtin and then its argument prototype would still apply.  */
13763 char shmat();
13764
13765 int main() {
13766 shmat()
13767 ; return 0; }
13768 EOF
13769 if { (eval echo configure:13770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13770   rm -rf conftest*
13771   eval "ac_cv_lib_$ac_lib_var=yes"
13772 else
13773   echo "configure: failed program was:" >&5
13774   cat conftest.$ac_ext >&5
13775   rm -rf conftest*
13776   eval "ac_cv_lib_$ac_lib_var=no"
13777 fi
13778 rm -f conftest*
13779 LIBS="$ac_save_LIBS"
13780
13781 fi
13782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13783   echo "$ac_t""yes" 1>&6
13784   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13785 else
13786   echo "$ac_t""no" 1>&6
13787 fi
13788
13789     fi
13790   fi
13791
13792   # Check for libraries that X11R6 Xt/Xaw programs need.
13793   ac_save_LDFLAGS="$LDFLAGS"
13794   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13795   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13796   # check for ICE first), but we must link in the order -lSM -lICE or
13797   # we get undefined symbols.  So assume we have SM if we have ICE.
13798   # These have to be linked with before -lX11, unlike the other
13799   # libraries we check for below, so use a different variable.
13800   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
13801   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
13802 echo "configure:13803: checking for IceConnectionNumber in -lICE" >&5
13803 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
13804 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13805   echo $ac_n "(cached) $ac_c" 1>&6
13806 else
13807   ac_save_LIBS="$LIBS"
13808 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13809 cat > conftest.$ac_ext <<EOF
13810 #line 13811 "configure"
13811 #include "confdefs.h"
13812 /* Override any gcc2 internal prototype to avoid an error.  */
13813 /* We use char because int might match the return type of a gcc2
13814     builtin and then its argument prototype would still apply.  */
13815 char IceConnectionNumber();
13816
13817 int main() {
13818 IceConnectionNumber()
13819 ; return 0; }
13820 EOF
13821 if { (eval echo configure:13822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13822   rm -rf conftest*
13823   eval "ac_cv_lib_$ac_lib_var=yes"
13824 else
13825   echo "configure: failed program was:" >&5
13826   cat conftest.$ac_ext >&5
13827   rm -rf conftest*
13828   eval "ac_cv_lib_$ac_lib_var=no"
13829 fi
13830 rm -f conftest*
13831 LIBS="$ac_save_LIBS"
13832
13833 fi
13834 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13835   echo "$ac_t""yes" 1>&6
13836   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13837 else
13838   echo "$ac_t""no" 1>&6
13839 fi
13840
13841   LDFLAGS="$ac_save_LDFLAGS"
13842
13843 fi
13844
13845
13846         if test "$no_x" = "yes"; then
13847           { echo "configure: error: X11 not found" 1>&2; exit 1; }
13848         fi
13849
13850         GUI_TK_LIBRARY="$X_LIBS"
13851         TOOLKIT_INCLUDE="$X_CFLAGS"
13852         AFMINSTALL=afminstall
13853         COMPILED_X_PROGRAM=0
13854
13855         if test "$wxUSE_NANOX" = "yes"; then
13856             echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
13857 echo "configure:13858: checking for MicroWindows/NanoX distribution" >&5
13858             if test "x$MICROWIN" = x ; then
13859                 echo "$ac_t""not found" 1>&6
13860                 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
13861             else
13862                 echo "$ac_t""$MICROWIN" 1>&6
13863                 cat >> confdefs.h <<\EOF
13864 #define wxUSE_NANOX 1
13865 EOF
13866
13867             fi
13868         fi
13869
13870         xpm_link=
13871         echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13872 echo "configure:13873: checking for Xpm library" >&5
13873         
13874 ac_find_libraries=
13875 for ac_dir in $SEARCH_LIB;
13876   do
13877     for ac_extension in a so sl dylib; do
13878       if test -f "$ac_dir/libXpm.$ac_extension"; then
13879         ac_find_libraries=$ac_dir
13880         break 2
13881       fi
13882     done
13883   done
13884
13885         if test "$ac_find_libraries" != "" ; then
13886             
13887   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13888   result=$?
13889   if test $result = 0; then
13890     ac_path_to_link=""
13891   else
13892     ac_path_to_link=" -L$ac_find_libraries"
13893   fi
13894
13895             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13896             xpm_link=" -lXpm"
13897             cat >> confdefs.h <<\EOF
13898 #define wxHAVE_LIB_XPM 1
13899 EOF
13900
13901             echo "$ac_t""found at $ac_find_libraries" 1>&6
13902         else
13903             cat > conftest.$ac_ext <<EOF
13904 #line 13905 "configure"
13905 #include "confdefs.h"
13906
13907                     #include <X11/xpm.h>
13908                 
13909 int main() {
13910
13911                     int version;
13912                     version = XpmLibraryVersion();
13913                 
13914 ; return 0; }
13915 EOF
13916 if { (eval echo configure:13917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13917   rm -rf conftest*
13918   
13919                     xpm_link=" -lXpm"
13920                     cat >> confdefs.h <<\EOF
13921 #define wxHAVE_LIB_XPM 1
13922 EOF
13923
13924                     echo "$ac_t""found in default search path" 1>&6
13925                     COMPILED_X_PROGRAM=0
13926                 
13927 else
13928   echo "configure: failed program was:" >&5
13929   cat conftest.$ac_ext >&5
13930   rm -rf conftest*
13931   
13932                     echo "$ac_t""no" 1>&6
13933                     echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13934                 
13935             
13936 fi
13937 rm -f conftest*
13938         fi
13939
13940         wxUSE_UNIVERSAL="yes"
13941
13942         if test "$wxUSE_NANOX" = "yes"; then
13943             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
13944             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"
13945             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
13946         else
13947             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
13948         fi
13949
13950         TOOLKIT_VPATH="\${top_srcdir}/src/x11"
13951         TOOLKIT=X11
13952         GUIDIST=X11_DIST
13953     fi
13954
13955     if test "$wxUSE_WINE" = 1; then
13956         ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
13957 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
13958 echo "configure:13959: checking for windows.h" >&5
13959 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13960   echo $ac_n "(cached) $ac_c" 1>&6
13961 else
13962   cat > conftest.$ac_ext <<EOF
13963 #line 13964 "configure"
13964 #include "confdefs.h"
13965 #include <windows.h>
13966 EOF
13967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13968 { (eval echo configure:13969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13970 if test -z "$ac_err"; then
13971   rm -rf conftest*
13972   eval "ac_cv_header_$ac_safe=yes"
13973 else
13974   echo "$ac_err" >&5
13975   echo "configure: failed program was:" >&5
13976   cat conftest.$ac_ext >&5
13977   rm -rf conftest*
13978   eval "ac_cv_header_$ac_safe=no"
13979 fi
13980 rm -f conftest*
13981 fi
13982 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13983   echo "$ac_t""yes" 1>&6
13984   :
13985 else
13986   echo "$ac_t""no" 1>&6
13987
13988             { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
13989         
13990 fi
13991
13992
13993         xpm_link=
13994         echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13995 echo "configure:13996: checking for Xpm library" >&5
13996         
13997 ac_find_libraries=
13998 for ac_dir in $SEARCH_LIB;
13999   do
14000     for ac_extension in a so sl dylib; do
14001       if test -f "$ac_dir/libXpm.$ac_extension"; then
14002         ac_find_libraries=$ac_dir
14003         break 2
14004       fi
14005     done
14006   done
14007
14008         if test "$ac_find_libraries" != "" ; then
14009             GUI_TK_LIBRARY="-L$ac_find_libraries"
14010             xpm_link=" -lXpm"
14011             cat >> confdefs.h <<\EOF
14012 #define wxHAVE_LIB_XPM 1
14013 EOF
14014
14015             echo "$ac_t""found at $ac_find_libraries" 1>&6
14016         else
14017             echo "$ac_t""no" 1>&6
14018             echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14019         fi
14020
14021         mesa_link=
14022         echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
14023 echo "configure:14024: checking for Mesa library" >&5
14024         
14025 ac_find_libraries=
14026 for ac_dir in $SEARCH_LIB;
14027   do
14028     for ac_extension in a so sl dylib; do
14029       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
14030         ac_find_libraries=$ac_dir
14031         break 2
14032       fi
14033     done
14034   done
14035
14036         if test "$ac_find_libraries" != "" ; then
14037             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
14038             mesa_link=" -lMesaGL"
14039             echo "$ac_t""found at $ac_find_libraries" 1>&6
14040         else
14041             mesa_link=""
14042             echo "$ac_t""no" 1>&6
14043             echo "configure: warning: library will be compiled without Mesa support" 1>&2
14044         fi
14045
14046         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
14047         TOOLKIT=MSW
14048         GUIDIST=MSW_DIST
14049         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
14050     fi
14051
14052     if test "$wxUSE_MOTIF" = 1; then
14053                         if test "$no_x" = yes; then
14054   # Not all programs may use this symbol, but it does not hurt to define it.
14055   cat >> confdefs.h <<\EOF
14056 #define X_DISPLAY_MISSING 1
14057 EOF
14058
14059   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14060 else
14061   if test -n "$x_includes"; then
14062     X_CFLAGS="$X_CFLAGS -I$x_includes"
14063   fi
14064
14065   # It would also be nice to do this for all -L options, not just this one.
14066   if test -n "$x_libraries"; then
14067     X_LIBS="$X_LIBS -L$x_libraries"
14068     # For Solaris; some versions of Sun CC require a space after -R and
14069     # others require no space.  Words are not sufficient . . . .
14070     case "`(uname -sr) 2>/dev/null`" in
14071     "SunOS 5"*)
14072       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
14073 echo "configure:14074: checking whether -R must be followed by a space" >&5
14074       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14075       cat > conftest.$ac_ext <<EOF
14076 #line 14077 "configure"
14077 #include "confdefs.h"
14078
14079 int main() {
14080
14081 ; return 0; }
14082 EOF
14083 if { (eval echo configure:14084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14084   rm -rf conftest*
14085   ac_R_nospace=yes
14086 else
14087   echo "configure: failed program was:" >&5
14088   cat conftest.$ac_ext >&5
14089   rm -rf conftest*
14090   ac_R_nospace=no
14091 fi
14092 rm -f conftest*
14093       if test $ac_R_nospace = yes; then
14094         echo "$ac_t""no" 1>&6
14095         X_LIBS="$X_LIBS -R$x_libraries"
14096       else
14097         LIBS="$ac_xsave_LIBS -R $x_libraries"
14098         cat > conftest.$ac_ext <<EOF
14099 #line 14100 "configure"
14100 #include "confdefs.h"
14101
14102 int main() {
14103
14104 ; return 0; }
14105 EOF
14106 if { (eval echo configure:14107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14107   rm -rf conftest*
14108   ac_R_space=yes
14109 else
14110   echo "configure: failed program was:" >&5
14111   cat conftest.$ac_ext >&5
14112   rm -rf conftest*
14113   ac_R_space=no
14114 fi
14115 rm -f conftest*
14116         if test $ac_R_space = yes; then
14117           echo "$ac_t""yes" 1>&6
14118           X_LIBS="$X_LIBS -R $x_libraries"
14119         else
14120           echo "$ac_t""neither works" 1>&6
14121         fi
14122       fi
14123       LIBS="$ac_xsave_LIBS"
14124     esac
14125   fi
14126
14127   # Check for system-dependent libraries X programs must link with.
14128   # Do this before checking for the system-independent R6 libraries
14129   # (-lICE), since we may need -lsocket or whatever for X linking.
14130
14131   if test "$ISC" = yes; then
14132     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14133   else
14134     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14135     # libraries were built with DECnet support.  And karl@cs.umb.edu says
14136     # the Alpha needs dnet_stub (dnet does not exist).
14137     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
14138 echo "configure:14139: checking for dnet_ntoa in -ldnet" >&5
14139 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14141   echo $ac_n "(cached) $ac_c" 1>&6
14142 else
14143   ac_save_LIBS="$LIBS"
14144 LIBS="-ldnet  $LIBS"
14145 cat > conftest.$ac_ext <<EOF
14146 #line 14147 "configure"
14147 #include "confdefs.h"
14148 /* Override any gcc2 internal prototype to avoid an error.  */
14149 /* We use char because int might match the return type of a gcc2
14150     builtin and then its argument prototype would still apply.  */
14151 char dnet_ntoa();
14152
14153 int main() {
14154 dnet_ntoa()
14155 ; return 0; }
14156 EOF
14157 if { (eval echo configure:14158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14158   rm -rf conftest*
14159   eval "ac_cv_lib_$ac_lib_var=yes"
14160 else
14161   echo "configure: failed program was:" >&5
14162   cat conftest.$ac_ext >&5
14163   rm -rf conftest*
14164   eval "ac_cv_lib_$ac_lib_var=no"
14165 fi
14166 rm -f conftest*
14167 LIBS="$ac_save_LIBS"
14168
14169 fi
14170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14171   echo "$ac_t""yes" 1>&6
14172   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14173 else
14174   echo "$ac_t""no" 1>&6
14175 fi
14176
14177     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14178       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
14179 echo "configure:14180: checking for dnet_ntoa in -ldnet_stub" >&5
14180 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14182   echo $ac_n "(cached) $ac_c" 1>&6
14183 else
14184   ac_save_LIBS="$LIBS"
14185 LIBS="-ldnet_stub  $LIBS"
14186 cat > conftest.$ac_ext <<EOF
14187 #line 14188 "configure"
14188 #include "confdefs.h"
14189 /* Override any gcc2 internal prototype to avoid an error.  */
14190 /* We use char because int might match the return type of a gcc2
14191     builtin and then its argument prototype would still apply.  */
14192 char dnet_ntoa();
14193
14194 int main() {
14195 dnet_ntoa()
14196 ; return 0; }
14197 EOF
14198 if { (eval echo configure:14199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14199   rm -rf conftest*
14200   eval "ac_cv_lib_$ac_lib_var=yes"
14201 else
14202   echo "configure: failed program was:" >&5
14203   cat conftest.$ac_ext >&5
14204   rm -rf conftest*
14205   eval "ac_cv_lib_$ac_lib_var=no"
14206 fi
14207 rm -f conftest*
14208 LIBS="$ac_save_LIBS"
14209
14210 fi
14211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14212   echo "$ac_t""yes" 1>&6
14213   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14214 else
14215   echo "$ac_t""no" 1>&6
14216 fi
14217
14218     fi
14219
14220     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14221     # to get the SysV transport functions.
14222     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14223     # needs -lnsl.
14224     # The nsl library prevents programs from opening the X display
14225     # on Irix 5.2, according to dickey@clark.net.
14226     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14227 echo "configure:14228: checking for gethostbyname" >&5
14228 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14229   echo $ac_n "(cached) $ac_c" 1>&6
14230 else
14231   cat > conftest.$ac_ext <<EOF
14232 #line 14233 "configure"
14233 #include "confdefs.h"
14234 /* System header to define __stub macros and hopefully few prototypes,
14235     which can conflict with char gethostbyname(); below.  */
14236 #include <assert.h>
14237 /* Override any gcc2 internal prototype to avoid an error.  */
14238 /* We use char because int might match the return type of a gcc2
14239     builtin and then its argument prototype would still apply.  */
14240 char gethostbyname();
14241
14242 int main() {
14243
14244 /* The GNU C library defines this for functions which it implements
14245     to always fail with ENOSYS.  Some functions are actually named
14246     something starting with __ and the normal name is an alias.  */
14247 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14248 choke me
14249 #else
14250 gethostbyname();
14251 #endif
14252
14253 ; return 0; }
14254 EOF
14255 if { (eval echo configure:14256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14256   rm -rf conftest*
14257   eval "ac_cv_func_gethostbyname=yes"
14258 else
14259   echo "configure: failed program was:" >&5
14260   cat conftest.$ac_ext >&5
14261   rm -rf conftest*
14262   eval "ac_cv_func_gethostbyname=no"
14263 fi
14264 rm -f conftest*
14265 fi
14266
14267 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14268   echo "$ac_t""yes" 1>&6
14269   :
14270 else
14271   echo "$ac_t""no" 1>&6
14272 fi
14273
14274     if test $ac_cv_func_gethostbyname = no; then
14275       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
14276 echo "configure:14277: checking for gethostbyname in -lnsl" >&5
14277 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14278 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14279   echo $ac_n "(cached) $ac_c" 1>&6
14280 else
14281   ac_save_LIBS="$LIBS"
14282 LIBS="-lnsl  $LIBS"
14283 cat > conftest.$ac_ext <<EOF
14284 #line 14285 "configure"
14285 #include "confdefs.h"
14286 /* Override any gcc2 internal prototype to avoid an error.  */
14287 /* We use char because int might match the return type of a gcc2
14288     builtin and then its argument prototype would still apply.  */
14289 char gethostbyname();
14290
14291 int main() {
14292 gethostbyname()
14293 ; return 0; }
14294 EOF
14295 if { (eval echo configure:14296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14296   rm -rf conftest*
14297   eval "ac_cv_lib_$ac_lib_var=yes"
14298 else
14299   echo "configure: failed program was:" >&5
14300   cat conftest.$ac_ext >&5
14301   rm -rf conftest*
14302   eval "ac_cv_lib_$ac_lib_var=no"
14303 fi
14304 rm -f conftest*
14305 LIBS="$ac_save_LIBS"
14306
14307 fi
14308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14309   echo "$ac_t""yes" 1>&6
14310   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14311 else
14312   echo "$ac_t""no" 1>&6
14313 fi
14314
14315     fi
14316
14317     # lieder@skyler.mavd.honeywell.com says without -lsocket,
14318     # socket/setsockopt and other routines are undefined under SCO ODT
14319     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
14320     # on later versions), says simon@lia.di.epfl.ch: it contains
14321     # gethostby* variants that don't use the nameserver (or something).
14322     # -lsocket must be given before -lnsl if both are needed.
14323     # We assume that if connect needs -lnsl, so does gethostbyname.
14324     echo $ac_n "checking for connect""... $ac_c" 1>&6
14325 echo "configure:14326: checking for connect" >&5
14326 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14327   echo $ac_n "(cached) $ac_c" 1>&6
14328 else
14329   cat > conftest.$ac_ext <<EOF
14330 #line 14331 "configure"
14331 #include "confdefs.h"
14332 /* System header to define __stub macros and hopefully few prototypes,
14333     which can conflict with char connect(); below.  */
14334 #include <assert.h>
14335 /* Override any gcc2 internal prototype to avoid an error.  */
14336 /* We use char because int might match the return type of a gcc2
14337     builtin and then its argument prototype would still apply.  */
14338 char connect();
14339
14340 int main() {
14341
14342 /* The GNU C library defines this for functions which it implements
14343     to always fail with ENOSYS.  Some functions are actually named
14344     something starting with __ and the normal name is an alias.  */
14345 #if defined (__stub_connect) || defined (__stub___connect)
14346 choke me
14347 #else
14348 connect();
14349 #endif
14350
14351 ; return 0; }
14352 EOF
14353 if { (eval echo configure:14354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14354   rm -rf conftest*
14355   eval "ac_cv_func_connect=yes"
14356 else
14357   echo "configure: failed program was:" >&5
14358   cat conftest.$ac_ext >&5
14359   rm -rf conftest*
14360   eval "ac_cv_func_connect=no"
14361 fi
14362 rm -f conftest*
14363 fi
14364
14365 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14366   echo "$ac_t""yes" 1>&6
14367   :
14368 else
14369   echo "$ac_t""no" 1>&6
14370 fi
14371
14372     if test $ac_cv_func_connect = no; then
14373       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14374 echo "configure:14375: checking for connect in -lsocket" >&5
14375 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14376 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14377   echo $ac_n "(cached) $ac_c" 1>&6
14378 else
14379   ac_save_LIBS="$LIBS"
14380 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14381 cat > conftest.$ac_ext <<EOF
14382 #line 14383 "configure"
14383 #include "confdefs.h"
14384 /* Override any gcc2 internal prototype to avoid an error.  */
14385 /* We use char because int might match the return type of a gcc2
14386     builtin and then its argument prototype would still apply.  */
14387 char connect();
14388
14389 int main() {
14390 connect()
14391 ; return 0; }
14392 EOF
14393 if { (eval echo configure:14394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14394   rm -rf conftest*
14395   eval "ac_cv_lib_$ac_lib_var=yes"
14396 else
14397   echo "configure: failed program was:" >&5
14398   cat conftest.$ac_ext >&5
14399   rm -rf conftest*
14400   eval "ac_cv_lib_$ac_lib_var=no"
14401 fi
14402 rm -f conftest*
14403 LIBS="$ac_save_LIBS"
14404
14405 fi
14406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14407   echo "$ac_t""yes" 1>&6
14408   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14409 else
14410   echo "$ac_t""no" 1>&6
14411 fi
14412
14413     fi
14414
14415     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14416     echo $ac_n "checking for remove""... $ac_c" 1>&6
14417 echo "configure:14418: checking for remove" >&5
14418 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14419   echo $ac_n "(cached) $ac_c" 1>&6
14420 else
14421   cat > conftest.$ac_ext <<EOF
14422 #line 14423 "configure"
14423 #include "confdefs.h"
14424 /* System header to define __stub macros and hopefully few prototypes,
14425     which can conflict with char remove(); below.  */
14426 #include <assert.h>
14427 /* Override any gcc2 internal prototype to avoid an error.  */
14428 /* We use char because int might match the return type of a gcc2
14429     builtin and then its argument prototype would still apply.  */
14430 char remove();
14431
14432 int main() {
14433
14434 /* The GNU C library defines this for functions which it implements
14435     to always fail with ENOSYS.  Some functions are actually named
14436     something starting with __ and the normal name is an alias.  */
14437 #if defined (__stub_remove) || defined (__stub___remove)
14438 choke me
14439 #else
14440 remove();
14441 #endif
14442
14443 ; return 0; }
14444 EOF
14445 if { (eval echo configure:14446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14446   rm -rf conftest*
14447   eval "ac_cv_func_remove=yes"
14448 else
14449   echo "configure: failed program was:" >&5
14450   cat conftest.$ac_ext >&5
14451   rm -rf conftest*
14452   eval "ac_cv_func_remove=no"
14453 fi
14454 rm -f conftest*
14455 fi
14456
14457 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14458   echo "$ac_t""yes" 1>&6
14459   :
14460 else
14461   echo "$ac_t""no" 1>&6
14462 fi
14463
14464     if test $ac_cv_func_remove = no; then
14465       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14466 echo "configure:14467: checking for remove in -lposix" >&5
14467 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14468 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14469   echo $ac_n "(cached) $ac_c" 1>&6
14470 else
14471   ac_save_LIBS="$LIBS"
14472 LIBS="-lposix  $LIBS"
14473 cat > conftest.$ac_ext <<EOF
14474 #line 14475 "configure"
14475 #include "confdefs.h"
14476 /* Override any gcc2 internal prototype to avoid an error.  */
14477 /* We use char because int might match the return type of a gcc2
14478     builtin and then its argument prototype would still apply.  */
14479 char remove();
14480
14481 int main() {
14482 remove()
14483 ; return 0; }
14484 EOF
14485 if { (eval echo configure:14486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14486   rm -rf conftest*
14487   eval "ac_cv_lib_$ac_lib_var=yes"
14488 else
14489   echo "configure: failed program was:" >&5
14490   cat conftest.$ac_ext >&5
14491   rm -rf conftest*
14492   eval "ac_cv_lib_$ac_lib_var=no"
14493 fi
14494 rm -f conftest*
14495 LIBS="$ac_save_LIBS"
14496
14497 fi
14498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14499   echo "$ac_t""yes" 1>&6
14500   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14501 else
14502   echo "$ac_t""no" 1>&6
14503 fi
14504
14505     fi
14506
14507     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14508     echo $ac_n "checking for shmat""... $ac_c" 1>&6
14509 echo "configure:14510: checking for shmat" >&5
14510 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14511   echo $ac_n "(cached) $ac_c" 1>&6
14512 else
14513   cat > conftest.$ac_ext <<EOF
14514 #line 14515 "configure"
14515 #include "confdefs.h"
14516 /* System header to define __stub macros and hopefully few prototypes,
14517     which can conflict with char shmat(); below.  */
14518 #include <assert.h>
14519 /* Override any gcc2 internal prototype to avoid an error.  */
14520 /* We use char because int might match the return type of a gcc2
14521     builtin and then its argument prototype would still apply.  */
14522 char shmat();
14523
14524 int main() {
14525
14526 /* The GNU C library defines this for functions which it implements
14527     to always fail with ENOSYS.  Some functions are actually named
14528     something starting with __ and the normal name is an alias.  */
14529 #if defined (__stub_shmat) || defined (__stub___shmat)
14530 choke me
14531 #else
14532 shmat();
14533 #endif
14534
14535 ; return 0; }
14536 EOF
14537 if { (eval echo configure:14538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14538   rm -rf conftest*
14539   eval "ac_cv_func_shmat=yes"
14540 else
14541   echo "configure: failed program was:" >&5
14542   cat conftest.$ac_ext >&5
14543   rm -rf conftest*
14544   eval "ac_cv_func_shmat=no"
14545 fi
14546 rm -f conftest*
14547 fi
14548
14549 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14550   echo "$ac_t""yes" 1>&6
14551   :
14552 else
14553   echo "$ac_t""no" 1>&6
14554 fi
14555
14556     if test $ac_cv_func_shmat = no; then
14557       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14558 echo "configure:14559: checking for shmat in -lipc" >&5
14559 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14560 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14561   echo $ac_n "(cached) $ac_c" 1>&6
14562 else
14563   ac_save_LIBS="$LIBS"
14564 LIBS="-lipc  $LIBS"
14565 cat > conftest.$ac_ext <<EOF
14566 #line 14567 "configure"
14567 #include "confdefs.h"
14568 /* Override any gcc2 internal prototype to avoid an error.  */
14569 /* We use char because int might match the return type of a gcc2
14570     builtin and then its argument prototype would still apply.  */
14571 char shmat();
14572
14573 int main() {
14574 shmat()
14575 ; return 0; }
14576 EOF
14577 if { (eval echo configure:14578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14578   rm -rf conftest*
14579   eval "ac_cv_lib_$ac_lib_var=yes"
14580 else
14581   echo "configure: failed program was:" >&5
14582   cat conftest.$ac_ext >&5
14583   rm -rf conftest*
14584   eval "ac_cv_lib_$ac_lib_var=no"
14585 fi
14586 rm -f conftest*
14587 LIBS="$ac_save_LIBS"
14588
14589 fi
14590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14591   echo "$ac_t""yes" 1>&6
14592   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14593 else
14594   echo "$ac_t""no" 1>&6
14595 fi
14596
14597     fi
14598   fi
14599
14600   # Check for libraries that X11R6 Xt/Xaw programs need.
14601   ac_save_LDFLAGS="$LDFLAGS"
14602   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14603   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14604   # check for ICE first), but we must link in the order -lSM -lICE or
14605   # we get undefined symbols.  So assume we have SM if we have ICE.
14606   # These have to be linked with before -lX11, unlike the other
14607   # libraries we check for below, so use a different variable.
14608   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14609   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14610 echo "configure:14611: checking for IceConnectionNumber in -lICE" >&5
14611 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14612 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14613   echo $ac_n "(cached) $ac_c" 1>&6
14614 else
14615   ac_save_LIBS="$LIBS"
14616 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14617 cat > conftest.$ac_ext <<EOF
14618 #line 14619 "configure"
14619 #include "confdefs.h"
14620 /* Override any gcc2 internal prototype to avoid an error.  */
14621 /* We use char because int might match the return type of a gcc2
14622     builtin and then its argument prototype would still apply.  */
14623 char IceConnectionNumber();
14624
14625 int main() {
14626 IceConnectionNumber()
14627 ; return 0; }
14628 EOF
14629 if { (eval echo configure:14630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14630   rm -rf conftest*
14631   eval "ac_cv_lib_$ac_lib_var=yes"
14632 else
14633   echo "configure: failed program was:" >&5
14634   cat conftest.$ac_ext >&5
14635   rm -rf conftest*
14636   eval "ac_cv_lib_$ac_lib_var=no"
14637 fi
14638 rm -f conftest*
14639 LIBS="$ac_save_LIBS"
14640
14641 fi
14642 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14643   echo "$ac_t""yes" 1>&6
14644   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14645 else
14646   echo "$ac_t""no" 1>&6
14647 fi
14648
14649   LDFLAGS="$ac_save_LDFLAGS"
14650
14651 fi
14652
14653
14654         if test "$no_x" = "yes"; then
14655           { echo "configure: error: X11 not found" 1>&2; exit 1; }
14656         fi
14657
14658         GUI_TK_LIBRARY="$X_LIBS"
14659         TOOLKIT_INCLUDE="$X_CFLAGS"
14660         AFMINSTALL=afminstall
14661         COMPILED_X_PROGRAM=0
14662
14663         echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
14664 echo "configure:14665: checking for Motif/Lesstif headers" >&5
14665         
14666 ac_find_includes=
14667 for ac_dir in $SEARCH_INCLUDE;
14668   do
14669     if test -f "$ac_dir/Xm/Xm.h"; then
14670       ac_find_includes=$ac_dir
14671       break
14672     fi
14673   done
14674
14675         if test "$ac_find_includes" != "" ; then
14676             echo "$ac_t""found in $ac_find_includes" 1>&6
14677             
14678   ac_path_to_include=$ac_find_includes
14679   echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
14680   result=$?
14681   if test $result = 0; then
14682     ac_path_to_include=""
14683   else
14684     ac_path_to_include=" -I$ac_find_includes"
14685   fi
14686
14687             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
14688         else
14689             cat > conftest.$ac_ext <<EOF
14690 #line 14691 "configure"
14691 #include "confdefs.h"
14692
14693                     #include <Xm/Xm.h>
14694                 
14695 int main() {
14696
14697                     int version;
14698                     version = xmUseVersion;
14699                 
14700 ; return 0; }
14701 EOF
14702 if { (eval echo configure:14703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14703   rm -rf conftest*
14704   
14705                     echo "$ac_t""found in default search path" 1>&6
14706                     COMPILED_X_PROGRAM=1
14707                 
14708 else
14709   echo "configure: failed program was:" >&5
14710   cat conftest.$ac_ext >&5
14711   rm -rf conftest*
14712   
14713                     echo "$ac_t""no" 1>&6
14714                     { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
14715                 
14716             
14717 fi
14718 rm -f conftest*
14719         fi
14720
14721         if test "$COMPILED_X_PROGRAM" = 0; then
14722             echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
14723 echo "configure:14724: checking for Motif/Lesstif library" >&5
14724             
14725 ac_find_libraries=
14726 for ac_dir in $SEARCH_LIB;
14727   do
14728     for ac_extension in a so sl dylib; do
14729       if test -f "$ac_dir/libXm.$ac_extension"; then
14730         ac_find_libraries=$ac_dir
14731         break 2
14732       fi
14733     done
14734   done
14735
14736             if test "$ac_find_libraries" != "" ; then
14737                 echo "$ac_t""found at $ac_find_libraries" 1>&6
14738
14739                 
14740   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14741   result=$?
14742   if test $result = 0; then
14743     ac_path_to_link=""
14744   else
14745     ac_path_to_link=" -L$ac_find_libraries"
14746   fi
14747
14748                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14749             else
14750                                                                 save_CFLAGS=$CFLAGS
14751                 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
14752
14753                 cat > conftest.$ac_ext <<EOF
14754 #line 14755 "configure"
14755 #include "confdefs.h"
14756
14757                         #include <Xm/Xm.h>
14758                     
14759 int main() {
14760
14761                         int version;
14762                         version = xmUseVersion;
14763                     
14764 ; return 0; }
14765 EOF
14766 if { (eval echo configure:14767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14767   rm -rf conftest*
14768   
14769                         echo "$ac_t""found in default search path" 1>&6
14770                         COMPILED_X_PROGRAM=1
14771                     
14772 else
14773   echo "configure: failed program was:" >&5
14774   cat conftest.$ac_ext >&5
14775   rm -rf conftest*
14776   
14777                         echo "$ac_t""no" 1>&6
14778                         { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
14779                     
14780                 
14781 fi
14782 rm -f conftest*
14783
14784                 CFLAGS=$save_CFLAGS
14785             fi
14786         fi
14787
14788         xpm_link=
14789         echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14790 echo "configure:14791: checking for Xpm library" >&5
14791         
14792 ac_find_libraries=
14793 for ac_dir in $SEARCH_LIB;
14794   do
14795     for ac_extension in a so sl dylib; do
14796       if test -f "$ac_dir/libXpm.$ac_extension"; then
14797         ac_find_libraries=$ac_dir
14798         break 2
14799       fi
14800     done
14801   done
14802
14803         if test "$ac_find_libraries" != "" ; then
14804             
14805   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14806   result=$?
14807   if test $result = 0; then
14808     ac_path_to_link=""
14809   else
14810     ac_path_to_link=" -L$ac_find_libraries"
14811   fi
14812
14813             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14814
14815             xpm_link=" -lXpm"
14816             cat >> confdefs.h <<\EOF
14817 #define wxHAVE_LIB_XPM 1
14818 EOF
14819
14820             echo "$ac_t""found at $ac_find_libraries" 1>&6
14821         else
14822             save_CFLAGS=$CFLAGS
14823             CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
14824
14825             cat > conftest.$ac_ext <<EOF
14826 #line 14827 "configure"
14827 #include "confdefs.h"
14828
14829                     #include <X11/xpm.h>
14830                 
14831 int main() {
14832
14833                     int version;
14834                     version = XpmLibraryVersion();
14835                 
14836 ; return 0; }
14837 EOF
14838 if { (eval echo configure:14839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14839   rm -rf conftest*
14840   
14841                     xpm_link=" -lXpm"
14842                     cat >> confdefs.h <<\EOF
14843 #define wxHAVE_LIB_XPM 1
14844 EOF
14845
14846                     echo "$ac_t""found in default search path" 1>&6
14847                     COMPILED_X_PROGRAM=0
14848                 
14849 else
14850   echo "configure: failed program was:" >&5
14851   cat conftest.$ac_ext >&5
14852   rm -rf conftest*
14853   
14854                     echo "$ac_t""no" 1>&6
14855                     echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14856                 
14857             
14858 fi
14859 rm -f conftest*
14860
14861             CFLAGS=$save_CFLAGS
14862         fi
14863
14864         echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
14865 echo "configure:14866: checking if we need -lXp and/or -lSM -lICE" >&5
14866         libp_link=""
14867         libsm_ice_link=""
14868         libs_found=0
14869         for libp in "" " -lXp"; do
14870             if test "$libs_found" = "0"; then
14871                 for libsm_ice in " -lSM -lICE"; do
14872                     if test "$libs_found" = "0"; then                
14873                         save_LIBS="$LIBS"
14874                         LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
14875                         save_CFLAGS=$CFLAGS
14876                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
14877
14878                         cat > conftest.$ac_ext <<EOF
14879 #line 14880 "configure"
14880 #include "confdefs.h"
14881
14882                                 #include <Xm/Xm.h>
14883                                 #include <Xm/List.h>
14884                             
14885 int main() {
14886
14887                                 XmString string = NULL;
14888                                 Widget w = NULL;
14889                                 int position = 0;
14890                                 XmListAddItem(w, string, position);
14891                             
14892 ; return 0; }
14893 EOF
14894 if { (eval echo configure:14895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14895   rm -rf conftest*
14896   
14897                                 libp_link="$libp"
14898                                 libsm_ice_link="$libsm_ice"
14899                                 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
14900                                 libs_found=1
14901                             
14902 else
14903   echo "configure: failed program was:" >&5
14904   cat conftest.$ac_ext >&5
14905   rm -rf conftest*
14906   
14907                         
14908 fi
14909 rm -f conftest*
14910
14911                         LIBS="$save_LIBS"
14912                         CFLAGS=$save_CFLAGS
14913                     fi
14914                 done
14915             fi
14916         done
14917
14918         if test "$libs_found" = "0"; then
14919             echo "$ac_t""can't find the right libraries" 1>&6
14920             { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
14921         fi
14922
14923         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
14924         TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
14925         TOOLKIT=MOTIF
14926         GUIDIST=MOTIF_DIST
14927     fi
14928
14929     if test "$wxUSE_MAC" = 1; then
14930         if test "$wxUSE_PRECOMP" = "yes"; then
14931             CPPFLAGS="$CPPFLAGS -cpp-precomp"
14932         else
14933             CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
14934         fi
14935         CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
14936         CFLAGS="$CFLAGS -fpascal-strings"
14937         CXXFLAGS="$CXXFLAGS -fpascal-strings"
14938
14939         TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
14940         TOOLKIT=MAC
14941                 GUIDIST=MACX_DIST
14942     fi
14943
14944     if test "$wxUSE_PM" = 1; then
14945         TOOLKIT=PM
14946         GUIDIST=GTK_DIST
14947     fi
14948
14949         if test "$TOOLKIT" = "PM" ; then
14950         TOOLKIT_DIR="os2"
14951     else
14952         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
14953     fi
14954
14955         PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
14956
14957     if test "$wxUSE_UNIVERSAL" = "yes"; then
14958         ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
14959
14960                                 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
14961         ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
14962
14963         PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
14964         if test "$wxUSE_X11" = 1; then
14965             TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
14966         else
14967             TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
14968         fi
14969         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
14970         WIDGET_SET=univ
14971     else
14972         ALL_OBJECTS="\$(GUIOBJS)"
14973         ALL_SOURCES="\$(ALL_SOURCES)"
14974         ALL_HEADERS="\$(ALL_HEADERS)"
14975     fi
14976
14977     ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
14978
14979     if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
14980         ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
14981     fi
14982
14983     if test "$wxUSE_HTML" = "yes"; then
14984         ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
14985     fi
14986
14987     if test "$wxUSE_LIBJPEG" = "builtin" ; then
14988         ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
14989     fi
14990     if test "$wxUSE_LIBTIFF" = "builtin" ; then
14991         ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
14992     fi
14993     if test "$wxUSE_LIBPNG" = "builtin" ; then
14994         ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
14995     fi
14996
14997         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
14998     DISTDIR="wx\$(TOOLKIT)"
14999 else
15000     USE_GUI=0
15001
15002             TOOLKIT_DIR="base"
15003
15004         if test "$USE_WIN32" = 1 ; then
15005         ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15006         TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15007
15008                         TOOLKIT="MSW"
15009     else
15010         ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15011         TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15012     fi
15013
15014     ALL_SOURCES="\$(ALL_SOURCES)"
15015     ALL_HEADERS="\$(ALL_HEADERS)"
15016
15017     PORT_FILES="\${top_srcdir}/src/files.lst"
15018
15019         GUIDIST="BASE_DIST"
15020     DISTDIR="wxBase"
15021 fi
15022
15023
15024 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15025     ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
15026 fi
15027
15028 if test "$wxUSE_REGEX" = "builtin" ; then
15029     ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
15030 fi
15031 if test "$wxUSE_ZLIB" = "builtin" ; then
15032     ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
15033 fi
15034
15035
15036 if test "$wxUSE_OPENGL" = "yes"; then
15037     if test "$wxUSE_MAC" = 1; then
15038         OPENGL_LIBS="-framework OpenGL -framework AGL"
15039     elif test "$wxUSE_MSW" = 1; then
15040         OPENGL_LIBS="-lopengl32 -lglu32"
15041     else
15042         ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15043 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15044 echo "configure:15045: checking for GL/gl.h" >&5
15045 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15046   echo $ac_n "(cached) $ac_c" 1>&6
15047 else
15048   cat > conftest.$ac_ext <<EOF
15049 #line 15050 "configure"
15050 #include "confdefs.h"
15051 #include <GL/gl.h>
15052 EOF
15053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15054 { (eval echo configure:15055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15056 if test -z "$ac_err"; then
15057   rm -rf conftest*
15058   eval "ac_cv_header_$ac_safe=yes"
15059 else
15060   echo "$ac_err" >&5
15061   echo "configure: failed program was:" >&5
15062   cat conftest.$ac_ext >&5
15063   rm -rf conftest*
15064   eval "ac_cv_header_$ac_safe=no"
15065 fi
15066 rm -f conftest*
15067 fi
15068 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15069   echo "$ac_t""yes" 1>&6
15070   
15071                 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
15072 echo "configure:15073: checking for -lGL" >&5
15073                 
15074 ac_find_libraries=
15075 for ac_dir in $SEARCH_LIB;
15076   do
15077     for ac_extension in a so sl dylib; do
15078       if test -f "$ac_dir/libGL.$ac_extension"; then
15079         ac_find_libraries=$ac_dir
15080         break 2
15081       fi
15082     done
15083   done
15084
15085                 if test "$ac_find_libraries" != "" ; then
15086                     
15087   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15088   result=$?
15089   if test $result = 0; then
15090     ac_path_to_link=""
15091   else
15092     ac_path_to_link=" -L$ac_find_libraries"
15093   fi
15094
15095                     if test "$ac_path_to_link" = " -L/usr/lib" ; then
15096                         LDFLAGS_GL="$LDFLAGS"
15097                     else
15098                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15099                     fi
15100                     OPENGL_LIBS="-lGL -lGLU"
15101                     echo "$ac_t""yes" 1>&6
15102                 else
15103                     echo "$ac_t""no" 1>&6
15104                     echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
15105 echo "configure:15106: checking for -lMesaGL" >&5
15106                     
15107 ac_find_libraries=
15108 for ac_dir in $SEARCH_LIB;
15109   do
15110     for ac_extension in a so sl dylib; do
15111       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15112         ac_find_libraries=$ac_dir
15113         break 2
15114       fi
15115     done
15116   done
15117
15118                     if test "$ac_find_libraries" != "" ; then
15119                         
15120   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15121   result=$?
15122   if test $result = 0; then
15123     ac_path_to_link=""
15124   else
15125     ac_path_to_link=" -L$ac_find_libraries"
15126   fi
15127
15128                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15129                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
15130                         echo "$ac_t""yes" 1>&6
15131                     else
15132                         echo "$ac_t""no" 1>&6
15133                     fi
15134                 fi
15135             
15136 else
15137   echo "$ac_t""no" 1>&6
15138 fi
15139
15140
15141         if test "x$OPENGL_LIBS" = "x"; then
15142                                                 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
15143         fi
15144     fi
15145
15146     if test "$wxUSE_OPENGL" = "yes"; then
15147         cat >> confdefs.h <<\EOF
15148 #define wxUSE_OPENGL 1
15149 EOF
15150
15151         cat >> confdefs.h <<\EOF
15152 #define wxUSE_GLCANVAS 1
15153 EOF
15154
15155         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15156     fi
15157 fi
15158
15159 if test -z "$TOOLKIT_VPATH" ; then
15160     TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
15161 fi
15162
15163 if test -n "$TOOLKIT" ; then
15164     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15165 fi
15166
15167 lib_unicode_suffix=
15168 if test "$wxUSE_UNICODE" = "yes"; then
15169     lib_unicode_suffix=u
15170 fi
15171
15172 lib_debug_suffix=
15173 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
15174     lib_debug_suffix=d
15175 fi
15176
15177 TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
15178 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
15179
15180 if test "$cross_compiling" = "yes"; then
15181     TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
15182     TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
15183 fi
15184
15185 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
15186 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
15187
15188 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15189 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15190
15191 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15192 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15193 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15194 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15195
15196 case "${host}" in
15197     *-*-cygwin* | *-*-mingw32* )
15198
15199                         
15200         
15201         if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
15202             WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15203             WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15204             WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15205             WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15206         else
15207             WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15208             WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15209         fi
15210         ;;
15211
15212     *-*-darwin* )
15213                         if test "$wxUSE_MAC" = 1; then
15214                         WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
15215             WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
15216         fi
15217         ;;
15218 esac
15219
15220 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
15221 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
15222
15223 WXCONFIG_LIBS="-l${WX_LIBRARY}"
15224 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
15225
15226 if test "$wxUSE_OPENGL" = "yes"; then
15227     WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
15228     WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
15229 fi
15230
15231
15232
15233 if test "$wxUSE_SHARED" = "yes"; then
15234     case "${host}" in
15235       *-pc-os2_emx | *-pc-os2-emx | \
15236       *-pc-msdosdjgpp )
15237                 wxUSE_SHARED=no
15238         echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
15239       ;;
15240     esac
15241 fi
15242
15243 if test "$wxUSE_SHARED" = "yes"; then
15244
15245         if test "$wxUSE_OPENGL" = "yes"; then
15246         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
15247         WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
15248     else
15249         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
15250         WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
15251     fi
15252
15253         if test "$GCC" = "yes"; then
15254                 PIC_FLAG="-fPIC"
15255     fi
15256
15257         SHARED_LD="${CXX} -shared -o"
15258
15259     case "${host}" in
15260       *-hp-hpux* )
15261                 if test "$GCC" == "yes"; then
15262             SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
15263         else
15264                         LDFLAGS="$LDFLAGS -L/usr/lib"
15265
15266             SHARED_LD="${CXX} -b -o"
15267             PIC_FLAG="+Z"
15268         fi
15269
15270                 if test "$wxUSE_OPENGL" = "yes"; then
15271             WX_ALL_INSTALLED="preinstall_gl"
15272             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15273         else
15274             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15275         fi
15276       ;;
15277
15278       *-*-linux* )
15279         if test "$GCC" != "yes"; then
15280             echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
15281 echo "configure:15282: checking for Intel compiler" >&5
15282 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
15283   echo $ac_n "(cached) $ac_c" 1>&6
15284 else
15285   
15286                 cat > conftest.$ac_ext <<EOF
15287 #line 15288 "configure"
15288 #include "confdefs.h"
15289
15290 int main() {
15291
15292                         #ifndef __INTEL_COMPILER
15293                         #error Not icc
15294                         #endif
15295                     
15296 ; return 0; }
15297 EOF
15298 if { (eval echo configure:15299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15299   rm -rf conftest*
15300   wx_cv_prog_icc=yes
15301 else
15302   echo "configure: failed program was:" >&5
15303   cat conftest.$ac_ext >&5
15304   rm -rf conftest*
15305   wx_cv_prog_icc=no
15306                 
15307 fi
15308 rm -f conftest*
15309             
15310 fi
15311
15312 echo "$ac_t""$wx_cv_prog_icc" 1>&6
15313             if test "$wx_cv_prog_icc" = "yes"; then
15314                 PIC_FLAG="-KPIC"
15315             fi
15316         fi
15317
15318         if test "$wxUSE_SONAME" = "yes" ; then
15319             SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
15320             SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
15321                         WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
15322         fi
15323       ;;
15324
15325       *-*-solaris2* )
15326         if test "$GCC" = yes ; then
15327                                     CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
15328         else
15329             SHARED_LD="${CXX} -G -o"
15330             PIC_FLAG="-KPIC"
15331             SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
15332             SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
15333         fi
15334       ;;
15335
15336       *-*-darwin* )
15337                         CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
15338         CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
15339                                         SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
15340         PIC_FLAG="-dynamic -fPIC"
15341         SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
15342         SONAME_FLAGS_GL=${SONAME_FLAGS}
15343       ;;
15344
15345       *-*-aix* )
15346                         # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
15347 set dummy makeC++SharedLib; ac_word=$2
15348 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15349 echo "configure:15350: checking for $ac_word" >&5
15350 if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
15351   echo $ac_n "(cached) $ac_c" 1>&6
15352 else
15353   if test -n "$AIX_CXX_LD"; then
15354   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
15355 else
15356   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
15357   ac_dummy="$PATH"
15358   for ac_dir in $ac_dummy; do
15359     test -z "$ac_dir" && ac_dir=.
15360     if test -f $ac_dir/$ac_word; then
15361       ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
15362       break
15363     fi
15364   done
15365   IFS="$ac_save_ifs"
15366   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
15367 fi
15368 fi
15369 AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
15370 if test -n "$AIX_CXX_LD"; then
15371   echo "$ac_t""$AIX_CXX_LD" 1>&6
15372 else
15373   echo "$ac_t""no" 1>&6
15374 fi
15375
15376
15377         SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
15378       ;;
15379
15380       *-*-cygwin* | *-*-mingw32* )
15381
15382         WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
15383
15384         SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
15385         TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
15386
15387         PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
15388
15389                 if test "$wxUSE_OPENGL" = "yes"; then
15390             WX_ALL_INSTALLED="preinstall_gl"
15391             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15392         else
15393             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15394         fi
15395       ;;
15396
15397       *-*-beos* )
15398                         SHARED_LD="${LD} -shared -o"
15399       ;;
15400
15401       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
15402       *-*-sunos4* | \
15403       *-*-irix5* | *-*-irix6* | \
15404       *-*-osf* | \
15405       *-*-dgux5* | \
15406       *-*-sysv5* )
15407               ;;
15408
15409       *)
15410         { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
15411     esac
15412
15413         if test "x$WX_TARGET_LIBRARY" = "x"; then
15414         WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
15415         WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
15416     fi
15417
15418         WX_TARGET_LIBRARY_TYPE="so"
15419     INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
15420 fi
15421
15422 if test "$wxUSE_SHARED" = "no"; then
15423
15424         if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
15425                 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15426     fi
15427
15428     if test "$wxUSE_MAC" = 1; then
15429         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15430     fi
15431
15432     if test "$wxUSE_OPENGL" = "yes"; then
15433         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
15434         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
15435     else
15436         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
15437     fi
15438
15439     WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
15440     WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
15441
15442     WX_TARGET_LIBRARY_TYPE="a"
15443     INSTALL_LIBRARY='$(INSTALL_DATA)'
15444 fi
15445
15446 if test "$wxUSE_MAC" = 1; then
15447         LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
15448     WX_ALL="${WX_ALL} ${LIBWXMACRES}"
15449     WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
15450     # Extract the first word of "Rez", so it can be a program name with args.
15451 set dummy Rez; ac_word=$2
15452 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15453 echo "configure:15454: checking for $ac_word" >&5
15454 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
15455   echo $ac_n "(cached) $ac_c" 1>&6
15456 else
15457   if test -n "$RESCOMP"; then
15458   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
15459 else
15460   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
15461   ac_dummy="$PATH"
15462   for ac_dir in $ac_dummy; do
15463     test -z "$ac_dir" && ac_dir=.
15464     if test -f $ac_dir/$ac_word; then
15465       ac_cv_prog_RESCOMP="Rez"
15466       break
15467     fi
15468   done
15469   IFS="$ac_save_ifs"
15470   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
15471 fi
15472 fi
15473 RESCOMP="$ac_cv_prog_RESCOMP"
15474 if test -n "$RESCOMP"; then
15475   echo "$ac_t""$RESCOMP" 1>&6
15476 else
15477   echo "$ac_t""no" 1>&6
15478 fi
15479
15480     # Extract the first word of "DeRez", so it can be a program name with args.
15481 set dummy DeRez; ac_word=$2
15482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15483 echo "configure:15484: checking for $ac_word" >&5
15484 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
15485   echo $ac_n "(cached) $ac_c" 1>&6
15486 else
15487   if test -n "$DEREZ"; then
15488   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
15489 else
15490   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
15491   ac_dummy="$PATH"
15492   for ac_dir in $ac_dummy; do
15493     test -z "$ac_dir" && ac_dir=.
15494     if test -f $ac_dir/$ac_word; then
15495       ac_cv_prog_DEREZ="DeRez"
15496       break
15497     fi
15498   done
15499   IFS="$ac_save_ifs"
15500   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
15501 fi
15502 fi
15503 DEREZ="$ac_cv_prog_DEREZ"
15504 if test -n "$DEREZ"; then
15505   echo "$ac_t""$DEREZ" 1>&6
15506 else
15507   echo "$ac_t""no" 1>&6
15508 fi
15509
15510     MACOSX_BUNDLE="bundle"
15511     if test "$wxUSE_SHARED" = "yes"; then
15512                 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
15513         LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
15514     else
15515                 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
15516         LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
15517     fi
15518 else
15519     if test "$wxUSE_PM" = 1; then
15520         LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
15521     fi
15522 fi
15523
15524
15525 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
15526 echo "configure:15527: checking for ANSI C header files" >&5
15527 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
15528   echo $ac_n "(cached) $ac_c" 1>&6
15529 else
15530   cat > conftest.$ac_ext <<EOF
15531 #line 15532 "configure"
15532 #include "confdefs.h"
15533 #include <stdlib.h>
15534 #include <stdarg.h>
15535 #include <string.h>
15536 #include <float.h>
15537 EOF
15538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15539 { (eval echo configure:15540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15541 if test -z "$ac_err"; then
15542   rm -rf conftest*
15543   ac_cv_header_stdc=yes
15544 else
15545   echo "$ac_err" >&5
15546   echo "configure: failed program was:" >&5
15547   cat conftest.$ac_ext >&5
15548   rm -rf conftest*
15549   ac_cv_header_stdc=no
15550 fi
15551 rm -f conftest*
15552
15553 if test $ac_cv_header_stdc = yes; then
15554   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15555 cat > conftest.$ac_ext <<EOF
15556 #line 15557 "configure"
15557 #include "confdefs.h"
15558 #include <string.h>
15559 EOF
15560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15561   egrep "memchr" >/dev/null 2>&1; then
15562   :
15563 else
15564   rm -rf conftest*
15565   ac_cv_header_stdc=no
15566 fi
15567 rm -f conftest*
15568
15569 fi
15570
15571 if test $ac_cv_header_stdc = yes; then
15572   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15573 cat > conftest.$ac_ext <<EOF
15574 #line 15575 "configure"
15575 #include "confdefs.h"
15576 #include <stdlib.h>
15577 EOF
15578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15579   egrep "free" >/dev/null 2>&1; then
15580   :
15581 else
15582   rm -rf conftest*
15583   ac_cv_header_stdc=no
15584 fi
15585 rm -f conftest*
15586
15587 fi
15588
15589 if test $ac_cv_header_stdc = yes; then
15590   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15591 if test "$cross_compiling" = yes; then
15592   :
15593 else
15594   cat > conftest.$ac_ext <<EOF
15595 #line 15596 "configure"
15596 #include "confdefs.h"
15597 #include <ctype.h>
15598 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15599 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15600 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15601 int main () { int i; for (i = 0; i < 256; i++)
15602 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15603 exit (0); }
15604
15605 EOF
15606 if { (eval echo configure:15607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15607 then
15608   :
15609 else
15610   echo "configure: failed program was:" >&5
15611   cat conftest.$ac_ext >&5
15612   rm -fr conftest*
15613   ac_cv_header_stdc=no
15614 fi
15615 rm -fr conftest*
15616 fi
15617
15618 fi
15619 fi
15620
15621 echo "$ac_t""$ac_cv_header_stdc" 1>&6
15622 if test $ac_cv_header_stdc = yes; then
15623   cat >> confdefs.h <<\EOF
15624 #define STDC_HEADERS 1
15625 EOF
15626
15627 fi
15628
15629 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
15630 echo "configure:15631: checking for mode_t" >&5
15631 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
15632   echo $ac_n "(cached) $ac_c" 1>&6
15633 else
15634   cat > conftest.$ac_ext <<EOF
15635 #line 15636 "configure"
15636 #include "confdefs.h"
15637 #include <sys/types.h>
15638 #if STDC_HEADERS
15639 #include <stdlib.h>
15640 #include <stddef.h>
15641 #endif
15642 EOF
15643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15644   egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15645   rm -rf conftest*
15646   ac_cv_type_mode_t=yes
15647 else
15648   rm -rf conftest*
15649   ac_cv_type_mode_t=no
15650 fi
15651 rm -f conftest*
15652
15653 fi
15654 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
15655 if test $ac_cv_type_mode_t = no; then
15656   cat >> confdefs.h <<\EOF
15657 #define mode_t int
15658 EOF
15659
15660 fi
15661
15662 echo $ac_n "checking for off_t""... $ac_c" 1>&6
15663 echo "configure:15664: checking for off_t" >&5
15664 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
15665   echo $ac_n "(cached) $ac_c" 1>&6
15666 else
15667   cat > conftest.$ac_ext <<EOF
15668 #line 15669 "configure"
15669 #include "confdefs.h"
15670 #include <sys/types.h>
15671 #if STDC_HEADERS
15672 #include <stdlib.h>
15673 #include <stddef.h>
15674 #endif
15675 EOF
15676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15677   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15678   rm -rf conftest*
15679   ac_cv_type_off_t=yes
15680 else
15681   rm -rf conftest*
15682   ac_cv_type_off_t=no
15683 fi
15684 rm -f conftest*
15685
15686 fi
15687 echo "$ac_t""$ac_cv_type_off_t" 1>&6
15688 if test $ac_cv_type_off_t = no; then
15689   cat >> confdefs.h <<\EOF
15690 #define off_t long
15691 EOF
15692
15693 fi
15694
15695 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
15696 echo "configure:15697: checking for pid_t" >&5
15697 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
15698   echo $ac_n "(cached) $ac_c" 1>&6
15699 else
15700   cat > conftest.$ac_ext <<EOF
15701 #line 15702 "configure"
15702 #include "confdefs.h"
15703 #include <sys/types.h>
15704 #if STDC_HEADERS
15705 #include <stdlib.h>
15706 #include <stddef.h>
15707 #endif
15708 EOF
15709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15710   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15711   rm -rf conftest*
15712   ac_cv_type_pid_t=yes
15713 else
15714   rm -rf conftest*
15715   ac_cv_type_pid_t=no
15716 fi
15717 rm -f conftest*
15718
15719 fi
15720 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
15721 if test $ac_cv_type_pid_t = no; then
15722   cat >> confdefs.h <<\EOF
15723 #define pid_t int
15724 EOF
15725
15726 fi
15727
15728 echo $ac_n "checking for size_t""... $ac_c" 1>&6
15729 echo "configure:15730: checking for size_t" >&5
15730 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
15731   echo $ac_n "(cached) $ac_c" 1>&6
15732 else
15733   cat > conftest.$ac_ext <<EOF
15734 #line 15735 "configure"
15735 #include "confdefs.h"
15736 #include <sys/types.h>
15737 #if STDC_HEADERS
15738 #include <stdlib.h>
15739 #include <stddef.h>
15740 #endif
15741 EOF
15742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15743   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15744   rm -rf conftest*
15745   ac_cv_type_size_t=yes
15746 else
15747   rm -rf conftest*
15748   ac_cv_type_size_t=no
15749 fi
15750 rm -f conftest*
15751
15752 fi
15753 echo "$ac_t""$ac_cv_type_size_t" 1>&6
15754 if test $ac_cv_type_size_t = no; then
15755   cat >> confdefs.h <<\EOF
15756 #define size_t unsigned
15757 EOF
15758
15759 fi
15760
15761 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
15762 echo "configure:15763: checking for uid_t in sys/types.h" >&5
15763 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
15764   echo $ac_n "(cached) $ac_c" 1>&6
15765 else
15766   cat > conftest.$ac_ext <<EOF
15767 #line 15768 "configure"
15768 #include "confdefs.h"
15769 #include <sys/types.h>
15770 EOF
15771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15772   egrep "uid_t" >/dev/null 2>&1; then
15773   rm -rf conftest*
15774   ac_cv_type_uid_t=yes
15775 else
15776   rm -rf conftest*
15777   ac_cv_type_uid_t=no
15778 fi
15779 rm -f conftest*
15780
15781 fi
15782
15783 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15784 if test $ac_cv_type_uid_t = no; then
15785   cat >> confdefs.h <<\EOF
15786 #define uid_t int
15787 EOF
15788
15789   cat >> confdefs.h <<\EOF
15790 #define gid_t int
15791 EOF
15792
15793 fi
15794
15795
15796
15797 ac_ext=C
15798 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15799 ac_cpp='$CXXCPP $CPPFLAGS'
15800 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15801 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15802 cross_compiling=$ac_cv_prog_cxx_cross
15803
15804 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
15805 echo "configure:15806: checking if size_t is unsigned int" >&5
15806 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
15807   echo $ac_n "(cached) $ac_c" 1>&6
15808 else
15809                           cat > conftest.$ac_ext <<EOF
15810 #line 15811 "configure"
15811 #include "confdefs.h"
15812 #include <stddef.h>
15813 int main() {
15814
15815             return 0; }
15816
15817             struct Foo { void foo(size_t); void foo(unsigned int); };
15818
15819             int bar() {
15820         
15821 ; return 0; }
15822 EOF
15823 if { (eval echo configure:15824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15824   rm -rf conftest*
15825   wx_cv_size_t_is_uint=no
15826 else
15827   echo "configure: failed program was:" >&5
15828   cat conftest.$ac_ext >&5
15829   rm -rf conftest*
15830   wx_cv_size_t_is_uint=yes
15831     
15832 fi
15833 rm -f conftest*
15834
15835 fi
15836
15837 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
15838
15839 if test "$wx_cv_size_t_is_uint" = "yes"; then
15840     cat >> confdefs.h <<\EOF
15841 #define wxSIZE_T_IS_UINT 1
15842 EOF
15843
15844 else
15845     echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
15846 echo "configure:15847: checking if size_t is unsigned long" >&5
15847 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
15848   echo $ac_n "(cached) $ac_c" 1>&6
15849 else
15850   cat > conftest.$ac_ext <<EOF
15851 #line 15852 "configure"
15852 #include "confdefs.h"
15853 #include <stddef.h>
15854 int main() {
15855
15856                 return 0; }
15857
15858                 struct Foo { void foo(size_t); void foo(unsigned long); };
15859
15860                 int bar() {
15861             
15862 ; return 0; }
15863 EOF
15864 if { (eval echo configure:15865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15865   rm -rf conftest*
15866   wx_cv_size_t_is_ulong=no
15867 else
15868   echo "configure: failed program was:" >&5
15869   cat conftest.$ac_ext >&5
15870   rm -rf conftest*
15871   wx_cv_size_t_is_ulong=yes
15872         
15873 fi
15874 rm -f conftest*
15875     
15876 fi
15877
15878 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
15879
15880     if test "$wx_cv_size_t_is_ulong" = "yes"; then
15881         cat >> confdefs.h <<\EOF
15882 #define wxSIZE_T_IS_ULONG 1
15883 EOF
15884
15885     fi
15886 fi
15887
15888 ac_ext=c
15889 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15890 ac_cpp='$CPP $CPPFLAGS'
15891 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15892 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15893 cross_compiling=$ac_cv_prog_cc_cross
15894
15895
15896
15897 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
15898 echo "configure:15899: checking for pw_gecos in struct passwd" >&5
15899 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
15900   echo $ac_n "(cached) $ac_c" 1>&6
15901 else
15902   
15903         cat > conftest.$ac_ext <<EOF
15904 #line 15905 "configure"
15905 #include "confdefs.h"
15906 #include <pwd.h>
15907 int main() {
15908
15909                 char *p;
15910                 struct passwd *pw;
15911                 p = pw->pw_gecos;
15912              
15913 ; return 0; }
15914 EOF
15915 if { (eval echo configure:15916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15916   rm -rf conftest*
15917   
15918                 wx_cv_struct_pw_gecos=yes
15919              
15920 else
15921   echo "configure: failed program was:" >&5
15922   cat conftest.$ac_ext >&5
15923   rm -rf conftest*
15924   
15925                 wx_cv_struct_pw_gecos=no
15926              
15927         
15928 fi
15929 rm -f conftest*
15930     
15931
15932 fi
15933
15934 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
15935
15936 if test "$wx_cv_struct_pw_gecos" = "yes"; then
15937     cat >> confdefs.h <<\EOF
15938 #define HAVE_PW_GECOS 1
15939 EOF
15940
15941 fi
15942
15943
15944 if test "$wx_cv_sizeof_wchar_t" != "0"; then
15945     cat >> confdefs.h <<\EOF
15946 #define wxUSE_WCHAR_T 1
15947 EOF
15948
15949
15950         WCSLEN_FOUND=0
15951     WCHAR_LINK=
15952     for ac_func in wcslen
15953 do
15954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15955 echo "configure:15956: checking for $ac_func" >&5
15956 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15957   echo $ac_n "(cached) $ac_c" 1>&6
15958 else
15959   cat > conftest.$ac_ext <<EOF
15960 #line 15961 "configure"
15961 #include "confdefs.h"
15962 /* System header to define __stub macros and hopefully few prototypes,
15963     which can conflict with char $ac_func(); below.  */
15964 #include <assert.h>
15965 /* Override any gcc2 internal prototype to avoid an error.  */
15966 /* We use char because int might match the return type of a gcc2
15967     builtin and then its argument prototype would still apply.  */
15968 char $ac_func();
15969
15970 int main() {
15971
15972 /* The GNU C library defines this for functions which it implements
15973     to always fail with ENOSYS.  Some functions are actually named
15974     something starting with __ and the normal name is an alias.  */
15975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15976 choke me
15977 #else
15978 $ac_func();
15979 #endif
15980
15981 ; return 0; }
15982 EOF
15983 if { (eval echo configure:15984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15984   rm -rf conftest*
15985   eval "ac_cv_func_$ac_func=yes"
15986 else
15987   echo "configure: failed program was:" >&5
15988   cat conftest.$ac_ext >&5
15989   rm -rf conftest*
15990   eval "ac_cv_func_$ac_func=no"
15991 fi
15992 rm -f conftest*
15993 fi
15994
15995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15996   echo "$ac_t""yes" 1>&6
15997     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15998   cat >> confdefs.h <<EOF
15999 #define $ac_tr_func 1
16000 EOF
16001  WCSLEN_FOUND=1
16002 else
16003   echo "$ac_t""no" 1>&6
16004 fi
16005 done
16006
16007
16008     if test "$WCSLEN_FOUND" = 0; then
16009         if test "$TOOLKIT" = "MSW"; then
16010             echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
16011 echo "configure:16012: checking for wcslen in -lmsvcrt" >&5
16012 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
16013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16014   echo $ac_n "(cached) $ac_c" 1>&6
16015 else
16016   ac_save_LIBS="$LIBS"
16017 LIBS="-lmsvcrt  $LIBS"
16018 cat > conftest.$ac_ext <<EOF
16019 #line 16020 "configure"
16020 #include "confdefs.h"
16021 /* Override any gcc2 internal prototype to avoid an error.  */
16022 /* We use char because int might match the return type of a gcc2
16023     builtin and then its argument prototype would still apply.  */
16024 char wcslen();
16025
16026 int main() {
16027 wcslen()
16028 ; return 0; }
16029 EOF
16030 if { (eval echo configure:16031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16031   rm -rf conftest*
16032   eval "ac_cv_lib_$ac_lib_var=yes"
16033 else
16034   echo "configure: failed program was:" >&5
16035   cat conftest.$ac_ext >&5
16036   rm -rf conftest*
16037   eval "ac_cv_lib_$ac_lib_var=no"
16038 fi
16039 rm -f conftest*
16040 LIBS="$ac_save_LIBS"
16041
16042 fi
16043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16044   echo "$ac_t""yes" 1>&6
16045   WCHAR_OK=1
16046 else
16047   echo "$ac_t""no" 1>&6
16048 fi
16049
16050         else
16051             echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
16052 echo "configure:16053: checking for wcslen in -lw" >&5
16053 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
16054 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16055   echo $ac_n "(cached) $ac_c" 1>&6
16056 else
16057   ac_save_LIBS="$LIBS"
16058 LIBS="-lw  $LIBS"
16059 cat > conftest.$ac_ext <<EOF
16060 #line 16061 "configure"
16061 #include "confdefs.h"
16062 /* Override any gcc2 internal prototype to avoid an error.  */
16063 /* We use char because int might match the return type of a gcc2
16064     builtin and then its argument prototype would still apply.  */
16065 char wcslen();
16066
16067 int main() {
16068 wcslen()
16069 ; return 0; }
16070 EOF
16071 if { (eval echo configure:16072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16072   rm -rf conftest*
16073   eval "ac_cv_lib_$ac_lib_var=yes"
16074 else
16075   echo "configure: failed program was:" >&5
16076   cat conftest.$ac_ext >&5
16077   rm -rf conftest*
16078   eval "ac_cv_lib_$ac_lib_var=no"
16079 fi
16080 rm -f conftest*
16081 LIBS="$ac_save_LIBS"
16082
16083 fi
16084 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16085   echo "$ac_t""yes" 1>&6
16086   
16087                             WCHAR_LINK=" -lw"
16088                             WCSLEN_FOUND=1
16089                         
16090 else
16091   echo "$ac_t""no" 1>&6
16092 fi
16093
16094         fi
16095     fi
16096
16097     if test "$WCSLEN_FOUND" = 1; then
16098         cat >> confdefs.h <<\EOF
16099 #define HAVE_WCSLEN 1
16100 EOF
16101
16102     fi
16103
16104             for ac_func in wcsrtombs
16105 do
16106 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16107 echo "configure:16108: checking for $ac_func" >&5
16108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16109   echo $ac_n "(cached) $ac_c" 1>&6
16110 else
16111   cat > conftest.$ac_ext <<EOF
16112 #line 16113 "configure"
16113 #include "confdefs.h"
16114 /* System header to define __stub macros and hopefully few prototypes,
16115     which can conflict with char $ac_func(); below.  */
16116 #include <assert.h>
16117 /* Override any gcc2 internal prototype to avoid an error.  */
16118 /* We use char because int might match the return type of a gcc2
16119     builtin and then its argument prototype would still apply.  */
16120 char $ac_func();
16121
16122 int main() {
16123
16124 /* The GNU C library defines this for functions which it implements
16125     to always fail with ENOSYS.  Some functions are actually named
16126     something starting with __ and the normal name is an alias.  */
16127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16128 choke me
16129 #else
16130 $ac_func();
16131 #endif
16132
16133 ; return 0; }
16134 EOF
16135 if { (eval echo configure:16136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16136   rm -rf conftest*
16137   eval "ac_cv_func_$ac_func=yes"
16138 else
16139   echo "configure: failed program was:" >&5
16140   cat conftest.$ac_ext >&5
16141   rm -rf conftest*
16142   eval "ac_cv_func_$ac_func=no"
16143 fi
16144 rm -f conftest*
16145 fi
16146
16147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16148   echo "$ac_t""yes" 1>&6
16149     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16150   cat >> confdefs.h <<EOF
16151 #define $ac_tr_func 1
16152 EOF
16153  
16154 else
16155   echo "$ac_t""no" 1>&6
16156 fi
16157 done
16158
16159 else
16160     echo "configure: warning: Wide character support is unavailable" 1>&2
16161 fi
16162
16163
16164 ac_ext=C
16165 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16166 ac_cpp='$CXXCPP $CPPFLAGS'
16167 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16168 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16169 cross_compiling=$ac_cv_prog_cxx_cross
16170
16171
16172 for ac_func in vsnprintf
16173 do
16174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16175 echo "configure:16176: checking for $ac_func" >&5
16176 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16177   echo $ac_n "(cached) $ac_c" 1>&6
16178 else
16179   cat > conftest.$ac_ext <<EOF
16180 #line 16181 "configure"
16181 #include "confdefs.h"
16182 /* System header to define __stub macros and hopefully few prototypes,
16183     which can conflict with char $ac_func(); below.  */
16184 #include <assert.h>
16185 /* Override any gcc2 internal prototype to avoid an error.  */
16186 #ifdef __cplusplus
16187 extern "C"
16188 #endif
16189 /* We use char because int might match the return type of a gcc2
16190     builtin and then its argument prototype would still apply.  */
16191 char $ac_func();
16192
16193 int main() {
16194
16195 /* The GNU C library defines this for functions which it implements
16196     to always fail with ENOSYS.  Some functions are actually named
16197     something starting with __ and the normal name is an alias.  */
16198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16199 choke me
16200 #else
16201 $ac_func();
16202 #endif
16203
16204 ; return 0; }
16205 EOF
16206 if { (eval echo configure:16207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16207   rm -rf conftest*
16208   eval "ac_cv_func_$ac_func=yes"
16209 else
16210   echo "configure: failed program was:" >&5
16211   cat conftest.$ac_ext >&5
16212   rm -rf conftest*
16213   eval "ac_cv_func_$ac_func=no"
16214 fi
16215 rm -f conftest*
16216 fi
16217
16218 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16219   echo "$ac_t""yes" 1>&6
16220     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16221   cat >> confdefs.h <<EOF
16222 #define $ac_tr_func 1
16223 EOF
16224  
16225 else
16226   echo "$ac_t""no" 1>&6
16227 fi
16228 done
16229
16230
16231 if test "$wxUSE_UNICODE" = yes; then
16232         for ac_func in fputwc wprintf vswprintf
16233 do
16234 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16235 echo "configure:16236: checking for $ac_func" >&5
16236 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16237   echo $ac_n "(cached) $ac_c" 1>&6
16238 else
16239   cat > conftest.$ac_ext <<EOF
16240 #line 16241 "configure"
16241 #include "confdefs.h"
16242 /* System header to define __stub macros and hopefully few prototypes,
16243     which can conflict with char $ac_func(); below.  */
16244 #include <assert.h>
16245 /* Override any gcc2 internal prototype to avoid an error.  */
16246 #ifdef __cplusplus
16247 extern "C"
16248 #endif
16249 /* We use char because int might match the return type of a gcc2
16250     builtin and then its argument prototype would still apply.  */
16251 char $ac_func();
16252
16253 int main() {
16254
16255 /* The GNU C library defines this for functions which it implements
16256     to always fail with ENOSYS.  Some functions are actually named
16257     something starting with __ and the normal name is an alias.  */
16258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16259 choke me
16260 #else
16261 $ac_func();
16262 #endif
16263
16264 ; return 0; }
16265 EOF
16266 if { (eval echo configure:16267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16267   rm -rf conftest*
16268   eval "ac_cv_func_$ac_func=yes"
16269 else
16270   echo "configure: failed program was:" >&5
16271   cat conftest.$ac_ext >&5
16272   rm -rf conftest*
16273   eval "ac_cv_func_$ac_func=no"
16274 fi
16275 rm -f conftest*
16276 fi
16277
16278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16279   echo "$ac_t""yes" 1>&6
16280     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16281   cat >> confdefs.h <<EOF
16282 #define $ac_tr_func 1
16283 EOF
16284  
16285 else
16286   echo "$ac_t""no" 1>&6
16287 fi
16288 done
16289
16290 fi
16291
16292 ac_ext=c
16293 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16294 ac_cpp='$CPP $CPPFLAGS'
16295 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16296 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16297 cross_compiling=$ac_cv_prog_cc_cross
16298
16299
16300
16301
16302 if test "$TOOLKIT" != "MSW"; then
16303
16304
16305
16306 ac_ext=C
16307 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16308 ac_cpp='$CXXCPP $CPPFLAGS'
16309 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16310 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16311 cross_compiling=$ac_cv_prog_cxx_cross
16312
16313
16314     
16315   # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16316 if test "${with_libiconv_prefix+set}" = set; then
16317   withval="$with_libiconv_prefix"
16318   
16319     for dir in `echo "$withval" | tr : ' '`; do
16320       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
16321       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
16322     done
16323    
16324 fi
16325
16326
16327   echo $ac_n "checking for iconv""... $ac_c" 1>&6
16328 echo "configure:16329: checking for iconv" >&5
16329 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
16330   echo $ac_n "(cached) $ac_c" 1>&6
16331 else
16332   
16333     am_cv_func_iconv="no, consider installing GNU libiconv"
16334     am_cv_lib_iconv=no
16335     cat > conftest.$ac_ext <<EOF
16336 #line 16337 "configure"
16337 #include "confdefs.h"
16338 #include <stdlib.h>
16339 #include <iconv.h>
16340 int main() {
16341 iconv_t cd = iconv_open("","");
16342        iconv(cd,NULL,NULL,NULL,NULL);
16343        iconv_close(cd);
16344 ; return 0; }
16345 EOF
16346 if { (eval echo configure:16347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16347   rm -rf conftest*
16348   am_cv_func_iconv=yes
16349 else
16350   echo "configure: failed program was:" >&5
16351   cat conftest.$ac_ext >&5
16352 fi
16353 rm -f conftest*
16354     if test "$am_cv_func_iconv" != yes; then
16355       am_save_LIBS="$LIBS"
16356       LIBS="$LIBS -liconv"
16357       cat > conftest.$ac_ext <<EOF
16358 #line 16359 "configure"
16359 #include "confdefs.h"
16360 #include <stdlib.h>
16361 #include <iconv.h>
16362 int main() {
16363 iconv_t cd = iconv_open("","");
16364          iconv(cd,NULL,NULL,NULL,NULL);
16365          iconv_close(cd);
16366 ; return 0; }
16367 EOF
16368 if { (eval echo configure:16369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16369   rm -rf conftest*
16370   am_cv_lib_iconv=yes
16371         am_cv_func_iconv=yes
16372 else
16373   echo "configure: failed program was:" >&5
16374   cat conftest.$ac_ext >&5
16375 fi
16376 rm -f conftest*
16377       LIBS="$am_save_LIBS"
16378     fi
16379   
16380 fi
16381
16382 echo "$ac_t""$am_cv_func_iconv" 1>&6
16383   if test "$am_cv_func_iconv" = yes; then
16384     cat >> confdefs.h <<\EOF
16385 #define HAVE_ICONV 1
16386 EOF
16387
16388     echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
16389 echo "configure:16390: checking if iconv needs const" >&5
16390 if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
16391   echo $ac_n "(cached) $ac_c" 1>&6
16392 else
16393   cat > conftest.$ac_ext <<EOF
16394 #line 16395 "configure"
16395 #include "confdefs.h"
16396
16397 #include <stdlib.h>
16398 #include <iconv.h>
16399 extern
16400 #ifdef __cplusplus
16401 "C"
16402 #endif
16403 #if defined(__STDC__) || defined(__cplusplus)
16404 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16405 #else
16406 size_t iconv();
16407 #endif
16408         
16409 int main() {
16410
16411 ; return 0; }
16412 EOF
16413 if { (eval echo configure:16414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16414   rm -rf conftest*
16415   wx_cv_func_iconv_const="no"
16416 else
16417   echo "configure: failed program was:" >&5
16418   cat conftest.$ac_ext >&5
16419   rm -rf conftest*
16420   wx_cv_func_iconv_const="yes"
16421       
16422 fi
16423 rm -f conftest*
16424     
16425 fi
16426
16427 echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
16428
16429     iconv_const=
16430     if test "x$wx_cv_func_iconv_const" = "xyes"; then
16431         iconv_const="const"
16432     fi
16433
16434     cat >> confdefs.h <<EOF
16435 #define ICONV_CONST $iconv_const
16436 EOF
16437
16438   fi
16439   LIBICONV=
16440   if test "$am_cv_lib_iconv" = yes; then
16441     LIBICONV="-liconv"
16442   fi
16443   
16444
16445 LIBS="$LIBICONV $LIBS"
16446 ac_ext=c
16447 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16448 ac_cpp='$CPP $CPPFLAGS'
16449 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16450 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16451 cross_compiling=$ac_cv_prog_cc_cross
16452
16453
16454 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
16455     for ac_func in sigaction
16456 do
16457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16458 echo "configure:16459: checking for $ac_func" >&5
16459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16460   echo $ac_n "(cached) $ac_c" 1>&6
16461 else
16462   cat > conftest.$ac_ext <<EOF
16463 #line 16464 "configure"
16464 #include "confdefs.h"
16465 /* System header to define __stub macros and hopefully few prototypes,
16466     which can conflict with char $ac_func(); below.  */
16467 #include <assert.h>
16468 /* Override any gcc2 internal prototype to avoid an error.  */
16469 /* We use char because int might match the return type of a gcc2
16470     builtin and then its argument prototype would still apply.  */
16471 char $ac_func();
16472
16473 int main() {
16474
16475 /* The GNU C library defines this for functions which it implements
16476     to always fail with ENOSYS.  Some functions are actually named
16477     something starting with __ and the normal name is an alias.  */
16478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16479 choke me
16480 #else
16481 $ac_func();
16482 #endif
16483
16484 ; return 0; }
16485 EOF
16486 if { (eval echo configure:16487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16487   rm -rf conftest*
16488   eval "ac_cv_func_$ac_func=yes"
16489 else
16490   echo "configure: failed program was:" >&5
16491   cat conftest.$ac_ext >&5
16492   rm -rf conftest*
16493   eval "ac_cv_func_$ac_func=no"
16494 fi
16495 rm -f conftest*
16496 fi
16497
16498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16499   echo "$ac_t""yes" 1>&6
16500     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16501   cat >> confdefs.h <<EOF
16502 #define $ac_tr_func 1
16503 EOF
16504  
16505 else
16506   echo "$ac_t""no" 1>&6
16507 fi
16508 done
16509
16510
16511     if test "$ac_cv_func_sigaction" = "no"; then
16512         echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
16513         wxUSE_ON_FATAL_EXCEPTION=no
16514     fi
16515
16516     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16517       
16518       ac_ext=C
16519 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16520 ac_cpp='$CXXCPP $CPPFLAGS'
16521 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16522 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16523 cross_compiling=$ac_cv_prog_cxx_cross
16524
16525
16526       echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
16527 echo "configure:16528: checking for sa_handler type" >&5
16528 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
16529   echo $ac_n "(cached) $ac_c" 1>&6
16530 else
16531   
16532         cat > conftest.$ac_ext <<EOF
16533 #line 16534 "configure"
16534 #include "confdefs.h"
16535 #include <signal.h>
16536 int main() {
16537
16538                         extern void testSigHandler(int);
16539
16540                         struct sigaction sa;
16541                         sa.sa_handler = testSigHandler;
16542                      
16543 ; return 0; }
16544 EOF
16545 if { (eval echo configure:16546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16546   rm -rf conftest*
16547   
16548                         wx_cv_type_sa_handler=int
16549                      
16550 else
16551   echo "configure: failed program was:" >&5
16552   cat conftest.$ac_ext >&5
16553   rm -rf conftest*
16554   
16555                         wx_cv_type_sa_handler=void
16556                      
16557 fi
16558 rm -f conftest*
16559       
16560 fi
16561
16562 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
16563
16564       ac_ext=c
16565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16566 ac_cpp='$CPP $CPPFLAGS'
16567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16569 cross_compiling=$ac_cv_prog_cc_cross
16570
16571
16572       cat >> confdefs.h <<EOF
16573 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
16574 EOF
16575
16576     fi
16577 fi
16578
16579 for ac_func in mkstemp mktemp
16580 do
16581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16582 echo "configure:16583: checking for $ac_func" >&5
16583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16584   echo $ac_n "(cached) $ac_c" 1>&6
16585 else
16586   cat > conftest.$ac_ext <<EOF
16587 #line 16588 "configure"
16588 #include "confdefs.h"
16589 /* System header to define __stub macros and hopefully few prototypes,
16590     which can conflict with char $ac_func(); below.  */
16591 #include <assert.h>
16592 /* Override any gcc2 internal prototype to avoid an error.  */
16593 /* We use char because int might match the return type of a gcc2
16594     builtin and then its argument prototype would still apply.  */
16595 char $ac_func();
16596
16597 int main() {
16598
16599 /* The GNU C library defines this for functions which it implements
16600     to always fail with ENOSYS.  Some functions are actually named
16601     something starting with __ and the normal name is an alias.  */
16602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16603 choke me
16604 #else
16605 $ac_func();
16606 #endif
16607
16608 ; return 0; }
16609 EOF
16610 if { (eval echo configure:16611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16611   rm -rf conftest*
16612   eval "ac_cv_func_$ac_func=yes"
16613 else
16614   echo "configure: failed program was:" >&5
16615   cat conftest.$ac_ext >&5
16616   rm -rf conftest*
16617   eval "ac_cv_func_$ac_func=no"
16618 fi
16619 rm -f conftest*
16620 fi
16621
16622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16623   echo "$ac_t""yes" 1>&6
16624     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16625   cat >> confdefs.h <<EOF
16626 #define $ac_tr_func 1
16627 EOF
16628  break
16629 else
16630   echo "$ac_t""no" 1>&6
16631 fi
16632 done
16633
16634
16635 echo $ac_n "checking for statfs""... $ac_c" 1>&6
16636 echo "configure:16637: checking for statfs" >&5
16637 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16638   echo $ac_n "(cached) $ac_c" 1>&6
16639 else
16640   cat > conftest.$ac_ext <<EOF
16641 #line 16642 "configure"
16642 #include "confdefs.h"
16643
16644              #if defined(__BSD__)
16645                #include <sys/param.h>
16646                #include <sys/mount.h>
16647              #else
16648                #include <sys/vfs.h>
16649              #endif
16650         
16651 int main() {
16652
16653              long l;
16654              struct statfs fs;
16655              statfs("/", &fs);
16656              l = fs.f_bsize;
16657              l += fs.f_blocks;
16658              l += fs.f_bavail;
16659         
16660 ; return 0; }
16661 EOF
16662 if { (eval echo configure:16663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16663   rm -rf conftest*
16664   
16665              wx_cv_func_statfs=yes
16666         
16667 else
16668   echo "configure: failed program was:" >&5
16669   cat conftest.$ac_ext >&5
16670   rm -rf conftest*
16671   
16672              wx_cv_func_statfs=no
16673         
16674     
16675 fi
16676 rm -f conftest*
16677
16678 fi
16679
16680 echo "$ac_t""$wx_cv_func_statfs" 1>&6
16681
16682 if test "$wx_cv_func_statfs" = "yes"; then
16683     cat >> confdefs.h <<\EOF
16684 #define HAVE_STATFS 1
16685 EOF
16686
16687 else
16688     echo $ac_n "checking for statvfs""... $ac_c" 1>&6
16689 echo "configure:16690: checking for statvfs" >&5
16690 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
16691   echo $ac_n "(cached) $ac_c" 1>&6
16692 else
16693   cat > conftest.$ac_ext <<EOF
16694 #line 16695 "configure"
16695 #include "confdefs.h"
16696
16697                  #include <sys/statvfs.h>
16698             
16699 int main() {
16700
16701                  long l;
16702                  struct statvfs fs;
16703                  statvfs("/", &fs);
16704                  l = fs.f_bsize;
16705                  l += fs.f_blocks;
16706                  l += fs.f_bavail;
16707             
16708 ; return 0; }
16709 EOF
16710 if { (eval echo configure:16711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16711   rm -rf conftest*
16712   
16713                  wx_cv_func_statvfs=yes
16714             
16715 else
16716   echo "configure: failed program was:" >&5
16717   cat conftest.$ac_ext >&5
16718   rm -rf conftest*
16719   
16720                  wx_cv_func_statvfs=no
16721             
16722         
16723 fi
16724 rm -f conftest*
16725     
16726 fi
16727
16728 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
16729
16730     if test "$wx_cv_func_statvfs" = "yes"; then
16731         cat >> confdefs.h <<\EOF
16732 #define HAVE_STATVFS 1
16733 EOF
16734
16735     else
16736         echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16737     fi
16738 fi
16739
16740 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16741     for ac_func in fcntl flock
16742 do
16743 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16744 echo "configure:16745: checking for $ac_func" >&5
16745 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16746   echo $ac_n "(cached) $ac_c" 1>&6
16747 else
16748   cat > conftest.$ac_ext <<EOF
16749 #line 16750 "configure"
16750 #include "confdefs.h"
16751 /* System header to define __stub macros and hopefully few prototypes,
16752     which can conflict with char $ac_func(); below.  */
16753 #include <assert.h>
16754 /* Override any gcc2 internal prototype to avoid an error.  */
16755 /* We use char because int might match the return type of a gcc2
16756     builtin and then its argument prototype would still apply.  */
16757 char $ac_func();
16758
16759 int main() {
16760
16761 /* The GNU C library defines this for functions which it implements
16762     to always fail with ENOSYS.  Some functions are actually named
16763     something starting with __ and the normal name is an alias.  */
16764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16765 choke me
16766 #else
16767 $ac_func();
16768 #endif
16769
16770 ; return 0; }
16771 EOF
16772 if { (eval echo configure:16773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16773   rm -rf conftest*
16774   eval "ac_cv_func_$ac_func=yes"
16775 else
16776   echo "configure: failed program was:" >&5
16777   cat conftest.$ac_ext >&5
16778   rm -rf conftest*
16779   eval "ac_cv_func_$ac_func=no"
16780 fi
16781 rm -f conftest*
16782 fi
16783
16784 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16785   echo "$ac_t""yes" 1>&6
16786     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16787   cat >> confdefs.h <<EOF
16788 #define $ac_tr_func 1
16789 EOF
16790  break
16791 else
16792   echo "$ac_t""no" 1>&6
16793 fi
16794 done
16795
16796
16797     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16798         echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16799         wxUSE_SNGLINST_CHECKER=no
16800     fi
16801 fi
16802
16803 for ac_func in timegm
16804 do
16805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16806 echo "configure:16807: checking for $ac_func" >&5
16807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16808   echo $ac_n "(cached) $ac_c" 1>&6
16809 else
16810   cat > conftest.$ac_ext <<EOF
16811 #line 16812 "configure"
16812 #include "confdefs.h"
16813 /* System header to define __stub macros and hopefully few prototypes,
16814     which can conflict with char $ac_func(); below.  */
16815 #include <assert.h>
16816 /* Override any gcc2 internal prototype to avoid an error.  */
16817 /* We use char because int might match the return type of a gcc2
16818     builtin and then its argument prototype would still apply.  */
16819 char $ac_func();
16820
16821 int main() {
16822
16823 /* The GNU C library defines this for functions which it implements
16824     to always fail with ENOSYS.  Some functions are actually named
16825     something starting with __ and the normal name is an alias.  */
16826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16827 choke me
16828 #else
16829 $ac_func();
16830 #endif
16831
16832 ; return 0; }
16833 EOF
16834 if { (eval echo configure:16835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16835   rm -rf conftest*
16836   eval "ac_cv_func_$ac_func=yes"
16837 else
16838   echo "configure: failed program was:" >&5
16839   cat conftest.$ac_ext >&5
16840   rm -rf conftest*
16841   eval "ac_cv_func_$ac_func=no"
16842 fi
16843 rm -f conftest*
16844 fi
16845
16846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16847   echo "$ac_t""yes" 1>&6
16848     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16849   cat >> confdefs.h <<EOF
16850 #define $ac_tr_func 1
16851 EOF
16852  
16853 else
16854   echo "$ac_t""no" 1>&6
16855 fi
16856 done
16857
16858
16859 for ac_func in putenv setenv
16860 do
16861 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16862 echo "configure:16863: checking for $ac_func" >&5
16863 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16864   echo $ac_n "(cached) $ac_c" 1>&6
16865 else
16866   cat > conftest.$ac_ext <<EOF
16867 #line 16868 "configure"
16868 #include "confdefs.h"
16869 /* System header to define __stub macros and hopefully few prototypes,
16870     which can conflict with char $ac_func(); below.  */
16871 #include <assert.h>
16872 /* Override any gcc2 internal prototype to avoid an error.  */
16873 /* We use char because int might match the return type of a gcc2
16874     builtin and then its argument prototype would still apply.  */
16875 char $ac_func();
16876
16877 int main() {
16878
16879 /* The GNU C library defines this for functions which it implements
16880     to always fail with ENOSYS.  Some functions are actually named
16881     something starting with __ and the normal name is an alias.  */
16882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16883 choke me
16884 #else
16885 $ac_func();
16886 #endif
16887
16888 ; return 0; }
16889 EOF
16890 if { (eval echo configure:16891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16891   rm -rf conftest*
16892   eval "ac_cv_func_$ac_func=yes"
16893 else
16894   echo "configure: failed program was:" >&5
16895   cat conftest.$ac_ext >&5
16896   rm -rf conftest*
16897   eval "ac_cv_func_$ac_func=no"
16898 fi
16899 rm -f conftest*
16900 fi
16901
16902 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16903   echo "$ac_t""yes" 1>&6
16904     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16905   cat >> confdefs.h <<EOF
16906 #define $ac_tr_func 1
16907 EOF
16908  break
16909 else
16910   echo "$ac_t""no" 1>&6
16911 fi
16912 done
16913
16914
16915 HAVE_SOME_SLEEP_FUNC=0
16916 if test "$USE_BEOS" = 1; then
16917             cat >> confdefs.h <<\EOF
16918 #define HAVE_SLEEP 1
16919 EOF
16920
16921     HAVE_SOME_SLEEP_FUNC=1
16922 fi
16923
16924 if test "$USE_DARWIN" = 1; then
16925             cat >> confdefs.h <<\EOF
16926 #define HAVE_USLEEP 1
16927 EOF
16928
16929     HAVE_SOME_SLEEP_FUNC=1
16930 fi
16931
16932 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16933         POSIX4_LINK=
16934     for ac_func in nanosleep
16935 do
16936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16937 echo "configure:16938: checking for $ac_func" >&5
16938 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16939   echo $ac_n "(cached) $ac_c" 1>&6
16940 else
16941   cat > conftest.$ac_ext <<EOF
16942 #line 16943 "configure"
16943 #include "confdefs.h"
16944 /* System header to define __stub macros and hopefully few prototypes,
16945     which can conflict with char $ac_func(); below.  */
16946 #include <assert.h>
16947 /* Override any gcc2 internal prototype to avoid an error.  */
16948 /* We use char because int might match the return type of a gcc2
16949     builtin and then its argument prototype would still apply.  */
16950 char $ac_func();
16951
16952 int main() {
16953
16954 /* The GNU C library defines this for functions which it implements
16955     to always fail with ENOSYS.  Some functions are actually named
16956     something starting with __ and the normal name is an alias.  */
16957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16958 choke me
16959 #else
16960 $ac_func();
16961 #endif
16962
16963 ; return 0; }
16964 EOF
16965 if { (eval echo configure:16966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16966   rm -rf conftest*
16967   eval "ac_cv_func_$ac_func=yes"
16968 else
16969   echo "configure: failed program was:" >&5
16970   cat conftest.$ac_ext >&5
16971   rm -rf conftest*
16972   eval "ac_cv_func_$ac_func=no"
16973 fi
16974 rm -f conftest*
16975 fi
16976
16977 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16978   echo "$ac_t""yes" 1>&6
16979     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16980   cat >> confdefs.h <<EOF
16981 #define $ac_tr_func 1
16982 EOF
16983  cat >> confdefs.h <<\EOF
16984 #define HAVE_NANOSLEEP 1
16985 EOF
16986
16987 else
16988   echo "$ac_t""no" 1>&6
16989 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
16990 echo "configure:16991: checking for nanosleep in -lposix4" >&5
16991 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
16992 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16993   echo $ac_n "(cached) $ac_c" 1>&6
16994 else
16995   ac_save_LIBS="$LIBS"
16996 LIBS="-lposix4  $LIBS"
16997 cat > conftest.$ac_ext <<EOF
16998 #line 16999 "configure"
16999 #include "confdefs.h"
17000 /* Override any gcc2 internal prototype to avoid an error.  */
17001 /* We use char because int might match the return type of a gcc2
17002     builtin and then its argument prototype would still apply.  */
17003 char nanosleep();
17004
17005 int main() {
17006 nanosleep()
17007 ; return 0; }
17008 EOF
17009 if { (eval echo configure:17010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17010   rm -rf conftest*
17011   eval "ac_cv_lib_$ac_lib_var=yes"
17012 else
17013   echo "configure: failed program was:" >&5
17014   cat conftest.$ac_ext >&5
17015   rm -rf conftest*
17016   eval "ac_cv_lib_$ac_lib_var=no"
17017 fi
17018 rm -f conftest*
17019 LIBS="$ac_save_LIBS"
17020
17021 fi
17022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17023   echo "$ac_t""yes" 1>&6
17024   
17025                     cat >> confdefs.h <<\EOF
17026 #define HAVE_NANOSLEEP 1
17027 EOF
17028
17029                     POSIX4_LINK=" -lposix4"
17030                 
17031 else
17032   echo "$ac_t""no" 1>&6
17033
17034                     for ac_func in usleep
17035 do
17036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17037 echo "configure:17038: checking for $ac_func" >&5
17038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17039   echo $ac_n "(cached) $ac_c" 1>&6
17040 else
17041   cat > conftest.$ac_ext <<EOF
17042 #line 17043 "configure"
17043 #include "confdefs.h"
17044 /* System header to define __stub macros and hopefully few prototypes,
17045     which can conflict with char $ac_func(); below.  */
17046 #include <assert.h>
17047 /* Override any gcc2 internal prototype to avoid an error.  */
17048 /* We use char because int might match the return type of a gcc2
17049     builtin and then its argument prototype would still apply.  */
17050 char $ac_func();
17051
17052 int main() {
17053
17054 /* The GNU C library defines this for functions which it implements
17055     to always fail with ENOSYS.  Some functions are actually named
17056     something starting with __ and the normal name is an alias.  */
17057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17058 choke me
17059 #else
17060 $ac_func();
17061 #endif
17062
17063 ; return 0; }
17064 EOF
17065 if { (eval echo configure:17066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17066   rm -rf conftest*
17067   eval "ac_cv_func_$ac_func=yes"
17068 else
17069   echo "configure: failed program was:" >&5
17070   cat conftest.$ac_ext >&5
17071   rm -rf conftest*
17072   eval "ac_cv_func_$ac_func=no"
17073 fi
17074 rm -f conftest*
17075 fi
17076
17077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17078   echo "$ac_t""yes" 1>&6
17079     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17080   cat >> confdefs.h <<EOF
17081 #define $ac_tr_func 1
17082 EOF
17083  cat >> confdefs.h <<\EOF
17084 #define HAVE_USLEEP 1
17085 EOF
17086
17087 else
17088   echo "$ac_t""no" 1>&6
17089 echo "configure: warning: wxSleep() function will not work" 1>&2
17090                     
17091 fi
17092 done
17093
17094                 
17095             
17096 fi
17097
17098         
17099     
17100 fi
17101 done
17102
17103 fi
17104
17105 for ac_func in uname gethostname
17106 do
17107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17108 echo "configure:17109: checking for $ac_func" >&5
17109 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17110   echo $ac_n "(cached) $ac_c" 1>&6
17111 else
17112   cat > conftest.$ac_ext <<EOF
17113 #line 17114 "configure"
17114 #include "confdefs.h"
17115 /* System header to define __stub macros and hopefully few prototypes,
17116     which can conflict with char $ac_func(); below.  */
17117 #include <assert.h>
17118 /* Override any gcc2 internal prototype to avoid an error.  */
17119 /* We use char because int might match the return type of a gcc2
17120     builtin and then its argument prototype would still apply.  */
17121 char $ac_func();
17122
17123 int main() {
17124
17125 /* The GNU C library defines this for functions which it implements
17126     to always fail with ENOSYS.  Some functions are actually named
17127     something starting with __ and the normal name is an alias.  */
17128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17129 choke me
17130 #else
17131 $ac_func();
17132 #endif
17133
17134 ; return 0; }
17135 EOF
17136 if { (eval echo configure:17137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17137   rm -rf conftest*
17138   eval "ac_cv_func_$ac_func=yes"
17139 else
17140   echo "configure: failed program was:" >&5
17141   cat conftest.$ac_ext >&5
17142   rm -rf conftest*
17143   eval "ac_cv_func_$ac_func=no"
17144 fi
17145 rm -f conftest*
17146 fi
17147
17148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17149   echo "$ac_t""yes" 1>&6
17150     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17151   cat >> confdefs.h <<EOF
17152 #define $ac_tr_func 1
17153 EOF
17154  break
17155 else
17156   echo "$ac_t""no" 1>&6
17157 fi
17158 done
17159
17160
17161
17162 ac_ext=C
17163 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17164 ac_cpp='$CXXCPP $CPPFLAGS'
17165 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17166 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17167 cross_compiling=$ac_cv_prog_cxx_cross
17168
17169
17170 for ac_func in strtok_r
17171 do
17172 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17173 echo "configure:17174: checking for $ac_func" >&5
17174 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17175   echo $ac_n "(cached) $ac_c" 1>&6
17176 else
17177   cat > conftest.$ac_ext <<EOF
17178 #line 17179 "configure"
17179 #include "confdefs.h"
17180 /* System header to define __stub macros and hopefully few prototypes,
17181     which can conflict with char $ac_func(); below.  */
17182 #include <assert.h>
17183 /* Override any gcc2 internal prototype to avoid an error.  */
17184 #ifdef __cplusplus
17185 extern "C"
17186 #endif
17187 /* We use char because int might match the return type of a gcc2
17188     builtin and then its argument prototype would still apply.  */
17189 char $ac_func();
17190
17191 int main() {
17192
17193 /* The GNU C library defines this for functions which it implements
17194     to always fail with ENOSYS.  Some functions are actually named
17195     something starting with __ and the normal name is an alias.  */
17196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17197 choke me
17198 #else
17199 $ac_func();
17200 #endif
17201
17202 ; return 0; }
17203 EOF
17204 if { (eval echo configure:17205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17205   rm -rf conftest*
17206   eval "ac_cv_func_$ac_func=yes"
17207 else
17208   echo "configure: failed program was:" >&5
17209   cat conftest.$ac_ext >&5
17210   rm -rf conftest*
17211   eval "ac_cv_func_$ac_func=no"
17212 fi
17213 rm -f conftest*
17214 fi
17215
17216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17217   echo "$ac_t""yes" 1>&6
17218     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17219   cat >> confdefs.h <<EOF
17220 #define $ac_tr_func 1
17221 EOF
17222  
17223 else
17224   echo "$ac_t""no" 1>&6
17225 fi
17226 done
17227
17228
17229 ac_ext=c
17230 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17231 ac_cpp='$CPP $CPPFLAGS'
17232 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17233 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17234 cross_compiling=$ac_cv_prog_cc_cross
17235
17236
17237 INET_LINK=
17238 for ac_func in inet_addr
17239 do
17240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17241 echo "configure:17242: checking for $ac_func" >&5
17242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17243   echo $ac_n "(cached) $ac_c" 1>&6
17244 else
17245   cat > conftest.$ac_ext <<EOF
17246 #line 17247 "configure"
17247 #include "confdefs.h"
17248 /* System header to define __stub macros and hopefully few prototypes,
17249     which can conflict with char $ac_func(); below.  */
17250 #include <assert.h>
17251 /* Override any gcc2 internal prototype to avoid an error.  */
17252 /* We use char because int might match the return type of a gcc2
17253     builtin and then its argument prototype would still apply.  */
17254 char $ac_func();
17255
17256 int main() {
17257
17258 /* The GNU C library defines this for functions which it implements
17259     to always fail with ENOSYS.  Some functions are actually named
17260     something starting with __ and the normal name is an alias.  */
17261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17262 choke me
17263 #else
17264 $ac_func();
17265 #endif
17266
17267 ; return 0; }
17268 EOF
17269 if { (eval echo configure:17270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17270   rm -rf conftest*
17271   eval "ac_cv_func_$ac_func=yes"
17272 else
17273   echo "configure: failed program was:" >&5
17274   cat conftest.$ac_ext >&5
17275   rm -rf conftest*
17276   eval "ac_cv_func_$ac_func=no"
17277 fi
17278 rm -f conftest*
17279 fi
17280
17281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17282   echo "$ac_t""yes" 1>&6
17283     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17284   cat >> confdefs.h <<EOF
17285 #define $ac_tr_func 1
17286 EOF
17287  cat >> confdefs.h <<\EOF
17288 #define HAVE_INET_ADDR 1
17289 EOF
17290
17291 else
17292   echo "$ac_t""no" 1>&6
17293 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
17294 echo "configure:17295: checking for inet_addr in -lnsl" >&5
17295 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
17296 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17297   echo $ac_n "(cached) $ac_c" 1>&6
17298 else
17299   ac_save_LIBS="$LIBS"
17300 LIBS="-lnsl  $LIBS"
17301 cat > conftest.$ac_ext <<EOF
17302 #line 17303 "configure"
17303 #include "confdefs.h"
17304 /* Override any gcc2 internal prototype to avoid an error.  */
17305 /* We use char because int might match the return type of a gcc2
17306     builtin and then its argument prototype would still apply.  */
17307 char inet_addr();
17308
17309 int main() {
17310 inet_addr()
17311 ; return 0; }
17312 EOF
17313 if { (eval echo configure:17314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17314   rm -rf conftest*
17315   eval "ac_cv_lib_$ac_lib_var=yes"
17316 else
17317   echo "configure: failed program was:" >&5
17318   cat conftest.$ac_ext >&5
17319   rm -rf conftest*
17320   eval "ac_cv_lib_$ac_lib_var=no"
17321 fi
17322 rm -f conftest*
17323 LIBS="$ac_save_LIBS"
17324
17325 fi
17326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17327   echo "$ac_t""yes" 1>&6
17328   INET_LINK="nsl"
17329 else
17330   echo "$ac_t""no" 1>&6
17331 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
17332 echo "configure:17333: checking for inet_addr in -lresolv" >&5
17333 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
17334 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17335   echo $ac_n "(cached) $ac_c" 1>&6
17336 else
17337   ac_save_LIBS="$LIBS"
17338 LIBS="-lresolv  $LIBS"
17339 cat > conftest.$ac_ext <<EOF
17340 #line 17341 "configure"
17341 #include "confdefs.h"
17342 /* Override any gcc2 internal prototype to avoid an error.  */
17343 /* We use char because int might match the return type of a gcc2
17344     builtin and then its argument prototype would still apply.  */
17345 char inet_addr();
17346
17347 int main() {
17348 inet_addr()
17349 ; return 0; }
17350 EOF
17351 if { (eval echo configure:17352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17352   rm -rf conftest*
17353   eval "ac_cv_lib_$ac_lib_var=yes"
17354 else
17355   echo "configure: failed program was:" >&5
17356   cat conftest.$ac_ext >&5
17357   rm -rf conftest*
17358   eval "ac_cv_lib_$ac_lib_var=no"
17359 fi
17360 rm -f conftest*
17361 LIBS="$ac_save_LIBS"
17362
17363 fi
17364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17365   echo "$ac_t""yes" 1>&6
17366   INET_LINK="resolv"
17367 else
17368   echo "$ac_t""no" 1>&6
17369 echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
17370 echo "configure:17371: checking for inet_addr in -lsocket" >&5
17371 ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
17372 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17373   echo $ac_n "(cached) $ac_c" 1>&6
17374 else
17375   ac_save_LIBS="$LIBS"
17376 LIBS="-lsocket  $LIBS"
17377 cat > conftest.$ac_ext <<EOF
17378 #line 17379 "configure"
17379 #include "confdefs.h"
17380 /* Override any gcc2 internal prototype to avoid an error.  */
17381 /* We use char because int might match the return type of a gcc2
17382     builtin and then its argument prototype would still apply.  */
17383 char inet_addr();
17384
17385 int main() {
17386 inet_addr()
17387 ; return 0; }
17388 EOF
17389 if { (eval echo configure:17390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17390   rm -rf conftest*
17391   eval "ac_cv_lib_$ac_lib_var=yes"
17392 else
17393   echo "configure: failed program was:" >&5
17394   cat conftest.$ac_ext >&5
17395   rm -rf conftest*
17396   eval "ac_cv_lib_$ac_lib_var=no"
17397 fi
17398 rm -f conftest*
17399 LIBS="$ac_save_LIBS"
17400
17401 fi
17402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17403   echo "$ac_t""yes" 1>&6
17404   INET_LINK="socket"
17405                 
17406 else
17407   echo "$ac_t""no" 1>&6
17408 fi
17409
17410             
17411 fi
17412
17413         
17414 fi
17415
17416     
17417
17418 fi
17419 done
17420
17421
17422 for ac_func in inet_aton
17423 do
17424 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17425 echo "configure:17426: checking for $ac_func" >&5
17426 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17427   echo $ac_n "(cached) $ac_c" 1>&6
17428 else
17429   cat > conftest.$ac_ext <<EOF
17430 #line 17431 "configure"
17431 #include "confdefs.h"
17432 /* System header to define __stub macros and hopefully few prototypes,
17433     which can conflict with char $ac_func(); below.  */
17434 #include <assert.h>
17435 /* Override any gcc2 internal prototype to avoid an error.  */
17436 /* We use char because int might match the return type of a gcc2
17437     builtin and then its argument prototype would still apply.  */
17438 char $ac_func();
17439
17440 int main() {
17441
17442 /* The GNU C library defines this for functions which it implements
17443     to always fail with ENOSYS.  Some functions are actually named
17444     something starting with __ and the normal name is an alias.  */
17445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17446 choke me
17447 #else
17448 $ac_func();
17449 #endif
17450
17451 ; return 0; }
17452 EOF
17453 if { (eval echo configure:17454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17454   rm -rf conftest*
17455   eval "ac_cv_func_$ac_func=yes"
17456 else
17457   echo "configure: failed program was:" >&5
17458   cat conftest.$ac_ext >&5
17459   rm -rf conftest*
17460   eval "ac_cv_func_$ac_func=no"
17461 fi
17462 rm -f conftest*
17463 fi
17464
17465 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17466   echo "$ac_t""yes" 1>&6
17467     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17468   cat >> confdefs.h <<EOF
17469 #define $ac_tr_func 1
17470 EOF
17471  cat >> confdefs.h <<\EOF
17472 #define HAVE_INET_ATON 1
17473 EOF
17474
17475 else
17476   echo "$ac_t""no" 1>&6
17477             echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
17478 echo "configure:17479: checking for inet_aton in -l$INET_LINK" >&5
17479 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
17480 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17481   echo $ac_n "(cached) $ac_c" 1>&6
17482 else
17483   ac_save_LIBS="$LIBS"
17484 LIBS="-l$INET_LINK  $LIBS"
17485 cat > conftest.$ac_ext <<EOF
17486 #line 17487 "configure"
17487 #include "confdefs.h"
17488 /* Override any gcc2 internal prototype to avoid an error.  */
17489 /* We use char because int might match the return type of a gcc2
17490     builtin and then its argument prototype would still apply.  */
17491 char inet_aton();
17492
17493 int main() {
17494 inet_aton()
17495 ; return 0; }
17496 EOF
17497 if { (eval echo configure:17498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17498   rm -rf conftest*
17499   eval "ac_cv_lib_$ac_lib_var=yes"
17500 else
17501   echo "configure: failed program was:" >&5
17502   cat conftest.$ac_ext >&5
17503   rm -rf conftest*
17504   eval "ac_cv_lib_$ac_lib_var=no"
17505 fi
17506 rm -f conftest*
17507 LIBS="$ac_save_LIBS"
17508
17509 fi
17510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17511   echo "$ac_t""yes" 1>&6
17512   cat >> confdefs.h <<\EOF
17513 #define HAVE_INET_ATON 1
17514 EOF
17515
17516 else
17517   echo "$ac_t""no" 1>&6
17518 fi
17519
17520         
17521 fi
17522 done
17523
17524
17525 if test "x$INET_LINK" != "x"; then
17526     cat >> confdefs.h <<\EOF
17527 #define HAVE_INET_ADDR 1
17528 EOF
17529
17530     INET_LINK=" -l$INET_LINK"
17531 fi
17532
17533 fi
17534
17535
17536 cat > confcache <<\EOF
17537 # This file is a shell script that caches the results of configure
17538 # tests run on this system so they can be shared between configure
17539 # scripts and configure runs.  It is not useful on other systems.
17540 # If it contains results you don't want to keep, you may remove or edit it.
17541 #
17542 # By default, configure uses ./config.cache as the cache file,
17543 # creating it if it does not exist already.  You can give configure
17544 # the --cache-file=FILE option to use a different cache file; that is
17545 # what configure does when it calls configure scripts in
17546 # subdirectories, so they share the cache.
17547 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17548 # config.status only pays attention to the cache file if you give it the
17549 # --recheck option to rerun configure.
17550 #
17551 EOF
17552 # The following way of writing the cache mishandles newlines in values,
17553 # but we know of no workaround that is simple, portable, and efficient.
17554 # So, don't put newlines in cache variables' values.
17555 # Ultrix sh set writes to stderr and can't be redirected directly,
17556 # and sets the high bit in the cache file unless we assign to the vars.
17557 (set) 2>&1 |
17558   case `(ac_space=' '; set | grep ac_space) 2>&1` in
17559   *ac_space=\ *)
17560     # `set' does not quote correctly, so add quotes (double-quote substitution
17561     # turns \\\\ into \\, and sed turns \\ into \).
17562     sed -n \
17563       -e "s/'/'\\\\''/g" \
17564       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17565     ;;
17566   *)
17567     # `set' quotes correctly as required by POSIX, so do not add quotes.
17568     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17569     ;;
17570   esac >> confcache
17571 if cmp -s $cache_file confcache; then
17572   :
17573 else
17574   if test -w $cache_file; then
17575     echo "updating cache $cache_file"
17576     cat confcache > $cache_file
17577   else
17578     echo "not updating unwritable cache $cache_file"
17579   fi
17580 fi
17581 rm -f confcache
17582
17583
17584
17585 CPP_MT_FLAG=
17586 if test "$TOOLKIT" != "MSW"; then
17587
17588                             
17589     THREADS_LINK=
17590     THREADS_CFLAGS=
17591
17592     if test "$wxUSE_THREADS" = "yes" ; then
17593         if test "$wxUSE_WINE" = 1 ; then
17594             echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
17595             wxUSE_THREADS="no"
17596         elif test "$USE_BEOS" = 1; then
17597             echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
17598             wxUSE_THREADS="no"
17599         fi
17600     fi
17601
17602     if test "$wxUSE_THREADS" = "yes" ; then
17603                                                         
17604         
17605                                 THREAD_OPTS="-pthread"
17606         case "${host}" in
17607           *-*-solaris2* | *-*-sunos4* )
17608                 if test "x$GCC" = "xyes"; then
17609                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
17610                 else
17611                     THREAD_OPTS="-mt $THREAD_OPTS"
17612                 fi
17613                 ;;
17614           *-*-freebsd*)
17615                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
17616                 ;;
17617           *-*-darwin* | *-*-cygwin* )
17618                                                 THREAD_OPTS=""
17619                 ;;
17620           *-*-aix*)
17621                                 THREAD_OPTS="pthreads"
17622                 ;;
17623         esac
17624
17625                                 THREAD_OPTS="$THREAD_OPTS pthread none"
17626
17627                 THREADS_OK=no
17628         for flag in $THREAD_OPTS; do
17629             case $flag in
17630                 none)
17631                     echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
17632 echo "configure:17633: checking whether pthreads work without any flags" >&5
17633                     ;;
17634
17635                 -*)
17636                     echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
17637 echo "configure:17638: checking whether pthreads work with $flag" >&5
17638                     THREADS_CFLAGS="$flag"
17639                     ;;
17640
17641                 *)
17642                     echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
17643 echo "configure:17644: checking for the pthreads library -l$flag" >&5
17644                     THREADS_LINK="-l$flag"
17645                     ;;
17646               esac
17647
17648               save_LIBS="$LIBS"
17649               save_CFLAGS="$CFLAGS"
17650               LIBS="$THREADS_LINK $LIBS"
17651               CFLAGS="$THREADS_CFLAGS $CFLAGS"
17652
17653               cat > conftest.$ac_ext <<EOF
17654 #line 17655 "configure"
17655 #include "confdefs.h"
17656 #include <pthread.h>
17657 int main() {
17658 pthread_create(0,0,0,0);
17659 ; return 0; }
17660 EOF
17661 if { (eval echo configure:17662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17662   rm -rf conftest*
17663   THREADS_OK=yes
17664 else
17665   echo "configure: failed program was:" >&5
17666   cat conftest.$ac_ext >&5
17667 fi
17668 rm -f conftest*
17669
17670               LIBS="$save_LIBS"
17671               CFLAGS="$save_CFLAGS"
17672
17673               echo "$ac_t""$THREADS_OK" 1>&6
17674               if test "x$THREADS_OK" = "xyes"; then
17675                       break;
17676               fi
17677
17678               THREADS_LINK=""
17679               THREADS_CFLAGS=""
17680       done
17681
17682       if test "x$THREADS_OK" != "xyes"; then
17683           wxUSE_THREADS=no
17684           echo "configure: warning: No thread support on this system... disabled" 1>&2
17685       else
17686                               LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
17687
17688           echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
17689 echo "configure:17690: checking if more special flags are required for pthreads" >&5
17690           flag=no
17691           case "${host}" in
17692             *-aix* | *-freebsd*)
17693                 flag="-D_THREAD_SAFE"
17694                 ;;
17695             *solaris* | alpha*-osf*)
17696                 flag="-D_REENTRANT"
17697                 ;;
17698           esac
17699           echo "$ac_t""${flag}" 1>&6
17700           if test "x$flag" != xno; then
17701               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
17702           fi
17703
17704           if test "x$THREADS_CFLAGS" != "x"; then
17705                         CFLAGS="$CFLAGS $THREADS_CFLAGS"
17706             CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
17707           fi
17708       fi
17709     fi
17710
17711         if test "$wxUSE_THREADS" = "yes" ; then
17712       for ac_func in thr_setconcurrency
17713 do
17714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17715 echo "configure:17716: checking for $ac_func" >&5
17716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17717   echo $ac_n "(cached) $ac_c" 1>&6
17718 else
17719   cat > conftest.$ac_ext <<EOF
17720 #line 17721 "configure"
17721 #include "confdefs.h"
17722 /* System header to define __stub macros and hopefully few prototypes,
17723     which can conflict with char $ac_func(); below.  */
17724 #include <assert.h>
17725 /* Override any gcc2 internal prototype to avoid an error.  */
17726 /* We use char because int might match the return type of a gcc2
17727     builtin and then its argument prototype would still apply.  */
17728 char $ac_func();
17729
17730 int main() {
17731
17732 /* The GNU C library defines this for functions which it implements
17733     to always fail with ENOSYS.  Some functions are actually named
17734     something starting with __ and the normal name is an alias.  */
17735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17736 choke me
17737 #else
17738 $ac_func();
17739 #endif
17740
17741 ; return 0; }
17742 EOF
17743 if { (eval echo configure:17744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17744   rm -rf conftest*
17745   eval "ac_cv_func_$ac_func=yes"
17746 else
17747   echo "configure: failed program was:" >&5
17748   cat conftest.$ac_ext >&5
17749   rm -rf conftest*
17750   eval "ac_cv_func_$ac_func=no"
17751 fi
17752 rm -f conftest*
17753 fi
17754
17755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17756   echo "$ac_t""yes" 1>&6
17757     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17758   cat >> confdefs.h <<EOF
17759 #define $ac_tr_func 1
17760 EOF
17761  
17762 else
17763   echo "$ac_t""no" 1>&6
17764 fi
17765 done
17766
17767
17768       for ac_hdr in sched.h
17769 do
17770 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17771 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17772 echo "configure:17773: checking for $ac_hdr" >&5
17773 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17774   echo $ac_n "(cached) $ac_c" 1>&6
17775 else
17776   cat > conftest.$ac_ext <<EOF
17777 #line 17778 "configure"
17778 #include "confdefs.h"
17779 #include <$ac_hdr>
17780 EOF
17781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17782 { (eval echo configure:17783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17784 if test -z "$ac_err"; then
17785   rm -rf conftest*
17786   eval "ac_cv_header_$ac_safe=yes"
17787 else
17788   echo "$ac_err" >&5
17789   echo "configure: failed program was:" >&5
17790   cat conftest.$ac_ext >&5
17791   rm -rf conftest*
17792   eval "ac_cv_header_$ac_safe=no"
17793 fi
17794 rm -f conftest*
17795 fi
17796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17797   echo "$ac_t""yes" 1>&6
17798     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17799   cat >> confdefs.h <<EOF
17800 #define $ac_tr_hdr 1
17801 EOF
17802  
17803 else
17804   echo "$ac_t""no" 1>&6
17805 fi
17806 done
17807
17808       if test "$ac_cv_header_sched_h" = "yes"; then
17809           echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
17810 echo "configure:17811: checking for sched_yield" >&5
17811 if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
17812   echo $ac_n "(cached) $ac_c" 1>&6
17813 else
17814   cat > conftest.$ac_ext <<EOF
17815 #line 17816 "configure"
17816 #include "confdefs.h"
17817 /* System header to define __stub macros and hopefully few prototypes,
17818     which can conflict with char sched_yield(); below.  */
17819 #include <assert.h>
17820 /* Override any gcc2 internal prototype to avoid an error.  */
17821 /* We use char because int might match the return type of a gcc2
17822     builtin and then its argument prototype would still apply.  */
17823 char sched_yield();
17824
17825 int main() {
17826
17827 /* The GNU C library defines this for functions which it implements
17828     to always fail with ENOSYS.  Some functions are actually named
17829     something starting with __ and the normal name is an alias.  */
17830 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
17831 choke me
17832 #else
17833 sched_yield();
17834 #endif
17835
17836 ; return 0; }
17837 EOF
17838 if { (eval echo configure:17839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17839   rm -rf conftest*
17840   eval "ac_cv_func_sched_yield=yes"
17841 else
17842   echo "configure: failed program was:" >&5
17843   cat conftest.$ac_ext >&5
17844   rm -rf conftest*
17845   eval "ac_cv_func_sched_yield=no"
17846 fi
17847 rm -f conftest*
17848 fi
17849
17850 if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
17851   echo "$ac_t""yes" 1>&6
17852   cat >> confdefs.h <<\EOF
17853 #define HAVE_SCHED_YIELD 1
17854 EOF
17855
17856 else
17857   echo "$ac_t""no" 1>&6
17858
17859                 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
17860 echo "configure:17861: checking for sched_yield in -lposix4" >&5
17861 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17862 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17863   echo $ac_n "(cached) $ac_c" 1>&6
17864 else
17865   ac_save_LIBS="$LIBS"
17866 LIBS="-lposix4  $LIBS"
17867 cat > conftest.$ac_ext <<EOF
17868 #line 17869 "configure"
17869 #include "confdefs.h"
17870 /* Override any gcc2 internal prototype to avoid an error.  */
17871 /* We use char because int might match the return type of a gcc2
17872     builtin and then its argument prototype would still apply.  */
17873 char sched_yield();
17874
17875 int main() {
17876 sched_yield()
17877 ; return 0; }
17878 EOF
17879 if { (eval echo configure:17880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17880   rm -rf conftest*
17881   eval "ac_cv_lib_$ac_lib_var=yes"
17882 else
17883   echo "configure: failed program was:" >&5
17884   cat conftest.$ac_ext >&5
17885   rm -rf conftest*
17886   eval "ac_cv_lib_$ac_lib_var=no"
17887 fi
17888 rm -f conftest*
17889 LIBS="$ac_save_LIBS"
17890
17891 fi
17892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17893   echo "$ac_t""yes" 1>&6
17894   cat >> confdefs.h <<\EOF
17895 #define HAVE_SCHED_YIELD 1
17896 EOF
17897  POSIX4_LINK=" -lposix4"
17898 else
17899   echo "$ac_t""no" 1>&6
17900 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
17901                 
17902 fi
17903
17904             
17905           
17906 fi
17907
17908       fi
17909
17910                                           HAVE_PRIOR_FUNCS=0
17911       echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
17912 echo "configure:17913: checking for pthread_attr_getschedpolicy" >&5
17913 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
17914   echo $ac_n "(cached) $ac_c" 1>&6
17915 else
17916   cat > conftest.$ac_ext <<EOF
17917 #line 17918 "configure"
17918 #include "confdefs.h"
17919 /* System header to define __stub macros and hopefully few prototypes,
17920     which can conflict with char pthread_attr_getschedpolicy(); below.  */
17921 #include <assert.h>
17922 /* Override any gcc2 internal prototype to avoid an error.  */
17923 /* We use char because int might match the return type of a gcc2
17924     builtin and then its argument prototype would still apply.  */
17925 char pthread_attr_getschedpolicy();
17926
17927 int main() {
17928
17929 /* The GNU C library defines this for functions which it implements
17930     to always fail with ENOSYS.  Some functions are actually named
17931     something starting with __ and the normal name is an alias.  */
17932 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
17933 choke me
17934 #else
17935 pthread_attr_getschedpolicy();
17936 #endif
17937
17938 ; return 0; }
17939 EOF
17940 if { (eval echo configure:17941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17941   rm -rf conftest*
17942   eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
17943 else
17944   echo "configure: failed program was:" >&5
17945   cat conftest.$ac_ext >&5
17946   rm -rf conftest*
17947   eval "ac_cv_func_pthread_attr_getschedpolicy=no"
17948 fi
17949 rm -f conftest*
17950 fi
17951
17952 if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
17953   echo "$ac_t""yes" 1>&6
17954   echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
17955 echo "configure:17956: checking for pthread_attr_setschedparam" >&5
17956 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
17957   echo $ac_n "(cached) $ac_c" 1>&6
17958 else
17959   cat > conftest.$ac_ext <<EOF
17960 #line 17961 "configure"
17961 #include "confdefs.h"
17962 /* System header to define __stub macros and hopefully few prototypes,
17963     which can conflict with char pthread_attr_setschedparam(); below.  */
17964 #include <assert.h>
17965 /* Override any gcc2 internal prototype to avoid an error.  */
17966 /* We use char because int might match the return type of a gcc2
17967     builtin and then its argument prototype would still apply.  */
17968 char pthread_attr_setschedparam();
17969
17970 int main() {
17971
17972 /* The GNU C library defines this for functions which it implements
17973     to always fail with ENOSYS.  Some functions are actually named
17974     something starting with __ and the normal name is an alias.  */
17975 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
17976 choke me
17977 #else
17978 pthread_attr_setschedparam();
17979 #endif
17980
17981 ; return 0; }
17982 EOF
17983 if { (eval echo configure:17984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17984   rm -rf conftest*
17985   eval "ac_cv_func_pthread_attr_setschedparam=yes"
17986 else
17987   echo "configure: failed program was:" >&5
17988   cat conftest.$ac_ext >&5
17989   rm -rf conftest*
17990   eval "ac_cv_func_pthread_attr_setschedparam=no"
17991 fi
17992 rm -f conftest*
17993 fi
17994
17995 if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
17996   echo "$ac_t""yes" 1>&6
17997   echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
17998 echo "configure:17999: checking for sched_get_priority_max" >&5
17999 if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
18000   echo $ac_n "(cached) $ac_c" 1>&6
18001 else
18002   cat > conftest.$ac_ext <<EOF
18003 #line 18004 "configure"
18004 #include "confdefs.h"
18005 /* System header to define __stub macros and hopefully few prototypes
18006 else
18007   echo "$ac_t""no" 1>&6
18008 which can conflict with char sched_get_priority_max(); below.  */
18009 #include <assert.h>
18010 /* Override any gcc2 internal prototype to avoid an error.  */
18011 /* We use char because int might match the return type of a gcc2
18012     builtin and then its argument prototype would still apply.  */
18013 char sched_get_priority_max();
18014
18015 int main() {
18016
18017 /* The GNU C library defines this for functions which it implements
18018     to always fail with ENOSYS.  Some functions are actually named
18019     something starting with __ and the normal name is an alias.  */
18020 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
18021 choke me
18022 #else
18023 sched_get_priority_max();
18024 #endif
18025
18026 ; return 0; }
18027 EOF
18028 if { (eval echo configure:18029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18029   rm -rf conftest*
18030   eval "ac_cv_func_sched_get_priority_max=yes"
18031 else
18032   echo "configure: failed program was:" >&5
18033   cat conftest.$ac_ext >&5
18034   rm -rf conftest*
18035   eval "ac_cv_func_sched_get_priority_max=no"
18036 fi
18037 rm -f conftest*
18038 fi
18039
18040 if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
18041   echo "$ac_t""yes" 1>&6
18042   HAVE_PRIOR_FUNCS=1
18043 else
18044   echo "$ac_t""no" 1>&6
18045 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
18046 echo "configure:18047: checking for sched_get_priority_max in -lposix4" >&5
18047 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
18048 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18049   echo $ac_n "(cached) $ac_c" 1>&6
18050 else
18051   ac_save_LIBS="$LIBS"
18052 LIBS="-lposix4  $LIBS"
18053 cat > conftest.$ac_ext <<EOF
18054 #line 18055 "configure"
18055 #include "confdefs.h"
18056 /* Override any gcc2 internal prototype to avoid an error.  */
18057 /* We use char because int might match the return type of a gcc2
18058     builtin and then its argument prototype would still apply.  */
18059 char sched_get_priority_max();
18060
18061 int main() {
18062 sched_get_priority_max()
18063 ; return 0; }
18064 EOF
18065 if { (eval echo configure:18066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18066   rm -rf conftest*
18067   eval "ac_cv_lib_$ac_lib_var=yes"
18068 else
18069   echo "configure: failed program was:" >&5
18070   cat conftest.$ac_ext >&5
18071   rm -rf conftest*
18072   eval "ac_cv_lib_$ac_lib_var=no"
18073 fi
18074 rm -f conftest*
18075 LIBS="$ac_save_LIBS"
18076
18077 fi
18078 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18079   echo "$ac_t""yes" 1>&6
18080   
18081                                 HAVE_PRIOR_FUNCS=1
18082                                 POSIX4_LINK=" -lposix4"
18083                              
18084 else
18085   echo "$ac_t""no" 1>&6
18086 fi
18087
18088                        
18089 fi
18090
18091                      
18092 else
18093   echo "$ac_t""no" 1>&6
18094 fi
18095
18096                    
18097 fi
18098
18099
18100       if test "$HAVE_PRIOR_FUNCS" = 1; then
18101         cat >> confdefs.h <<\EOF
18102 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
18103 EOF
18104
18105       else
18106         echo "configure: warning: Setting thread priority will not work" 1>&2
18107       fi
18108
18109       echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
18110 echo "configure:18111: checking for pthread_cancel" >&5
18111 if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
18112   echo $ac_n "(cached) $ac_c" 1>&6
18113 else
18114   cat > conftest.$ac_ext <<EOF
18115 #line 18116 "configure"
18116 #include "confdefs.h"
18117 /* System header to define __stub macros and hopefully few prototypes,
18118     which can conflict with char pthread_cancel(); below.  */
18119 #include <assert.h>
18120 /* Override any gcc2 internal prototype to avoid an error.  */
18121 /* We use char because int might match the return type of a gcc2
18122     builtin and then its argument prototype would still apply.  */
18123 char pthread_cancel();
18124
18125 int main() {
18126
18127 /* The GNU C library defines this for functions which it implements
18128     to always fail with ENOSYS.  Some functions are actually named
18129     something starting with __ and the normal name is an alias.  */
18130 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
18131 choke me
18132 #else
18133 pthread_cancel();
18134 #endif
18135
18136 ; return 0; }
18137 EOF
18138 if { (eval echo configure:18139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18139   rm -rf conftest*
18140   eval "ac_cv_func_pthread_cancel=yes"
18141 else
18142   echo "configure: failed program was:" >&5
18143   cat conftest.$ac_ext >&5
18144   rm -rf conftest*
18145   eval "ac_cv_func_pthread_cancel=no"
18146 fi
18147 rm -f conftest*
18148 fi
18149
18150 if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
18151   echo "$ac_t""yes" 1>&6
18152   cat >> confdefs.h <<\EOF
18153 #define HAVE_PTHREAD_CANCEL 1
18154 EOF
18155
18156 else
18157   echo "$ac_t""no" 1>&6
18158 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
18159 fi
18160
18161
18162       echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
18163 echo "configure:18164: checking for pthread_cleanup_push/pop" >&5
18164 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
18165   echo $ac_n "(cached) $ac_c" 1>&6
18166 else
18167   
18168         cat > conftest.$ac_ext <<EOF
18169 #line 18170 "configure"
18170 #include "confdefs.h"
18171 #include <pthread.h>
18172 int main() {
18173
18174                         pthread_cleanup_push(NULL, NULL);
18175                         pthread_cleanup_pop(0);
18176                      
18177 ; return 0; }
18178 EOF
18179 if { (eval echo configure:18180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18180   rm -rf conftest*
18181   
18182                         wx_cv_func_pthread_cleanup_push=yes
18183                      
18184 else
18185   echo "configure: failed program was:" >&5
18186   cat conftest.$ac_ext >&5
18187   rm -rf conftest*
18188   
18189                         wx_cv_func_pthread_cleanup_push=no
18190                      
18191 fi
18192 rm -f conftest*
18193       
18194 fi
18195
18196 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
18197
18198       if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
18199           cat >> confdefs.h <<\EOF
18200 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
18201 EOF
18202
18203       fi
18204
18205                                                 
18206       echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
18207 echo "configure:18208: checking for pthread_mutexattr_t" >&5
18208 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
18209   echo $ac_n "(cached) $ac_c" 1>&6
18210 else
18211   
18212         cat > conftest.$ac_ext <<EOF
18213 #line 18214 "configure"
18214 #include "confdefs.h"
18215 #include <pthread.h>
18216 int main() {
18217
18218                pthread_mutexattr_t attr;
18219                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
18220             
18221 ; return 0; }
18222 EOF
18223 if { (eval echo configure:18224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18224   rm -rf conftest*
18225   
18226                wx_cv_type_pthread_mutexattr_t=yes
18227             
18228 else
18229   echo "configure: failed program was:" >&5
18230   cat conftest.$ac_ext >&5
18231   rm -rf conftest*
18232   
18233                wx_cv_type_pthread_mutexattr_t=no
18234             
18235         
18236 fi
18237 rm -f conftest*
18238       
18239 fi
18240
18241 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
18242
18243       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
18244         cat >> confdefs.h <<\EOF
18245 #define HAVE_PTHREAD_MUTEXATTR_T 1
18246 EOF
18247
18248       else
18249                 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
18250 echo "configure:18251: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
18251 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
18252   echo $ac_n "(cached) $ac_c" 1>&6
18253 else
18254   
18255             cat > conftest.$ac_ext <<EOF
18256 #line 18257 "configure"
18257 #include "confdefs.h"
18258 #include <pthread.h>
18259 int main() {
18260
18261                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
18262                 
18263 ; return 0; }
18264 EOF
18265 if { (eval echo configure:18266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18266   rm -rf conftest*
18267   
18268                     wx_cv_type_pthread_rec_mutex_init=yes
18269                 
18270 else
18271   echo "configure: failed program was:" >&5
18272   cat conftest.$ac_ext >&5
18273   rm -rf conftest*
18274   
18275                     wx_cv_type_pthread_rec_mutex_init=no
18276                 
18277             
18278 fi
18279 rm -f conftest*
18280         
18281 fi
18282
18283 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
18284         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
18285           cat >> confdefs.h <<\EOF
18286 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
18287 EOF
18288
18289         else
18290                     echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
18291         fi
18292       fi
18293     fi
18294
18295 else
18296     if test "$wxUSE_THREADS" = "yes" ; then
18297       case "${host}" in
18298         *-*-mingw32* )
18299         CFLAGS="$CFLAGS -mthreads"
18300         CXXFLAGS="$CXXFLAGS -mthreads"
18301         TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
18302         LDFLAGS="$LDFLAGS -mthreads"
18303         ;;
18304       esac
18305     fi
18306 fi
18307
18308 if test "$wxUSE_THREADS" = "yes"; then
18309   cat >> confdefs.h <<\EOF
18310 #define wxUSE_THREADS 1
18311 EOF
18312
18313
18314   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
18315 else
18316       if test "$ac_cv_func_strtok_r" = "yes"; then
18317     echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
18318 echo "configure:18319: checking if -D_REENTRANT is needed" >&5
18319     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
18320         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
18321         echo "$ac_t""yes" 1>&6
18322     else
18323         echo "$ac_t""no" 1>&6
18324     fi
18325   fi
18326 fi
18327
18328 if test "$WXGTK20" = 1 ; then
18329   cat >> confdefs.h <<EOF
18330 #define __WXGTK20__ $WXGTK20
18331 EOF
18332
18333   WXGTK12=1
18334 fi
18335
18336 if test "$WXGTK12" = 1 ; then
18337   cat >> confdefs.h <<EOF
18338 #define __WXGTK12__ $WXGTK12
18339 EOF
18340
18341 fi
18342
18343 if test "$WXGTK127" = 1 ; then
18344   cat >> confdefs.h <<EOF
18345 #define __WXGTK127__ $WXGTK127
18346 EOF
18347
18348 fi
18349
18350 WXDEBUG=
18351
18352 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
18353     WXDEBUG="-g"
18354     wxUSE_OPTIMISE=no
18355 fi
18356
18357 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
18358     wxUSE_DEBUG_INFO=yes
18359     WXDEBUG="-ggdb"
18360 fi
18361
18362 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
18363     cat >> confdefs.h <<\EOF
18364 #define WXDEBUG 1
18365 EOF
18366
18367     WXDEBUG_DEFINE="-D__WXDEBUG__"
18368 else
18369     if test "$wxUSE_GTK" = 1 ; then
18370         WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
18371     fi
18372 fi
18373
18374 if test "$wxUSE_MEM_TRACING" = "yes" ; then
18375     cat >> confdefs.h <<\EOF
18376 #define wxUSE_MEMORY_TRACING 1
18377 EOF
18378
18379     cat >> confdefs.h <<\EOF
18380 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
18381 EOF
18382
18383     cat >> confdefs.h <<\EOF
18384 #define wxUSE_DEBUG_NEW_ALWAYS 1
18385 EOF
18386
18387     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
18388 fi
18389
18390 if test "$wxUSE_DMALLOC" = "yes" ; then
18391     DMALLOC_LIBS="-ldmalloc"
18392 fi
18393
18394 PROFILE=
18395 if test "$wxUSE_PROFILE" = "yes" ; then
18396     PROFILE=" -pg"
18397 fi
18398
18399 CODE_GEN_FLAGS=
18400 CODE_GEN_FLAGS_CXX=
18401 if test "$GCC" = "yes" ; then
18402     if test "$wxUSE_NO_RTTI" = "yes" ; then
18403         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
18404     fi
18405     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
18406         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
18407     fi
18408     if test "$wxUSE_PERMISSIVE" = "yes" ; then
18409         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
18410     fi
18411     if test "$USE_WIN32" = 1 ; then
18412         # I'm not even really sure what this was ever added to solve,
18413         # but someone added it for mingw native builds, so I guess
18414         # they had a reason, right??
18415         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
18416     fi
18417
18418                             case "${host}" in
18419       powerpc*-*-aix* )
18420         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
18421         ;;
18422     esac
18423 fi
18424
18425 if test "$wxUSE_OPTIMISE" = "no" ; then
18426     OPTIMISE=
18427 else
18428     if test "$GCC" = yes ; then
18429         OPTIMISE="-O2"
18430         case "${host}" in
18431             i586-*-*|i686-*-* )
18432             OPTIMISE="${OPTIMISE} "
18433         ;;
18434         esac
18435     else
18436         OPTIMISE="-O"
18437     fi
18438 fi
18439
18440 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
18441     cat >> confdefs.h <<\EOF
18442 #define WXWIN_COMPATIBILITY_2 1
18443 EOF
18444
18445
18446     WXWIN_COMPATIBILITY_2_2="yes"
18447 fi
18448
18449 if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
18450     cat >> confdefs.h <<\EOF
18451 #define WXWIN_COMPATIBILITY_2_2 1
18452 EOF
18453
18454 fi
18455
18456
18457 if test "$wxUSE_GUI" = "yes"; then
18458   cat >> confdefs.h <<\EOF
18459 #define wxUSE_GUI 1
18460 EOF
18461
18462
18463                       else
18464   cat >> confdefs.h <<\EOF
18465 #define wxUSE_NOGUI 1
18466 EOF
18467
18468 fi
18469
18470
18471 if test "$wxUSE_UNIX" = "yes"; then
18472   cat >> confdefs.h <<\EOF
18473 #define wxUSE_UNIX 1
18474 EOF
18475
18476 fi
18477
18478
18479 if test "$wxUSE_APPLE_IEEE" = "yes"; then
18480   cat >> confdefs.h <<\EOF
18481 #define wxUSE_APPLE_IEEE 1
18482 EOF
18483
18484 fi
18485
18486 if test "$wxUSE_TIMER" = "yes"; then
18487   cat >> confdefs.h <<\EOF
18488 #define wxUSE_TIMER 1
18489 EOF
18490
18491 fi
18492
18493 if test "$wxUSE_WAVE" = "yes"; then
18494   cat >> confdefs.h <<\EOF
18495 #define wxUSE_WAVE 1
18496 EOF
18497
18498 fi
18499
18500 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
18501   cat >> confdefs.h <<\EOF
18502 #define wxUSE_CMDLINE_PARSER 1
18503 EOF
18504
18505 fi
18506
18507 if test "$wxUSE_STOPWATCH" = "yes"; then
18508   cat >> confdefs.h <<\EOF
18509 #define wxUSE_STOPWATCH 1
18510 EOF
18511
18512 fi
18513
18514 if test "$wxUSE_DATETIME" = "yes"; then
18515   cat >> confdefs.h <<\EOF
18516 #define wxUSE_DATETIME 1
18517 EOF
18518
18519 fi
18520
18521 if test "$wxUSE_TIMEDATE" = "yes"; then
18522   cat >> confdefs.h <<\EOF
18523 #define wxUSE_TIMEDATE 1
18524 EOF
18525
18526 fi
18527
18528 if test "$wxUSE_FILE" = "yes"; then
18529   cat >> confdefs.h <<\EOF
18530 #define wxUSE_FILE 1
18531 EOF
18532
18533 fi
18534
18535 if test "$wxUSE_FFILE" = "yes"; then
18536   cat >> confdefs.h <<\EOF
18537 #define wxUSE_FFILE 1
18538 EOF
18539
18540 fi
18541
18542 if test "$wxUSE_FILESYSTEM" = "yes"; then
18543   cat >> confdefs.h <<\EOF
18544 #define wxUSE_FILESYSTEM 1
18545 EOF
18546
18547 fi
18548
18549 if test "$wxUSE_FS_INET" = "yes"; then
18550   cat >> confdefs.h <<\EOF
18551 #define wxUSE_FS_INET 1
18552 EOF
18553
18554 fi
18555
18556 if test "$wxUSE_FS_ZIP" = "yes"; then
18557   cat >> confdefs.h <<\EOF
18558 #define wxUSE_FS_ZIP 1
18559 EOF
18560
18561 fi
18562
18563 if test "$wxUSE_ZIPSTREAM" = "yes"; then
18564   cat >> confdefs.h <<\EOF
18565 #define wxUSE_ZIPSTREAM 1
18566 EOF
18567
18568 fi
18569
18570 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18571   cat >> confdefs.h <<\EOF
18572 #define wxUSE_ON_FATAL_EXCEPTION 1
18573 EOF
18574
18575 fi
18576
18577 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
18578   cat >> confdefs.h <<\EOF
18579 #define wxUSE_SNGLINST_CHECKER 1
18580 EOF
18581
18582 fi
18583
18584 if test "$wxUSE_BUSYINFO" = "yes"; then
18585   cat >> confdefs.h <<\EOF
18586 #define wxUSE_BUSYINFO 1
18587 EOF
18588
18589 fi
18590
18591 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
18592   cat >> confdefs.h <<\EOF
18593 #define wxUSE_STD_IOSTREAM 1
18594 EOF
18595
18596 fi
18597
18598 if test "$wxUSE_TEXTBUFFER" = "yes"; then
18599     cat >> confdefs.h <<\EOF
18600 #define wxUSE_TEXTBUFFER 1
18601 EOF
18602
18603 fi
18604
18605 if test "$wxUSE_TEXTFILE" = "yes"; then
18606   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
18607     echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
18608   else
18609     cat >> confdefs.h <<\EOF
18610 #define wxUSE_TEXTFILE 1
18611 EOF
18612
18613   fi
18614 fi
18615
18616 if test "$wxUSE_CONFIG" = "yes" ; then
18617   if test "$wxUSE_TEXTFILE" != "yes"; then
18618     echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
18619   else
18620     cat >> confdefs.h <<\EOF
18621 #define wxUSE_CONFIG 1
18622 EOF
18623
18624     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18625   fi
18626 fi
18627
18628 if test "$wxUSE_INTL" = "yes" ; then
18629   if test "$wxUSE_FILE" != "yes"; then
18630     echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
18631   else
18632     cat >> confdefs.h <<\EOF
18633 #define wxUSE_INTL 1
18634 EOF
18635
18636     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
18637     GUIDIST="$GUIDIST INTL_DIST"
18638   fi
18639 fi
18640
18641 if test "$wxUSE_LOG" = "yes"; then
18642   cat >> confdefs.h <<\EOF
18643 #define wxUSE_LOG 1
18644 EOF
18645
18646
18647     if test "$wxUSE_LOGGUI" = "yes"; then
18648       cat >> confdefs.h <<\EOF
18649 #define wxUSE_LOGGUI 1
18650 EOF
18651
18652     fi
18653
18654     if test "$wxUSE_LOGWINDOW" = "yes"; then
18655       cat >> confdefs.h <<\EOF
18656 #define wxUSE_LOGWINDOW 1
18657 EOF
18658
18659     fi
18660
18661     if test "$wxUSE_LOGDIALOG" = "yes"; then
18662       cat >> confdefs.h <<\EOF
18663 #define wxUSE_LOG_DIALOG 1
18664 EOF
18665
18666     fi
18667 fi
18668
18669 if test "$wxUSE_LONGLONG" = "yes"; then
18670   cat >> confdefs.h <<\EOF
18671 #define wxUSE_LONGLONG 1
18672 EOF
18673
18674 fi
18675
18676 if test "$wxUSE_GEOMETRY" = "yes"; then
18677   cat >> confdefs.h <<\EOF
18678 #define wxUSE_GEOMETRY 1
18679 EOF
18680
18681 fi
18682
18683 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
18684   cat >> confdefs.h <<\EOF
18685 #define wxUSE_DIALUP_MANAGER 1
18686 EOF
18687
18688   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
18689 fi
18690
18691 if test "$wxUSE_STREAMS" = "yes" ; then
18692   cat >> confdefs.h <<\EOF
18693 #define wxUSE_STREAMS 1
18694 EOF
18695
18696 fi
18697
18698
18699 if test "$wxUSE_DATETIME" = "yes"; then
18700         for ac_func in strptime
18701 do
18702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18703 echo "configure:18704: checking for $ac_func" >&5
18704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18705   echo $ac_n "(cached) $ac_c" 1>&6
18706 else
18707   cat > conftest.$ac_ext <<EOF
18708 #line 18709 "configure"
18709 #include "confdefs.h"
18710 /* System header to define __stub macros and hopefully few prototypes,
18711     which can conflict with char $ac_func(); below.  */
18712 #include <assert.h>
18713 /* Override any gcc2 internal prototype to avoid an error.  */
18714 /* We use char because int might match the return type of a gcc2
18715     builtin and then its argument prototype would still apply.  */
18716 char $ac_func();
18717
18718 int main() {
18719
18720 /* The GNU C library defines this for functions which it implements
18721     to always fail with ENOSYS.  Some functions are actually named
18722     something starting with __ and the normal name is an alias.  */
18723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18724 choke me
18725 #else
18726 $ac_func();
18727 #endif
18728
18729 ; return 0; }
18730 EOF
18731 if { (eval echo configure:18732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18732   rm -rf conftest*
18733   eval "ac_cv_func_$ac_func=yes"
18734 else
18735   echo "configure: failed program was:" >&5
18736   cat conftest.$ac_ext >&5
18737   rm -rf conftest*
18738   eval "ac_cv_func_$ac_func=no"
18739 fi
18740 rm -f conftest*
18741 fi
18742
18743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18744   echo "$ac_t""yes" 1>&6
18745     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18746   cat >> confdefs.h <<EOF
18747 #define $ac_tr_func 1
18748 EOF
18749  
18750 else
18751   echo "$ac_t""no" 1>&6
18752 fi
18753 done
18754
18755
18756             echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
18757 echo "configure:18758: checking for timezone variable in <time.h>" >&5
18758 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18759   echo $ac_n "(cached) $ac_c" 1>&6
18760 else
18761   
18762                         cat > conftest.$ac_ext <<EOF
18763 #line 18764 "configure"
18764 #include "confdefs.h"
18765
18766                                 #include <time.h>
18767                             
18768 int main() {
18769
18770                                 int tz;
18771                                 tz = timezone;
18772                             
18773 ; return 0; }
18774 EOF
18775 if { (eval echo configure:18776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18776   rm -rf conftest*
18777   
18778                                 wx_cv_var_timezone=timezone
18779                             
18780 else
18781   echo "configure: failed program was:" >&5
18782   cat conftest.$ac_ext >&5
18783   rm -rf conftest*
18784   
18785                                 cat > conftest.$ac_ext <<EOF
18786 #line 18787 "configure"
18787 #include "confdefs.h"
18788
18789                                         #include <time.h>
18790                                     
18791 int main() {
18792
18793                                         int tz;
18794                                         tz = _timezone;
18795                                     
18796 ; return 0; }
18797 EOF
18798 if { (eval echo configure:18799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18799   rm -rf conftest*
18800   
18801                                         wx_cv_var_timezone=_timezone
18802                                     
18803 else
18804   echo "configure: failed program was:" >&5
18805   cat conftest.$ac_ext >&5
18806   rm -rf conftest*
18807   
18808                                         cat > conftest.$ac_ext <<EOF
18809 #line 18810 "configure"
18810 #include "confdefs.h"
18811
18812                                                 #include <time.h>
18813                                             
18814 int main() {
18815
18816                                                 int tz;
18817                                                 tz = __timezone;
18818                                             
18819 ; return 0; }
18820 EOF
18821 if { (eval echo configure:18822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18822   rm -rf conftest*
18823   
18824                                                 wx_cv_var_timezone=__timezone
18825                                             
18826 else
18827   echo "configure: failed program was:" >&5
18828   cat conftest.$ac_ext >&5
18829   rm -rf conftest*
18830   
18831                                                 if test "$USE_DOS" = 0 ; then
18832                                                     echo "configure: warning: no timezone variable" 1>&2
18833                                                 fi
18834                                             
18835                                         
18836 fi
18837 rm -f conftest*
18838                                     
18839                                 
18840 fi
18841 rm -f conftest*
18842                             
18843                         
18844 fi
18845 rm -f conftest*
18846                    
18847     
18848 fi
18849
18850 echo "$ac_t""$wx_cv_var_timezone" 1>&6
18851
18852         if test "x$wx_cv_var_timezone" != x ; then
18853         cat >> confdefs.h <<EOF
18854 #define WX_TIMEZONE $wx_cv_var_timezone
18855 EOF
18856
18857     fi
18858
18859         for ac_func in localtime
18860 do
18861 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18862 echo "configure:18863: checking for $ac_func" >&5
18863 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18864   echo $ac_n "(cached) $ac_c" 1>&6
18865 else
18866   cat > conftest.$ac_ext <<EOF
18867 #line 18868 "configure"
18868 #include "confdefs.h"
18869 /* System header to define __stub macros and hopefully few prototypes,
18870     which can conflict with char $ac_func(); below.  */
18871 #include <assert.h>
18872 /* Override any gcc2 internal prototype to avoid an error.  */
18873 /* We use char because int might match the return type of a gcc2
18874     builtin and then its argument prototype would still apply.  */
18875 char $ac_func();
18876
18877 int main() {
18878
18879 /* The GNU C library defines this for functions which it implements
18880     to always fail with ENOSYS.  Some functions are actually named
18881     something starting with __ and the normal name is an alias.  */
18882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18883 choke me
18884 #else
18885 $ac_func();
18886 #endif
18887
18888 ; return 0; }
18889 EOF
18890 if { (eval echo configure:18891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18891   rm -rf conftest*
18892   eval "ac_cv_func_$ac_func=yes"
18893 else
18894   echo "configure: failed program was:" >&5
18895   cat conftest.$ac_ext >&5
18896   rm -rf conftest*
18897   eval "ac_cv_func_$ac_func=no"
18898 fi
18899 rm -f conftest*
18900 fi
18901
18902 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18903   echo "$ac_t""yes" 1>&6
18904     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18905   cat >> confdefs.h <<EOF
18906 #define $ac_tr_func 1
18907 EOF
18908  
18909 else
18910   echo "$ac_t""no" 1>&6
18911 fi
18912 done
18913
18914
18915     if test "$ac_cv_func_localtime" = "yes"; then
18916         echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
18917 echo "configure:18918: checking for tm_gmtoff in struct tm" >&5
18918 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18919   echo $ac_n "(cached) $ac_c" 1>&6
18920 else
18921   
18922             cat > conftest.$ac_ext <<EOF
18923 #line 18924 "configure"
18924 #include "confdefs.h"
18925
18926                     #include <time.h>
18927                 
18928 int main() {
18929
18930                     struct tm tm;
18931                     tm.tm_gmtoff++;
18932                 
18933 ; return 0; }
18934 EOF
18935 if { (eval echo configure:18936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18936   rm -rf conftest*
18937   
18938                     wx_cv_struct_tm_has_gmtoff=yes
18939                 
18940 else
18941   echo "configure: failed program was:" >&5
18942   cat conftest.$ac_ext >&5
18943   rm -rf conftest*
18944   wx_cv_struct_tm_has_gmtoff=no
18945             
18946 fi
18947 rm -f conftest*
18948         
18949 fi
18950
18951 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
18952     fi
18953
18954     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
18955         cat >> confdefs.h <<\EOF
18956 #define WX_GMTOFF_IN_TM 1
18957 EOF
18958
18959     fi
18960
18961             for ac_func in gettimeofday ftime
18962 do
18963 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18964 echo "configure:18965: checking for $ac_func" >&5
18965 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18966   echo $ac_n "(cached) $ac_c" 1>&6
18967 else
18968   cat > conftest.$ac_ext <<EOF
18969 #line 18970 "configure"
18970 #include "confdefs.h"
18971 /* System header to define __stub macros and hopefully few prototypes,
18972     which can conflict with char $ac_func(); below.  */
18973 #include <assert.h>
18974 /* Override any gcc2 internal prototype to avoid an error.  */
18975 /* We use char because int might match the return type of a gcc2
18976     builtin and then its argument prototype would still apply.  */
18977 char $ac_func();
18978
18979 int main() {
18980
18981 /* The GNU C library defines this for functions which it implements
18982     to always fail with ENOSYS.  Some functions are actually named
18983     something starting with __ and the normal name is an alias.  */
18984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18985 choke me
18986 #else
18987 $ac_func();
18988 #endif
18989
18990 ; return 0; }
18991 EOF
18992 if { (eval echo configure:18993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18993   rm -rf conftest*
18994   eval "ac_cv_func_$ac_func=yes"
18995 else
18996   echo "configure: failed program was:" >&5
18997   cat conftest.$ac_ext >&5
18998   rm -rf conftest*
18999   eval "ac_cv_func_$ac_func=no"
19000 fi
19001 rm -f conftest*
19002 fi
19003
19004 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19005   echo "$ac_t""yes" 1>&6
19006     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19007   cat >> confdefs.h <<EOF
19008 #define $ac_tr_func 1
19009 EOF
19010  break
19011 else
19012   echo "$ac_t""no" 1>&6
19013 fi
19014 done
19015
19016
19017     if test "$ac_cv_func_gettimeofday" = "yes"; then
19018         echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
19019 echo "configure:19020: checking whether gettimeofday takes two arguments" >&5
19020 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
19021   echo $ac_n "(cached) $ac_c" 1>&6
19022 else
19023   
19024                         
19025             ac_ext=C
19026 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19027 ac_cpp='$CXXCPP $CPPFLAGS'
19028 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19029 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19030 cross_compiling=$ac_cv_prog_cxx_cross
19031
19032
19033             cat > conftest.$ac_ext <<EOF
19034 #line 19035 "configure"
19035 #include "confdefs.h"
19036
19037                     #include <sys/time.h>
19038                     #include <unistd.h>
19039                 
19040 int main() {
19041
19042                     struct timeval tv;
19043                     gettimeofday(&tv, NULL);
19044                 
19045 ; return 0; }
19046 EOF
19047 if { (eval echo configure:19048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19048   rm -rf conftest*
19049   wx_cv_func_gettimeofday_has_2_args=yes
19050 else
19051   echo "configure: failed program was:" >&5
19052   cat conftest.$ac_ext >&5
19053   rm -rf conftest*
19054   cat > conftest.$ac_ext <<EOF
19055 #line 19056 "configure"
19056 #include "confdefs.h"
19057
19058                         #include <sys/time.h>
19059                         #include <unistd.h>
19060                     
19061 int main() {
19062
19063                         struct timeval tv;
19064                         gettimeofday(&tv);
19065                     
19066 ; return 0; }
19067 EOF
19068 if { (eval echo configure:19069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19069   rm -rf conftest*
19070   wx_cv_func_gettimeofday_has_2_args=no
19071 else
19072   echo "configure: failed program was:" >&5
19073   cat conftest.$ac_ext >&5
19074   rm -rf conftest*
19075   
19076                         echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
19077                         wx_cv_func_gettimeofday_has_2_args=unknown
19078                     
19079                 
19080 fi
19081 rm -f conftest*
19082             
19083 fi
19084 rm -f conftest*
19085             ac_ext=c
19086 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19087 ac_cpp='$CPP $CPPFLAGS'
19088 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19089 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19090 cross_compiling=$ac_cv_prog_cc_cross
19091
19092         
19093 fi
19094
19095 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
19096
19097         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
19098             cat >> confdefs.h <<\EOF
19099 #define WX_GETTIMEOFDAY_NO_TZ 1
19100 EOF
19101
19102         fi
19103     fi
19104
19105     cat >> confdefs.h <<\EOF
19106 #define wxUSE_TIMEDATE 1
19107 EOF
19108
19109     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
19110 fi
19111
19112
19113 if test "$wxUSE_SOCKETS" = "yes"; then
19114     if test "$wxUSE_MGL" = "1"; then
19115         echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
19116         wxUSE_SOCKETS="no"
19117     fi
19118 fi
19119
19120 if test "$wxUSE_SOCKETS" = "yes"; then
19121         if test "$TOOLKIT" != "MSW"; then
19122                 echo $ac_n "checking for socket""... $ac_c" 1>&6
19123 echo "configure:19124: checking for socket" >&5
19124 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
19125   echo $ac_n "(cached) $ac_c" 1>&6
19126 else
19127   cat > conftest.$ac_ext <<EOF
19128 #line 19129 "configure"
19129 #include "confdefs.h"
19130 /* System header to define __stub macros and hopefully few prototypes,
19131     which can conflict with char socket(); below.  */
19132 #include <assert.h>
19133 /* Override any gcc2 internal prototype to avoid an error.  */
19134 /* We use char because int might match the return type of a gcc2
19135     builtin and then its argument prototype would still apply.  */
19136 char socket();
19137
19138 int main() {
19139
19140 /* The GNU C library defines this for functions which it implements
19141     to always fail with ENOSYS.  Some functions are actually named
19142     something starting with __ and the normal name is an alias.  */
19143 #if defined (__stub_socket) || defined (__stub___socket)
19144 choke me
19145 #else
19146 socket();
19147 #endif
19148
19149 ; return 0; }
19150 EOF
19151 if { (eval echo configure:19152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19152   rm -rf conftest*
19153   eval "ac_cv_func_socket=yes"
19154 else
19155   echo "configure: failed program was:" >&5
19156   cat conftest.$ac_ext >&5
19157   rm -rf conftest*
19158   eval "ac_cv_func_socket=no"
19159 fi
19160 rm -f conftest*
19161 fi
19162
19163 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
19164   echo "$ac_t""yes" 1>&6
19165   :
19166 else
19167   echo "$ac_t""no" 1>&6
19168 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
19169 echo "configure:19170: checking for socket in -lsocket" >&5
19170 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
19171 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19172   echo $ac_n "(cached) $ac_c" 1>&6
19173 else
19174   ac_save_LIBS="$LIBS"
19175 LIBS="-lsocket  $LIBS"
19176 cat > conftest.$ac_ext <<EOF
19177 #line 19178 "configure"
19178 #include "confdefs.h"
19179 /* Override any gcc2 internal prototype to avoid an error.  */
19180 /* We use char because int might match the return type of a gcc2
19181     builtin and then its argument prototype would still apply.  */
19182 char socket();
19183
19184 int main() {
19185 socket()
19186 ; return 0; }
19187 EOF
19188 if { (eval echo configure:19189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19189   rm -rf conftest*
19190   eval "ac_cv_lib_$ac_lib_var=yes"
19191 else
19192   echo "configure: failed program was:" >&5
19193   cat conftest.$ac_ext >&5
19194   rm -rf conftest*
19195   eval "ac_cv_lib_$ac_lib_var=no"
19196 fi
19197 rm -f conftest*
19198 LIBS="$ac_save_LIBS"
19199
19200 fi
19201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19202   echo "$ac_t""yes" 1>&6
19203   if test "$INET_LINK" != " -lsocket"; then
19204                     INET_LINK="$INET_LINK -lsocket"
19205                 fi
19206 else
19207   echo "$ac_t""no" 1>&6
19208
19209                     echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
19210                     wxUSE_SOCKETS=no
19211                 
19212             
19213 fi
19214
19215         
19216 fi
19217
19218     fi
19219 fi
19220
19221 if test "$wxUSE_SOCKETS" = "yes" ; then
19222                 if test "$TOOLKIT" != "MSW"; then
19223                 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
19224 echo "configure:19225: checking what is the type of the third argument of getsockname" >&5
19225 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
19226   echo $ac_n "(cached) $ac_c" 1>&6
19227 else
19228   
19229                 
19230                 ac_ext=C
19231 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19232 ac_cpp='$CXXCPP $CPPFLAGS'
19233 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19234 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19235 cross_compiling=$ac_cv_prog_cxx_cross
19236
19237
19238                 cat > conftest.$ac_ext <<EOF
19239 #line 19240 "configure"
19240 #include "confdefs.h"
19241
19242                         #include <sys/types.h>
19243                         #include <sys/socket.h>
19244                     
19245 int main() {
19246
19247                         socklen_t len;
19248                         getsockname(0, 0, &len);
19249                     
19250 ; return 0; }
19251 EOF
19252 if { (eval echo configure:19253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19253   rm -rf conftest*
19254   wx_cv_type_getsockname3=socklen_t
19255 else
19256   echo "configure: failed program was:" >&5
19257   cat conftest.$ac_ext >&5
19258   rm -rf conftest*
19259   cat > conftest.$ac_ext <<EOF
19260 #line 19261 "configure"
19261 #include "confdefs.h"
19262
19263                             #include <sys/types.h>
19264                             #include <sys/socket.h>
19265                         
19266 int main() {
19267
19268                             size_t len;
19269                             getsockname(0, 0, &len);
19270                         
19271 ; return 0; }
19272 EOF
19273 if { (eval echo configure:19274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19274   rm -rf conftest*
19275   wx_cv_type_getsockname3=size_t
19276 else
19277   echo "configure: failed program was:" >&5
19278   cat conftest.$ac_ext >&5
19279   rm -rf conftest*
19280   cat > conftest.$ac_ext <<EOF
19281 #line 19282 "configure"
19282 #include "confdefs.h"
19283
19284                                 #include <sys/types.h>
19285                                 #include <sys/socket.h>
19286                             
19287 int main() {
19288
19289                                 int len;
19290                                 getsockname(0, 0, &len);
19291                             
19292 ; return 0; }
19293 EOF
19294 if { (eval echo configure:19295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19295   rm -rf conftest*
19296   wx_cv_type_getsockname3=int
19297 else
19298   echo "configure: failed program was:" >&5
19299   cat conftest.$ac_ext >&5
19300   rm -rf conftest*
19301   wx_cv_type_getsockname3=unknown
19302                         
19303 fi
19304 rm -f conftest*
19305                     
19306 fi
19307 rm -f conftest*
19308                 
19309 fi
19310 rm -f conftest*
19311
19312                 ac_ext=c
19313 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19314 ac_cpp='$CPP $CPPFLAGS'
19315 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19316 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19317 cross_compiling=$ac_cv_prog_cc_cross
19318
19319             
19320 fi
19321
19322 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
19323
19324         if test "$wx_cv_type_getsockname3" = "unknown"; then
19325             wxUSE_SOCKETS=no
19326             echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
19327         else
19328             cat >> confdefs.h <<EOF
19329 #define SOCKLEN_T $wx_cv_type_getsockname3
19330 EOF
19331
19332         fi
19333     fi
19334 fi
19335
19336 if test "$wxUSE_SOCKETS" = "yes" ; then
19337     cat >> confdefs.h <<\EOF
19338 #define wxUSE_SOCKETS 1
19339 EOF
19340
19341     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
19342 fi
19343
19344
19345 if test "$wxUSE_GUI" = "yes"; then
19346
19347     if test "$TOOLKIT" = "MAC"; then
19348         echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
19349         wxUSE_JOYSTICK=no
19350      fi
19351     if test "$TOOLKIT" = "MOTIF"; then
19352         echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
19353         wxUSE_JOYSTICK=no
19354      fi
19355     if test "$TOOLKIT" = "X11"; then
19356         echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
19357         wxUSE_JOYSTICK=no
19358      fi
19359
19360         if test "$TOOLKIT" != "MSW"; then
19361         if test "$wxUSE_JOYSTICK" = "yes"; then
19362                         for ac_hdr in linux/joystick.h
19363 do
19364 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19365 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19366 echo "configure:19367: checking for $ac_hdr" >&5
19367 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19368   echo $ac_n "(cached) $ac_c" 1>&6
19369 else
19370   cat > conftest.$ac_ext <<EOF
19371 #line 19372 "configure"
19372 #include "confdefs.h"
19373 #include <$ac_hdr>
19374 EOF
19375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19376 { (eval echo configure:19377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19378 if test -z "$ac_err"; then
19379   rm -rf conftest*
19380   eval "ac_cv_header_$ac_safe=yes"
19381 else
19382   echo "$ac_err" >&5
19383   echo "configure: failed program was:" >&5
19384   cat conftest.$ac_ext >&5
19385   rm -rf conftest*
19386   eval "ac_cv_header_$ac_safe=no"
19387 fi
19388 rm -f conftest*
19389 fi
19390 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19391   echo "$ac_t""yes" 1>&6
19392     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19393   cat >> confdefs.h <<EOF
19394 #define $ac_tr_hdr 1
19395 EOF
19396  
19397 else
19398   echo "$ac_t""no" 1>&6
19399 fi
19400 done
19401
19402             if test "$ac_cv_header_linux_joystick_h" != "yes"; then
19403                 wxUSE_JOYSTICK=no
19404                 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
19405             fi
19406         fi
19407     fi
19408
19409     if test "$wxUSE_JOYSTICK" = "yes"; then
19410         cat >> confdefs.h <<\EOF
19411 #define wxUSE_JOYSTICK 1
19412 EOF
19413
19414         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
19415     fi
19416 fi
19417
19418
19419 if test "$TOOLKIT" != "MSW"; then
19420
19421     HAVE_DL_FUNCS=0
19422     HAVE_SHL_FUNCS=0
19423     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19424         if test "$USE_DARWIN" = 1; then
19425                         HAVE_DL_FUNCS=1
19426         else
19427                                                 for ac_func in dlopen
19428 do
19429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19430 echo "configure:19431: checking for $ac_func" >&5
19431 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19432   echo $ac_n "(cached) $ac_c" 1>&6
19433 else
19434   cat > conftest.$ac_ext <<EOF
19435 #line 19436 "configure"
19436 #include "confdefs.h"
19437 /* System header to define __stub macros and hopefully few prototypes,
19438     which can conflict with char $ac_func(); below.  */
19439 #include <assert.h>
19440 /* Override any gcc2 internal prototype to avoid an error.  */
19441 /* We use char because int might match the return type of a gcc2
19442     builtin and then its argument prototype would still apply.  */
19443 char $ac_func();
19444
19445 int main() {
19446
19447 /* The GNU C library defines this for functions which it implements
19448     to always fail with ENOSYS.  Some functions are actually named
19449     something starting with __ and the normal name is an alias.  */
19450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19451 choke me
19452 #else
19453 $ac_func();
19454 #endif
19455
19456 ; return 0; }
19457 EOF
19458 if { (eval echo configure:19459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19459   rm -rf conftest*
19460   eval "ac_cv_func_$ac_func=yes"
19461 else
19462   echo "configure: failed program was:" >&5
19463   cat conftest.$ac_ext >&5
19464   rm -rf conftest*
19465   eval "ac_cv_func_$ac_func=no"
19466 fi
19467 rm -f conftest*
19468 fi
19469
19470 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19471   echo "$ac_t""yes" 1>&6
19472     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19473   cat >> confdefs.h <<EOF
19474 #define $ac_tr_func 1
19475 EOF
19476  
19477                 cat >> confdefs.h <<\EOF
19478 #define HAVE_DLOPEN 1
19479 EOF
19480
19481                 HAVE_DL_FUNCS=1
19482             
19483 else
19484   echo "$ac_t""no" 1>&6
19485 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
19486 echo "configure:19487: checking for dlopen in -ldl" >&5
19487 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
19488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19489   echo $ac_n "(cached) $ac_c" 1>&6
19490 else
19491   ac_save_LIBS="$LIBS"
19492 LIBS="-ldl  $LIBS"
19493 cat > conftest.$ac_ext <<EOF
19494 #line 19495 "configure"
19495 #include "confdefs.h"
19496 /* Override any gcc2 internal prototype to avoid an error.  */
19497 /* We use char because int might match the return type of a gcc2
19498     builtin and then its argument prototype would still apply.  */
19499 char dlopen();
19500
19501 int main() {
19502 dlopen()
19503 ; return 0; }
19504 EOF
19505 if { (eval echo configure:19506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19506   rm -rf conftest*
19507   eval "ac_cv_lib_$ac_lib_var=yes"
19508 else
19509   echo "configure: failed program was:" >&5
19510   cat conftest.$ac_ext >&5
19511   rm -rf conftest*
19512   eval "ac_cv_lib_$ac_lib_var=no"
19513 fi
19514 rm -f conftest*
19515 LIBS="$ac_save_LIBS"
19516
19517 fi
19518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19519   echo "$ac_t""yes" 1>&6
19520   
19521                                 cat >> confdefs.h <<\EOF
19522 #define HAVE_DLOPEN 1
19523 EOF
19524
19525                                 HAVE_DL_FUNCS=1
19526                                 DL_LINK=" -ldl$DL_LINK"
19527                             
19528 else
19529   echo "$ac_t""no" 1>&6
19530
19531                                 for ac_func in shl_load
19532 do
19533 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19534 echo "configure:19535: checking for $ac_func" >&5
19535 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19536   echo $ac_n "(cached) $ac_c" 1>&6
19537 else
19538   cat > conftest.$ac_ext <<EOF
19539 #line 19540 "configure"
19540 #include "confdefs.h"
19541 /* System header to define __stub macros and hopefully few prototypes,
19542     which can conflict with char $ac_func(); below.  */
19543 #include <assert.h>
19544 /* Override any gcc2 internal prototype to avoid an error.  */
19545 /* We use char because int might match the return type of a gcc2
19546     builtin and then its argument prototype would still apply.  */
19547 char $ac_func();
19548
19549 int main() {
19550
19551 /* The GNU C library defines this for functions which it implements
19552     to always fail with ENOSYS.  Some functions are actually named
19553     something starting with __ and the normal name is an alias.  */
19554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19555 choke me
19556 #else
19557 $ac_func();
19558 #endif
19559
19560 ; return 0; }
19561 EOF
19562 if { (eval echo configure:19563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19563   rm -rf conftest*
19564   eval "ac_cv_func_$ac_func=yes"
19565 else
19566   echo "configure: failed program was:" >&5
19567   cat conftest.$ac_ext >&5
19568   rm -rf conftest*
19569   eval "ac_cv_func_$ac_func=no"
19570 fi
19571 rm -f conftest*
19572 fi
19573
19574 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19575   echo "$ac_t""yes" 1>&6
19576     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19577   cat >> confdefs.h <<EOF
19578 #define $ac_tr_func 1
19579 EOF
19580  
19581                                                 cat >> confdefs.h <<\EOF
19582 #define HAVE_SHL_LOAD 1
19583 EOF
19584
19585                                                 HAVE_SHL_FUNCS=1
19586                                               
19587 else
19588   echo "$ac_t""no" 1>&6
19589 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
19590 echo "configure:19591: checking for dld in -lshl_load" >&5
19591 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19592 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19593   echo $ac_n "(cached) $ac_c" 1>&6
19594 else
19595   ac_save_LIBS="$LIBS"
19596 LIBS="-lshl_load  $LIBS"
19597 cat > conftest.$ac_ext <<EOF
19598 #line 19599 "configure"
19599 #include "confdefs.h"
19600 /* Override any gcc2 internal prototype to avoid an error.  */
19601 /* We use char because int might match the return type of a gcc2
19602     builtin and then its argument prototype would still apply.  */
19603 char dld();
19604
19605 int main() {
19606 dld()
19607 ; return 0; }
19608 EOF
19609 if { (eval echo configure:19610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19610   rm -rf conftest*
19611   eval "ac_cv_lib_$ac_lib_var=yes"
19612 else
19613   echo "configure: failed program was:" >&5
19614   cat conftest.$ac_ext >&5
19615   rm -rf conftest*
19616   eval "ac_cv_lib_$ac_lib_var=no"
19617 fi
19618 rm -f conftest*
19619 LIBS="$ac_save_LIBS"
19620
19621 fi
19622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19623   echo "$ac_t""yes" 1>&6
19624   
19625                                                                 HAVE_SHL_FUNCS=1
19626                                                                 DL_LINK=" -ldld$DL_LINK"
19627                                                              
19628 else
19629   echo "$ac_t""no" 1>&6
19630 fi
19631
19632                                               
19633 fi
19634 done
19635
19636                             
19637 fi
19638
19639             
19640 fi
19641 done
19642
19643
19644                 if test "$HAVE_DL_FUNCS" = 1; then
19645             for ac_func in dlerror
19646 do
19647 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19648 echo "configure:19649: checking for $ac_func" >&5
19649 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19650   echo $ac_n "(cached) $ac_c" 1>&6
19651 else
19652   cat > conftest.$ac_ext <<EOF
19653 #line 19654 "configure"
19654 #include "confdefs.h"
19655 /* System header to define __stub macros and hopefully few prototypes,
19656     which can conflict with char $ac_func(); below.  */
19657 #include <assert.h>
19658 /* Override any gcc2 internal prototype to avoid an error.  */
19659 /* We use char because int might match the return type of a gcc2
19660     builtin and then its argument prototype would still apply.  */
19661 char $ac_func();
19662
19663 int main() {
19664
19665 /* The GNU C library defines this for functions which it implements
19666     to always fail with ENOSYS.  Some functions are actually named
19667     something starting with __ and the normal name is an alias.  */
19668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19669 choke me
19670 #else
19671 $ac_func();
19672 #endif
19673
19674 ; return 0; }
19675 EOF
19676 if { (eval echo configure:19677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19677   rm -rf conftest*
19678   eval "ac_cv_func_$ac_func=yes"
19679 else
19680   echo "configure: failed program was:" >&5
19681   cat conftest.$ac_ext >&5
19682   rm -rf conftest*
19683   eval "ac_cv_func_$ac_func=no"
19684 fi
19685 rm -f conftest*
19686 fi
19687
19688 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19689   echo "$ac_t""yes" 1>&6
19690     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19691   cat >> confdefs.h <<EOF
19692 #define $ac_tr_func 1
19693 EOF
19694  cat >> confdefs.h <<\EOF
19695 #define HAVE_DLERROR 1
19696 EOF
19697
19698 else
19699   echo "$ac_t""no" 1>&6
19700 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
19701 echo "configure:19702: checking for dlerror in -ldl" >&5
19702 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19703 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19704   echo $ac_n "(cached) $ac_c" 1>&6
19705 else
19706   ac_save_LIBS="$LIBS"
19707 LIBS="-ldl  $LIBS"
19708 cat > conftest.$ac_ext <<EOF
19709 #line 19710 "configure"
19710 #include "confdefs.h"
19711 /* Override any gcc2 internal prototype to avoid an error.  */
19712 /* We use char because int might match the return type of a gcc2
19713     builtin and then its argument prototype would still apply.  */
19714 char dlerror();
19715
19716 int main() {
19717 dlerror()
19718 ; return 0; }
19719 EOF
19720 if { (eval echo configure:19721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19721   rm -rf conftest*
19722   eval "ac_cv_lib_$ac_lib_var=yes"
19723 else
19724   echo "configure: failed program was:" >&5
19725   cat conftest.$ac_ext >&5
19726   rm -rf conftest*
19727   eval "ac_cv_lib_$ac_lib_var=no"
19728 fi
19729 rm -f conftest*
19730 LIBS="$ac_save_LIBS"
19731
19732 fi
19733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19734   echo "$ac_t""yes" 1>&6
19735   cat >> confdefs.h <<\EOF
19736 #define HAVE_DLERROR 1
19737 EOF
19738
19739 else
19740   echo "$ac_t""no" 1>&6
19741 fi
19742
19743 fi
19744 done
19745
19746         fi
19747         fi
19748
19749         if test "$HAVE_DL_FUNCS" = 0; then
19750             if test "$HAVE_SHL_FUNCS" = 0; then
19751               if test "$USE_UNIX" = 1; then
19752                   echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
19753                   wxUSE_DYNAMIC_LOADER=no
19754                   wxUSE_DYNLIB_CLASS=no
19755               else
19756                   echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19757               fi
19758             fi
19759         fi
19760     fi
19761 fi
19762
19763 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19764     cat >> confdefs.h <<\EOF
19765 #define wxUSE_DYNAMIC_LOADER 1
19766 EOF
19767
19768 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19769     cat >> confdefs.h <<\EOF
19770 #define wxUSE_DYNLIB_CLASS 1
19771 EOF
19772
19773 fi
19774
19775
19776 if test "$wxUSE_FONTMAP" = "yes" ; then
19777   cat >> confdefs.h <<\EOF
19778 #define wxUSE_FONTMAP 1
19779 EOF
19780
19781 fi
19782
19783 if test "$wxUSE_UNICODE" = "yes" ; then
19784   cat >> confdefs.h <<\EOF
19785 #define wxUSE_UNICODE 1
19786 EOF
19787
19788
19789   if test "$wxUSE_MSW" != 1; then
19790       wxUSE_UNICODE_MSLU=no
19791   fi
19792
19793   if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19794         echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
19795 echo "configure:19796: checking for main in -lunicows" >&5
19796 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19797 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19798   echo $ac_n "(cached) $ac_c" 1>&6
19799 else
19800   ac_save_LIBS="$LIBS"
19801 LIBS="-lunicows  $LIBS"
19802 cat > conftest.$ac_ext <<EOF
19803 #line 19804 "configure"
19804 #include "confdefs.h"
19805
19806 int main() {
19807 main()
19808 ; return 0; }
19809 EOF
19810 if { (eval echo configure:19811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19811   rm -rf conftest*
19812   eval "ac_cv_lib_$ac_lib_var=yes"
19813 else
19814   echo "configure: failed program was:" >&5
19815   cat conftest.$ac_ext >&5
19816   rm -rf conftest*
19817   eval "ac_cv_lib_$ac_lib_var=no"
19818 fi
19819 rm -f conftest*
19820 LIBS="$ac_save_LIBS"
19821
19822 fi
19823 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19824   echo "$ac_t""yes" 1>&6
19825   
19826                 cat >> confdefs.h <<\EOF
19827 #define wxUSE_UNICODE_MSLU 1
19828 EOF
19829
19830             
19831 else
19832   echo "$ac_t""no" 1>&6
19833
19834                 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19835                              Applications will only run on Windows NT/2000/XP!" 1>&2
19836                 wxUSE_UNICODE_MSLU=no
19837             
19838 fi
19839
19840     fi
19841 fi
19842
19843 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
19844   cat >> confdefs.h <<\EOF
19845 #define wxUSE_EXPERIMENTAL_PRINTF 1
19846 EOF
19847
19848 fi
19849
19850
19851
19852 IODBC_C_SRC=""
19853 if test "$wxUSE_ODBC" = "yes" ; then
19854     cat >> confdefs.h <<\EOF
19855 #define wxUSE_ODBC 1
19856 EOF
19857
19858     WXODBCFLAG="-D_IODBC_"
19859     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
19860 fi
19861
19862
19863 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
19864   cat >> confdefs.h <<\EOF
19865 #define wxUSE_POSTSCRIPT 1
19866 EOF
19867
19868 fi
19869
19870 cat >> confdefs.h <<\EOF
19871 #define wxUSE_AFM_FOR_POSTSCRIPT 1
19872 EOF
19873
19874
19875 cat >> confdefs.h <<\EOF
19876 #define wxUSE_NORMALIZED_PS_FONTS 1
19877 EOF
19878
19879
19880
19881 if test "$wxUSE_CONSTRAINTS" = "yes"; then
19882     cat >> confdefs.h <<\EOF
19883 #define wxUSE_CONSTRAINTS 1
19884 EOF
19885
19886     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19887 fi
19888
19889 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19890
19891
19892    if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19893        cat >> confdefs.h <<\EOF
19894 #define wxUSE_MDI_ARCHITECTURE 1
19895 EOF
19896
19897        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19898    fi
19899 fi
19900
19901 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
19902     cat >> confdefs.h <<\EOF
19903 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
19904 EOF
19905
19906     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19907     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19908         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19909     fi
19910 fi
19911
19912 if test "$wxUSE_HELP" = "yes"; then
19913     cat >> confdefs.h <<\EOF
19914 #define wxUSE_HELP 1
19915 EOF
19916
19917     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
19918
19919     if test "$wxUSE_MSW" = 1; then
19920       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
19921         cat >> confdefs.h <<\EOF
19922 #define wxUSE_MS_HTML_HELP 1
19923 EOF
19924
19925       fi
19926     fi
19927
19928     if test "$wxUSE_WXHTML_HELP" = "yes"; then
19929       if test "$wxUSE_HTML" = "yes"; then
19930         cat >> confdefs.h <<\EOF
19931 #define wxUSE_WXHTML_HELP 1
19932 EOF
19933
19934       else
19935         echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19936         wxUSE_WXHTML_HELP=no
19937       fi
19938     fi
19939 fi
19940
19941 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19942     if test "$wxUSE_CONSTRAINTS" != "yes"; then
19943         echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
19944     else
19945         cat >> confdefs.h <<\EOF
19946 #define wxUSE_PRINTING_ARCHITECTURE 1
19947 EOF
19948
19949     fi
19950     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19951 fi
19952
19953 if test "$wxUSE_PROLOGIO" = "yes" ; then
19954     cat >> confdefs.h <<\EOF
19955 #define wxUSE_PROLOGIO 1
19956 EOF
19957
19958 fi
19959
19960 if test "$wxUSE_RESOURCES" = "yes" ; then
19961     if test "$wxUSE_NANOX" = "yes"; then
19962         echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
19963         else
19964                 cat >> confdefs.h <<\EOF
19965 #define wxUSE_RESOURCES 1
19966 EOF
19967
19968                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19969     fi
19970 fi
19971
19972 if test "$wxUSE_X_RESOURCES" = "yes"; then
19973     cat >> confdefs.h <<\EOF
19974 #define wxUSE_X_RESOURCES 1
19975 EOF
19976
19977 fi
19978
19979
19980 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
19981                           -o "$wxUSE_CLIPBOARD"     = "yes" \
19982                           -o "$wxUSE_OLE"     = "yes" \
19983                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
19984     for ac_hdr in ole2.h
19985 do
19986 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19987 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19988 echo "configure:19989: checking for $ac_hdr" >&5
19989 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19990   echo $ac_n "(cached) $ac_c" 1>&6
19991 else
19992   cat > conftest.$ac_ext <<EOF
19993 #line 19994 "configure"
19994 #include "confdefs.h"
19995 #include <$ac_hdr>
19996 EOF
19997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19998 { (eval echo configure:19999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19999 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20000 if test -z "$ac_err"; then
20001   rm -rf conftest*
20002   eval "ac_cv_header_$ac_safe=yes"
20003 else
20004   echo "$ac_err" >&5
20005   echo "configure: failed program was:" >&5
20006   cat conftest.$ac_ext >&5
20007   rm -rf conftest*
20008   eval "ac_cv_header_$ac_safe=no"
20009 fi
20010 rm -f conftest*
20011 fi
20012 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20013   echo "$ac_t""yes" 1>&6
20014     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20015   cat >> confdefs.h <<EOF
20016 #define $ac_tr_hdr 1
20017 EOF
20018  
20019 else
20020   echo "$ac_t""no" 1>&6
20021 fi
20022 done
20023
20024
20025     if test "$ac_cv_header_ole2_h" = "yes" ; then
20026         if test "$GCC" = yes ; then
20027             
20028             ac_ext=C
20029 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20030 ac_cpp='$CXXCPP $CPPFLAGS'
20031 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20032 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20033 cross_compiling=$ac_cv_prog_cxx_cross
20034
20035
20036             echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
20037 echo "configure:20038: checking if g++ requires -fvtable-thunks" >&5
20038             cat > conftest.$ac_ext <<EOF
20039 #line 20040 "configure"
20040 #include "confdefs.h"
20041 #include <windows.h>
20042                             #include <ole2.h>
20043 int main() {
20044
20045 ; return 0; }
20046 EOF
20047 if { (eval echo configure:20048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20048   rm -rf conftest*
20049   echo "$ac_t""no" 1>&6
20050 else
20051   echo "configure: failed program was:" >&5
20052   cat conftest.$ac_ext >&5
20053   rm -rf conftest*
20054   echo "$ac_t""yes" 1>&6
20055                             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
20056 fi
20057 rm -f conftest*
20058             ac_ext=c
20059 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20060 ac_cpp='$CPP $CPPFLAGS'
20061 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20062 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20063 cross_compiling=$ac_cv_prog_cc_cross
20064
20065             ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
20066             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
20067             cat >> confdefs.h <<\EOF
20068 #define wxUSE_OLE 1
20069 EOF
20070
20071
20072         fi
20073
20074                 cat >> confdefs.h <<\EOF
20075 #define wxUSE_DATAOBJ 1
20076 EOF
20077
20078     else
20079         echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
20080
20081         wxUSE_CLIPBOARD=no
20082         wxUSE_DRAG_AND_DROP=no
20083         wxUSE_DATAOBJ=no
20084         wxUSE_OLE=no
20085     fi
20086
20087     if test "$wxUSE_METAFILE" = "yes"; then
20088         cat >> confdefs.h <<\EOF
20089 #define wxUSE_METAFILE 1
20090 EOF
20091
20092
20093                 cat >> confdefs.h <<\EOF
20094 #define wxUSE_ENH_METAFILE 1
20095 EOF
20096
20097     fi
20098 fi
20099
20100 if test "$wxUSE_WINE" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
20101                           -o "$wxUSE_CLIPBOARD"     = "yes" \
20102                           -o "$wxUSE_OLE"     = "yes" \
20103                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
20104     for ac_hdr in ole2.h
20105 do
20106 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20107 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20108 echo "configure:20109: checking for $ac_hdr" >&5
20109 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20110   echo $ac_n "(cached) $ac_c" 1>&6
20111 else
20112   cat > conftest.$ac_ext <<EOF
20113 #line 20114 "configure"
20114 #include "confdefs.h"
20115 #include <$ac_hdr>
20116 EOF
20117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20118 { (eval echo configure:20119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20120 if test -z "$ac_err"; then
20121   rm -rf conftest*
20122   eval "ac_cv_header_$ac_safe=yes"
20123 else
20124   echo "$ac_err" >&5
20125   echo "configure: failed program was:" >&5
20126   cat conftest.$ac_ext >&5
20127   rm -rf conftest*
20128   eval "ac_cv_header_$ac_safe=no"
20129 fi
20130 rm -f conftest*
20131 fi
20132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20133   echo "$ac_t""yes" 1>&6
20134     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20135   cat >> confdefs.h <<EOF
20136 #define $ac_tr_hdr 1
20137 EOF
20138  
20139 else
20140   echo "$ac_t""no" 1>&6
20141 fi
20142 done
20143
20144
20145     if test "$ac_cv_header_ole2_h" = "yes" ; then
20146         if test "$GCC" = yes ; then
20147             
20148             ac_ext=C
20149 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20150 ac_cpp='$CXXCPP $CPPFLAGS'
20151 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20152 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20153 cross_compiling=$ac_cv_prog_cxx_cross
20154
20155
20156             echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
20157 echo "configure:20158: checking if g++ requires -fvtable-thunks" >&5
20158             cat > conftest.$ac_ext <<EOF
20159 #line 20160 "configure"
20160 #include "confdefs.h"
20161 #include <windows.h>
20162                             #include <ole2.h>
20163 int main() {
20164
20165 ; return 0; }
20166 EOF
20167 if { (eval echo configure:20168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20168   rm -rf conftest*
20169   echo "$ac_t""no" 1>&6
20170 else
20171   echo "configure: failed program was:" >&5
20172   cat conftest.$ac_ext >&5
20173   rm -rf conftest*
20174   echo "$ac_t""yes" 1>&6
20175                             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
20176 fi
20177 rm -f conftest*
20178             ac_ext=c
20179 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20180 ac_cpp='$CPP $CPPFLAGS'
20181 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20182 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20183 cross_compiling=$ac_cv_prog_cc_cross
20184
20185             ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
20186             LIBS=" -lwine_uuid$LIBS"
20187             cat >> confdefs.h <<\EOF
20188 #define wxUSE_OLE 1
20189 EOF
20190
20191
20192         fi
20193
20194                 cat >> confdefs.h <<\EOF
20195 #define wxUSE_DATAOBJ 1
20196 EOF
20197
20198     else
20199         echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
20200
20201         wxUSE_CLIPBOARD=no
20202         wxUSE_DRAG_AND_DROP=no
20203         wxUSE_DATAOBJ=no
20204         wxUSE_OLE=no
20205     fi
20206
20207     if test "$wxUSE_METAFILE" = "yes"; then
20208         cat >> confdefs.h <<\EOF
20209 #define wxUSE_METAFILE 1
20210 EOF
20211
20212
20213                 cat >> confdefs.h <<\EOF
20214 #define wxUSE_ENH_METAFILE 1
20215 EOF
20216
20217     fi
20218 fi
20219
20220 if test "$wxUSE_IPC" = "yes"; then
20221     if test "$wxUSE_SOCKETS" != "yes"; then
20222         echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
20223     fi
20224
20225     cat >> confdefs.h <<\EOF
20226 #define wxUSE_IPC 1
20227 EOF
20228
20229 fi
20230
20231 if test "$wxUSE_CLIPBOARD" = "yes"; then
20232     if test "$wxUSE_MGL" = 1; then
20233         echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
20234         wxUSE_CLIPBOARD=no
20235     fi
20236
20237     if test "$wxUSE_CLIPBOARD" = "yes"; then
20238         cat >> confdefs.h <<\EOF
20239 #define wxUSE_CLIPBOARD 1
20240 EOF
20241
20242
20243                 cat >> confdefs.h <<\EOF
20244 #define wxUSE_DATAOBJ 1
20245 EOF
20246
20247     fi
20248 fi
20249
20250 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
20251     if test "$wxUSE_GTK" = 1; then
20252         if test "$WXGTK12" != 1; then
20253             echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
20254             wxUSE_DRAG_AND_DROP=no
20255         fi
20256     fi
20257
20258     if test "$wxUSE_MOTIF" = 1; then
20259         echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
20260         wxUSE_DRAG_AND_DROP=no
20261     fi
20262
20263     if test "$wxUSE_X11" = 1; then
20264         echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
20265         wxUSE_DRAG_AND_DROP=no
20266     fi
20267
20268     if test "$wxUSE_MGL" = 1; then
20269         echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
20270         wxUSE_DRAG_AND_DROP=no
20271     fi
20272
20273     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
20274         cat >> confdefs.h <<\EOF
20275 #define wxUSE_DRAG_AND_DROP 1
20276 EOF
20277
20278         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
20279     fi
20280
20281 fi
20282
20283 if test "$wxUSE_SPLINES" = "yes" ; then
20284   cat >> confdefs.h <<\EOF
20285 #define wxUSE_SPLINES 1
20286 EOF
20287
20288 fi
20289
20290
20291 USES_CONTROLS=0
20292 if test "$wxUSE_CONTROLS" = "yes"; then
20293   USES_CONTROLS=1
20294 fi
20295
20296 if test "$wxUSE_ACCEL" = "yes"; then
20297   cat >> confdefs.h <<\EOF
20298 #define wxUSE_ACCEL 1
20299 EOF
20300
20301   USES_CONTROLS=1
20302 fi
20303
20304 if test "$wxUSE_BUTTON" = "yes"; then
20305   cat >> confdefs.h <<\EOF
20306 #define wxUSE_BUTTON 1
20307 EOF
20308
20309   USES_CONTROLS=1
20310 fi
20311
20312 if test "$wxUSE_BMPBUTTON" = "yes"; then
20313   cat >> confdefs.h <<\EOF
20314 #define wxUSE_BMPBUTTON 1
20315 EOF
20316
20317   USES_CONTROLS=1
20318 fi
20319
20320 if test "$wxUSE_CALCTRL" = "yes"; then
20321   cat >> confdefs.h <<\EOF
20322 #define wxUSE_CALENDARCTRL 1
20323 EOF
20324
20325   USES_CONTROLS=1
20326   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
20327 fi
20328
20329 if test "$wxUSE_CARET" = "yes"; then
20330   cat >> confdefs.h <<\EOF
20331 #define wxUSE_CARET 1
20332 EOF
20333
20334   USES_CONTROLS=1
20335   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
20336 fi
20337
20338 if test "$wxUSE_COMBOBOX" = "yes"; then
20339   cat >> confdefs.h <<\EOF
20340 #define wxUSE_COMBOBOX 1
20341 EOF
20342
20343   USES_CONTROLS=1
20344 fi
20345
20346 if test "$wxUSE_CHOICE" = "yes"; then
20347   cat >> confdefs.h <<\EOF
20348 #define wxUSE_CHOICE 1
20349 EOF
20350
20351   USES_CONTROLS=1
20352 fi
20353
20354 if test "$wxUSE_CHECKBOX" = "yes"; then
20355   cat >> confdefs.h <<\EOF
20356 #define wxUSE_CHECKBOX 1
20357 EOF
20358
20359   USES_CONTROLS=1
20360 fi
20361
20362 if test "$wxUSE_CHECKLST" = "yes"; then
20363   cat >> confdefs.h <<\EOF
20364 #define wxUSE_CHECKLISTBOX 1
20365 EOF
20366
20367   USES_CONTROLS=1
20368   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
20369 fi
20370
20371 if test "$wxUSE_GAUGE" = "yes"; then
20372   cat >> confdefs.h <<\EOF
20373 #define wxUSE_GAUGE 1
20374 EOF
20375
20376   USES_CONTROLS=1
20377 fi
20378
20379 if test "$wxUSE_NEW_GRID" = "yes"; then
20380   wxUSE_GRID="yes"
20381   cat >> confdefs.h <<\EOF
20382 #define wxUSE_NEW_GRID 1
20383 EOF
20384
20385   USES_CONTROLS=1
20386   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
20387 fi
20388
20389 if test "$wxUSE_GRID" = "yes"; then
20390   cat >> confdefs.h <<\EOF
20391 #define wxUSE_GRID 1
20392 EOF
20393
20394   USES_CONTROLS=1
20395   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
20396 fi
20397
20398 if test "$wxUSE_IMAGLIST" = "yes"; then
20399     cat >> confdefs.h <<\EOF
20400 #define wxUSE_IMAGLIST 1
20401 EOF
20402
20403 fi
20404
20405 if test "$wxUSE_LISTBOX" = "yes"; then
20406     cat >> confdefs.h <<\EOF
20407 #define wxUSE_LISTBOX 1
20408 EOF
20409
20410     USES_CONTROLS=1
20411 fi
20412
20413 if test "$wxUSE_LISTCTRL" = "yes"; then
20414     if test "$wxUSE_IMAGLIST" = "yes"; then
20415         cat >> confdefs.h <<\EOF
20416 #define wxUSE_LISTCTRL 1
20417 EOF
20418
20419         USES_CONTROLS=1
20420         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
20421     else
20422         echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
20423     fi
20424 fi
20425
20426 if test "$wxUSE_NOTEBOOK" = "yes"; then
20427     cat >> confdefs.h <<\EOF
20428 #define wxUSE_NOTEBOOK 1
20429 EOF
20430
20431     USES_CONTROLS=1
20432     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
20433 fi
20434
20435 if test "$wxUSE_PROPSHEET" = "yes"; then
20436     cat >> confdefs.h <<\EOF
20437 #define wxUSE_PROPSHEET 1
20438 EOF
20439
20440     USES_CONTROLS=1
20441     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
20442 fi
20443
20444 if test "$wxUSE_RADIOBOX" = "yes"; then
20445     cat >> confdefs.h <<\EOF
20446 #define wxUSE_RADIOBOX 1
20447 EOF
20448
20449     USES_CONTROLS=1
20450 fi
20451
20452 if test "$wxUSE_RADIOBTN" = "yes"; then
20453     cat >> confdefs.h <<\EOF
20454 #define wxUSE_RADIOBTN 1
20455 EOF
20456
20457     USES_CONTROLS=1
20458 fi
20459
20460 if test "$wxUSE_SASH" = "yes"; then
20461     cat >> confdefs.h <<\EOF
20462 #define wxUSE_SASH 1
20463 EOF
20464
20465     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
20466 fi
20467
20468 if test "$wxUSE_SCROLLBAR" = "yes"; then
20469     cat >> confdefs.h <<\EOF
20470 #define wxUSE_SCROLLBAR 1
20471 EOF
20472
20473     USES_CONTROLS=1
20474     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
20475 fi
20476
20477 if test "$wxUSE_SLIDER" = "yes"; then
20478     cat >> confdefs.h <<\EOF
20479 #define wxUSE_SLIDER 1
20480 EOF
20481
20482     USES_CONTROLS=1
20483 fi
20484
20485 if test "$wxUSE_SPINBTN" = "yes"; then
20486     cat >> confdefs.h <<\EOF
20487 #define wxUSE_SPINBTN 1
20488 EOF
20489
20490     USES_CONTROLS=1
20491 fi
20492
20493 if test "$wxUSE_SPINCTRL" = "yes"; then
20494     cat >> confdefs.h <<\EOF
20495 #define wxUSE_SPINCTRL 1
20496 EOF
20497
20498     USES_CONTROLS=1
20499 fi
20500
20501 if test "$wxUSE_SPLITTER" = "yes"; then
20502     cat >> confdefs.h <<\EOF
20503 #define wxUSE_SPLITTER 1
20504 EOF
20505
20506     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
20507 fi
20508
20509 if test "$wxUSE_STATBMP" = "yes"; then
20510     cat >> confdefs.h <<\EOF
20511 #define wxUSE_STATBMP 1
20512 EOF
20513
20514     USES_CONTROLS=1
20515 fi
20516
20517 if test "$wxUSE_STATBOX" = "yes"; then
20518     cat >> confdefs.h <<\EOF
20519 #define wxUSE_STATBOX 1
20520 EOF
20521
20522     USES_CONTROLS=1
20523 fi
20524
20525 if test "$wxUSE_STATTEXT" = "yes"; then
20526     cat >> confdefs.h <<\EOF
20527 #define wxUSE_STATTEXT 1
20528 EOF
20529
20530     USES_CONTROLS=1
20531 fi
20532
20533 if test "$wxUSE_STATLINE" = "yes"; then
20534     if test "$wxUSE_WINE" = 1 ; then
20535         echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
20536     else
20537         cat >> confdefs.h <<\EOF
20538 #define wxUSE_STATLINE 1
20539 EOF
20540
20541         USES_CONTROLS=1
20542     fi
20543 fi
20544
20545 if test "$wxUSE_STATUSBAR" = "yes"; then
20546     cat >> confdefs.h <<\EOF
20547 #define wxUSE_STATUSBAR 1
20548 EOF
20549
20550     USES_CONTROLS=1
20551
20552     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
20553 fi
20554
20555 if test "$wxUSE_TABDIALOG" = "yes"; then
20556     cat >> confdefs.h <<\EOF
20557 #define wxUSE_TAB_DIALOG 1
20558 EOF
20559
20560     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
20561 fi
20562
20563 if test "$wxUSE_TEXTCTRL" = "yes"; then
20564     cat >> confdefs.h <<\EOF
20565 #define wxUSE_TEXTCTRL 1
20566 EOF
20567
20568     USES_CONTROLS=1
20569     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
20570 fi
20571
20572 if test "$wxUSE_TOGGLEBTN" = "yes"; then
20573     if test "$wxUSE_MAC" = 1; then
20574         echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
20575         wxUSE_TOGGLEBTN=no
20576     fi
20577     if test "$wxUSE_UNIVERSAL" = "yes"; then
20578         echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
20579         wxUSE_TOGGLEBTN=no
20580     fi
20581
20582     if test "$wxUSE_TOGGLEBTN" = "yes"; then
20583         cat >> confdefs.h <<\EOF
20584 #define wxUSE_TOGGLEBTN 1
20585 EOF
20586
20587         USES_CONTROLS=1
20588     fi
20589 fi
20590
20591 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
20592     cat >> confdefs.h <<\EOF
20593 #define wxUSE_TOOLBAR_SIMPLE 1
20594 EOF
20595
20596     wxUSE_TOOLBAR="yes"
20597     USES_CONTROLS=1
20598 fi
20599
20600 if test "$wxUSE_TOOLBAR" = "yes"; then
20601     cat >> confdefs.h <<\EOF
20602 #define wxUSE_TOOLBAR 1
20603 EOF
20604
20605     USES_CONTROLS=1
20606
20607         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
20608         wxUSE_TOOLBAR_NATIVE="yes"
20609     fi
20610
20611     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
20612         cat >> confdefs.h <<\EOF
20613 #define wxUSE_TOOLBAR_NATIVE 1
20614 EOF
20615
20616         USES_CONTROLS=1
20617     fi
20618
20619     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
20620 fi
20621
20622 if test "$wxUSE_TOOLTIPS" = "yes"; then
20623     if test "$wxUSE_MOTIF" = 1; then
20624         echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
20625     else
20626         if test "$wxUSE_WINE" = 1; then
20627             echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
20628         else
20629             if test "$wxUSE_UNIVERSAL" = "yes"; then
20630                 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
20631             else
20632                 cat >> confdefs.h <<\EOF
20633 #define wxUSE_TOOLTIPS 1
20634 EOF
20635
20636             fi
20637         fi
20638     fi
20639 fi
20640
20641 if test "$wxUSE_TREECTRL" = "yes"; then
20642     if test "$wxUSE_IMAGLIST" = "yes"; then
20643         cat >> confdefs.h <<\EOF
20644 #define wxUSE_TREECTRL 1
20645 EOF
20646
20647         USES_CONTROLS=1
20648         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20649     else
20650         echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
20651     fi
20652 fi
20653
20654 if test "$wxUSE_POPUPWIN" = "yes"; then
20655     if test "$wxUSE_MAC" = 1; then
20656         echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
20657     else
20658         if test "$wxUSE_MOTIF" = 1; then
20659             echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
20660         else
20661             if test "$wxUSE_PM" = 1; then
20662                 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
20663             else
20664                 cat >> confdefs.h <<\EOF
20665 #define wxUSE_POPUPWIN 1
20666 EOF
20667
20668
20669                 USES_CONTROLS=1
20670             fi
20671         fi
20672     fi
20673 fi
20674
20675 if test "$wxUSE_TIPWINDOW" = "yes"; then
20676     if test "$wxUSE_PM" = 1; then
20677         echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
20678     else
20679         cat >> confdefs.h <<\EOF
20680 #define wxUSE_TIPWINDOW 1
20681 EOF
20682
20683     fi
20684 fi
20685
20686 if test "$USES_CONTROLS" = 1; then
20687     cat >> confdefs.h <<\EOF
20688 #define wxUSE_CONTROLS 1
20689 EOF
20690
20691 fi
20692
20693
20694 if test "$wxUSE_TREELAYOUT" = "yes"; then
20695     cat >> confdefs.h <<\EOF
20696 #define wxUSE_TREELAYOUT 1
20697 EOF
20698
20699     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20700 fi
20701
20702 if test "$wxUSE_DRAGIMAGE" = "yes"; then
20703     cat >> confdefs.h <<\EOF
20704 #define wxUSE_DRAGIMAGE 1
20705 EOF
20706
20707     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20708 fi
20709
20710 if test "$wxUSE_MENUS" = "yes"; then
20711     cat >> confdefs.h <<\EOF
20712 #define wxUSE_MENUS 1
20713 EOF
20714
20715     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
20716 fi
20717
20718 if test "$wxUSE_METAFILE" = "yes"; then
20719     cat >> confdefs.h <<\EOF
20720 #define wxUSE_METAFILE 1
20721 EOF
20722
20723 fi
20724
20725 if test "$wxUSE_MIMETYPE" = "yes"; then
20726     cat >> confdefs.h <<\EOF
20727 #define wxUSE_MIMETYPE 1
20728 EOF
20729
20730 fi
20731
20732 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
20733     cat >> confdefs.h <<\EOF
20734 #define wxUSE_SYSTEM_OPTIONS 1
20735 EOF
20736
20737 if test "$TOOLKIT" = "MSW"; then
20738     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
20739 fi
20740
20741 fi
20742
20743 if test "$wxUSE_PROTOCOL" = "yes"; then
20744     if test "$wxUSE_SOCKETS" != "yes"; then
20745         echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
20746         wxUSE_PROTOCOL=no
20747     fi
20748
20749     if test "$wxUSE_PROTOCOL" = "yes"; then
20750         cat >> confdefs.h <<\EOF
20751 #define wxUSE_PROTOCOL 1
20752 EOF
20753
20754
20755         if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
20756             cat >> confdefs.h <<\EOF
20757 #define wxUSE_PROTOCOL_HTTP 1
20758 EOF
20759
20760         fi
20761         if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
20762             cat >> confdefs.h <<\EOF
20763 #define wxUSE_PROTOCOL_FTP 1
20764 EOF
20765
20766         fi
20767         if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
20768             cat >> confdefs.h <<\EOF
20769 #define wxUSE_PROTOCOL_FILE 1
20770 EOF
20771
20772         fi
20773     fi
20774 fi
20775
20776 if test "$wxUSE_URL" = "yes"; then
20777     if test "$wxUSE_PROTOCOL" != "yes"; then
20778         echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20779         wxUSE_URL=no
20780     fi
20781     if test "$wxUSE_URL" = "yes"; then
20782         cat >> confdefs.h <<\EOF
20783 #define wxUSE_URL 1
20784 EOF
20785
20786     fi
20787 fi
20788
20789 if test "$wxUSE_MINIFRAME" = "yes"; then
20790     cat >> confdefs.h <<\EOF
20791 #define wxUSE_MINIFRAME 1
20792 EOF
20793
20794     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20795 fi
20796
20797 if test "$wxUSE_HTML" = "yes"; then
20798     cat >> confdefs.h <<\EOF
20799 #define wxUSE_HTML 1
20800 EOF
20801
20802     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
20803 fi
20804
20805 if test "$wxUSE_VALIDATORS" = "yes"; then
20806     cat >> confdefs.h <<\EOF
20807 #define wxUSE_VALIDATORS 1
20808 EOF
20809
20810     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20811 fi
20812
20813 if test "$wxUSE_PALETTE" = "yes" ; then
20814   cat >> confdefs.h <<\EOF
20815 #define wxUSE_PALETTE 1
20816 EOF
20817
20818 fi
20819
20820 if test "$wxUSE_IMAGE" = "yes" ; then
20821   cat >> confdefs.h <<\EOF
20822 #define wxUSE_IMAGE 1
20823 EOF
20824
20825 fi
20826
20827 if test "$wxUSE_GIF" = "yes" ; then
20828   cat >> confdefs.h <<\EOF
20829 #define wxUSE_GIF 1
20830 EOF
20831
20832 fi
20833
20834 if test "$wxUSE_PCX" = "yes" ; then
20835   cat >> confdefs.h <<\EOF
20836 #define wxUSE_PCX 1
20837 EOF
20838
20839 fi
20840
20841 if test "$wxUSE_IFF" = "yes" ; then
20842   cat >> confdefs.h <<\EOF
20843 #define wxUSE_IFF 1
20844 EOF
20845
20846 fi
20847
20848 if test "$wxUSE_PNM" = "yes" ; then
20849   cat >> confdefs.h <<\EOF
20850 #define wxUSE_PNM 1
20851 EOF
20852
20853 fi
20854
20855 if test "$wxUSE_XPM" = "yes" ; then
20856   cat >> confdefs.h <<\EOF
20857 #define wxUSE_XPM 1
20858 EOF
20859
20860 fi
20861
20862 if test "$wxUSE_ICO_CUR" = "yes" ; then
20863   cat >> confdefs.h <<\EOF
20864 #define wxUSE_ICO_CUR 1
20865 EOF
20866
20867 fi
20868
20869 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20870     LIBS=" -lunicows $LIBS"
20871 fi
20872
20873
20874 if test "$wxUSE_CHOICEDLG" = "yes"; then
20875     cat >> confdefs.h <<\EOF
20876 #define wxUSE_CHOICEDLG 1
20877 EOF
20878
20879 fi
20880
20881 if test "$wxUSE_COLOURDLG" = "yes"; then
20882     cat >> confdefs.h <<\EOF
20883 #define wxUSE_COLOURDLG 1
20884 EOF
20885
20886 fi
20887
20888 if test "$wxUSE_FILEDLG" = "yes"; then
20889     cat >> confdefs.h <<\EOF
20890 #define wxUSE_FILEDLG 1
20891 EOF
20892
20893 fi
20894
20895 if test "$wxUSE_FINDREPLDLG" = "yes"; then
20896     cat >> confdefs.h <<\EOF
20897 #define wxUSE_FINDREPLDLG 1
20898 EOF
20899
20900 fi
20901
20902 if test "$wxUSE_FONTDLG" = "yes"; then
20903     cat >> confdefs.h <<\EOF
20904 #define wxUSE_FONTDLG 1
20905 EOF
20906
20907 fi
20908
20909 if test "$wxUSE_DIRDLG" = "yes"; then
20910     if test "$wxUSE_TREECTRL" != "yes"; then
20911         echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
20912     else
20913         cat >> confdefs.h <<\EOF
20914 #define wxUSE_DIRDLG 1
20915 EOF
20916
20917     fi
20918 fi
20919
20920 if test "$wxUSE_MSGDLG" = "yes"; then
20921     cat >> confdefs.h <<\EOF
20922 #define wxUSE_MSGDLG 1
20923 EOF
20924
20925 fi
20926
20927 if test "$wxUSE_NUMBERDLG" = "yes"; then
20928     cat >> confdefs.h <<\EOF
20929 #define wxUSE_NUMBERDLG 1
20930 EOF
20931
20932 fi
20933
20934 if test "$wxUSE_PROGRESSDLG" = "yes"; then
20935     if test "$wxUSE_CONSTRAINTS" != "yes"; then
20936        echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20937     else
20938         cat >> confdefs.h <<\EOF
20939 #define wxUSE_PROGRESSDLG 1
20940 EOF
20941
20942     fi
20943 fi
20944
20945 if test "$wxUSE_SPLASH" = "yes"; then
20946     cat >> confdefs.h <<\EOF
20947 #define wxUSE_SPLASH 1
20948 EOF
20949
20950 fi
20951
20952 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20953     if test "$wxUSE_CONSTRAINTS" != "yes"; then
20954        echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20955     else
20956         cat >> confdefs.h <<\EOF
20957 #define wxUSE_STARTUP_TIPS 1
20958 EOF
20959
20960     fi
20961 fi
20962
20963 if test "$wxUSE_TEXTDLG" = "yes"; then
20964     cat >> confdefs.h <<\EOF
20965 #define wxUSE_TEXTDLG 1
20966 EOF
20967
20968 fi
20969
20970 if test "$wxUSE_WIZARDDLG" = "yes"; then
20971     cat >> confdefs.h <<\EOF
20972 #define wxUSE_WIZARDDLG 1
20973 EOF
20974
20975     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20976 fi
20977
20978
20979 if test "$cross_compiling" = "yes"; then
20980         OSINFO="\"$host\""
20981 else
20982         OSINFO=`uname -s -r -m`
20983     OSINFO="\"$OSINFO\""
20984 fi
20985
20986 cat >> confdefs.h <<EOF
20987 #define WXWIN_OS_DESCRIPTION $OSINFO
20988 EOF
20989
20990
20991
20992 if test "x$prefix" != "xNONE"; then
20993     wxPREFIX=$prefix
20994 else
20995     wxPREFIX=$ac_default_prefix
20996 fi
20997
20998 cat >> confdefs.h <<EOF
20999 #define wxINSTALL_PREFIX "$wxPREFIX"
21000 EOF
21001
21002
21003
21004
21005
21006 if test "$wxUSE_MAC" = 1 ; then
21007     LDFLAGS="$LDFLAGS -framework Carbon -framework System"
21008 fi
21009
21010
21011 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
21012
21013 if test "$wxUSE_GUI" = "yes"; then
21014
21015     LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
21016
21017         
21018             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
21019                      drawing dynamic erase event exec font image \
21020                      minimal propsize rotate widgets"
21021
21022         CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
21023 else
21024     SAMPLES_SUBDIRS="console"
21025 fi
21026
21027
21028 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
21029 -I\${top_srcdir}/include \
21030 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
21031 $TOOLKIT_INCLUDE"
21032
21033 if test "$wxUSE_GTK" = 1; then
21034     WXCONFIG_INCLUDE=
21035 else
21036     WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
21037 fi
21038
21039 if test "$GXX" = yes ; then
21040         CXXWARNINGS="-Wall"
21041         
21042             if test "$wxUSE_NO_DEPS" = "no" ; then
21043         CFLAGS="-MMD $CFLAGS"
21044         CXXFLAGS="-MMD $CXXFLAGS"
21045     fi
21046 fi
21047
21048 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
21049
21050 CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
21051 CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
21052 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
21053
21054 LDFLAGS="$LDFLAGS $PROFILE"
21055
21056 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
21148 echo "configure:21149: checking whether ${MAKE-make} sets \${MAKE}" >&5
21149 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
21150 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
21151   echo $ac_n "(cached) $ac_c" 1>&6
21152 else
21153   cat > conftestmake <<\EOF
21154 all:
21155         @echo 'ac_maketemp="${MAKE}"'
21156 EOF
21157 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21158 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
21159 if test -n "$ac_maketemp"; then
21160   eval ac_cv_prog_make_${ac_make}_set=yes
21161 else
21162   eval ac_cv_prog_make_${ac_make}_set=no
21163 fi
21164 rm -f conftestmake
21165 fi
21166 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
21167   echo "$ac_t""yes" 1>&6
21168   SET_MAKE=
21169 else
21170   echo "$ac_t""no" 1>&6
21171   SET_MAKE="MAKE=${MAKE-make}"
21172 fi
21173
21174
21175 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
21176     mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
21177 fi
21178
21179
21180
21181 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
21182 wx_cv_if_gnu_make=$IF_GNU_MAKE
21183 wx_cv_path_ifs=$PATH_IFS
21184 wx_cv_program_ext=$PROGRAM_EXT
21185 wx_cv_target_library=$WX_TARGET_LIBRARY
21186 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
21187 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
21188 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
21189        wx_cv_path_ifs wx_cv_program_ext \
21190        wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
21191
21192 subdirs="demos samples utils contrib"
21193
21194
21195 trap '' 1 2 15
21196 cat > confcache <<\EOF
21197 # This file is a shell script that caches the results of configure
21198 # tests run on this system so they can be shared between configure
21199 # scripts and configure runs.  It is not useful on other systems.
21200 # If it contains results you don't want to keep, you may remove or edit it.
21201 #
21202 # By default, configure uses ./config.cache as the cache file,
21203 # creating it if it does not exist already.  You can give configure
21204 # the --cache-file=FILE option to use a different cache file; that is
21205 # what configure does when it calls configure scripts in
21206 # subdirectories, so they share the cache.
21207 # Giving --cache-file=/dev/null disables caching, for debugging configure.
21208 # config.status only pays attention to the cache file if you give it the
21209 # --recheck option to rerun configure.
21210 #
21211 EOF
21212 # The following way of writing the cache mishandles newlines in values,
21213 # but we know of no workaround that is simple, portable, and efficient.
21214 # So, don't put newlines in cache variables' values.
21215 # Ultrix sh set writes to stderr and can't be redirected directly,
21216 # and sets the high bit in the cache file unless we assign to the vars.
21217 (set) 2>&1 |
21218   case `(ac_space=' '; set | grep ac_space) 2>&1` in
21219   *ac_space=\ *)
21220     # `set' does not quote correctly, so add quotes (double-quote substitution
21221     # turns \\\\ into \\, and sed turns \\ into \).
21222     sed -n \
21223       -e "s/'/'\\\\''/g" \
21224       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
21225     ;;
21226   *)
21227     # `set' quotes correctly as required by POSIX, so do not add quotes.
21228     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
21229     ;;
21230   esac >> confcache
21231 if cmp -s $cache_file confcache; then
21232   :
21233 else
21234   if test -w $cache_file; then
21235     echo "updating cache $cache_file"
21236     cat confcache > $cache_file
21237   else
21238     echo "not updating unwritable cache $cache_file"
21239   fi
21240 fi
21241 rm -f confcache
21242
21243 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
21244
21245 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21246 # Let make expand exec_prefix.
21247 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21248
21249 # Any assignment to VPATH causes Sun make to only execute
21250 # the first set of double-colon rules, so remove it if not needed.
21251 # If there is a colon in the path, we need to keep it.
21252 if test "x$srcdir" = x.; then
21253   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
21254 fi
21255
21256 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
21257
21258 DEFS=-DHAVE_CONFIG_H
21259
21260 # Without the "./", some shells look in PATH for config.status.
21261 : ${CONFIG_STATUS=./config.status}
21262
21263 echo creating $CONFIG_STATUS
21264 rm -f $CONFIG_STATUS
21265 cat > $CONFIG_STATUS <<EOF
21266 #! /bin/sh
21267 # Generated automatically by configure.
21268 # Run this file to recreate the current configuration.
21269 # This directory was configured as follows,
21270 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21271 #
21272 # $0 $ac_configure_args
21273 #
21274 # Compiler output produced by configure, useful for debugging
21275 # configure, is in ./config.log if it exists.
21276
21277 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
21278 for ac_option
21279 do
21280   case "\$ac_option" in
21281   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21282     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
21283     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
21284   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
21285     echo "$CONFIG_STATUS generated by autoconf version 2.13"
21286     exit 0 ;;
21287   -help | --help | --hel | --he | --h)
21288     echo "\$ac_cs_usage"; exit 0 ;;
21289   *) echo "\$ac_cs_usage"; exit 1 ;;
21290   esac
21291 done
21292
21293 ac_given_srcdir=$srcdir
21294 ac_given_INSTALL="$INSTALL"
21295
21296 trap 'rm -fr `echo "
21297             wx-config
21298             src/make.env
21299             src/makeprog.env
21300             src/makelib.env
21301             Makefile
21302            setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
21303 EOF
21304 cat >> $CONFIG_STATUS <<EOF
21305
21306 # Protect against being on the right side of a sed subst in config.status.
21307 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
21308  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
21309 $ac_vpsub
21310 $extrasub
21311 s%@SHELL@%$SHELL%g
21312 s%@CFLAGS@%$CFLAGS%g
21313 s%@CPPFLAGS@%$CPPFLAGS%g
21314 s%@CXXFLAGS@%$CXXFLAGS%g
21315 s%@FFLAGS@%$FFLAGS%g
21316 s%@DEFS@%$DEFS%g
21317 s%@LDFLAGS@%$LDFLAGS%g
21318 s%@LIBS@%$LIBS%g
21319 s%@exec_prefix@%$exec_prefix%g
21320 s%@prefix@%$prefix%g
21321 s%@program_transform_name@%$program_transform_name%g
21322 s%@bindir@%$bindir%g
21323 s%@sbindir@%$sbindir%g
21324 s%@libexecdir@%$libexecdir%g
21325 s%@datadir@%$datadir%g
21326 s%@sysconfdir@%$sysconfdir%g
21327 s%@sharedstatedir@%$sharedstatedir%g
21328 s%@localstatedir@%$localstatedir%g
21329 s%@libdir@%$libdir%g
21330 s%@includedir@%$includedir%g
21331 s%@oldincludedir@%$oldincludedir%g
21332 s%@infodir@%$infodir%g
21333 s%@mandir@%$mandir%g
21334 s%@host@%$host%g
21335 s%@host_alias@%$host_alias%g
21336 s%@host_cpu@%$host_cpu%g
21337 s%@host_vendor@%$host_vendor%g
21338 s%@host_os@%$host_os%g
21339 s%@target@%$target%g
21340 s%@target_alias@%$target_alias%g
21341 s%@target_cpu@%$target_cpu%g
21342 s%@target_vendor@%$target_vendor%g
21343 s%@target_os@%$target_os%g
21344 s%@build@%$build%g
21345 s%@build_alias@%$build_alias%g
21346 s%@build_cpu@%$build_cpu%g
21347 s%@build_vendor@%$build_vendor%g
21348 s%@build_os@%$build_os%g
21349 s%@CC@%$CC%g
21350 s%@CPP@%$CPP%g
21351 s%@CXX@%$CXX%g
21352 s%@RANLIB@%$RANLIB%g
21353 s%@AR@%$AR%g
21354 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
21355 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
21356 s%@INSTALL_DATA@%$INSTALL_DATA%g
21357 s%@STRIP@%$STRIP%g
21358 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
21359 s%@YACC@%$YACC%g
21360 s%@LEX@%$LEX%g
21361 s%@LEXLIB@%$LEXLIB%g
21362 s%@LN_S@%$LN_S%g
21363 s%@CXXCPP@%$CXXCPP%g
21364 s%@PKG_CONFIG@%$PKG_CONFIG%g
21365 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
21366 s%@GTK_LIBS@%$GTK_LIBS%g
21367 s%@GTK_CONFIG@%$GTK_CONFIG%g
21368 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
21369 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
21370 s%@X_CFLAGS@%$X_CFLAGS%g
21371 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
21372 s%@X_LIBS@%$X_LIBS%g
21373 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
21374 s%@AIX_CXX_LD@%$AIX_CXX_LD%g
21375 s%@RESCOMP@%$RESCOMP%g
21376 s%@DEREZ@%$DEREZ%g
21377 s%@LIBICONV@%$LIBICONV%g
21378 s%@LEX_STEM@%$LEX_STEM%g
21379 s%@PATH_IFS@%$PATH_IFS%g
21380 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
21381 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
21382 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
21383 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
21384 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
21385 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
21386 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
21387 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
21388 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
21389 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
21390 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
21391 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
21392 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
21393 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
21394 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
21395 s%@WX_ALL@%$WX_ALL%g
21396 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
21397 s%@SHARED_LD@%$SHARED_LD%g
21398 s%@PIC_FLAG@%$PIC_FLAG%g
21399 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
21400 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
21401 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
21402 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
21403 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
21404 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
21405 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
21406 s%@USE_GUI@%$USE_GUI%g
21407 s%@AFMINSTALL@%$AFMINSTALL%g
21408 s%@TOOLKIT@%$TOOLKIT%g
21409 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
21410 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
21411 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
21412 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
21413 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
21414 s%@cross_compiling@%$cross_compiling%g
21415 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
21416 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
21417 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
21418 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
21419 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
21420 s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
21421 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
21422 s%@ALL_HEADERS@%$ALL_HEADERS%g
21423 s%@ALL_SOURCES@%$ALL_SOURCES%g
21424 s%@GUIDIST@%$GUIDIST%g
21425 s%@PORT_FILES@%$PORT_FILES%g
21426 s%@DISTDIR@%$DISTDIR%g
21427 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
21428 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
21429 s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
21430 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
21431 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
21432 s%@EXTRADEFS@%$EXTRADEFS%g
21433 s%@RESFLAGS@%$RESFLAGS%g
21434 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
21435 s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
21436 s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
21437 s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
21438 s%@LIBWXMACRES@%$LIBWXMACRES%g
21439 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
21440 s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
21441 s%@DLLTOOL@%$DLLTOOL%g
21442 s%@AS@%$AS%g
21443 s%@NM@%$NM%g
21444 s%@LD@%$LD%g
21445 s%@MAKEINFO@%$MAKEINFO%g
21446 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
21447 s%@SET_MAKE@%$SET_MAKE%g
21448 s%@subdirs@%$subdirs%g
21449
21450 CEOF
21451 EOF
21452
21453 cat >> $CONFIG_STATUS <<\EOF
21454
21455 # Split the substitutions into bite-sized pieces for seds with
21456 # small command number limits, like on Digital OSF/1 and HP-UX.
21457 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
21458 ac_file=1 # Number of current file.
21459 ac_beg=1 # First line for current file.
21460 ac_end=$ac_max_sed_cmds # Line after last line for current file.
21461 ac_more_lines=:
21462 ac_sed_cmds=""
21463 while $ac_more_lines; do
21464   if test $ac_beg -gt 1; then
21465     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
21466   else
21467     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
21468   fi
21469   if test ! -s conftest.s$ac_file; then
21470     ac_more_lines=false
21471     rm -f conftest.s$ac_file
21472   else
21473     if test -z "$ac_sed_cmds"; then
21474       ac_sed_cmds="sed -f conftest.s$ac_file"
21475     else
21476       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
21477     fi
21478     ac_file=`expr $ac_file + 1`
21479     ac_beg=$ac_end
21480     ac_end=`expr $ac_end + $ac_max_sed_cmds`
21481   fi
21482 done
21483 if test -z "$ac_sed_cmds"; then
21484   ac_sed_cmds=cat
21485 fi
21486 EOF
21487
21488 cat >> $CONFIG_STATUS <<EOF
21489
21490 CONFIG_FILES=\${CONFIG_FILES-"wx-config
21491             src/make.env
21492             src/makeprog.env
21493             src/makelib.env
21494             Makefile
21495           "}
21496 EOF
21497 cat >> $CONFIG_STATUS <<\EOF
21498 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
21499   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21500   case "$ac_file" in
21501   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21502        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21503   *) ac_file_in="${ac_file}.in" ;;
21504   esac
21505
21506   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
21507
21508   # Remove last slash and all that follows it.  Not all systems have dirname.
21509   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21510   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21511     # The file is in a subdirectory.
21512     test ! -d "$ac_dir" && mkdir "$ac_dir"
21513     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
21514     # A "../" for each directory in $ac_dir_suffix.
21515     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
21516   else
21517     ac_dir_suffix= ac_dots=
21518   fi
21519
21520   case "$ac_given_srcdir" in
21521   .)  srcdir=.
21522       if test -z "$ac_dots"; then top_srcdir=.
21523       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
21524   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
21525   *) # Relative path.
21526     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21527     top_srcdir="$ac_dots$ac_given_srcdir" ;;
21528   esac
21529
21530   case "$ac_given_INSTALL" in
21531   [/$]*) INSTALL="$ac_given_INSTALL" ;;
21532   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21533   esac
21534
21535   echo creating "$ac_file"
21536   rm -f "$ac_file"
21537   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21538   case "$ac_file" in
21539   *Makefile*) ac_comsub="1i\\
21540 # $configure_input" ;;
21541   *) ac_comsub= ;;
21542   esac
21543
21544   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21545   sed -e "$ac_comsub
21546 s%@configure_input@%$configure_input%g
21547 s%@srcdir@%$srcdir%g
21548 s%@top_srcdir@%$top_srcdir%g
21549 s%@INSTALL@%$INSTALL%g
21550 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21551 fi; done
21552 rm -f conftest.s*
21553
21554 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21555 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21556 #
21557 # ac_d sets the value in "#define NAME VALUE" lines.
21558 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
21559 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
21560 ac_dC='\3'
21561 ac_dD='%g'
21562 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21563 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21564 ac_uB='\([      ]\)%\1#\2define\3'
21565 ac_uC=' '
21566 ac_uD='\4%g'
21567 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21568 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21569 ac_eB='$%\1#\2define\3'
21570 ac_eC=' '
21571 ac_eD='%g'
21572
21573 if test "${CONFIG_HEADERS+set}" != set; then
21574 EOF
21575 cat >> $CONFIG_STATUS <<EOF
21576   CONFIG_HEADERS="setup.h:setup.h.in"
21577 EOF
21578 cat >> $CONFIG_STATUS <<\EOF
21579 fi
21580 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
21581   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21582   case "$ac_file" in
21583   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21584        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21585   *) ac_file_in="${ac_file}.in" ;;
21586   esac
21587
21588   echo creating $ac_file
21589
21590   rm -f conftest.frag conftest.in conftest.out
21591   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21592   cat $ac_file_inputs > conftest.in
21593
21594 EOF
21595
21596 # Transform confdefs.h into a sed script conftest.vals that substitutes
21597 # the proper values into config.h.in to produce config.h.  And first:
21598 # Protect against being on the right side of a sed subst in config.status.
21599 # Protect against being in an unquoted here document in config.status.
21600 rm -f conftest.vals
21601 cat > conftest.hdr <<\EOF
21602 s/[\\&%]/\\&/g
21603 s%[\\$`]%\\&%g
21604 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21605 s%ac_d%ac_u%gp
21606 s%ac_u%ac_e%gp
21607 EOF
21608 sed -n -f conftest.hdr confdefs.h > conftest.vals
21609 rm -f conftest.hdr
21610
21611 # This sed command replaces #undef with comments.  This is necessary, for
21612 # example, in the case of _POSIX_SOURCE, which is predefined and required
21613 # on some systems where configure will not decide to define it.
21614 cat >> conftest.vals <<\EOF
21615 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
21616 EOF
21617
21618 # Break up conftest.vals because some shells have a limit on
21619 # the size of here documents, and old seds have small limits too.
21620
21621 rm -f conftest.tail
21622 while :
21623 do
21624   ac_lines=`grep -c . conftest.vals`
21625   # grep -c gives empty output for an empty file on some AIX systems.
21626   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21627   # Write a limited-size here document to conftest.frag.
21628   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21629   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
21630   echo 'CEOF
21631   sed -f conftest.frag conftest.in > conftest.out
21632   rm -f conftest.in
21633   mv conftest.out conftest.in
21634 ' >> $CONFIG_STATUS
21635   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21636   rm -f conftest.vals
21637   mv conftest.tail conftest.vals
21638 done
21639 rm -f conftest.vals
21640
21641 cat >> $CONFIG_STATUS <<\EOF
21642   rm -f conftest.frag conftest.h
21643   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
21644   cat conftest.in >> conftest.h
21645   rm -f conftest.in
21646   if cmp -s $ac_file conftest.h 2>/dev/null; then
21647     echo "$ac_file is unchanged"
21648     rm -f conftest.h
21649   else
21650     # Remove last slash and all that follows it.  Not all systems have dirname.
21651       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21652       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21653       # The file is in a subdirectory.
21654       test ! -d "$ac_dir" && mkdir "$ac_dir"
21655     fi
21656     rm -f $ac_file
21657     mv conftest.h $ac_file
21658   fi
21659 fi; done
21660
21661 EOF
21662 cat >> $CONFIG_STATUS <<EOF
21663
21664             TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
21665             LN_S="${LN_S}"
21666           
21667          
21668 EOF
21669 cat >> $CONFIG_STATUS <<\EOF
21670
21671                                                                                                 if test ! -h wx-config; then
21672                 chmod +x wx-config
21673                 mv wx-config wx${TOOLCHAIN_NAME}-config
21674                 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
21675             fi
21676
21677             if test ! -d lib; then
21678               mkdir lib
21679             fi
21680             if test ! -d lib/wx; then
21681               mkdir lib/wx
21682             fi
21683             if test ! -d lib/wx/include; then
21684               mkdir lib/wx/include
21685             fi
21686             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21687               mkdir lib/wx/include/${TOOLCHAIN_NAME}
21688             fi
21689             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21690               mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
21691             fi
21692             if test -f setup.h; then
21693               mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
21694             fi
21695           
21696 exit 0
21697 EOF
21698 chmod +x $CONFIG_STATUS
21699 rm -fr confdefs* $ac_clean_files
21700 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
21701
21702 if test "$no_recursion" != yes; then
21703
21704   # Remove --cache-file and --srcdir arguments so they do not pile up.
21705   ac_sub_configure_args=
21706   ac_prev=
21707   for ac_arg in $ac_configure_args; do
21708     if test -n "$ac_prev"; then
21709       ac_prev=
21710       continue
21711     fi
21712     case "$ac_arg" in
21713     -cache-file | --cache-file | --cache-fil | --cache-fi \
21714     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21715       ac_prev=cache_file ;;
21716     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21717     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
21718       ;;
21719     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21720       ac_prev=srcdir ;;
21721     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21722       ;;
21723     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21724     esac
21725   done
21726
21727   for ac_config_dir in demos samples utils contrib; do
21728
21729     # Do not complain, so a configure script can configure whichever
21730     # parts of a large source tree are present.
21731     if test ! -d $srcdir/$ac_config_dir; then
21732       continue
21733     fi
21734
21735     echo configuring in $ac_config_dir
21736
21737     case "$srcdir" in
21738     .) ;;
21739     *)
21740       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21741       else
21742         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21743       fi
21744       ;;
21745     esac
21746
21747     ac_popdir=`pwd`
21748     cd $ac_config_dir
21749
21750       # A "../" for each directory in /$ac_config_dir.
21751       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
21752
21753     case "$srcdir" in
21754     .) # No --srcdir option.  We are building in place.
21755       ac_sub_srcdir=$srcdir ;;
21756     /*) # Absolute path.
21757       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
21758     *) # Relative path.
21759       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
21760     esac
21761
21762     # Check for guested configure; otherwise get Cygnus style configure.
21763     if test -f $ac_sub_srcdir/configure; then
21764       ac_sub_configure=$ac_sub_srcdir/configure
21765     elif test -f $ac_sub_srcdir/configure.in; then
21766       ac_sub_configure=$ac_configure
21767     else
21768       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
21769       ac_sub_configure=
21770     fi
21771
21772     # The recursion is here.
21773     if test -n "$ac_sub_configure"; then
21774
21775       # Make the cache file name correct relative to the subdirectory.
21776       case "$cache_file" in
21777       /*) ac_sub_cache_file=$cache_file ;;
21778       *) # Relative path.
21779         ac_sub_cache_file="$ac_dots$cache_file" ;;
21780       esac
21781   case "$ac_given_INSTALL" in
21782         [/$]*) INSTALL="$ac_given_INSTALL" ;;
21783         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21784         esac
21785
21786       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
21787       # The eval makes quoting arguments work.
21788       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21789       then :
21790       else
21791         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21792       fi
21793     fi
21794
21795     cd $ac_popdir
21796   done
21797 fi
21798
21799