]> git.saurik.com Git - wxWidgets.git/blob - configure
added configure support for the large files
[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 # Configure paths for GTK+
57 # Owen Taylor 1997-2001
58
59
60
61 # Configure paths for GTK+
62 # Owen Taylor 97-11-3
63
64
65
66 # Guess values for system-dependent variables and create Makefiles.
67 # Generated automatically using autoconf version 2.13
68 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
69 #
70 # This configure script is free software; the Free Software Foundation
71 # gives unlimited permission to copy, distribute and modify it.
72
73 # Defaults:
74 ac_help=
75 ac_default_prefix=/usr/local
76 # Any additions from configure.in:
77 ac_help="$ac_help
78 --enable-gui use GUI classes"
79 ac_help="$ac_help
80 --enable-universal use wxWindows GUI controls instead of native ones"
81 ac_help="$ac_help
82 --with-gtk use GTK+"
83 ac_help="$ac_help
84 --with-motif use Motif/Lesstif"
85 ac_help="$ac_help
86 --with-mac use Mac OS X"
87 ac_help="$ac_help
88 --with-wine use WINE"
89 ac_help="$ac_help
90 --with-msw use MS-Windows"
91 ac_help="$ac_help
92 --with-pm use OS/2 Presentation Manager"
93 ac_help="$ac_help
94 --with-mgl use SciTech MGL"
95 ac_help="$ac_help
96 --with-microwin use MicroWindows"
97 ac_help="$ac_help
98 --with-x11 use X11"
99 ac_help="$ac_help
100 --enable-nanox use NanoX"
101 ac_help="$ac_help
102 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
103 ac_help="$ac_help
104 --with-libpng use libpng (PNG image format)"
105 ac_help="$ac_help
106 --with-libjpeg use libjpeg (JPEG file format)"
107 ac_help="$ac_help
108 --with-libtiff use libtiff (TIFF file format)"
109 ac_help="$ac_help
110 --with-opengl use OpenGL (or Mesa)"
111 ac_help="$ac_help
112 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
113 ac_help="$ac_help
114 --with-regex enable support for wxRegEx class"
115 ac_help="$ac_help
116 --with-zlib use zlib for LZW compression"
117 ac_help="$ac_help
118 --with-odbc use the IODBC and wxODBC classes"
119 ac_help="$ac_help
120 --enable-shared create shared library code"
121 ac_help="$ac_help
122 --enable-soname set the DT_SONAME field in ELF shared libraries"
123 ac_help="$ac_help
124 --enable-optimise create optimised code"
125 ac_help="$ac_help
126 --enable-debug same as debug_flag and debug_info"
127 ac_help="$ac_help
128 --enable-precomp enable use of precompiled headers (Mac OS X)"
129 ac_help="$ac_help
130 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
131 ac_help="$ac_help
132 --enable-debug_info create code with debugging information"
133 ac_help="$ac_help
134 --enable-debug_gdb create code with extra GDB debugging information"
135 ac_help="$ac_help
136 --enable-debug_cntxt use wxDebugContext"
137 ac_help="$ac_help
138 --enable-mem_tracing create code with memory tracing"
139 ac_help="$ac_help
140 --enable-profile create code with profiling information"
141 ac_help="$ac_help
142 --enable-no_rtti create code without RTTI information"
143 ac_help="$ac_help
144 --enable-no_exceptions create code without C++ exceptions handling"
145 ac_help="$ac_help
146 --enable-permissive compile code disregarding strict ANSI"
147 ac_help="$ac_help
148 --enable-no_deps create code without dependency information"
149 ac_help="$ac_help
150 --enable-compat20 enable wxWindows 2.0 compatibility"
151 ac_help="$ac_help
152 --disable-compat22 disable wxWindows 2.2 compatibility"
153 ac_help="$ac_help
154 --enable-intl use internationalization system"
155 ac_help="$ac_help
156 --enable-config use wxConfig (and derived) classes"
157 ac_help="$ac_help
158 --enable-protocols use wxProtocol and derived classes"
159 ac_help="$ac_help
160 --enable-ftp use wxFTP (requires wxProtocol"
161 ac_help="$ac_help
162 --enable-http use wxHTTP (requires wxProtocol"
163 ac_help="$ac_help
164 --enable-fileproto use wxFileProto class (requires wxProtocol"
165 ac_help="$ac_help
166 --enable-sockets use socket/network classes"
167 ac_help="$ac_help
168 --enable-ipc use interprocess communication (wxSocket etc.)"
169 ac_help="$ac_help
170 --enable-cmdline use wxCmdLineParser class"
171 ac_help="$ac_help
172 --enable-datetime use wxDateTime class"
173 ac_help="$ac_help
174 --enable-timedate use obsolete wxDate/wxTime classes"
175 ac_help="$ac_help
176 --enable-stopwatch use wxStopWatch class"
177 ac_help="$ac_help
178 --enable-dialupman use dialup network classes"
179 ac_help="$ac_help
180 --enable-apple_ieee use the Apple IEEE codec"
181 ac_help="$ac_help
182 --enable-timer use wxTimer class"
183 ac_help="$ac_help
184 --enable-wave use wxWave class"
185 ac_help="$ac_help
186 --enable-fraction use wxFraction class"
187 ac_help="$ac_help
188 --enable-dynlib use wxLibrary class for DLL loading"
189 ac_help="$ac_help
190 --enable-dynamicloader use (new) wxDynamicLibrary class"
191 ac_help="$ac_help
192 --enable-longlong use wxLongLong class"
193 ac_help="$ac_help
194 --enable-geometry use geometry class"
195 ac_help="$ac_help
196 --enable-log use logging system"
197 ac_help="$ac_help
198 --enable-streams use wxStream etc classes"
199 ac_help="$ac_help
200 --enable-file use wxFile classes"
201 ac_help="$ac_help
202 --enable-ffile use wxFFile classes"
203 ac_help="$ac_help
204 --enable-textbuf use wxTextBuffer class"
205 ac_help="$ac_help
206 --enable-textfile use wxTextFile class"
207 ac_help="$ac_help
208 --enable-fontmap use font encodings conversion classes"
209 ac_help="$ac_help
210 --enable-unicode compile wxString with Unicode support"
211 ac_help="$ac_help
212 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
213 ac_help="$ac_help
214 --enable-wxprintfv use wxWindows implementation of vprintf()"
215 ac_help="$ac_help
216 --enable-std_iostreams use standard C++ stream classes"
217 ac_help="$ac_help
218 --enable-filesystem use virtual file systems classes"
219 ac_help="$ac_help
220 --enable-fs_inet use virtual HTTP/FTP filesystems"
221 ac_help="$ac_help
222 --enable-fs_zip use virtual ZIP filesystems"
223 ac_help="$ac_help
224 --enable-zipstream use wxZipInputStream"
225 ac_help="$ac_help
226 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
227 ac_help="$ac_help
228 --enable-snglinst use wxSingleInstanceChecker class"
229 ac_help="$ac_help
230 --enable-mimetype use wxMimeTypesManager"
231 ac_help="$ac_help
232 --enable-sysoptions use wxSystemOptions"
233 ac_help="$ac_help
234 --enable-url use wxURL class"
235 ac_help="$ac_help
236 --enable-protocol use wxProtocol class"
237 ac_help="$ac_help
238 --enable-protocol-http HTTP support in wxProtocol"
239 ac_help="$ac_help
240 --enable-protocol-ftp FTP support in wxProtocol"
241 ac_help="$ac_help
242 --enable-protocol-file FILE support in wxProtocol"
243 ac_help="$ac_help
244 --enable-threads use threads"
245 ac_help="$ac_help
246 --enable-docview use document view architecture"
247 ac_help="$ac_help
248 --enable-help use help subsystem"
249 ac_help="$ac_help
250 --enable-mshtmlhelp use MS HTML Help (win32)"
251 ac_help="$ac_help
252 --enable-html use wxHTML sub-library"
253 ac_help="$ac_help
254 --enable-htmlhelp use wxHTML-based help"
255 ac_help="$ac_help
256 --enable-constraints use layout-constraints system"
257 ac_help="$ac_help
258 --enable-printarch use printing architecture"
259 ac_help="$ac_help
260 --enable-mdi use multiple document interface architecture"
261 ac_help="$ac_help
262 --enable-loggui use standard GUI logger"
263 ac_help="$ac_help
264 --enable-logwin use wxLogWindow"
265 ac_help="$ac_help
266 --enable-logdialog use wxLogDialog"
267 ac_help="$ac_help
268 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
269 ac_help="$ac_help
270 --enable-prologio use Prolog IO library"
271 ac_help="$ac_help
272 --enable-resources use wxWindows resources"
273 ac_help="$ac_help
274 --enable-xresources use X resources for save (default for gtk+)"
275 ac_help="$ac_help
276 --enable-clipboard use wxClipboard classes"
277 ac_help="$ac_help
278 --enable-dnd use Drag'n'Drop classes"
279 ac_help="$ac_help
280 --enable-metafile use win32 metafiles"
281 ac_help="$ac_help
282 --enable-treelayout use wxTreeLayout classes"
283 ac_help="$ac_help
284 --enable-controls use all usual controls"
285 ac_help="$ac_help
286 --enable-accel use accelerators"
287 ac_help="$ac_help
288 --enable-button use wxButton class"
289 ac_help="$ac_help
290 --enable-bmpbutton use wxBitmapButton class"
291 ac_help="$ac_help
292 --enable-calendar use wxCalendarCtrl class"
293 ac_help="$ac_help
294 --enable-caret use wxCaret class"
295 ac_help="$ac_help
296 --enable-checkbox use wxCheckBox class"
297 ac_help="$ac_help
298 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
299 ac_help="$ac_help
300 --enable-choice use wxChoice class"
301 ac_help="$ac_help
302 --enable-combobox use wxComboBox classes"
303 ac_help="$ac_help
304 --enable-gauge use wxGauge class"
305 ac_help="$ac_help
306 --enable-grid use wxGrid class"
307 ac_help="$ac_help
308 --enable-newgrid use new wxGrid class"
309 ac_help="$ac_help
310 --enable-imaglist use wxImageList class"
311 ac_help="$ac_help
312 --enable-listbox use wxListBox class"
313 ac_help="$ac_help
314 --enable-listctrl use wxListCtrl class"
315 ac_help="$ac_help
316 --enable-notebook use wxNotebook class"
317 ac_help="$ac_help
318 --enable-propsheet use wxPropertySheet class"
319 ac_help="$ac_help
320 --enable-radiobox use wxRadioBox class"
321 ac_help="$ac_help
322 --enable-radiobtn use wxRadioButton class"
323 ac_help="$ac_help
324 --enable-sash use wxSashWindow class"
325 ac_help="$ac_help
326 --enable-scrollbar use wxScrollBar class and scrollable windows"
327 ac_help="$ac_help
328 --enable-slider use wxSlider class"
329 ac_help="$ac_help
330 --enable-spinbtn use wxSpinButton class"
331 ac_help="$ac_help
332 --enable-spinctrl use wxSpinCtrl class"
333 ac_help="$ac_help
334 --enable-splitter use wxSplitterWindow class"
335 ac_help="$ac_help
336 --enable-statbmp use wxStaticBitmap class"
337 ac_help="$ac_help
338 --enable-statbox use wxStaticBox class"
339 ac_help="$ac_help
340 --enable-statline use wxStaticLine class"
341 ac_help="$ac_help
342 --enable-stattext use wxStaticText class"
343 ac_help="$ac_help
344 --enable-statusbar use wxStatusBar class"
345 ac_help="$ac_help
346 --enable-tabdialog use wxTabControl class"
347 ac_help="$ac_help
348 --enable-textctrl use wxTextCtrl class"
349 ac_help="$ac_help
350 --enable-togglebtn use wxToggleButton class"
351 ac_help="$ac_help
352 --enable-toolbar use wxToolBar class"
353 ac_help="$ac_help
354 --enable-tbarnative use native wxToolBar class"
355 ac_help="$ac_help
356 --enable-tbarsmpl use wxToolBarSimple class"
357 ac_help="$ac_help
358 --enable-treectrl use wxTreeCtrl class"
359 ac_help="$ac_help
360 --enable-tipwindow use wxTipWindow class"
361 ac_help="$ac_help
362 --enable-popupwin use wxPopUpWindow class"
363 ac_help="$ac_help
364 --enable-commondlg use all common dialogs"
365 ac_help="$ac_help
366 --enable-choicedlg use wxChoiceDialog"
367 ac_help="$ac_help
368 --enable-coldlg use wxColourDialog"
369 ac_help="$ac_help
370 --enable-filedlg use wxFileDialog"
371 ac_help="$ac_help
372 --enable-finddlg use wxFindReplaceDialog"
373 ac_help="$ac_help
374 --enable-fontdlg use wxFontDialog"
375 ac_help="$ac_help
376 --enable-dirdlg use wxDirDialog"
377 ac_help="$ac_help
378 --enable-msgdlg use wxMessageDialog"
379 ac_help="$ac_help
380 --enable-numberdlg use wxNumberEntryDialog"
381 ac_help="$ac_help
382 --enable-splash use wxSplashScreen"
383 ac_help="$ac_help
384 --enable-textdlg use wxTextDialog"
385 ac_help="$ac_help
386 --enable-tipdlg use startup tips"
387 ac_help="$ac_help
388 --enable-progressdlg use wxProgressDialog"
389 ac_help="$ac_help
390 --enable-wizarddlg use wxWizard"
391 ac_help="$ac_help
392 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
393 ac_help="$ac_help
394 --enable-miniframe use wxMiniFrame class"
395 ac_help="$ac_help
396 --enable-tooltips use wxToolTip class"
397 ac_help="$ac_help
398 --enable-splines use spline drawing code"
399 ac_help="$ac_help
400 --enable-validators use wxValidator and derived classes"
401 ac_help="$ac_help
402 --enable-busyinfo use wxBusyInfo"
403 ac_help="$ac_help
404 --enable-joystick use wxJoystick (Linux only)"
405 ac_help="$ac_help
406 --enable-metafiles use wxMetaFile (Windows only)"
407 ac_help="$ac_help
408 --enable-dragimage use wxDragImage"
409 ac_help="$ac_help
410 --enable-palette use wxPalette class"
411 ac_help="$ac_help
412 --enable-image use wxImage class"
413 ac_help="$ac_help
414 --enable-gif use gif images (GIF file format)"
415 ac_help="$ac_help
416 --enable-pcx use pcx images (PCX file format)"
417 ac_help="$ac_help
418 --enable-iff use iff images (IFF file format)"
419 ac_help="$ac_help
420 --enable-pnm use pnm images (PNM file format)"
421 ac_help="$ac_help
422 --enable-xpm use xpm images (XPM file format)"
423 ac_help="$ac_help
424 --enable-icocur use Windows ICO and CUR formats"
425 ac_help="$ac_help
426 --disable-largefile omit support for large files"
427 ac_help="$ac_help
428 --disable-gtktest do not try to compile and run a test GTK+ program"
429 ac_help="$ac_help
430 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
431 ac_help="$ac_help
432 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
433 ac_help="$ac_help
434 --disable-gtktest Do not try to compile and run a test GTK program"
435 ac_help="$ac_help
436 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
437 ac_help="$ac_help
438 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
439 ac_help="$ac_help
440 --disable-gtktest Do not try to compile and run a test GTK program"
441 ac_help="$ac_help
442 --with-x use the X Window System"
443 ac_help="$ac_help
444 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
445
446 # Initialize some variables set by options.
447 # The variables have the same names as the options, with
448 # dashes changed to underlines.
449 build=NONE
450 cache_file=./config.cache
451 exec_prefix=NONE
452 host=NONE
453 no_create=
454 nonopt=NONE
455 no_recursion=
456 prefix=NONE
457 program_prefix=NONE
458 program_suffix=NONE
459 program_transform_name=s,x,x,
460 silent=
461 site=
462 srcdir=
463 target=NONE
464 verbose=
465 x_includes=NONE
466 x_libraries=NONE
467 bindir='${exec_prefix}/bin'
468 sbindir='${exec_prefix}/sbin'
469 libexecdir='${exec_prefix}/libexec'
470 datadir='${prefix}/share'
471 sysconfdir='${prefix}/etc'
472 sharedstatedir='${prefix}/com'
473 localstatedir='${prefix}/var'
474 libdir='${exec_prefix}/lib'
475 includedir='${prefix}/include'
476 oldincludedir='/usr/include'
477 infodir='${prefix}/info'
478 mandir='${prefix}/man'
479
480 # Initialize some other variables.
481 subdirs=
482 MFLAGS= MAKEFLAGS=
483 SHELL=${CONFIG_SHELL-/bin/sh}
484 # Maximum number of lines to put in a shell here document.
485 ac_max_here_lines=12
486
487 ac_prev=
488 for ac_option
489 do
490
491 # If the previous option needs an argument, assign it.
492 if test -n "$ac_prev"; then
493 eval "$ac_prev=\$ac_option"
494 ac_prev=
495 continue
496 fi
497
498 case "$ac_option" in
499 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
500 *) ac_optarg= ;;
501 esac
502
503 # Accept the important Cygnus configure options, so we can diagnose typos.
504
505 case "$ac_option" in
506
507 -bindir | --bindir | --bindi | --bind | --bin | --bi)
508 ac_prev=bindir ;;
509 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
510 bindir="$ac_optarg" ;;
511
512 -build | --build | --buil | --bui | --bu)
513 ac_prev=build ;;
514 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
515 build="$ac_optarg" ;;
516
517 -cache-file | --cache-file | --cache-fil | --cache-fi \
518 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
519 ac_prev=cache_file ;;
520 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
521 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
522 cache_file="$ac_optarg" ;;
523
524 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
525 ac_prev=datadir ;;
526 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
527 | --da=*)
528 datadir="$ac_optarg" ;;
529
530 -disable-* | --disable-*)
531 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
532 # Reject names that are not valid shell variable names.
533 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
534 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
535 fi
536 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
537 eval "enable_${ac_feature}=no" ;;
538
539 -enable-* | --enable-*)
540 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
541 # Reject names that are not valid shell variable names.
542 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
543 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
544 fi
545 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
546 case "$ac_option" in
547 *=*) ;;
548 *) ac_optarg=yes ;;
549 esac
550 eval "enable_${ac_feature}='$ac_optarg'" ;;
551
552 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
553 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
554 | --exec | --exe | --ex)
555 ac_prev=exec_prefix ;;
556 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
557 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
558 | --exec=* | --exe=* | --ex=*)
559 exec_prefix="$ac_optarg" ;;
560
561 -gas | --gas | --ga | --g)
562 # Obsolete; use --with-gas.
563 with_gas=yes ;;
564
565 -help | --help | --hel | --he)
566 # Omit some internal or obsolete options to make the list less imposing.
567 # This message is too long to be a string in the A/UX 3.1 sh.
568 cat << EOF
569 Usage: configure [options] [host]
570 Options: [defaults in brackets after descriptions]
571 Configuration:
572 --cache-file=FILE cache test results in FILE
573 --help print this message
574 --no-create do not create output files
575 --quiet, --silent do not print \`checking...' messages
576 --version print the version of autoconf that created configure
577 Directory and file names:
578 --prefix=PREFIX install architecture-independent files in PREFIX
579 [$ac_default_prefix]
580 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
581 [same as prefix]
582 --bindir=DIR user executables in DIR [EPREFIX/bin]
583 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
584 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
585 --datadir=DIR read-only architecture-independent data in DIR
586 [PREFIX/share]
587 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
588 --sharedstatedir=DIR modifiable architecture-independent data in DIR
589 [PREFIX/com]
590 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
591 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
592 --includedir=DIR C header files in DIR [PREFIX/include]
593 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
594 --infodir=DIR info documentation in DIR [PREFIX/info]
595 --mandir=DIR man documentation in DIR [PREFIX/man]
596 --srcdir=DIR find the sources in DIR [configure dir or ..]
597 --program-prefix=PREFIX prepend PREFIX to installed program names
598 --program-suffix=SUFFIX append SUFFIX to installed program names
599 --program-transform-name=PROGRAM
600 run sed PROGRAM on installed program names
601 EOF
602 cat << EOF
603 Host type:
604 --build=BUILD configure for building on BUILD [BUILD=HOST]
605 --host=HOST configure for HOST [guessed]
606 --target=TARGET configure for TARGET [TARGET=HOST]
607 Features and packages:
608 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
609 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
610 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
611 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
612 --x-includes=DIR X include files are in DIR
613 --x-libraries=DIR X library files are in DIR
614 EOF
615 if test -n "$ac_help"; then
616 echo "--enable and --with options recognized:$ac_help"
617 fi
618 exit 0 ;;
619
620 -host | --host | --hos | --ho)
621 ac_prev=host ;;
622 -host=* | --host=* | --hos=* | --ho=*)
623 host="$ac_optarg" ;;
624
625 -includedir | --includedir | --includedi | --included | --include \
626 | --includ | --inclu | --incl | --inc)
627 ac_prev=includedir ;;
628 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
629 | --includ=* | --inclu=* | --incl=* | --inc=*)
630 includedir="$ac_optarg" ;;
631
632 -infodir | --infodir | --infodi | --infod | --info | --inf)
633 ac_prev=infodir ;;
634 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
635 infodir="$ac_optarg" ;;
636
637 -libdir | --libdir | --libdi | --libd)
638 ac_prev=libdir ;;
639 -libdir=* | --libdir=* | --libdi=* | --libd=*)
640 libdir="$ac_optarg" ;;
641
642 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
643 | --libexe | --libex | --libe)
644 ac_prev=libexecdir ;;
645 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
646 | --libexe=* | --libex=* | --libe=*)
647 libexecdir="$ac_optarg" ;;
648
649 -localstatedir | --localstatedir | --localstatedi | --localstated \
650 | --localstate | --localstat | --localsta | --localst \
651 | --locals | --local | --loca | --loc | --lo)
652 ac_prev=localstatedir ;;
653 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
654 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
655 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
656 localstatedir="$ac_optarg" ;;
657
658 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
659 ac_prev=mandir ;;
660 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
661 mandir="$ac_optarg" ;;
662
663 -nfp | --nfp | --nf)
664 # Obsolete; use --without-fp.
665 with_fp=no ;;
666
667 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
668 | --no-cr | --no-c)
669 no_create=yes ;;
670
671 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
672 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
673 no_recursion=yes ;;
674
675 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
676 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
677 | --oldin | --oldi | --old | --ol | --o)
678 ac_prev=oldincludedir ;;
679 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
680 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
681 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
682 oldincludedir="$ac_optarg" ;;
683
684 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
685 ac_prev=prefix ;;
686 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
687 prefix="$ac_optarg" ;;
688
689 -program-prefix | --program-prefix | --program-prefi | --program-pref \
690 | --program-pre | --program-pr | --program-p)
691 ac_prev=program_prefix ;;
692 -program-prefix=* | --program-prefix=* | --program-prefi=* \
693 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
694 program_prefix="$ac_optarg" ;;
695
696 -program-suffix | --program-suffix | --program-suffi | --program-suff \
697 | --program-suf | --program-su | --program-s)
698 ac_prev=program_suffix ;;
699 -program-suffix=* | --program-suffix=* | --program-suffi=* \
700 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
701 program_suffix="$ac_optarg" ;;
702
703 -program-transform-name | --program-transform-name \
704 | --program-transform-nam | --program-transform-na \
705 | --program-transform-n | --program-transform- \
706 | --program-transform | --program-transfor \
707 | --program-transfo | --program-transf \
708 | --program-trans | --program-tran \
709 | --progr-tra | --program-tr | --program-t)
710 ac_prev=program_transform_name ;;
711 -program-transform-name=* | --program-transform-name=* \
712 | --program-transform-nam=* | --program-transform-na=* \
713 | --program-transform-n=* | --program-transform-=* \
714 | --program-transform=* | --program-transfor=* \
715 | --program-transfo=* | --program-transf=* \
716 | --program-trans=* | --program-tran=* \
717 | --progr-tra=* | --program-tr=* | --program-t=*)
718 program_transform_name="$ac_optarg" ;;
719
720 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
721 | -silent | --silent | --silen | --sile | --sil)
722 silent=yes ;;
723
724 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
725 ac_prev=sbindir ;;
726 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
727 | --sbi=* | --sb=*)
728 sbindir="$ac_optarg" ;;
729
730 -sharedstatedir | --sharedstatedir | --sharedstatedi \
731 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
732 | --sharedst | --shareds | --shared | --share | --shar \
733 | --sha | --sh)
734 ac_prev=sharedstatedir ;;
735 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
736 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
737 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
738 | --sha=* | --sh=*)
739 sharedstatedir="$ac_optarg" ;;
740
741 -site | --site | --sit)
742 ac_prev=site ;;
743 -site=* | --site=* | --sit=*)
744 site="$ac_optarg" ;;
745
746 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
747 ac_prev=srcdir ;;
748 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
749 srcdir="$ac_optarg" ;;
750
751 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
752 | --syscon | --sysco | --sysc | --sys | --sy)
753 ac_prev=sysconfdir ;;
754 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
755 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
756 sysconfdir="$ac_optarg" ;;
757
758 -target | --target | --targe | --targ | --tar | --ta | --t)
759 ac_prev=target ;;
760 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
761 target="$ac_optarg" ;;
762
763 -v | -verbose | --verbose | --verbos | --verbo | --verb)
764 verbose=yes ;;
765
766 -version | --version | --versio | --versi | --vers)
767 echo "configure generated by autoconf version 2.13"
768 exit 0 ;;
769
770 -with-* | --with-*)
771 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
772 # Reject names that are not valid shell variable names.
773 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
774 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
775 fi
776 ac_package=`echo $ac_package| sed 's/-/_/g'`
777 case "$ac_option" in
778 *=*) ;;
779 *) ac_optarg=yes ;;
780 esac
781 eval "with_${ac_package}='$ac_optarg'" ;;
782
783 -without-* | --without-*)
784 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
785 # Reject names that are not valid shell variable names.
786 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
787 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
788 fi
789 ac_package=`echo $ac_package| sed 's/-/_/g'`
790 eval "with_${ac_package}=no" ;;
791
792 --x)
793 # Obsolete; use --with-x.
794 with_x=yes ;;
795
796 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
797 | --x-incl | --x-inc | --x-in | --x-i)
798 ac_prev=x_includes ;;
799 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
800 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
801 x_includes="$ac_optarg" ;;
802
803 -x-libraries | --x-libraries | --x-librarie | --x-librari \
804 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
805 ac_prev=x_libraries ;;
806 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
807 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
808 x_libraries="$ac_optarg" ;;
809
810 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
811 ;;
812
813 *)
814 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
815 echo "configure: warning: $ac_option: invalid host type" 1>&2
816 fi
817 if test "x$nonopt" != xNONE; then
818 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
819 fi
820 nonopt="$ac_option"
821 ;;
822
823 esac
824 done
825
826 if test -n "$ac_prev"; then
827 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
828 fi
829
830 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
831
832 # File descriptor usage:
833 # 0 standard input
834 # 1 file creation
835 # 2 errors and warnings
836 # 3 some systems may open it to /dev/tty
837 # 4 used on the Kubota Titan
838 # 6 checking for... messages and results
839 # 5 compiler messages saved in config.log
840 if test "$silent" = yes; then
841 exec 6>/dev/null
842 else
843 exec 6>&1
844 fi
845 exec 5>./config.log
846
847 echo "\
848 This file contains any messages produced by compilers while
849 running configure, to aid debugging if configure makes a mistake.
850 " 1>&5
851
852 # Strip out --no-create and --no-recursion so they do not pile up.
853 # Also quote any args containing shell metacharacters.
854 ac_configure_args=
855 for ac_arg
856 do
857 case "$ac_arg" in
858 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
859 | --no-cr | --no-c) ;;
860 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
861 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
862 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
863 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
864 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
865 esac
866 done
867
868 # NLS nuisances.
869 # Only set these to C if already set. These must not be set unconditionally
870 # because not all systems understand e.g. LANG=C (notably SCO).
871 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
872 # Non-C LC_CTYPE values break the ctype check.
873 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
874 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
875 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
876 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
877
878 # confdefs.h avoids OS command line length limits that DEFS can exceed.
879 rm -rf conftest* confdefs.h
880 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
881 echo > confdefs.h
882
883 # A filename unique to this package, relative to the directory that
884 # configure is in, which we can look for to find out if srcdir is correct.
885 ac_unique_file=wx-config.in
886
887 # Find the source files, if location was not specified.
888 if test -z "$srcdir"; then
889 ac_srcdir_defaulted=yes
890 # Try the directory containing this script, then its parent.
891 ac_prog=$0
892 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
893 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
894 srcdir=$ac_confdir
895 if test ! -r $srcdir/$ac_unique_file; then
896 srcdir=..
897 fi
898 else
899 ac_srcdir_defaulted=no
900 fi
901 if test ! -r $srcdir/$ac_unique_file; then
902 if test "$ac_srcdir_defaulted" = yes; then
903 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
904 else
905 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
906 fi
907 fi
908 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
909
910 # Prefer explicitly selected file to automatically selected ones.
911 if test -z "$CONFIG_SITE"; then
912 if test "x$prefix" != xNONE; then
913 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
914 else
915 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
916 fi
917 fi
918 for ac_site_file in $CONFIG_SITE; do
919 if test -r "$ac_site_file"; then
920 echo "loading site script $ac_site_file"
921 . "$ac_site_file"
922 fi
923 done
924
925 if test -r "$cache_file"; then
926 echo "loading cache $cache_file"
927 . $cache_file
928 else
929 echo "creating cache $cache_file"
930 > $cache_file
931 fi
932
933 ac_ext=c
934 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
935 ac_cpp='$CPP $CPPFLAGS'
936 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
937 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
938 cross_compiling=$ac_cv_prog_cc_cross
939
940 ac_exeext=
941 ac_objext=o
942 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
943 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
944 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
945 ac_n= ac_c='
946 ' ac_t=' '
947 else
948 ac_n=-n ac_c= ac_t=
949 fi
950 else
951 ac_n= ac_c='\c' ac_t=
952 fi
953
954
955
956 ac_aux_dir=
957 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
958 if test -f $ac_dir/install-sh; then
959 ac_aux_dir=$ac_dir
960 ac_install_sh="$ac_aux_dir/install-sh -c"
961 break
962 elif test -f $ac_dir/install.sh; then
963 ac_aux_dir=$ac_dir
964 ac_install_sh="$ac_aux_dir/install.sh -c"
965 break
966 fi
967 done
968 if test -z "$ac_aux_dir"; then
969 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
970 fi
971 ac_config_guess=$ac_aux_dir/config.guess
972 ac_config_sub=$ac_aux_dir/config.sub
973 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
974
975
976 # Do some error checking and defaulting for the host and target type.
977 # The inputs are:
978 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
979 #
980 # The rules are:
981 # 1. You are not allowed to specify --host, --target, and nonopt at the
982 # same time.
983 # 2. Host defaults to nonopt.
984 # 3. If nonopt is not specified, then host defaults to the current host,
985 # as determined by config.guess.
986 # 4. Target and build default to nonopt.
987 # 5. If nonopt is not specified, then target and build default to host.
988
989 # The aliases save the names the user supplied, while $host etc.
990 # will get canonicalized.
991 case $host---$target---$nonopt in
992 NONE---*---* | *---NONE---* | *---*---NONE) ;;
993 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
994 esac
995
996
997 # Make sure we can run config.sub.
998 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
999 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1000 fi
1001
1002 echo $ac_n "checking host system type""... $ac_c" 1>&6
1003 echo "configure:1004: checking host system type" >&5
1004
1005 host_alias=$host
1006 case "$host_alias" in
1007 NONE)
1008 case $nonopt in
1009 NONE)
1010 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1011 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1012 fi ;;
1013 *) host_alias=$nonopt ;;
1014 esac ;;
1015 esac
1016
1017 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1018 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1019 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1020 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1021 echo "$ac_t""$host" 1>&6
1022
1023 echo $ac_n "checking target system type""... $ac_c" 1>&6
1024 echo "configure:1025: checking target system type" >&5
1025
1026 target_alias=$target
1027 case "$target_alias" in
1028 NONE)
1029 case $nonopt in
1030 NONE) target_alias=$host_alias ;;
1031 *) target_alias=$nonopt ;;
1032 esac ;;
1033 esac
1034
1035 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1036 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1037 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1038 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1039 echo "$ac_t""$target" 1>&6
1040
1041 echo $ac_n "checking build system type""... $ac_c" 1>&6
1042 echo "configure:1043: checking build system type" >&5
1043
1044 build_alias=$build
1045 case "$build_alias" in
1046 NONE)
1047 case $nonopt in
1048 NONE) build_alias=$host_alias ;;
1049 *) build_alias=$nonopt ;;
1050 esac ;;
1051 esac
1052
1053 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1054 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1055 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1056 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1057 echo "$ac_t""$build" 1>&6
1058
1059 test "$host_alias" != "$target_alias" &&
1060 test "$program_prefix$program_suffix$program_transform_name" = \
1061 NONENONEs,x,x, &&
1062 program_prefix=${target_alias}-
1063
1064
1065
1066 WX_MAJOR_VERSION_NUMBER=2
1067 WX_MINOR_VERSION_NUMBER=3
1068 WX_RELEASE_NUMBER=3
1069
1070 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1071 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1072
1073 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1074
1075 WX_CURRENT=2
1076 WX_REVISION=0
1077 WX_AGE=0
1078
1079
1080
1081 USE_UNIX=1
1082 USE_WIN32=0
1083 USE_DOS=0
1084 USE_BEOS=0
1085 USE_MAC=0
1086
1087 USE_LINUX=
1088 USE_SGI=
1089 USE_HPUX=
1090 USE_SYSV=
1091 USE_SVR4=
1092 USE_AIX=
1093 USE_SUN=
1094 USE_SOLARIS=
1095 USE_SUNOS=
1096 USE_ALPHA=
1097 USE_OSF=
1098 USE_BSD=
1099 USE_DARWIN=
1100 USE_FREEBSD=
1101 USE_OPENBSD=
1102 USE_NETBSD=
1103 USE_VMS=
1104 USE_ULTRIX=
1105 USE_DATA_GENERAL=
1106
1107 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1108
1109 ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
1110
1111 DEFAULT_wxUSE_GTK=0
1112 DEFAULT_wxUSE_MAC=0
1113 DEFAULT_wxUSE_MGL=0
1114 DEFAULT_wxUSE_MICROWIN=0
1115 DEFAULT_wxUSE_MOTIF=0
1116 DEFAULT_wxUSE_MSW=0
1117 DEFAULT_wxUSE_PM=0
1118 DEFAULT_wxUSE_WINE=0
1119 DEFAULT_wxUSE_X11=0
1120
1121 DEFAULT_DEFAULT_wxUSE_GTK=0
1122 DEFAULT_DEFAULT_wxUSE_MAC=0
1123 DEFAULT_DEFAULT_wxUSE_MGL=0
1124 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1125 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1126 DEFAULT_DEFAULT_wxUSE_MSW=0
1127 DEFAULT_DEFAULT_wxUSE_PM=0
1128 DEFAULT_DEFAULT_wxUSE_WINE=0
1129 DEFAULT_DEFAULT_wxUSE_X11=0
1130
1131 PROGRAM_EXT=
1132 SO_SUFFIX=so
1133
1134 case "${host}" in
1135 *-hp-hpux* )
1136 USE_HPUX=1
1137 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1138 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1139 SO_SUFFIX=sl
1140 cat >> confdefs.h <<\EOF
1141 #define __HPUX__ 1
1142 EOF
1143
1144 ;;
1145 *-*-linux* )
1146 USE_LINUX=1
1147 cat >> confdefs.h <<\EOF
1148 #define __LINUX__ 1
1149 EOF
1150
1151 TMP=`uname -m`
1152 if test "x$TMP" = "xalpha"; then
1153 USE_ALPHA=1
1154 cat >> confdefs.h <<\EOF
1155 #define __ALPHA__ 1
1156 EOF
1157
1158 fi
1159 DEFAULT_DEFAULT_wxUSE_GTK=1
1160 ;;
1161 *-*-irix5* | *-*-irix6* )
1162 USE_SGI=1
1163 USE_SVR4=1
1164 cat >> confdefs.h <<\EOF
1165 #define __SGI__ 1
1166 EOF
1167
1168 cat >> confdefs.h <<\EOF
1169 #define __SVR4__ 1
1170 EOF
1171
1172 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1173 ;;
1174 *-*-solaris2* )
1175 USE_SUN=1
1176 USE_SOLARIS=1
1177 USE_SVR4=1
1178 cat >> confdefs.h <<\EOF
1179 #define __SUN__ 1
1180 EOF
1181
1182 cat >> confdefs.h <<\EOF
1183 #define __SOLARIS__ 1
1184 EOF
1185
1186 cat >> confdefs.h <<\EOF
1187 #define __SVR4__ 1
1188 EOF
1189
1190 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1191 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1192 ;;
1193 *-*-sunos4* )
1194 USE_SUN=1
1195 USE_SUNOS=1
1196 USE_BSD=1
1197 cat >> confdefs.h <<\EOF
1198 #define __SUN__ 1
1199 EOF
1200
1201 cat >> confdefs.h <<\EOF
1202 #define __SUNOS__ 1
1203 EOF
1204
1205 cat >> confdefs.h <<\EOF
1206 #define __BSD__ 1
1207 EOF
1208
1209 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1210 ;;
1211 *-*-freebsd*)
1212 USE_BSD=1
1213 USE_FREEBSD=1
1214 cat >> confdefs.h <<\EOF
1215 #define __FREEBSD__ 1
1216 EOF
1217
1218 cat >> confdefs.h <<\EOF
1219 #define __BSD__ 1
1220 EOF
1221
1222 DEFAULT_DEFAULT_wxUSE_GTK=1
1223 ;;
1224 *-*-openbsd*)
1225 USE_BSD=1
1226 USE_OPENBSD=1
1227 cat >> confdefs.h <<\EOF
1228 #define __FREEBSD__ 1
1229 EOF
1230
1231 cat >> confdefs.h <<\EOF
1232 #define __OPENBSD__ 1
1233 EOF
1234
1235 DEFAULT_DEFAULT_wxUSE_GTK=1
1236 ;;
1237 *-*-netbsd*)
1238 USE_BSD=1
1239 USE_NETBSD=1
1240 cat >> confdefs.h <<\EOF
1241 #define __FREEBSD__ 1
1242 EOF
1243
1244 cat >> confdefs.h <<\EOF
1245 #define __NETBSD__ 1
1246 EOF
1247
1248 DEFAULT_DEFAULT_wxUSE_GTK=1
1249 ;;
1250 *-*-osf* )
1251 USE_ALPHA=1
1252 USE_OSF=1
1253 cat >> confdefs.h <<\EOF
1254 #define __ALPHA__ 1
1255 EOF
1256
1257 cat >> confdefs.h <<\EOF
1258 #define __OSF__ 1
1259 EOF
1260
1261 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1262 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1263 ;;
1264 *-*-dgux5* )
1265 USE_ALPHA=1
1266 USE_SVR4=1
1267 cat >> confdefs.h <<\EOF
1268 #define __ALPHA__ 1
1269 EOF
1270
1271 cat >> confdefs.h <<\EOF
1272 #define __SVR4__ 1
1273 EOF
1274
1275 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1276 ;;
1277 *-*-sysv5* )
1278 USE_SYSV=1
1279 USE_SVR4=1
1280 cat >> confdefs.h <<\EOF
1281 #define __SYSV__ 1
1282 EOF
1283
1284 cat >> confdefs.h <<\EOF
1285 #define __SVR4__ 1
1286 EOF
1287
1288 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1289 ;;
1290 *-*-aix* )
1291 USE_AIX=1
1292 USE_SYSV=1
1293 USE_SVR4=1
1294 cat >> confdefs.h <<\EOF
1295 #define __AIX__ 1
1296 EOF
1297
1298 cat >> confdefs.h <<\EOF
1299 #define __SYSV__ 1
1300 EOF
1301
1302 cat >> confdefs.h <<\EOF
1303 #define __SVR4__ 1
1304 EOF
1305
1306 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1307 ;;
1308
1309 *-*-cygwin* | *-*-mingw32* )
1310 USE_UNIX=0
1311 USE_WIN32=1
1312 SO_SUFFIX=dll
1313 cat >> confdefs.h <<\EOF
1314 #define __WIN32__ 1
1315 EOF
1316
1317 cat >> confdefs.h <<\EOF
1318 #define __WIN95__ 1
1319 EOF
1320
1321 cat >> confdefs.h <<\EOF
1322 #define __WINDOWS__ 1
1323 EOF
1324
1325 cat >> confdefs.h <<\EOF
1326 #define __GNUWIN32__ 1
1327 EOF
1328
1329 cat >> confdefs.h <<\EOF
1330 #define STRICT 1
1331 EOF
1332
1333 cat >> confdefs.h <<\EOF
1334 #define WINVER 0x0400
1335 EOF
1336
1337 PROGRAM_EXT=".exe"
1338 RESCOMP=windres
1339 DEFAULT_DEFAULT_wxUSE_MSW=1
1340 ;;
1341
1342 *-pc-msdosdjgpp )
1343 USE_UNIX=0
1344 USE_DOS=1
1345 cat >> confdefs.h <<\EOF
1346 #define __DOS__ 1
1347 EOF
1348
1349 PROGRAM_EXT=".exe"
1350 DEFAULT_DEFAULT_wxUSE_MGL=1
1351 ;;
1352
1353 *-pc-os2_emx | *-pc-os2-emx )
1354 cat >> confdefs.h <<\EOF
1355 #define __EMX__ 1
1356 EOF
1357
1358 PROGRAM_EXT=".exe"
1359 DEFAULT_DEFAULT_wxUSE_PM=1
1360 LIBS="$LIBS -lstdcpp"
1361 ;;
1362
1363 powerpc-*-darwin* )
1364 USE_BSD=1
1365 USE_DARWIN=1
1366 SO_SUFFIX=dylib
1367 cat >> confdefs.h <<\EOF
1368 #define __BSD__ 1
1369 EOF
1370
1371 cat >> confdefs.h <<\EOF
1372 #define __DARWIN__ 1
1373 EOF
1374
1375 cat >> confdefs.h <<\EOF
1376 #define __POWERPC__ 1
1377 EOF
1378
1379 DEFAULT_DEFAULT_wxUSE_MAC=1
1380 ;;
1381
1382 *-*-beos* )
1383 USE_BEOS=1
1384 cat >> confdefs.h <<\EOF
1385 #define __BEOS__ 1
1386 EOF
1387
1388 ;;
1389
1390 *)
1391 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1392 esac
1393
1394 if test "$USE_UNIX" = 1 ; then
1395 wxUSE_UNIX=yes
1396 cat >> confdefs.h <<\EOF
1397 #define __UNIX__ 1
1398 EOF
1399
1400 fi
1401
1402
1403
1404
1405 wx_arg_cache_file="configarg.cache"
1406 echo "loading argument cache $wx_arg_cache_file"
1407 rm -f ${wx_arg_cache_file}.tmp
1408 touch ${wx_arg_cache_file}.tmp
1409 touch ${wx_arg_cache_file}
1410
1411
1412 DEBUG_CONFIGURE=0
1413 if test $DEBUG_CONFIGURE = 1; then
1414 DEFAULT_wxUSE_UNIVERSAL=no
1415
1416 DEFAULT_wxUSE_NANOX=no
1417
1418 DEFAULT_wxUSE_THREADS=yes
1419
1420 DEFAULT_wxUSE_SHARED=yes
1421 DEFAULT_wxUSE_SONAME=no
1422 DEFAULT_wxUSE_OPTIMISE=no
1423 DEFAULT_wxUSE_PROFILE=no
1424 DEFAULT_wxUSE_NO_DEPS=no
1425 DEFAULT_wxUSE_NO_RTTI=no
1426 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1427 DEFAULT_wxUSE_PERMISSIVE=no
1428 DEFAULT_wxUSE_DEBUG_FLAG=yes
1429 DEFAULT_wxUSE_DEBUG_INFO=yes
1430 DEFAULT_wxUSE_DEBUG_GDB=yes
1431 DEFAULT_wxUSE_MEM_TRACING=no
1432 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1433 DEFAULT_wxUSE_DMALLOC=no
1434 DEFAULT_wxUSE_PRECOMP=no
1435 DEFAULT_wxUSE_APPLE_IEEE=no
1436
1437 DEFAULT_wxUSE_LOG=yes
1438 DEFAULT_wxUSE_LOGWINDOW=no
1439 DEFAULT_wxUSE_LOGGUI=no
1440 DEFAULT_wxUSE_LOGDIALOG=no
1441
1442 DEFAULT_wxUSE_GUI=yes
1443 DEFAULT_wxUSE_CONTROLS=no
1444
1445 DEFAULT_wxUSE_REGEX=no
1446 DEFAULT_wxUSE_ZLIB=no
1447 DEFAULT_wxUSE_LIBPNG=no
1448 DEFAULT_wxUSE_LIBJPEG=no
1449 DEFAULT_wxUSE_LIBTIFF=no
1450 DEFAULT_wxUSE_ODBC=no
1451 DEFAULT_wxUSE_OPENGL=no
1452
1453 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1454 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1455 DEFAULT_wxUSE_STD_IOSTREAM=no
1456 DEFAULT_wxUSE_CMDLINE_PARSER=no
1457 DEFAULT_wxUSE_DATETIME=no
1458 DEFAULT_wxUSE_TIMEDATE=no
1459 DEFAULT_wxUSE_TIMER=no
1460 DEFAULT_wxUSE_STOPWATCH=no
1461 DEFAULT_wxUSE_FILE=no
1462 DEFAULT_wxUSE_FFILE=no
1463 DEFAULT_wxUSE_TEXTBUFFER=no
1464 DEFAULT_wxUSE_TEXTFILE=no
1465 DEFAULT_wxUSE_WAVE=no
1466 DEFAULT_wxUSE_INTL=no
1467 DEFAULT_wxUSE_CONFIG=no
1468 DEFAULT_wxUSE_FONTMAP=no
1469 DEFAULT_wxUSE_STREAMS=no
1470 DEFAULT_wxUSE_SOCKETS=no
1471 DEFAULT_wxUSE_DIALUP_MANAGER=no
1472 DEFAULT_wxUSE_JOYSTICK=no
1473 DEFAULT_wxUSE_DYNLIB_CLASS=no
1474 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1475 DEFAULT_wxUSE_LONGLONG=no
1476 DEFAULT_wxUSE_GEOMETRY=no
1477
1478 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1479 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1480 DEFAULT_wxUSE_POSTSCRIPT=no
1481
1482 DEFAULT_wxUSE_X_RESOURCES=no
1483 DEFAULT_wxUSE_CLIPBOARD=no
1484 DEFAULT_wxUSE_TOOLTIPS=no
1485 DEFAULT_wxUSE_DRAG_AND_DROP=no
1486 DEFAULT_wxUSE_DRAGIMAGE=no
1487 DEFAULT_wxUSE_SPLINES=no
1488
1489 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1490 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1491 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1492
1493 DEFAULT_wxUSE_PROLOGIO=no
1494 DEFAULT_wxUSE_RESOURCES=no
1495 DEFAULT_wxUSE_CONSTRAINTS=no
1496 DEFAULT_wxUSE_IPC=no
1497 DEFAULT_wxUSE_HELP=no
1498 DEFAULT_wxUSE_MS_HTML_HELP=no
1499 DEFAULT_wxUSE_WXHTML_HELP=no
1500 DEFAULT_wxUSE_TREELAYOUT=no
1501 DEFAULT_wxUSE_METAFILE=no
1502 DEFAULT_wxUSE_MIMETYPE=no
1503 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1504 DEFAULT_wxUSE_PROTOCOL=no
1505 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1506 DEFAULT_wxUSE_PROTOCOL_FTP=no
1507 DEFAULT_wxUSE_PROTOCOL_FILE=no
1508 DEFAULT_wxUSE_URL=no
1509
1510 DEFAULT_wxUSE_COMMONDLGS=no
1511 DEFAULT_wxUSE_CHOICEDLG=no
1512 DEFAULT_wxUSE_COLOURDLG=no
1513 DEFAULT_wxUSE_DIRDLG=no
1514 DEFAULT_wxUSE_FILEDLG=no
1515 DEFAULT_wxUSE_FINDREPLDLG=no
1516 DEFAULT_wxUSE_FONTDLG=no
1517 DEFAULT_wxUSE_MSGDLG=no
1518 DEFAULT_wxUSE_NUMBERDLG=no
1519 DEFAULT_wxUSE_TEXTDLG=no
1520 DEFAULT_wxUSE_SPLASH=no
1521 DEFAULT_wxUSE_STARTUP_TIPS=no
1522 DEFAULT_wxUSE_PROGRESSDLG=no
1523 DEFAULT_wxUSE_WIZARDDLG=no
1524
1525 DEFAULT_wxUSE_MENUS=no
1526 DEFAULT_wxUSE_MINIFRAME=no
1527 DEFAULT_wxUSE_HTML=no
1528 DEFAULT_wxUSE_FILESYSTEM=no
1529 DEFAULT_wxUSE_FS_INET=no
1530 DEFAULT_wxUSE_FS_ZIP=no
1531 DEFAULT_wxUSE_BUSYINFO=no
1532 DEFAULT_wxUSE_ZIPSTREAM=no
1533 DEFAULT_wxUSE_VALIDATORS=no
1534
1535 DEFAULT_wxUSE_ACCEL=no
1536 DEFAULT_wxUSE_BUTTON=no
1537 DEFAULT_wxUSE_BMPBUTTON=no
1538 DEFAULT_wxUSE_CALCTRL=no
1539 DEFAULT_wxUSE_CARET=no
1540 DEFAULT_wxUSE_CHECKBOX=no
1541 DEFAULT_wxUSE_CHECKLST=no
1542 DEFAULT_wxUSE_CHOICE=no
1543 DEFAULT_wxUSE_COMBOBOX=no
1544 DEFAULT_wxUSE_GAUGE=no
1545 DEFAULT_wxUSE_GRID=no
1546 DEFAULT_wxUSE_NEW_GRID=no
1547 DEFAULT_wxUSE_IMAGLIST=no
1548 DEFAULT_wxUSE_LISTBOX=no
1549 DEFAULT_wxUSE_LISTCTRL=no
1550 DEFAULT_wxUSE_NOTEBOOK=no
1551 DEFAULT_wxUSE_PROPSHEET=no
1552 DEFAULT_wxUSE_RADIOBOX=no
1553 DEFAULT_wxUSE_RADIOBTN=no
1554 DEFAULT_wxUSE_SASH=no
1555 DEFAULT_wxUSE_SCROLLBAR=no
1556 DEFAULT_wxUSE_SLIDER=no
1557 DEFAULT_wxUSE_SPINBTN=no
1558 DEFAULT_wxUSE_SPINCTRL=no
1559 DEFAULT_wxUSE_SPLITTER=no
1560 DEFAULT_wxUSE_STATBMP=no
1561 DEFAULT_wxUSE_STATBOX=no
1562 DEFAULT_wxUSE_STATLINE=no
1563 DEFAULT_wxUSE_STATTEXT=no
1564 DEFAULT_wxUSE_STATUSBAR=yes
1565 DEFAULT_wxUSE_TABDIALOG=no
1566 DEFAULT_wxUSE_TEXTCTRL=no
1567 DEFAULT_wxUSE_TOGGLEBTN=no
1568 DEFAULT_wxUSE_TOOLBAR=no
1569 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1570 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1571 DEFAULT_wxUSE_TREECTRL=no
1572 DEFAULT_wxUSE_POPUPWIN=no
1573 DEFAULT_wxUSE_TIPWINDOW=no
1574
1575 DEFAULT_wxUSE_UNICODE=no
1576 DEFAULT_wxUSE_UNICODE_MSLU=no
1577 DEFAULT_wxUSE_WCSRTOMBS=no
1578
1579 DEFAULT_wxUSE_PALETTE=no
1580 DEFAULT_wxUSE_IMAGE=no
1581 DEFAULT_wxUSE_GIF=no
1582 DEFAULT_wxUSE_PCX=no
1583 DEFAULT_wxUSE_PNM=no
1584 DEFAULT_wxUSE_IFF=no
1585 DEFAULT_wxUSE_XPM=no
1586 DEFAULT_wxUSE_ICO_CUR=no
1587 else
1588 DEFAULT_wxUSE_UNIVERSAL=no
1589
1590 DEFAULT_wxUSE_NANOX=no
1591
1592 DEFAULT_wxUSE_THREADS=yes
1593
1594 DEFAULT_wxUSE_SHARED=yes
1595 DEFAULT_wxUSE_SONAME=no
1596 DEFAULT_wxUSE_OPTIMISE=yes
1597 DEFAULT_wxUSE_PROFILE=no
1598 DEFAULT_wxUSE_NO_DEPS=no
1599 DEFAULT_wxUSE_NO_RTTI=no
1600 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1601 DEFAULT_wxUSE_PERMISSIVE=no
1602 DEFAULT_wxUSE_DEBUG_FLAG=no
1603 DEFAULT_wxUSE_DEBUG_INFO=no
1604 DEFAULT_wxUSE_DEBUG_GDB=no
1605 DEFAULT_wxUSE_MEM_TRACING=no
1606 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1607 DEFAULT_wxUSE_DMALLOC=no
1608 DEFAULT_wxUSE_PRECOMP=no
1609 DEFAULT_wxUSE_APPLE_IEEE=yes
1610
1611 DEFAULT_wxUSE_LOG=yes
1612 DEFAULT_wxUSE_LOGWINDOW=yes
1613 DEFAULT_wxUSE_LOGGUI=yes
1614 DEFAULT_wxUSE_LOGDIALOG=yes
1615
1616 DEFAULT_wxUSE_GUI=yes
1617
1618 DEFAULT_wxUSE_REGEX=yes
1619 DEFAULT_wxUSE_ZLIB=yes
1620 DEFAULT_wxUSE_LIBPNG=yes
1621 DEFAULT_wxUSE_LIBJPEG=yes
1622 DEFAULT_wxUSE_LIBTIFF=yes
1623 DEFAULT_wxUSE_ODBC=no
1624 DEFAULT_wxUSE_OPENGL=no
1625
1626 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1627 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1628 DEFAULT_wxUSE_STD_IOSTREAM=no
1629 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1630 DEFAULT_wxUSE_DATETIME=yes
1631 DEFAULT_wxUSE_TIMEDATE=no
1632 DEFAULT_wxUSE_TIMER=yes
1633 DEFAULT_wxUSE_STOPWATCH=yes
1634 DEFAULT_wxUSE_FILE=yes
1635 DEFAULT_wxUSE_FFILE=yes
1636 DEFAULT_wxUSE_TEXTBUFFER=yes
1637 DEFAULT_wxUSE_TEXTFILE=yes
1638 DEFAULT_wxUSE_WAVE=no
1639 DEFAULT_wxUSE_INTL=yes
1640 DEFAULT_wxUSE_CONFIG=yes
1641 DEFAULT_wxUSE_FONTMAP=yes
1642 DEFAULT_wxUSE_STREAMS=yes
1643 DEFAULT_wxUSE_SOCKETS=yes
1644 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1645 DEFAULT_wxUSE_JOYSTICK=yes
1646 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1647 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1648 DEFAULT_wxUSE_LONGLONG=yes
1649 DEFAULT_wxUSE_GEOMETRY=yes
1650
1651 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1652 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1653 DEFAULT_wxUSE_POSTSCRIPT=yes
1654
1655 DEFAULT_wxUSE_X_RESOURCES=no
1656 DEFAULT_wxUSE_CLIPBOARD=yes
1657 DEFAULT_wxUSE_TOOLTIPS=yes
1658 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1659 DEFAULT_wxUSE_DRAGIMAGE=yes
1660 DEFAULT_wxUSE_SPLINES=yes
1661
1662 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1663 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1664 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1665
1666 DEFAULT_wxUSE_PROLOGIO=yes
1667 DEFAULT_wxUSE_RESOURCES=yes
1668 DEFAULT_wxUSE_CONSTRAINTS=yes
1669 DEFAULT_wxUSE_IPC=yes
1670 DEFAULT_wxUSE_HELP=yes
1671 DEFAULT_wxUSE_MS_HTML_HELP=yes
1672 DEFAULT_wxUSE_WXHTML_HELP=yes
1673 DEFAULT_wxUSE_TREELAYOUT=yes
1674 DEFAULT_wxUSE_METAFILE=yes
1675 DEFAULT_wxUSE_MIMETYPE=yes
1676 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1677 DEFAULT_wxUSE_PROTOCOL=yes
1678 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1679 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1680 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1681 DEFAULT_wxUSE_URL=yes
1682
1683 DEFAULT_wxUSE_COMMONDLGS=yes
1684 DEFAULT_wxUSE_CHOICEDLG=yes
1685 DEFAULT_wxUSE_COLOURDLG=yes
1686 DEFAULT_wxUSE_DIRDLG=yes
1687 DEFAULT_wxUSE_FILEDLG=yes
1688 DEFAULT_wxUSE_FINDREPLDLG=yes
1689 DEFAULT_wxUSE_FONTDLG=yes
1690 DEFAULT_wxUSE_MSGDLG=yes
1691 DEFAULT_wxUSE_NUMBERDLG=yes
1692 DEFAULT_wxUSE_TEXTDLG=yes
1693 DEFAULT_wxUSE_SPLASH=yes
1694 DEFAULT_wxUSE_STARTUP_TIPS=yes
1695 DEFAULT_wxUSE_PROGRESSDLG=yes
1696 DEFAULT_wxUSE_WIZARDDLG=yes
1697
1698 DEFAULT_wxUSE_MENUS=yes
1699 DEFAULT_wxUSE_MINIFRAME=yes
1700 DEFAULT_wxUSE_HTML=yes
1701 DEFAULT_wxUSE_FILESYSTEM=yes
1702 DEFAULT_wxUSE_FS_INET=yes
1703 DEFAULT_wxUSE_FS_ZIP=yes
1704 DEFAULT_wxUSE_BUSYINFO=yes
1705 DEFAULT_wxUSE_ZIPSTREAM=yes
1706 DEFAULT_wxUSE_VALIDATORS=yes
1707
1708 DEFAULT_wxUSE_ACCEL=yes
1709 DEFAULT_wxUSE_BUTTON=yes
1710 DEFAULT_wxUSE_BMPBUTTON=yes
1711 DEFAULT_wxUSE_CALCTRL=yes
1712 DEFAULT_wxUSE_CARET=yes
1713 DEFAULT_wxUSE_CHECKBOX=yes
1714 DEFAULT_wxUSE_CHECKLST=yes
1715 DEFAULT_wxUSE_CHOICE=yes
1716 DEFAULT_wxUSE_COMBOBOX=yes
1717 DEFAULT_wxUSE_GAUGE=yes
1718 DEFAULT_wxUSE_GRID=yes
1719 DEFAULT_wxUSE_NEW_GRID=yes
1720 DEFAULT_wxUSE_IMAGLIST=yes
1721 DEFAULT_wxUSE_LISTBOX=yes
1722 DEFAULT_wxUSE_LISTCTRL=yes
1723 DEFAULT_wxUSE_NOTEBOOK=yes
1724 DEFAULT_wxUSE_PROPSHEET=yes
1725 DEFAULT_wxUSE_RADIOBOX=yes
1726 DEFAULT_wxUSE_RADIOBTN=yes
1727 DEFAULT_wxUSE_SASH=yes
1728 DEFAULT_wxUSE_SCROLLBAR=yes
1729 DEFAULT_wxUSE_SLIDER=yes
1730 DEFAULT_wxUSE_SPINBTN=yes
1731 DEFAULT_wxUSE_SPINCTRL=yes
1732 DEFAULT_wxUSE_SPLITTER=yes
1733 DEFAULT_wxUSE_STATBMP=yes
1734 DEFAULT_wxUSE_STATBOX=yes
1735 DEFAULT_wxUSE_STATLINE=yes
1736 DEFAULT_wxUSE_STATTEXT=yes
1737 DEFAULT_wxUSE_STATUSBAR=yes
1738 DEFAULT_wxUSE_TABDIALOG=no
1739 DEFAULT_wxUSE_TEXTCTRL=yes
1740 DEFAULT_wxUSE_TOGGLEBTN=yes
1741 DEFAULT_wxUSE_TOOLBAR=yes
1742 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1743 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1744 DEFAULT_wxUSE_TREECTRL=yes
1745 DEFAULT_wxUSE_POPUPWIN=yes
1746 DEFAULT_wxUSE_TIPWINDOW=yes
1747
1748 DEFAULT_wxUSE_UNICODE=no
1749 DEFAULT_wxUSE_UNICODE_MSLU=yes
1750 DEFAULT_wxUSE_WCSRTOMBS=no
1751
1752 DEFAULT_wxUSE_PALETTE=yes
1753 DEFAULT_wxUSE_IMAGE=yes
1754 DEFAULT_wxUSE_GIF=yes
1755 DEFAULT_wxUSE_PCX=yes
1756 DEFAULT_wxUSE_IFF=no
1757 DEFAULT_wxUSE_PNM=yes
1758 DEFAULT_wxUSE_XPM=yes
1759 DEFAULT_wxUSE_ICO_CUR=yes
1760 fi
1761
1762
1763
1764 for toolkit in `echo $ALL_TOOLKITS`; do
1765 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1766 if test "x$LINE" != x ; then
1767 has_toolkit_in_cache=1
1768 eval "DEFAULT_$LINE"
1769 eval "CACHE_$toolkit=1"
1770 fi
1771 done
1772
1773
1774
1775 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1776 echo "configure:1777: checking for --enable-gui" >&5
1777 no_cache=0
1778 # Check whether --enable-gui or --disable-gui was given.
1779 if test "${enable_gui+set}" = set; then
1780 enableval="$enable_gui"
1781
1782 if test "$enableval" = yes; then
1783 ac_cv_use_gui='wxUSE_GUI=yes'
1784 else
1785 ac_cv_use_gui='wxUSE_GUI=no'
1786 fi
1787
1788 else
1789
1790 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1791 if test "x$LINE" != x ; then
1792 eval "DEFAULT_$LINE"
1793 else
1794 no_cache=1
1795 fi
1796
1797 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1798
1799 fi
1800
1801
1802 eval "$ac_cv_use_gui"
1803 if test "$no_cache" != 1; then
1804 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1805 fi
1806
1807 if test "$wxUSE_GUI" = yes; then
1808 echo "$ac_t""yes" 1>&6
1809 else
1810 echo "$ac_t""no" 1>&6
1811 fi
1812
1813
1814 if test "$wxUSE_GUI" = "yes"; then
1815
1816
1817 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1818 echo "configure:1819: checking for --enable-universal" >&5
1819 no_cache=0
1820 # Check whether --enable-universal or --disable-universal was given.
1821 if test "${enable_universal+set}" = set; then
1822 enableval="$enable_universal"
1823
1824 if test "$enableval" = yes; then
1825 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1826 else
1827 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1828 fi
1829
1830 else
1831
1832 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1833 if test "x$LINE" != x ; then
1834 eval "DEFAULT_$LINE"
1835 else
1836 no_cache=1
1837 fi
1838
1839 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1840
1841 fi
1842
1843
1844 eval "$ac_cv_use_universal"
1845 if test "$no_cache" != 1; then
1846 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1847 fi
1848
1849 if test "$wxUSE_UNIVERSAL" = yes; then
1850 echo "$ac_t""yes" 1>&6
1851 else
1852 echo "$ac_t""no" 1>&6
1853 fi
1854
1855 # Check whether --with-gtk or --without-gtk was given.
1856 if test "${with_gtk+set}" = set; then
1857 withval="$with_gtk"
1858 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1859 fi
1860
1861 # Check whether --with-motif or --without-motif was given.
1862 if test "${with_motif+set}" = set; then
1863 withval="$with_motif"
1864 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1865 fi
1866
1867 # Check whether --with-mac or --without-mac was given.
1868 if test "${with_mac+set}" = set; then
1869 withval="$with_mac"
1870 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1871 fi
1872
1873 # Check whether --with-wine or --without-wine was given.
1874 if test "${with_wine+set}" = set; then
1875 withval="$with_wine"
1876 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1877 fi
1878
1879 # Check whether --with-msw or --without-msw was given.
1880 if test "${with_msw+set}" = set; then
1881 withval="$with_msw"
1882 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1883 fi
1884
1885 # Check whether --with-pm or --without-pm was given.
1886 if test "${with_pm+set}" = set; then
1887 withval="$with_pm"
1888 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1889 fi
1890
1891 # Check whether --with-mgl or --without-mgl was given.
1892 if test "${with_mgl+set}" = set; then
1893 withval="$with_mgl"
1894 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1895 fi
1896
1897 # Check whether --with-microwin or --without-microwin was given.
1898 if test "${with_microwin+set}" = set; then
1899 withval="$with_microwin"
1900 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1901 fi
1902
1903 # Check whether --with-x11 or --without-x11 was given.
1904 if test "${with_x11+set}" = set; then
1905 withval="$with_x11"
1906 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1907 fi
1908
1909
1910 echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6
1911 echo "configure:1912: checking for --enable-nanox" >&5
1912 no_cache=0
1913 # Check whether --enable-nanox or --disable-nanox was given.
1914 if test "${enable_nanox+set}" = set; then
1915 enableval="$enable_nanox"
1916
1917 if test "$enableval" = yes; then
1918 ac_cv_use_nanox='wxUSE_NANOX=yes'
1919 else
1920 ac_cv_use_nanox='wxUSE_NANOX=no'
1921 fi
1922
1923 else
1924
1925 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1926 if test "x$LINE" != x ; then
1927 eval "DEFAULT_$LINE"
1928 else
1929 no_cache=1
1930 fi
1931
1932 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1933
1934 fi
1935
1936
1937 eval "$ac_cv_use_nanox"
1938 if test "$no_cache" != 1; then
1939 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1940 fi
1941
1942 if test "$wxUSE_NANOX" = yes; then
1943 echo "$ac_t""yes" 1>&6
1944 else
1945 echo "$ac_t""no" 1>&6
1946 fi
1947
1948
1949 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1950 if test "${enable_gtk2+set}" = set; then
1951 enableval="$enable_gtk2"
1952 wxUSE_GTK2="yes"
1953 else
1954 wxUSE_GTK2="no"
1955 fi
1956
1957
1958
1959 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1960 echo "configure:1961: checking for --with-libpng" >&5
1961 no_cache=0
1962 # Check whether --with-libpng or --without-libpng was given.
1963 if test "${with_libpng+set}" = set; then
1964 withval="$with_libpng"
1965
1966 if test "$withval" = yes; then
1967 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1968 elif test "$withval" = no; then
1969 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1970 elif test "$withval" = sys; then
1971 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1972 elif test "$withval" = builtin; then
1973 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1974 else
1975 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1976 fi
1977
1978 else
1979
1980 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1981 if test "x$LINE" != x ; then
1982 eval "DEFAULT_$LINE"
1983 else
1984 no_cache=1
1985 fi
1986
1987 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1988
1989 fi
1990
1991
1992 eval "$ac_cv_use_libpng"
1993 if test "$no_cache" != 1; then
1994 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1995 fi
1996
1997 if test "$wxUSE_LIBPNG" = yes; then
1998 echo "$ac_t""yes" 1>&6
1999 elif test "$wxUSE_LIBPNG" = no; then
2000 echo "$ac_t""no" 1>&6
2001 elif test "$wxUSE_LIBPNG" = sys; then
2002 echo "$ac_t""system version" 1>&6
2003 elif test "$wxUSE_LIBPNG" = builtin; then
2004 echo "$ac_t""builtin version" 1>&6
2005 else
2006 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2007 fi
2008
2009
2010 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2011 echo "configure:2012: checking for --with-libjpeg" >&5
2012 no_cache=0
2013 # Check whether --with-libjpeg or --without-libjpeg was given.
2014 if test "${with_libjpeg+set}" = set; then
2015 withval="$with_libjpeg"
2016
2017 if test "$withval" = yes; then
2018 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2019 elif test "$withval" = no; then
2020 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2021 elif test "$withval" = sys; then
2022 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2023 elif test "$withval" = builtin; then
2024 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2025 else
2026 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2027 fi
2028
2029 else
2030
2031 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2032 if test "x$LINE" != x ; then
2033 eval "DEFAULT_$LINE"
2034 else
2035 no_cache=1
2036 fi
2037
2038 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2039
2040 fi
2041
2042
2043 eval "$ac_cv_use_libjpeg"
2044 if test "$no_cache" != 1; then
2045 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2046 fi
2047
2048 if test "$wxUSE_LIBJPEG" = yes; then
2049 echo "$ac_t""yes" 1>&6
2050 elif test "$wxUSE_LIBJPEG" = no; then
2051 echo "$ac_t""no" 1>&6
2052 elif test "$wxUSE_LIBJPEG" = sys; then
2053 echo "$ac_t""system version" 1>&6
2054 elif test "$wxUSE_LIBJPEG" = builtin; then
2055 echo "$ac_t""builtin version" 1>&6
2056 else
2057 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2058 fi
2059
2060
2061 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2062 echo "configure:2063: checking for --with-libtiff" >&5
2063 no_cache=0
2064 # Check whether --with-libtiff or --without-libtiff was given.
2065 if test "${with_libtiff+set}" = set; then
2066 withval="$with_libtiff"
2067
2068 if test "$withval" = yes; then
2069 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2070 elif test "$withval" = no; then
2071 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2072 elif test "$withval" = sys; then
2073 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2074 elif test "$withval" = builtin; then
2075 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2076 else
2077 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2078 fi
2079
2080 else
2081
2082 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2083 if test "x$LINE" != x ; then
2084 eval "DEFAULT_$LINE"
2085 else
2086 no_cache=1
2087 fi
2088
2089 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2090
2091 fi
2092
2093
2094 eval "$ac_cv_use_libtiff"
2095 if test "$no_cache" != 1; then
2096 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2097 fi
2098
2099 if test "$wxUSE_LIBTIFF" = yes; then
2100 echo "$ac_t""yes" 1>&6
2101 elif test "$wxUSE_LIBTIFF" = no; then
2102 echo "$ac_t""no" 1>&6
2103 elif test "$wxUSE_LIBTIFF" = sys; then
2104 echo "$ac_t""system version" 1>&6
2105 elif test "$wxUSE_LIBTIFF" = builtin; then
2106 echo "$ac_t""builtin version" 1>&6
2107 else
2108 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2109 fi
2110
2111
2112 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2113 echo "configure:2114: checking for --with-opengl" >&5
2114 no_cache=0
2115 # Check whether --with-opengl or --without-opengl was given.
2116 if test "${with_opengl+set}" = set; then
2117 withval="$with_opengl"
2118
2119 if test "$withval" = yes; then
2120 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2121 else
2122 ac_cv_use_opengl='wxUSE_OPENGL=no'
2123 fi
2124
2125 else
2126
2127 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2128 if test "x$LINE" != x ; then
2129 eval "DEFAULT_$LINE"
2130 else
2131 no_cache=1
2132 fi
2133
2134 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2135
2136 fi
2137
2138
2139 eval "$ac_cv_use_opengl"
2140 if test "$no_cache" != 1; then
2141 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2142 fi
2143
2144 if test "$wxUSE_OPENGL" = yes; then
2145 echo "$ac_t""yes" 1>&6
2146 else
2147 echo "$ac_t""no" 1>&6
2148 fi
2149
2150
2151 fi
2152
2153
2154 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2155 echo "configure:2156: checking for --with-dmalloc" >&5
2156 no_cache=0
2157 # Check whether --with-dmalloc or --without-dmalloc was given.
2158 if test "${with_dmalloc+set}" = set; then
2159 withval="$with_dmalloc"
2160
2161 if test "$withval" = yes; then
2162 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2163 else
2164 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2165 fi
2166
2167 else
2168
2169 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2170 if test "x$LINE" != x ; then
2171 eval "DEFAULT_$LINE"
2172 else
2173 no_cache=1
2174 fi
2175
2176 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2177
2178 fi
2179
2180
2181 eval "$ac_cv_use_dmalloc"
2182 if test "$no_cache" != 1; then
2183 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2184 fi
2185
2186 if test "$wxUSE_DMALLOC" = yes; then
2187 echo "$ac_t""yes" 1>&6
2188 else
2189 echo "$ac_t""no" 1>&6
2190 fi
2191
2192
2193 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2194 echo "configure:2195: checking for --with-regex" >&5
2195 no_cache=0
2196 # Check whether --with-regex or --without-regex was given.
2197 if test "${with_regex+set}" = set; then
2198 withval="$with_regex"
2199
2200 if test "$withval" = yes; then
2201 ac_cv_use_regex='wxUSE_REGEX=yes'
2202 elif test "$withval" = no; then
2203 ac_cv_use_regex='wxUSE_REGEX=no'
2204 elif test "$withval" = sys; then
2205 ac_cv_use_regex='wxUSE_REGEX=sys'
2206 elif test "$withval" = builtin; then
2207 ac_cv_use_regex='wxUSE_REGEX=builtin'
2208 else
2209 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2210 fi
2211
2212 else
2213
2214 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2215 if test "x$LINE" != x ; then
2216 eval "DEFAULT_$LINE"
2217 else
2218 no_cache=1
2219 fi
2220
2221 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2222
2223 fi
2224
2225
2226 eval "$ac_cv_use_regex"
2227 if test "$no_cache" != 1; then
2228 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2229 fi
2230
2231 if test "$wxUSE_REGEX" = yes; then
2232 echo "$ac_t""yes" 1>&6
2233 elif test "$wxUSE_REGEX" = no; then
2234 echo "$ac_t""no" 1>&6
2235 elif test "$wxUSE_REGEX" = sys; then
2236 echo "$ac_t""system version" 1>&6
2237 elif test "$wxUSE_REGEX" = builtin; then
2238 echo "$ac_t""builtin version" 1>&6
2239 else
2240 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2241 fi
2242
2243
2244 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2245 echo "configure:2246: checking for --with-zlib" >&5
2246 no_cache=0
2247 # Check whether --with-zlib or --without-zlib was given.
2248 if test "${with_zlib+set}" = set; then
2249 withval="$with_zlib"
2250
2251 if test "$withval" = yes; then
2252 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2253 elif test "$withval" = no; then
2254 ac_cv_use_zlib='wxUSE_ZLIB=no'
2255 elif test "$withval" = sys; then
2256 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2257 elif test "$withval" = builtin; then
2258 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2259 else
2260 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2261 fi
2262
2263 else
2264
2265 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2266 if test "x$LINE" != x ; then
2267 eval "DEFAULT_$LINE"
2268 else
2269 no_cache=1
2270 fi
2271
2272 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2273
2274 fi
2275
2276
2277 eval "$ac_cv_use_zlib"
2278 if test "$no_cache" != 1; then
2279 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2280 fi
2281
2282 if test "$wxUSE_ZLIB" = yes; then
2283 echo "$ac_t""yes" 1>&6
2284 elif test "$wxUSE_ZLIB" = no; then
2285 echo "$ac_t""no" 1>&6
2286 elif test "$wxUSE_ZLIB" = sys; then
2287 echo "$ac_t""system version" 1>&6
2288 elif test "$wxUSE_ZLIB" = builtin; then
2289 echo "$ac_t""builtin version" 1>&6
2290 else
2291 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2292 fi
2293
2294
2295 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2296 echo "configure:2297: checking for --with-odbc" >&5
2297 no_cache=0
2298 # Check whether --with-odbc or --without-odbc was given.
2299 if test "${with_odbc+set}" = set; then
2300 withval="$with_odbc"
2301
2302 if test "$withval" = yes; then
2303 ac_cv_use_odbc='wxUSE_ODBC=yes'
2304 else
2305 ac_cv_use_odbc='wxUSE_ODBC=no'
2306 fi
2307
2308 else
2309
2310 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2311 if test "x$LINE" != x ; then
2312 eval "DEFAULT_$LINE"
2313 else
2314 no_cache=1
2315 fi
2316
2317 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2318
2319 fi
2320
2321
2322 eval "$ac_cv_use_odbc"
2323 if test "$no_cache" != 1; then
2324 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2325 fi
2326
2327 if test "$wxUSE_ODBC" = yes; then
2328 echo "$ac_t""yes" 1>&6
2329 else
2330 echo "$ac_t""no" 1>&6
2331 fi
2332
2333
2334
2335
2336 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2337 echo "configure:2338: checking for --enable-shared" >&5
2338 no_cache=0
2339 # Check whether --enable-shared or --disable-shared was given.
2340 if test "${enable_shared+set}" = set; then
2341 enableval="$enable_shared"
2342
2343 if test "$enableval" = yes; then
2344 ac_cv_use_shared='wxUSE_SHARED=yes'
2345 else
2346 ac_cv_use_shared='wxUSE_SHARED=no'
2347 fi
2348
2349 else
2350
2351 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2352 if test "x$LINE" != x ; then
2353 eval "DEFAULT_$LINE"
2354 else
2355 no_cache=1
2356 fi
2357
2358 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2359
2360 fi
2361
2362
2363 eval "$ac_cv_use_shared"
2364 if test "$no_cache" != 1; then
2365 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2366 fi
2367
2368 if test "$wxUSE_SHARED" = yes; then
2369 echo "$ac_t""yes" 1>&6
2370 else
2371 echo "$ac_t""no" 1>&6
2372 fi
2373
2374
2375 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2376 echo "configure:2377: checking for --enable-soname" >&5
2377 no_cache=0
2378 # Check whether --enable-soname or --disable-soname was given.
2379 if test "${enable_soname+set}" = set; then
2380 enableval="$enable_soname"
2381
2382 if test "$enableval" = yes; then
2383 ac_cv_use_soname='wxUSE_SONAME=yes'
2384 else
2385 ac_cv_use_soname='wxUSE_SONAME=no'
2386 fi
2387
2388 else
2389
2390 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2391 if test "x$LINE" != x ; then
2392 eval "DEFAULT_$LINE"
2393 else
2394 no_cache=1
2395 fi
2396
2397 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2398
2399 fi
2400
2401
2402 eval "$ac_cv_use_soname"
2403 if test "$no_cache" != 1; then
2404 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2405 fi
2406
2407 if test "$wxUSE_SONAME" = yes; then
2408 echo "$ac_t""yes" 1>&6
2409 else
2410 echo "$ac_t""no" 1>&6
2411 fi
2412
2413
2414 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2415 echo "configure:2416: checking for --enable-optimise" >&5
2416 no_cache=0
2417 # Check whether --enable-optimise or --disable-optimise was given.
2418 if test "${enable_optimise+set}" = set; then
2419 enableval="$enable_optimise"
2420
2421 if test "$enableval" = yes; then
2422 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2423 else
2424 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2425 fi
2426
2427 else
2428
2429 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2430 if test "x$LINE" != x ; then
2431 eval "DEFAULT_$LINE"
2432 else
2433 no_cache=1
2434 fi
2435
2436 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2437
2438 fi
2439
2440
2441 eval "$ac_cv_use_optimise"
2442 if test "$no_cache" != 1; then
2443 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2444 fi
2445
2446 if test "$wxUSE_OPTIMISE" = yes; then
2447 echo "$ac_t""yes" 1>&6
2448 else
2449 echo "$ac_t""no" 1>&6
2450 fi
2451
2452
2453 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2454 echo "configure:2455: checking for --enable-debug" >&5
2455 no_cache=0
2456 # Check whether --enable-debug or --disable-debug was given.
2457 if test "${enable_debug+set}" = set; then
2458 enableval="$enable_debug"
2459
2460 if test "$enableval" = yes; then
2461 ac_cv_use_debug='wxUSE_DEBUG=yes'
2462 else
2463 ac_cv_use_debug='wxUSE_DEBUG=no'
2464 fi
2465
2466 else
2467
2468 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2469 if test "x$LINE" != x ; then
2470 eval "DEFAULT_$LINE"
2471 else
2472 no_cache=1
2473 fi
2474
2475 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2476
2477 fi
2478
2479
2480 eval "$ac_cv_use_debug"
2481 if test "$no_cache" != 1; then
2482 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2483 fi
2484
2485 if test "$wxUSE_DEBUG" = yes; then
2486 echo "$ac_t""yes" 1>&6
2487 else
2488 echo "$ac_t""no" 1>&6
2489 fi
2490
2491
2492
2493 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2494 echo "configure:2495: checking for --enable-precomp" >&5
2495 no_cache=0
2496 # Check whether --enable-precomp or --disable-precomp was given.
2497 if test "${enable_precomp+set}" = set; then
2498 enableval="$enable_precomp"
2499
2500 if test "$enableval" = yes; then
2501 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2502 else
2503 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2504 fi
2505
2506 else
2507
2508 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2509 if test "x$LINE" != x ; then
2510 eval "DEFAULT_$LINE"
2511 else
2512 no_cache=1
2513 fi
2514
2515 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2516
2517 fi
2518
2519
2520 eval "$ac_cv_use_precomp"
2521 if test "$no_cache" != 1; then
2522 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2523 fi
2524
2525 if test "$wxUSE_PRECOMP" = yes; then
2526 echo "$ac_t""yes" 1>&6
2527 else
2528 echo "$ac_t""no" 1>&6
2529 fi
2530
2531
2532 if test "$wxUSE_DEBUG" = "yes"; then
2533 DEFAULT_wxUSE_DEBUG_FLAG=yes
2534 DEFAULT_wxUSE_DEBUG_INFO=yes
2535 elif test "$wxUSE_DEBUG" = "no"; then
2536 DEFAULT_wxUSE_DEBUG_FLAG=no
2537 DEFAULT_wxUSE_DEBUG_INFO=no
2538 fi
2539
2540
2541 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2542 echo "configure:2543: checking for --enable-debug_flag" >&5
2543 no_cache=0
2544 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2545 if test "${enable_debug_flag+set}" = set; then
2546 enableval="$enable_debug_flag"
2547
2548 if test "$enableval" = yes; then
2549 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2550 else
2551 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2552 fi
2553
2554 else
2555
2556 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2557 if test "x$LINE" != x ; then
2558 eval "DEFAULT_$LINE"
2559 else
2560 no_cache=1
2561 fi
2562
2563 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2564
2565 fi
2566
2567
2568 eval "$ac_cv_use_debug_flag"
2569 if test "$no_cache" != 1; then
2570 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2571 fi
2572
2573 if test "$wxUSE_DEBUG_FLAG" = yes; then
2574 echo "$ac_t""yes" 1>&6
2575 else
2576 echo "$ac_t""no" 1>&6
2577 fi
2578
2579
2580 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2581 echo "configure:2582: checking for --enable-debug_info" >&5
2582 no_cache=0
2583 # Check whether --enable-debug_info or --disable-debug_info was given.
2584 if test "${enable_debug_info+set}" = set; then
2585 enableval="$enable_debug_info"
2586
2587 if test "$enableval" = yes; then
2588 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2589 else
2590 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2591 fi
2592
2593 else
2594
2595 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2596 if test "x$LINE" != x ; then
2597 eval "DEFAULT_$LINE"
2598 else
2599 no_cache=1
2600 fi
2601
2602 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2603
2604 fi
2605
2606
2607 eval "$ac_cv_use_debug_info"
2608 if test "$no_cache" != 1; then
2609 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2610 fi
2611
2612 if test "$wxUSE_DEBUG_INFO" = yes; then
2613 echo "$ac_t""yes" 1>&6
2614 else
2615 echo "$ac_t""no" 1>&6
2616 fi
2617
2618
2619 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2620 echo "configure:2621: checking for --enable-debug_gdb" >&5
2621 no_cache=0
2622 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2623 if test "${enable_debug_gdb+set}" = set; then
2624 enableval="$enable_debug_gdb"
2625
2626 if test "$enableval" = yes; then
2627 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2628 else
2629 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2630 fi
2631
2632 else
2633
2634 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2635 if test "x$LINE" != x ; then
2636 eval "DEFAULT_$LINE"
2637 else
2638 no_cache=1
2639 fi
2640
2641 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2642
2643 fi
2644
2645
2646 eval "$ac_cv_use_debug_gdb"
2647 if test "$no_cache" != 1; then
2648 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2649 fi
2650
2651 if test "$wxUSE_DEBUG_GDB" = yes; then
2652 echo "$ac_t""yes" 1>&6
2653 else
2654 echo "$ac_t""no" 1>&6
2655 fi
2656
2657
2658 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2659 echo "configure:2660: checking for --enable-debug_cntxt" >&5
2660 no_cache=0
2661 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2662 if test "${enable_debug_cntxt+set}" = set; then
2663 enableval="$enable_debug_cntxt"
2664
2665 if test "$enableval" = yes; then
2666 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2667 else
2668 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2669 fi
2670
2671 else
2672
2673 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2674 if test "x$LINE" != x ; then
2675 eval "DEFAULT_$LINE"
2676 else
2677 no_cache=1
2678 fi
2679
2680 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2681
2682 fi
2683
2684
2685 eval "$ac_cv_use_debug_cntxt"
2686 if test "$no_cache" != 1; then
2687 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2688 fi
2689
2690 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2691 echo "$ac_t""yes" 1>&6
2692 else
2693 echo "$ac_t""no" 1>&6
2694 fi
2695
2696
2697 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2698 echo "configure:2699: checking for --enable-mem_tracing" >&5
2699 no_cache=0
2700 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2701 if test "${enable_mem_tracing+set}" = set; then
2702 enableval="$enable_mem_tracing"
2703
2704 if test "$enableval" = yes; then
2705 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2706 else
2707 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2708 fi
2709
2710 else
2711
2712 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2713 if test "x$LINE" != x ; then
2714 eval "DEFAULT_$LINE"
2715 else
2716 no_cache=1
2717 fi
2718
2719 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2720
2721 fi
2722
2723
2724 eval "$ac_cv_use_mem_tracing"
2725 if test "$no_cache" != 1; then
2726 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2727 fi
2728
2729 if test "$wxUSE_MEM_TRACING" = yes; then
2730 echo "$ac_t""yes" 1>&6
2731 else
2732 echo "$ac_t""no" 1>&6
2733 fi
2734
2735
2736 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2737 echo "configure:2738: checking for --enable-profile" >&5
2738 no_cache=0
2739 # Check whether --enable-profile or --disable-profile was given.
2740 if test "${enable_profile+set}" = set; then
2741 enableval="$enable_profile"
2742
2743 if test "$enableval" = yes; then
2744 ac_cv_use_profile='wxUSE_PROFILE=yes'
2745 else
2746 ac_cv_use_profile='wxUSE_PROFILE=no'
2747 fi
2748
2749 else
2750
2751 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2752 if test "x$LINE" != x ; then
2753 eval "DEFAULT_$LINE"
2754 else
2755 no_cache=1
2756 fi
2757
2758 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2759
2760 fi
2761
2762
2763 eval "$ac_cv_use_profile"
2764 if test "$no_cache" != 1; then
2765 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2766 fi
2767
2768 if test "$wxUSE_PROFILE" = yes; then
2769 echo "$ac_t""yes" 1>&6
2770 else
2771 echo "$ac_t""no" 1>&6
2772 fi
2773
2774
2775 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2776 echo "configure:2777: checking for --enable-no_rtti" >&5
2777 no_cache=0
2778 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2779 if test "${enable_no_rtti+set}" = set; then
2780 enableval="$enable_no_rtti"
2781
2782 if test "$enableval" = yes; then
2783 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2784 else
2785 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2786 fi
2787
2788 else
2789
2790 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2791 if test "x$LINE" != x ; then
2792 eval "DEFAULT_$LINE"
2793 else
2794 no_cache=1
2795 fi
2796
2797 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2798
2799 fi
2800
2801
2802 eval "$ac_cv_use_no_rtti"
2803 if test "$no_cache" != 1; then
2804 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2805 fi
2806
2807 if test "$wxUSE_NO_RTTI" = yes; then
2808 echo "$ac_t""yes" 1>&6
2809 else
2810 echo "$ac_t""no" 1>&6
2811 fi
2812
2813
2814 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2815 echo "configure:2816: checking for --enable-no_exceptions" >&5
2816 no_cache=0
2817 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2818 if test "${enable_no_exceptions+set}" = set; then
2819 enableval="$enable_no_exceptions"
2820
2821 if test "$enableval" = yes; then
2822 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2823 else
2824 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2825 fi
2826
2827 else
2828
2829 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2830 if test "x$LINE" != x ; then
2831 eval "DEFAULT_$LINE"
2832 else
2833 no_cache=1
2834 fi
2835
2836 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2837
2838 fi
2839
2840
2841 eval "$ac_cv_use_no_exceptions"
2842 if test "$no_cache" != 1; then
2843 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2844 fi
2845
2846 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2847 echo "$ac_t""yes" 1>&6
2848 else
2849 echo "$ac_t""no" 1>&6
2850 fi
2851
2852
2853 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2854 echo "configure:2855: checking for --enable-permissive" >&5
2855 no_cache=0
2856 # Check whether --enable-permissive or --disable-permissive was given.
2857 if test "${enable_permissive+set}" = set; then
2858 enableval="$enable_permissive"
2859
2860 if test "$enableval" = yes; then
2861 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2862 else
2863 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2864 fi
2865
2866 else
2867
2868 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2869 if test "x$LINE" != x ; then
2870 eval "DEFAULT_$LINE"
2871 else
2872 no_cache=1
2873 fi
2874
2875 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2876
2877 fi
2878
2879
2880 eval "$ac_cv_use_permissive"
2881 if test "$no_cache" != 1; then
2882 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2883 fi
2884
2885 if test "$wxUSE_PERMISSIVE" = yes; then
2886 echo "$ac_t""yes" 1>&6
2887 else
2888 echo "$ac_t""no" 1>&6
2889 fi
2890
2891
2892 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2893 echo "configure:2894: checking for --enable-no_deps" >&5
2894 no_cache=0
2895 # Check whether --enable-no_deps or --disable-no_deps was given.
2896 if test "${enable_no_deps+set}" = set; then
2897 enableval="$enable_no_deps"
2898
2899 if test "$enableval" = yes; then
2900 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2901 else
2902 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2903 fi
2904
2905 else
2906
2907 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2908 if test "x$LINE" != x ; then
2909 eval "DEFAULT_$LINE"
2910 else
2911 no_cache=1
2912 fi
2913
2914 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2915
2916 fi
2917
2918
2919 eval "$ac_cv_use_no_deps"
2920 if test "$no_cache" != 1; then
2921 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2922 fi
2923
2924 if test "$wxUSE_NO_DEPS" = yes; then
2925 echo "$ac_t""yes" 1>&6
2926 else
2927 echo "$ac_t""no" 1>&6
2928 fi
2929
2930
2931
2932 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2933 echo "configure:2934: checking for --enable-compat20" >&5
2934 no_cache=0
2935 # Check whether --enable-compat20 or --disable-compat20 was given.
2936 if test "${enable_compat20+set}" = set; then
2937 enableval="$enable_compat20"
2938
2939 if test "$enableval" = yes; then
2940 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2941 else
2942 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2943 fi
2944
2945 else
2946
2947 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2948 if test "x$LINE" != x ; then
2949 eval "DEFAULT_$LINE"
2950 else
2951 no_cache=1
2952 fi
2953
2954 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2955
2956 fi
2957
2958
2959 eval "$ac_cv_use_compat20"
2960 if test "$no_cache" != 1; then
2961 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2962 fi
2963
2964 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2965 echo "$ac_t""yes" 1>&6
2966 else
2967 echo "$ac_t""no" 1>&6
2968 fi
2969
2970
2971 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2972 echo "configure:2973: checking for --enable-compat22" >&5
2973 no_cache=0
2974 # Check whether --enable-compat22 or --disable-compat22 was given.
2975 if test "${enable_compat22+set}" = set; then
2976 enableval="$enable_compat22"
2977
2978 if test "$enableval" = yes; then
2979 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2980 else
2981 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2982 fi
2983
2984 else
2985
2986 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2987 if test "x$LINE" != x ; then
2988 eval "DEFAULT_$LINE"
2989 else
2990 no_cache=1
2991 fi
2992
2993 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2994
2995 fi
2996
2997
2998 eval "$ac_cv_use_compat22"
2999 if test "$no_cache" != 1; then
3000 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3001 fi
3002
3003 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3004 echo "$ac_t""yes" 1>&6
3005 else
3006 echo "$ac_t""no" 1>&6
3007 fi
3008
3009
3010
3011
3012 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3013 echo "configure:3014: checking for --enable-intl" >&5
3014 no_cache=0
3015 # Check whether --enable-intl or --disable-intl was given.
3016 if test "${enable_intl+set}" = set; then
3017 enableval="$enable_intl"
3018
3019 if test "$enableval" = yes; then
3020 ac_cv_use_intl='wxUSE_INTL=yes'
3021 else
3022 ac_cv_use_intl='wxUSE_INTL=no'
3023 fi
3024
3025 else
3026
3027 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3028 if test "x$LINE" != x ; then
3029 eval "DEFAULT_$LINE"
3030 else
3031 no_cache=1
3032 fi
3033
3034 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3035
3036 fi
3037
3038
3039 eval "$ac_cv_use_intl"
3040 if test "$no_cache" != 1; then
3041 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3042 fi
3043
3044 if test "$wxUSE_INTL" = yes; then
3045 echo "$ac_t""yes" 1>&6
3046 else
3047 echo "$ac_t""no" 1>&6
3048 fi
3049
3050
3051 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3052 echo "configure:3053: checking for --enable-config" >&5
3053 no_cache=0
3054 # Check whether --enable-config or --disable-config was given.
3055 if test "${enable_config+set}" = set; then
3056 enableval="$enable_config"
3057
3058 if test "$enableval" = yes; then
3059 ac_cv_use_config='wxUSE_CONFIG=yes'
3060 else
3061 ac_cv_use_config='wxUSE_CONFIG=no'
3062 fi
3063
3064 else
3065
3066 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3067 if test "x$LINE" != x ; then
3068 eval "DEFAULT_$LINE"
3069 else
3070 no_cache=1
3071 fi
3072
3073 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3074
3075 fi
3076
3077
3078 eval "$ac_cv_use_config"
3079 if test "$no_cache" != 1; then
3080 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3081 fi
3082
3083 if test "$wxUSE_CONFIG" = yes; then
3084 echo "$ac_t""yes" 1>&6
3085 else
3086 echo "$ac_t""no" 1>&6
3087 fi
3088
3089
3090
3091 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3092 echo "configure:3093: checking for --enable-protocols" >&5
3093 no_cache=0
3094 # Check whether --enable-protocols or --disable-protocols was given.
3095 if test "${enable_protocols+set}" = set; then
3096 enableval="$enable_protocols"
3097
3098 if test "$enableval" = yes; then
3099 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3100 else
3101 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3102 fi
3103
3104 else
3105
3106 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3107 if test "x$LINE" != x ; then
3108 eval "DEFAULT_$LINE"
3109 else
3110 no_cache=1
3111 fi
3112
3113 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3114
3115 fi
3116
3117
3118 eval "$ac_cv_use_protocols"
3119 if test "$no_cache" != 1; then
3120 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3121 fi
3122
3123 if test "$wxUSE_PROTOCOL" = yes; then
3124 echo "$ac_t""yes" 1>&6
3125 else
3126 echo "$ac_t""no" 1>&6
3127 fi
3128
3129
3130 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3131 echo "configure:3132: checking for --enable-ftp" >&5
3132 no_cache=0
3133 # Check whether --enable-ftp or --disable-ftp was given.
3134 if test "${enable_ftp+set}" = set; then
3135 enableval="$enable_ftp"
3136
3137 if test "$enableval" = yes; then
3138 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3139 else
3140 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3141 fi
3142
3143 else
3144
3145 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3146 if test "x$LINE" != x ; then
3147 eval "DEFAULT_$LINE"
3148 else
3149 no_cache=1
3150 fi
3151
3152 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3153
3154 fi
3155
3156
3157 eval "$ac_cv_use_ftp"
3158 if test "$no_cache" != 1; then
3159 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3160 fi
3161
3162 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3163 echo "$ac_t""yes" 1>&6
3164 else
3165 echo "$ac_t""no" 1>&6
3166 fi
3167
3168
3169 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3170 echo "configure:3171: checking for --enable-http" >&5
3171 no_cache=0
3172 # Check whether --enable-http or --disable-http was given.
3173 if test "${enable_http+set}" = set; then
3174 enableval="$enable_http"
3175
3176 if test "$enableval" = yes; then
3177 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3178 else
3179 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3180 fi
3181
3182 else
3183
3184 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3185 if test "x$LINE" != x ; then
3186 eval "DEFAULT_$LINE"
3187 else
3188 no_cache=1
3189 fi
3190
3191 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3192
3193 fi
3194
3195
3196 eval "$ac_cv_use_http"
3197 if test "$no_cache" != 1; then
3198 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3199 fi
3200
3201 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3202 echo "$ac_t""yes" 1>&6
3203 else
3204 echo "$ac_t""no" 1>&6
3205 fi
3206
3207
3208 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3209 echo "configure:3210: checking for --enable-fileproto" >&5
3210 no_cache=0
3211 # Check whether --enable-fileproto or --disable-fileproto was given.
3212 if test "${enable_fileproto+set}" = set; then
3213 enableval="$enable_fileproto"
3214
3215 if test "$enableval" = yes; then
3216 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3217 else
3218 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3219 fi
3220
3221 else
3222
3223 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3224 if test "x$LINE" != x ; then
3225 eval "DEFAULT_$LINE"
3226 else
3227 no_cache=1
3228 fi
3229
3230 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3231
3232 fi
3233
3234
3235 eval "$ac_cv_use_fileproto"
3236 if test "$no_cache" != 1; then
3237 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3238 fi
3239
3240 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3241 echo "$ac_t""yes" 1>&6
3242 else
3243 echo "$ac_t""no" 1>&6
3244 fi
3245
3246
3247 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3248 echo "configure:3249: checking for --enable-sockets" >&5
3249 no_cache=0
3250 # Check whether --enable-sockets or --disable-sockets was given.
3251 if test "${enable_sockets+set}" = set; then
3252 enableval="$enable_sockets"
3253
3254 if test "$enableval" = yes; then
3255 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3256 else
3257 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3258 fi
3259
3260 else
3261
3262 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3263 if test "x$LINE" != x ; then
3264 eval "DEFAULT_$LINE"
3265 else
3266 no_cache=1
3267 fi
3268
3269 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3270
3271 fi
3272
3273
3274 eval "$ac_cv_use_sockets"
3275 if test "$no_cache" != 1; then
3276 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3277 fi
3278
3279 if test "$wxUSE_SOCKETS" = yes; then
3280 echo "$ac_t""yes" 1>&6
3281 else
3282 echo "$ac_t""no" 1>&6
3283 fi
3284
3285
3286
3287 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3288 echo "configure:3289: checking for --enable-ipc" >&5
3289 no_cache=0
3290 # Check whether --enable-ipc or --disable-ipc was given.
3291 if test "${enable_ipc+set}" = set; then
3292 enableval="$enable_ipc"
3293
3294 if test "$enableval" = yes; then
3295 ac_cv_use_ipc='wxUSE_IPC=yes'
3296 else
3297 ac_cv_use_ipc='wxUSE_IPC=no'
3298 fi
3299
3300 else
3301
3302 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3303 if test "x$LINE" != x ; then
3304 eval "DEFAULT_$LINE"
3305 else
3306 no_cache=1
3307 fi
3308
3309 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3310
3311 fi
3312
3313
3314 eval "$ac_cv_use_ipc"
3315 if test "$no_cache" != 1; then
3316 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3317 fi
3318
3319 if test "$wxUSE_IPC" = yes; then
3320 echo "$ac_t""yes" 1>&6
3321 else
3322 echo "$ac_t""no" 1>&6
3323 fi
3324
3325
3326
3327 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3328 echo "configure:3329: checking for --enable-cmdline" >&5
3329 no_cache=0
3330 # Check whether --enable-cmdline or --disable-cmdline was given.
3331 if test "${enable_cmdline+set}" = set; then
3332 enableval="$enable_cmdline"
3333
3334 if test "$enableval" = yes; then
3335 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3336 else
3337 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3338 fi
3339
3340 else
3341
3342 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3343 if test "x$LINE" != x ; then
3344 eval "DEFAULT_$LINE"
3345 else
3346 no_cache=1
3347 fi
3348
3349 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3350
3351 fi
3352
3353
3354 eval "$ac_cv_use_cmdline"
3355 if test "$no_cache" != 1; then
3356 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3357 fi
3358
3359 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3360 echo "$ac_t""yes" 1>&6
3361 else
3362 echo "$ac_t""no" 1>&6
3363 fi
3364
3365
3366 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3367 echo "configure:3368: checking for --enable-datetime" >&5
3368 no_cache=0
3369 # Check whether --enable-datetime or --disable-datetime was given.
3370 if test "${enable_datetime+set}" = set; then
3371 enableval="$enable_datetime"
3372
3373 if test "$enableval" = yes; then
3374 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3375 else
3376 ac_cv_use_datetime='wxUSE_DATETIME=no'
3377 fi
3378
3379 else
3380
3381 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3382 if test "x$LINE" != x ; then
3383 eval "DEFAULT_$LINE"
3384 else
3385 no_cache=1
3386 fi
3387
3388 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3389
3390 fi
3391
3392
3393 eval "$ac_cv_use_datetime"
3394 if test "$no_cache" != 1; then
3395 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3396 fi
3397
3398 if test "$wxUSE_DATETIME" = yes; then
3399 echo "$ac_t""yes" 1>&6
3400 else
3401 echo "$ac_t""no" 1>&6
3402 fi
3403
3404
3405 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3406 echo "configure:3407: checking for --enable-timedate" >&5
3407 no_cache=0
3408 # Check whether --enable-timedate or --disable-timedate was given.
3409 if test "${enable_timedate+set}" = set; then
3410 enableval="$enable_timedate"
3411
3412 if test "$enableval" = yes; then
3413 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3414 else
3415 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3416 fi
3417
3418 else
3419
3420 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3421 if test "x$LINE" != x ; then
3422 eval "DEFAULT_$LINE"
3423 else
3424 no_cache=1
3425 fi
3426
3427 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3428
3429 fi
3430
3431
3432 eval "$ac_cv_use_timedate"
3433 if test "$no_cache" != 1; then
3434 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3435 fi
3436
3437 if test "$wxUSE_TIMEDATE" = yes; then
3438 echo "$ac_t""yes" 1>&6
3439 else
3440 echo "$ac_t""no" 1>&6
3441 fi
3442
3443
3444 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3445 echo "configure:3446: checking for --enable-stopwatch" >&5
3446 no_cache=0
3447 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3448 if test "${enable_stopwatch+set}" = set; then
3449 enableval="$enable_stopwatch"
3450
3451 if test "$enableval" = yes; then
3452 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3453 else
3454 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3455 fi
3456
3457 else
3458
3459 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3460 if test "x$LINE" != x ; then
3461 eval "DEFAULT_$LINE"
3462 else
3463 no_cache=1
3464 fi
3465
3466 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3467
3468 fi
3469
3470
3471 eval "$ac_cv_use_stopwatch"
3472 if test "$no_cache" != 1; then
3473 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3474 fi
3475
3476 if test "$wxUSE_STOPWATCH" = yes; then
3477 echo "$ac_t""yes" 1>&6
3478 else
3479 echo "$ac_t""no" 1>&6
3480 fi
3481
3482
3483 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3484 echo "configure:3485: checking for --enable-dialupman" >&5
3485 no_cache=0
3486 # Check whether --enable-dialupman or --disable-dialupman was given.
3487 if test "${enable_dialupman+set}" = set; then
3488 enableval="$enable_dialupman"
3489
3490 if test "$enableval" = yes; then
3491 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3492 else
3493 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3494 fi
3495
3496 else
3497
3498 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3499 if test "x$LINE" != x ; then
3500 eval "DEFAULT_$LINE"
3501 else
3502 no_cache=1
3503 fi
3504
3505 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3506
3507 fi
3508
3509
3510 eval "$ac_cv_use_dialupman"
3511 if test "$no_cache" != 1; then
3512 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3513 fi
3514
3515 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3516 echo "$ac_t""yes" 1>&6
3517 else
3518 echo "$ac_t""no" 1>&6
3519 fi
3520
3521
3522 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3523 echo "configure:3524: checking for --enable-apple_ieee" >&5
3524 no_cache=0
3525 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3526 if test "${enable_apple_ieee+set}" = set; then
3527 enableval="$enable_apple_ieee"
3528
3529 if test "$enableval" = yes; then
3530 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3531 else
3532 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3533 fi
3534
3535 else
3536
3537 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3538 if test "x$LINE" != x ; then
3539 eval "DEFAULT_$LINE"
3540 else
3541 no_cache=1
3542 fi
3543
3544 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3545
3546 fi
3547
3548
3549 eval "$ac_cv_use_apple_ieee"
3550 if test "$no_cache" != 1; then
3551 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3552 fi
3553
3554 if test "$wxUSE_APPLE_IEEE" = yes; then
3555 echo "$ac_t""yes" 1>&6
3556 else
3557 echo "$ac_t""no" 1>&6
3558 fi
3559
3560
3561 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3562 echo "configure:3563: checking for --enable-timer" >&5
3563 no_cache=0
3564 # Check whether --enable-timer or --disable-timer was given.
3565 if test "${enable_timer+set}" = set; then
3566 enableval="$enable_timer"
3567
3568 if test "$enableval" = yes; then
3569 ac_cv_use_timer='wxUSE_TIMER=yes'
3570 else
3571 ac_cv_use_timer='wxUSE_TIMER=no'
3572 fi
3573
3574 else
3575
3576 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3577 if test "x$LINE" != x ; then
3578 eval "DEFAULT_$LINE"
3579 else
3580 no_cache=1
3581 fi
3582
3583 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3584
3585 fi
3586
3587
3588 eval "$ac_cv_use_timer"
3589 if test "$no_cache" != 1; then
3590 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3591 fi
3592
3593 if test "$wxUSE_TIMER" = yes; then
3594 echo "$ac_t""yes" 1>&6
3595 else
3596 echo "$ac_t""no" 1>&6
3597 fi
3598
3599
3600 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3601 echo "configure:3602: checking for --enable-wave" >&5
3602 no_cache=0
3603 # Check whether --enable-wave or --disable-wave was given.
3604 if test "${enable_wave+set}" = set; then
3605 enableval="$enable_wave"
3606
3607 if test "$enableval" = yes; then
3608 ac_cv_use_wave='wxUSE_WAVE=yes'
3609 else
3610 ac_cv_use_wave='wxUSE_WAVE=no'
3611 fi
3612
3613 else
3614
3615 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3616 if test "x$LINE" != x ; then
3617 eval "DEFAULT_$LINE"
3618 else
3619 no_cache=1
3620 fi
3621
3622 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3623
3624 fi
3625
3626
3627 eval "$ac_cv_use_wave"
3628 if test "$no_cache" != 1; then
3629 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3630 fi
3631
3632 if test "$wxUSE_WAVE" = yes; then
3633 echo "$ac_t""yes" 1>&6
3634 else
3635 echo "$ac_t""no" 1>&6
3636 fi
3637
3638
3639 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3640 echo "configure:3641: checking for --enable-fraction" >&5
3641 no_cache=0
3642 # Check whether --enable-fraction or --disable-fraction was given.
3643 if test "${enable_fraction+set}" = set; then
3644 enableval="$enable_fraction"
3645
3646 if test "$enableval" = yes; then
3647 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3648 else
3649 ac_cv_use_fraction='wxUSE_FRACTION=no'
3650 fi
3651
3652 else
3653
3654 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3655 if test "x$LINE" != x ; then
3656 eval "DEFAULT_$LINE"
3657 else
3658 no_cache=1
3659 fi
3660
3661 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3662
3663 fi
3664
3665
3666 eval "$ac_cv_use_fraction"
3667 if test "$no_cache" != 1; then
3668 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3669 fi
3670
3671 if test "$wxUSE_FRACTION" = yes; then
3672 echo "$ac_t""yes" 1>&6
3673 else
3674 echo "$ac_t""no" 1>&6
3675 fi
3676
3677
3678 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3679 echo "configure:3680: checking for --enable-dynlib" >&5
3680 no_cache=0
3681 # Check whether --enable-dynlib or --disable-dynlib was given.
3682 if test "${enable_dynlib+set}" = set; then
3683 enableval="$enable_dynlib"
3684
3685 if test "$enableval" = yes; then
3686 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3687 else
3688 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3689 fi
3690
3691 else
3692
3693 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3694 if test "x$LINE" != x ; then
3695 eval "DEFAULT_$LINE"
3696 else
3697 no_cache=1
3698 fi
3699
3700 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3701
3702 fi
3703
3704
3705 eval "$ac_cv_use_dynlib"
3706 if test "$no_cache" != 1; then
3707 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3708 fi
3709
3710 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3711 echo "$ac_t""yes" 1>&6
3712 else
3713 echo "$ac_t""no" 1>&6
3714 fi
3715
3716
3717 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3718 echo "configure:3719: checking for --enable-dynamicloader" >&5
3719 no_cache=0
3720 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3721 if test "${enable_dynamicloader+set}" = set; then
3722 enableval="$enable_dynamicloader"
3723
3724 if test "$enableval" = yes; then
3725 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3726 else
3727 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3728 fi
3729
3730 else
3731
3732 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3733 if test "x$LINE" != x ; then
3734 eval "DEFAULT_$LINE"
3735 else
3736 no_cache=1
3737 fi
3738
3739 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3740
3741 fi
3742
3743
3744 eval "$ac_cv_use_dynamicloader"
3745 if test "$no_cache" != 1; then
3746 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3747 fi
3748
3749 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3750 echo "$ac_t""yes" 1>&6
3751 else
3752 echo "$ac_t""no" 1>&6
3753 fi
3754
3755
3756 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3757 echo "configure:3758: checking for --enable-longlong" >&5
3758 no_cache=0
3759 # Check whether --enable-longlong or --disable-longlong was given.
3760 if test "${enable_longlong+set}" = set; then
3761 enableval="$enable_longlong"
3762
3763 if test "$enableval" = yes; then
3764 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3765 else
3766 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3767 fi
3768
3769 else
3770
3771 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3772 if test "x$LINE" != x ; then
3773 eval "DEFAULT_$LINE"
3774 else
3775 no_cache=1
3776 fi
3777
3778 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3779
3780 fi
3781
3782
3783 eval "$ac_cv_use_longlong"
3784 if test "$no_cache" != 1; then
3785 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3786 fi
3787
3788 if test "$wxUSE_LONGLONG" = yes; then
3789 echo "$ac_t""yes" 1>&6
3790 else
3791 echo "$ac_t""no" 1>&6
3792 fi
3793
3794
3795 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3796 echo "configure:3797: checking for --enable-geometry" >&5
3797 no_cache=0
3798 # Check whether --enable-geometry or --disable-geometry was given.
3799 if test "${enable_geometry+set}" = set; then
3800 enableval="$enable_geometry"
3801
3802 if test "$enableval" = yes; then
3803 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3804 else
3805 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3806 fi
3807
3808 else
3809
3810 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3811 if test "x$LINE" != x ; then
3812 eval "DEFAULT_$LINE"
3813 else
3814 no_cache=1
3815 fi
3816
3817 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3818
3819 fi
3820
3821
3822 eval "$ac_cv_use_geometry"
3823 if test "$no_cache" != 1; then
3824 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3825 fi
3826
3827 if test "$wxUSE_GEOMETRY" = yes; then
3828 echo "$ac_t""yes" 1>&6
3829 else
3830 echo "$ac_t""no" 1>&6
3831 fi
3832
3833
3834 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3835 echo "configure:3836: checking for --enable-log" >&5
3836 no_cache=0
3837 # Check whether --enable-log or --disable-log was given.
3838 if test "${enable_log+set}" = set; then
3839 enableval="$enable_log"
3840
3841 if test "$enableval" = yes; then
3842 ac_cv_use_log='wxUSE_LOG=yes'
3843 else
3844 ac_cv_use_log='wxUSE_LOG=no'
3845 fi
3846
3847 else
3848
3849 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3850 if test "x$LINE" != x ; then
3851 eval "DEFAULT_$LINE"
3852 else
3853 no_cache=1
3854 fi
3855
3856 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3857
3858 fi
3859
3860
3861 eval "$ac_cv_use_log"
3862 if test "$no_cache" != 1; then
3863 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3864 fi
3865
3866 if test "$wxUSE_LOG" = yes; then
3867 echo "$ac_t""yes" 1>&6
3868 else
3869 echo "$ac_t""no" 1>&6
3870 fi
3871
3872
3873 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3874 echo "configure:3875: checking for --enable-streams" >&5
3875 no_cache=0
3876 # Check whether --enable-streams or --disable-streams was given.
3877 if test "${enable_streams+set}" = set; then
3878 enableval="$enable_streams"
3879
3880 if test "$enableval" = yes; then
3881 ac_cv_use_streams='wxUSE_STREAMS=yes'
3882 else
3883 ac_cv_use_streams='wxUSE_STREAMS=no'
3884 fi
3885
3886 else
3887
3888 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3889 if test "x$LINE" != x ; then
3890 eval "DEFAULT_$LINE"
3891 else
3892 no_cache=1
3893 fi
3894
3895 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3896
3897 fi
3898
3899
3900 eval "$ac_cv_use_streams"
3901 if test "$no_cache" != 1; then
3902 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3903 fi
3904
3905 if test "$wxUSE_STREAMS" = yes; then
3906 echo "$ac_t""yes" 1>&6
3907 else
3908 echo "$ac_t""no" 1>&6
3909 fi
3910
3911
3912 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3913 echo "configure:3914: checking for --enable-file" >&5
3914 no_cache=0
3915 # Check whether --enable-file or --disable-file was given.
3916 if test "${enable_file+set}" = set; then
3917 enableval="$enable_file"
3918
3919 if test "$enableval" = yes; then
3920 ac_cv_use_file='wxUSE_FILE=yes'
3921 else
3922 ac_cv_use_file='wxUSE_FILE=no'
3923 fi
3924
3925 else
3926
3927 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3928 if test "x$LINE" != x ; then
3929 eval "DEFAULT_$LINE"
3930 else
3931 no_cache=1
3932 fi
3933
3934 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3935
3936 fi
3937
3938
3939 eval "$ac_cv_use_file"
3940 if test "$no_cache" != 1; then
3941 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3942 fi
3943
3944 if test "$wxUSE_FILE" = yes; then
3945 echo "$ac_t""yes" 1>&6
3946 else
3947 echo "$ac_t""no" 1>&6
3948 fi
3949
3950
3951 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3952 echo "configure:3953: checking for --enable-ffile" >&5
3953 no_cache=0
3954 # Check whether --enable-ffile or --disable-ffile was given.
3955 if test "${enable_ffile+set}" = set; then
3956 enableval="$enable_ffile"
3957
3958 if test "$enableval" = yes; then
3959 ac_cv_use_ffile='wxUSE_FFILE=yes'
3960 else
3961 ac_cv_use_ffile='wxUSE_FFILE=no'
3962 fi
3963
3964 else
3965
3966 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3967 if test "x$LINE" != x ; then
3968 eval "DEFAULT_$LINE"
3969 else
3970 no_cache=1
3971 fi
3972
3973 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3974
3975 fi
3976
3977
3978 eval "$ac_cv_use_ffile"
3979 if test "$no_cache" != 1; then
3980 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3981 fi
3982
3983 if test "$wxUSE_FFILE" = yes; then
3984 echo "$ac_t""yes" 1>&6
3985 else
3986 echo "$ac_t""no" 1>&6
3987 fi
3988
3989
3990 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
3991 echo "configure:3992: checking for --enable-textbuf" >&5
3992 no_cache=0
3993 # Check whether --enable-textbuf or --disable-textbuf was given.
3994 if test "${enable_textbuf+set}" = set; then
3995 enableval="$enable_textbuf"
3996
3997 if test "$enableval" = yes; then
3998 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3999 else
4000 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4001 fi
4002
4003 else
4004
4005 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4006 if test "x$LINE" != x ; then
4007 eval "DEFAULT_$LINE"
4008 else
4009 no_cache=1
4010 fi
4011
4012 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4013
4014 fi
4015
4016
4017 eval "$ac_cv_use_textbuf"
4018 if test "$no_cache" != 1; then
4019 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4020 fi
4021
4022 if test "$wxUSE_TEXTBUFFER" = yes; then
4023 echo "$ac_t""yes" 1>&6
4024 else
4025 echo "$ac_t""no" 1>&6
4026 fi
4027
4028
4029 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
4030 echo "configure:4031: checking for --enable-textfile" >&5
4031 no_cache=0
4032 # Check whether --enable-textfile or --disable-textfile was given.
4033 if test "${enable_textfile+set}" = set; then
4034 enableval="$enable_textfile"
4035
4036 if test "$enableval" = yes; then
4037 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4038 else
4039 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4040 fi
4041
4042 else
4043
4044 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4045 if test "x$LINE" != x ; then
4046 eval "DEFAULT_$LINE"
4047 else
4048 no_cache=1
4049 fi
4050
4051 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4052
4053 fi
4054
4055
4056 eval "$ac_cv_use_textfile"
4057 if test "$no_cache" != 1; then
4058 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4059 fi
4060
4061 if test "$wxUSE_TEXTFILE" = yes; then
4062 echo "$ac_t""yes" 1>&6
4063 else
4064 echo "$ac_t""no" 1>&6
4065 fi
4066
4067
4068 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
4069 echo "configure:4070: checking for --enable-fontmap" >&5
4070 no_cache=0
4071 # Check whether --enable-fontmap or --disable-fontmap was given.
4072 if test "${enable_fontmap+set}" = set; then
4073 enableval="$enable_fontmap"
4074
4075 if test "$enableval" = yes; then
4076 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4077 else
4078 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4079 fi
4080
4081 else
4082
4083 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4084 if test "x$LINE" != x ; then
4085 eval "DEFAULT_$LINE"
4086 else
4087 no_cache=1
4088 fi
4089
4090 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4091
4092 fi
4093
4094
4095 eval "$ac_cv_use_fontmap"
4096 if test "$no_cache" != 1; then
4097 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4098 fi
4099
4100 if test "$wxUSE_FONTMAP" = yes; then
4101 echo "$ac_t""yes" 1>&6
4102 else
4103 echo "$ac_t""no" 1>&6
4104 fi
4105
4106
4107 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
4108 echo "configure:4109: checking for --enable-unicode" >&5
4109 no_cache=0
4110 # Check whether --enable-unicode or --disable-unicode was given.
4111 if test "${enable_unicode+set}" = set; then
4112 enableval="$enable_unicode"
4113
4114 if test "$enableval" = yes; then
4115 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4116 else
4117 ac_cv_use_unicode='wxUSE_UNICODE=no'
4118 fi
4119
4120 else
4121
4122 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4123 if test "x$LINE" != x ; then
4124 eval "DEFAULT_$LINE"
4125 else
4126 no_cache=1
4127 fi
4128
4129 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4130
4131 fi
4132
4133
4134 eval "$ac_cv_use_unicode"
4135 if test "$no_cache" != 1; then
4136 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4137 fi
4138
4139 if test "$wxUSE_UNICODE" = yes; then
4140 echo "$ac_t""yes" 1>&6
4141 else
4142 echo "$ac_t""no" 1>&6
4143 fi
4144
4145
4146 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
4147 echo "configure:4148: checking for --enable-mslu" >&5
4148 no_cache=0
4149 # Check whether --enable-mslu or --disable-mslu was given.
4150 if test "${enable_mslu+set}" = set; then
4151 enableval="$enable_mslu"
4152
4153 if test "$enableval" = yes; then
4154 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4155 else
4156 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4157 fi
4158
4159 else
4160
4161 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4162 if test "x$LINE" != x ; then
4163 eval "DEFAULT_$LINE"
4164 else
4165 no_cache=1
4166 fi
4167
4168 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4169
4170 fi
4171
4172
4173 eval "$ac_cv_use_mslu"
4174 if test "$no_cache" != 1; then
4175 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4176 fi
4177
4178 if test "$wxUSE_UNICODE_MSLU" = yes; then
4179 echo "$ac_t""yes" 1>&6
4180 else
4181 echo "$ac_t""no" 1>&6
4182 fi
4183
4184
4185 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
4186 echo "configure:4187: checking for --enable-wxprintfv" >&5
4187 no_cache=0
4188 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4189 if test "${enable_wxprintfv+set}" = set; then
4190 enableval="$enable_wxprintfv"
4191
4192 if test "$enableval" = yes; then
4193 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4194 else
4195 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4196 fi
4197
4198 else
4199
4200 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4201 if test "x$LINE" != x ; then
4202 eval "DEFAULT_$LINE"
4203 else
4204 no_cache=1
4205 fi
4206
4207 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4208
4209 fi
4210
4211
4212 eval "$ac_cv_use_wxprintfv"
4213 if test "$no_cache" != 1; then
4214 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4215 fi
4216
4217 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4218 echo "$ac_t""yes" 1>&6
4219 else
4220 echo "$ac_t""no" 1>&6
4221 fi
4222
4223
4224 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4225 echo "configure:4226: checking for --enable-std_iostreams" >&5
4226 no_cache=0
4227 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4228 if test "${enable_std_iostreams+set}" = set; then
4229 enableval="$enable_std_iostreams"
4230
4231 if test "$enableval" = yes; then
4232 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4233 else
4234 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4235 fi
4236
4237 else
4238
4239 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4240 if test "x$LINE" != x ; then
4241 eval "DEFAULT_$LINE"
4242 else
4243 no_cache=1
4244 fi
4245
4246 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4247
4248 fi
4249
4250
4251 eval "$ac_cv_use_std_iostreams"
4252 if test "$no_cache" != 1; then
4253 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4254 fi
4255
4256 if test "$wxUSE_STD_IOSTREAM" = yes; then
4257 echo "$ac_t""yes" 1>&6
4258 else
4259 echo "$ac_t""no" 1>&6
4260 fi
4261
4262
4263 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4264 echo "configure:4265: checking for --enable-filesystem" >&5
4265 no_cache=0
4266 # Check whether --enable-filesystem or --disable-filesystem was given.
4267 if test "${enable_filesystem+set}" = set; then
4268 enableval="$enable_filesystem"
4269
4270 if test "$enableval" = yes; then
4271 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4272 else
4273 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4274 fi
4275
4276 else
4277
4278 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4279 if test "x$LINE" != x ; then
4280 eval "DEFAULT_$LINE"
4281 else
4282 no_cache=1
4283 fi
4284
4285 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4286
4287 fi
4288
4289
4290 eval "$ac_cv_use_filesystem"
4291 if test "$no_cache" != 1; then
4292 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4293 fi
4294
4295 if test "$wxUSE_FILESYSTEM" = yes; then
4296 echo "$ac_t""yes" 1>&6
4297 else
4298 echo "$ac_t""no" 1>&6
4299 fi
4300
4301
4302 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4303 echo "configure:4304: checking for --enable-fs_inet" >&5
4304 no_cache=0
4305 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4306 if test "${enable_fs_inet+set}" = set; then
4307 enableval="$enable_fs_inet"
4308
4309 if test "$enableval" = yes; then
4310 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4311 else
4312 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4313 fi
4314
4315 else
4316
4317 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4318 if test "x$LINE" != x ; then
4319 eval "DEFAULT_$LINE"
4320 else
4321 no_cache=1
4322 fi
4323
4324 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4325
4326 fi
4327
4328
4329 eval "$ac_cv_use_fs_inet"
4330 if test "$no_cache" != 1; then
4331 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4332 fi
4333
4334 if test "$wxUSE_FS_INET" = yes; then
4335 echo "$ac_t""yes" 1>&6
4336 else
4337 echo "$ac_t""no" 1>&6
4338 fi
4339
4340
4341 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4342 echo "configure:4343: checking for --enable-fs_zip" >&5
4343 no_cache=0
4344 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4345 if test "${enable_fs_zip+set}" = set; then
4346 enableval="$enable_fs_zip"
4347
4348 if test "$enableval" = yes; then
4349 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4350 else
4351 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4352 fi
4353
4354 else
4355
4356 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4357 if test "x$LINE" != x ; then
4358 eval "DEFAULT_$LINE"
4359 else
4360 no_cache=1
4361 fi
4362
4363 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4364
4365 fi
4366
4367
4368 eval "$ac_cv_use_fs_zip"
4369 if test "$no_cache" != 1; then
4370 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4371 fi
4372
4373 if test "$wxUSE_FS_ZIP" = yes; then
4374 echo "$ac_t""yes" 1>&6
4375 else
4376 echo "$ac_t""no" 1>&6
4377 fi
4378
4379
4380 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4381 echo "configure:4382: checking for --enable-zipstream" >&5
4382 no_cache=0
4383 # Check whether --enable-zipstream or --disable-zipstream was given.
4384 if test "${enable_zipstream+set}" = set; then
4385 enableval="$enable_zipstream"
4386
4387 if test "$enableval" = yes; then
4388 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4389 else
4390 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4391 fi
4392
4393 else
4394
4395 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4396 if test "x$LINE" != x ; then
4397 eval "DEFAULT_$LINE"
4398 else
4399 no_cache=1
4400 fi
4401
4402 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4403
4404 fi
4405
4406
4407 eval "$ac_cv_use_zipstream"
4408 if test "$no_cache" != 1; then
4409 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4410 fi
4411
4412 if test "$wxUSE_ZIPSTREAM" = yes; then
4413 echo "$ac_t""yes" 1>&6
4414 else
4415 echo "$ac_t""no" 1>&6
4416 fi
4417
4418
4419
4420 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4421 echo "configure:4422: checking for --enable-catch_segvs" >&5
4422 no_cache=0
4423 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4424 if test "${enable_catch_segvs+set}" = set; then
4425 enableval="$enable_catch_segvs"
4426
4427 if test "$enableval" = yes; then
4428 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4429 else
4430 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4431 fi
4432
4433 else
4434
4435 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4436 if test "x$LINE" != x ; then
4437 eval "DEFAULT_$LINE"
4438 else
4439 no_cache=1
4440 fi
4441
4442 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4443
4444 fi
4445
4446
4447 eval "$ac_cv_use_catch_segvs"
4448 if test "$no_cache" != 1; then
4449 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4450 fi
4451
4452 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4453 echo "$ac_t""yes" 1>&6
4454 else
4455 echo "$ac_t""no" 1>&6
4456 fi
4457
4458
4459 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4460 echo "configure:4461: checking for --enable-snglinst" >&5
4461 no_cache=0
4462 # Check whether --enable-snglinst or --disable-snglinst was given.
4463 if test "${enable_snglinst+set}" = set; then
4464 enableval="$enable_snglinst"
4465
4466 if test "$enableval" = yes; then
4467 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4468 else
4469 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4470 fi
4471
4472 else
4473
4474 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4475 if test "x$LINE" != x ; then
4476 eval "DEFAULT_$LINE"
4477 else
4478 no_cache=1
4479 fi
4480
4481 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4482
4483 fi
4484
4485
4486 eval "$ac_cv_use_snglinst"
4487 if test "$no_cache" != 1; then
4488 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4489 fi
4490
4491 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4492 echo "$ac_t""yes" 1>&6
4493 else
4494 echo "$ac_t""no" 1>&6
4495 fi
4496
4497
4498
4499 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4500 echo "configure:4501: checking for --enable-mimetype" >&5
4501 no_cache=0
4502 # Check whether --enable-mimetype or --disable-mimetype was given.
4503 if test "${enable_mimetype+set}" = set; then
4504 enableval="$enable_mimetype"
4505
4506 if test "$enableval" = yes; then
4507 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4508 else
4509 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4510 fi
4511
4512 else
4513
4514 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4515 if test "x$LINE" != x ; then
4516 eval "DEFAULT_$LINE"
4517 else
4518 no_cache=1
4519 fi
4520
4521 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4522
4523 fi
4524
4525
4526 eval "$ac_cv_use_mimetype"
4527 if test "$no_cache" != 1; then
4528 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4529 fi
4530
4531 if test "$wxUSE_MIMETYPE" = yes; then
4532 echo "$ac_t""yes" 1>&6
4533 else
4534 echo "$ac_t""no" 1>&6
4535 fi
4536
4537
4538 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4539 echo "configure:4540: checking for --enable-system_options" >&5
4540 no_cache=0
4541 # Check whether --enable-system_options or --disable-system_options was given.
4542 if test "${enable_system_options+set}" = set; then
4543 enableval="$enable_system_options"
4544
4545 if test "$enableval" = yes; then
4546 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4547 else
4548 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4549 fi
4550
4551 else
4552
4553 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4554 if test "x$LINE" != x ; then
4555 eval "DEFAULT_$LINE"
4556 else
4557 no_cache=1
4558 fi
4559
4560 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4561
4562 fi
4563
4564
4565 eval "$ac_cv_use_system_options"
4566 if test "$no_cache" != 1; then
4567 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4568 fi
4569
4570 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4571 echo "$ac_t""yes" 1>&6
4572 else
4573 echo "$ac_t""no" 1>&6
4574 fi
4575
4576
4577
4578 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
4579 echo "configure:4580: checking for --enable-url" >&5
4580 no_cache=0
4581 # Check whether --enable-url or --disable-url was given.
4582 if test "${enable_url+set}" = set; then
4583 enableval="$enable_url"
4584
4585 if test "$enableval" = yes; then
4586 ac_cv_use_url='wxUSE_URL=yes'
4587 else
4588 ac_cv_use_url='wxUSE_URL=no'
4589 fi
4590
4591 else
4592
4593 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4594 if test "x$LINE" != x ; then
4595 eval "DEFAULT_$LINE"
4596 else
4597 no_cache=1
4598 fi
4599
4600 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4601
4602 fi
4603
4604
4605 eval "$ac_cv_use_url"
4606 if test "$no_cache" != 1; then
4607 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4608 fi
4609
4610 if test "$wxUSE_URL" = yes; then
4611 echo "$ac_t""yes" 1>&6
4612 else
4613 echo "$ac_t""no" 1>&6
4614 fi
4615
4616
4617 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
4618 echo "configure:4619: checking for --enable-protocol" >&5
4619 no_cache=0
4620 # Check whether --enable-protocol or --disable-protocol was given.
4621 if test "${enable_protocol+set}" = set; then
4622 enableval="$enable_protocol"
4623
4624 if test "$enableval" = yes; then
4625 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4626 else
4627 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4628 fi
4629
4630 else
4631
4632 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4633 if test "x$LINE" != x ; then
4634 eval "DEFAULT_$LINE"
4635 else
4636 no_cache=1
4637 fi
4638
4639 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4640
4641 fi
4642
4643
4644 eval "$ac_cv_use_protocol"
4645 if test "$no_cache" != 1; then
4646 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4647 fi
4648
4649 if test "$wxUSE_PROTOCOL" = yes; then
4650 echo "$ac_t""yes" 1>&6
4651 else
4652 echo "$ac_t""no" 1>&6
4653 fi
4654
4655
4656 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
4657 echo "configure:4658: checking for --enable-protocol_http" >&5
4658 no_cache=0
4659 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4660 if test "${enable_protocol_http+set}" = set; then
4661 enableval="$enable_protocol_http"
4662
4663 if test "$enableval" = yes; then
4664 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4665 else
4666 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4667 fi
4668
4669 else
4670
4671 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4672 if test "x$LINE" != x ; then
4673 eval "DEFAULT_$LINE"
4674 else
4675 no_cache=1
4676 fi
4677
4678 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4679
4680 fi
4681
4682
4683 eval "$ac_cv_use_protocol_http"
4684 if test "$no_cache" != 1; then
4685 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4686 fi
4687
4688 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4689 echo "$ac_t""yes" 1>&6
4690 else
4691 echo "$ac_t""no" 1>&6
4692 fi
4693
4694
4695 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
4696 echo "configure:4697: checking for --enable-protocol_ftp" >&5
4697 no_cache=0
4698 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4699 if test "${enable_protocol_ftp+set}" = set; then
4700 enableval="$enable_protocol_ftp"
4701
4702 if test "$enableval" = yes; then
4703 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4704 else
4705 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4706 fi
4707
4708 else
4709
4710 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4711 if test "x$LINE" != x ; then
4712 eval "DEFAULT_$LINE"
4713 else
4714 no_cache=1
4715 fi
4716
4717 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4718
4719 fi
4720
4721
4722 eval "$ac_cv_use_protocol_ftp"
4723 if test "$no_cache" != 1; then
4724 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4725 fi
4726
4727 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4728 echo "$ac_t""yes" 1>&6
4729 else
4730 echo "$ac_t""no" 1>&6
4731 fi
4732
4733
4734 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
4735 echo "configure:4736: checking for --enable-protocol_file" >&5
4736 no_cache=0
4737 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4738 if test "${enable_protocol_file+set}" = set; then
4739 enableval="$enable_protocol_file"
4740
4741 if test "$enableval" = yes; then
4742 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4743 else
4744 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4745 fi
4746
4747 else
4748
4749 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4750 if test "x$LINE" != x ; then
4751 eval "DEFAULT_$LINE"
4752 else
4753 no_cache=1
4754 fi
4755
4756 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4757
4758 fi
4759
4760
4761 eval "$ac_cv_use_protocol_file"
4762 if test "$no_cache" != 1; then
4763 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4764 fi
4765
4766 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4767 echo "$ac_t""yes" 1>&6
4768 else
4769 echo "$ac_t""no" 1>&6
4770 fi
4771
4772
4773
4774
4775
4776 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4777 echo "configure:4778: checking for --enable-threads" >&5
4778 no_cache=0
4779 # Check whether --enable-threads or --disable-threads was given.
4780 if test "${enable_threads+set}" = set; then
4781 enableval="$enable_threads"
4782
4783 if test "$enableval" = yes; then
4784 ac_cv_use_threads='wxUSE_THREADS=yes'
4785 else
4786 ac_cv_use_threads='wxUSE_THREADS=no'
4787 fi
4788
4789 else
4790
4791 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4792 if test "x$LINE" != x ; then
4793 eval "DEFAULT_$LINE"
4794 else
4795 no_cache=1
4796 fi
4797
4798 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4799
4800 fi
4801
4802
4803 eval "$ac_cv_use_threads"
4804 if test "$no_cache" != 1; then
4805 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4806 fi
4807
4808 if test "$wxUSE_THREADS" = yes; then
4809 echo "$ac_t""yes" 1>&6
4810 else
4811 echo "$ac_t""no" 1>&6
4812 fi
4813
4814
4815 if test "$wxUSE_GUI" = "yes"; then
4816
4817
4818
4819 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4820 echo "configure:4821: checking for --enable-docview" >&5
4821 no_cache=0
4822 # Check whether --enable-docview or --disable-docview was given.
4823 if test "${enable_docview+set}" = set; then
4824 enableval="$enable_docview"
4825
4826 if test "$enableval" = yes; then
4827 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4828 else
4829 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4830 fi
4831
4832 else
4833
4834 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4835 if test "x$LINE" != x ; then
4836 eval "DEFAULT_$LINE"
4837 else
4838 no_cache=1
4839 fi
4840
4841 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4842
4843 fi
4844
4845
4846 eval "$ac_cv_use_docview"
4847 if test "$no_cache" != 1; then
4848 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4849 fi
4850
4851 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4852 echo "$ac_t""yes" 1>&6
4853 else
4854 echo "$ac_t""no" 1>&6
4855 fi
4856
4857
4858 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4859 echo "configure:4860: checking for --enable-help" >&5
4860 no_cache=0
4861 # Check whether --enable-help or --disable-help was given.
4862 if test "${enable_help+set}" = set; then
4863 enableval="$enable_help"
4864
4865 if test "$enableval" = yes; then
4866 ac_cv_use_help='wxUSE_HELP=yes'
4867 else
4868 ac_cv_use_help='wxUSE_HELP=no'
4869 fi
4870
4871 else
4872
4873 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4874 if test "x$LINE" != x ; then
4875 eval "DEFAULT_$LINE"
4876 else
4877 no_cache=1
4878 fi
4879
4880 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4881
4882 fi
4883
4884
4885 eval "$ac_cv_use_help"
4886 if test "$no_cache" != 1; then
4887 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4888 fi
4889
4890 if test "$wxUSE_HELP" = yes; then
4891 echo "$ac_t""yes" 1>&6
4892 else
4893 echo "$ac_t""no" 1>&6
4894 fi
4895
4896
4897 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4898 echo "configure:4899: checking for --enable-mshtmlhelp" >&5
4899 no_cache=0
4900 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4901 if test "${enable_mshtmlhelp+set}" = set; then
4902 enableval="$enable_mshtmlhelp"
4903
4904 if test "$enableval" = yes; then
4905 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4906 else
4907 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4908 fi
4909
4910 else
4911
4912 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4913 if test "x$LINE" != x ; then
4914 eval "DEFAULT_$LINE"
4915 else
4916 no_cache=1
4917 fi
4918
4919 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4920
4921 fi
4922
4923
4924 eval "$ac_cv_use_mshtmlhelp"
4925 if test "$no_cache" != 1; then
4926 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4927 fi
4928
4929 if test "$wxUSE_MS_HTML_HELP" = yes; then
4930 echo "$ac_t""yes" 1>&6
4931 else
4932 echo "$ac_t""no" 1>&6
4933 fi
4934
4935
4936 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4937 echo "configure:4938: checking for --enable-html" >&5
4938 no_cache=0
4939 # Check whether --enable-html or --disable-html was given.
4940 if test "${enable_html+set}" = set; then
4941 enableval="$enable_html"
4942
4943 if test "$enableval" = yes; then
4944 ac_cv_use_html='wxUSE_HTML=yes'
4945 else
4946 ac_cv_use_html='wxUSE_HTML=no'
4947 fi
4948
4949 else
4950
4951 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4952 if test "x$LINE" != x ; then
4953 eval "DEFAULT_$LINE"
4954 else
4955 no_cache=1
4956 fi
4957
4958 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4959
4960 fi
4961
4962
4963 eval "$ac_cv_use_html"
4964 if test "$no_cache" != 1; then
4965 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4966 fi
4967
4968 if test "$wxUSE_HTML" = yes; then
4969 echo "$ac_t""yes" 1>&6
4970 else
4971 echo "$ac_t""no" 1>&6
4972 fi
4973
4974
4975 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4976 echo "configure:4977: checking for --enable-htmlhelp" >&5
4977 no_cache=0
4978 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4979 if test "${enable_htmlhelp+set}" = set; then
4980 enableval="$enable_htmlhelp"
4981
4982 if test "$enableval" = yes; then
4983 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4984 else
4985 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4986 fi
4987
4988 else
4989
4990 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4991 if test "x$LINE" != x ; then
4992 eval "DEFAULT_$LINE"
4993 else
4994 no_cache=1
4995 fi
4996
4997 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4998
4999 fi
5000
5001
5002 eval "$ac_cv_use_htmlhelp"
5003 if test "$no_cache" != 1; then
5004 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5005 fi
5006
5007 if test "$wxUSE_WXHTML_HELP" = yes; then
5008 echo "$ac_t""yes" 1>&6
5009 else
5010 echo "$ac_t""no" 1>&6
5011 fi
5012
5013
5014 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
5015 echo "configure:5016: checking for --enable-constraints" >&5
5016 no_cache=0
5017 # Check whether --enable-constraints or --disable-constraints was given.
5018 if test "${enable_constraints+set}" = set; then
5019 enableval="$enable_constraints"
5020
5021 if test "$enableval" = yes; then
5022 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5023 else
5024 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5025 fi
5026
5027 else
5028
5029 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5030 if test "x$LINE" != x ; then
5031 eval "DEFAULT_$LINE"
5032 else
5033 no_cache=1
5034 fi
5035
5036 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5037
5038 fi
5039
5040
5041 eval "$ac_cv_use_constraints"
5042 if test "$no_cache" != 1; then
5043 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5044 fi
5045
5046 if test "$wxUSE_CONSTRAINTS" = yes; then
5047 echo "$ac_t""yes" 1>&6
5048 else
5049 echo "$ac_t""no" 1>&6
5050 fi
5051
5052
5053 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
5054 echo "configure:5055: checking for --enable-printarch" >&5
5055 no_cache=0
5056 # Check whether --enable-printarch or --disable-printarch was given.
5057 if test "${enable_printarch+set}" = set; then
5058 enableval="$enable_printarch"
5059
5060 if test "$enableval" = yes; then
5061 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5062 else
5063 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5064 fi
5065
5066 else
5067
5068 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5069 if test "x$LINE" != x ; then
5070 eval "DEFAULT_$LINE"
5071 else
5072 no_cache=1
5073 fi
5074
5075 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5076
5077 fi
5078
5079
5080 eval "$ac_cv_use_printarch"
5081 if test "$no_cache" != 1; then
5082 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5083 fi
5084
5085 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5086 echo "$ac_t""yes" 1>&6
5087 else
5088 echo "$ac_t""no" 1>&6
5089 fi
5090
5091
5092 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
5093 echo "configure:5094: checking for --enable-mdi" >&5
5094 no_cache=0
5095 # Check whether --enable-mdi or --disable-mdi was given.
5096 if test "${enable_mdi+set}" = set; then
5097 enableval="$enable_mdi"
5098
5099 if test "$enableval" = yes; then
5100 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5101 else
5102 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5103 fi
5104
5105 else
5106
5107 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5108 if test "x$LINE" != x ; then
5109 eval "DEFAULT_$LINE"
5110 else
5111 no_cache=1
5112 fi
5113
5114 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5115
5116 fi
5117
5118
5119 eval "$ac_cv_use_mdi"
5120 if test "$no_cache" != 1; then
5121 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5122 fi
5123
5124 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5125 echo "$ac_t""yes" 1>&6
5126 else
5127 echo "$ac_t""no" 1>&6
5128 fi
5129
5130
5131 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
5132 echo "configure:5133: checking for --enable-loggui" >&5
5133 no_cache=0
5134 # Check whether --enable-loggui or --disable-loggui was given.
5135 if test "${enable_loggui+set}" = set; then
5136 enableval="$enable_loggui"
5137
5138 if test "$enableval" = yes; then
5139 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5140 else
5141 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5142 fi
5143
5144 else
5145
5146 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5147 if test "x$LINE" != x ; then
5148 eval "DEFAULT_$LINE"
5149 else
5150 no_cache=1
5151 fi
5152
5153 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5154
5155 fi
5156
5157
5158 eval "$ac_cv_use_loggui"
5159 if test "$no_cache" != 1; then
5160 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5161 fi
5162
5163 if test "$wxUSE_LOGGUI" = yes; then
5164 echo "$ac_t""yes" 1>&6
5165 else
5166 echo "$ac_t""no" 1>&6
5167 fi
5168
5169
5170 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
5171 echo "configure:5172: checking for --enable-logwin" >&5
5172 no_cache=0
5173 # Check whether --enable-logwin or --disable-logwin was given.
5174 if test "${enable_logwin+set}" = set; then
5175 enableval="$enable_logwin"
5176
5177 if test "$enableval" = yes; then
5178 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5179 else
5180 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5181 fi
5182
5183 else
5184
5185 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5186 if test "x$LINE" != x ; then
5187 eval "DEFAULT_$LINE"
5188 else
5189 no_cache=1
5190 fi
5191
5192 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5193
5194 fi
5195
5196
5197 eval "$ac_cv_use_logwin"
5198 if test "$no_cache" != 1; then
5199 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5200 fi
5201
5202 if test "$wxUSE_LOGWINDOW" = yes; then
5203 echo "$ac_t""yes" 1>&6
5204 else
5205 echo "$ac_t""no" 1>&6
5206 fi
5207
5208
5209 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
5210 echo "configure:5211: checking for --enable-logdialog" >&5
5211 no_cache=0
5212 # Check whether --enable-logdialog or --disable-logdialog was given.
5213 if test "${enable_logdialog+set}" = set; then
5214 enableval="$enable_logdialog"
5215
5216 if test "$enableval" = yes; then
5217 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5218 else
5219 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5220 fi
5221
5222 else
5223
5224 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5225 if test "x$LINE" != x ; then
5226 eval "DEFAULT_$LINE"
5227 else
5228 no_cache=1
5229 fi
5230
5231 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5232
5233 fi
5234
5235
5236 eval "$ac_cv_use_logdialog"
5237 if test "$no_cache" != 1; then
5238 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5239 fi
5240
5241 if test "$wxUSE_LOGDIALOG" = yes; then
5242 echo "$ac_t""yes" 1>&6
5243 else
5244 echo "$ac_t""no" 1>&6
5245 fi
5246
5247
5248
5249 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
5250 echo "configure:5251: checking for --enable-postscript" >&5
5251 no_cache=0
5252 # Check whether --enable-postscript or --disable-postscript was given.
5253 if test "${enable_postscript+set}" = set; then
5254 enableval="$enable_postscript"
5255
5256 if test "$enableval" = yes; then
5257 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5258 else
5259 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5260 fi
5261
5262 else
5263
5264 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5265 if test "x$LINE" != x ; then
5266 eval "DEFAULT_$LINE"
5267 else
5268 no_cache=1
5269 fi
5270
5271 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5272
5273 fi
5274
5275
5276 eval "$ac_cv_use_postscript"
5277 if test "$no_cache" != 1; then
5278 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5279 fi
5280
5281 if test "$wxUSE_POSTSCRIPT" = yes; then
5282 echo "$ac_t""yes" 1>&6
5283 else
5284 echo "$ac_t""no" 1>&6
5285 fi
5286
5287
5288
5289
5290
5291 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
5292 echo "configure:5293: checking for --enable-prologio" >&5
5293 no_cache=0
5294 # Check whether --enable-prologio or --disable-prologio was given.
5295 if test "${enable_prologio+set}" = set; then
5296 enableval="$enable_prologio"
5297
5298 if test "$enableval" = yes; then
5299 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5300 else
5301 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5302 fi
5303
5304 else
5305
5306 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5307 if test "x$LINE" != x ; then
5308 eval "DEFAULT_$LINE"
5309 else
5310 no_cache=1
5311 fi
5312
5313 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5314
5315 fi
5316
5317
5318 eval "$ac_cv_use_prologio"
5319 if test "$no_cache" != 1; then
5320 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5321 fi
5322
5323 if test "$wxUSE_PROLOGIO" = yes; then
5324 echo "$ac_t""yes" 1>&6
5325 else
5326 echo "$ac_t""no" 1>&6
5327 fi
5328
5329
5330 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
5331 echo "configure:5332: checking for --enable-resources" >&5
5332 no_cache=0
5333 # Check whether --enable-resources or --disable-resources was given.
5334 if test "${enable_resources+set}" = set; then
5335 enableval="$enable_resources"
5336
5337 if test "$enableval" = yes; then
5338 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5339 else
5340 ac_cv_use_resources='wxUSE_RESOURCES=no'
5341 fi
5342
5343 else
5344
5345 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5346 if test "x$LINE" != x ; then
5347 eval "DEFAULT_$LINE"
5348 else
5349 no_cache=1
5350 fi
5351
5352 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5353
5354 fi
5355
5356
5357 eval "$ac_cv_use_resources"
5358 if test "$no_cache" != 1; then
5359 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5360 fi
5361
5362 if test "$wxUSE_RESOURCES" = yes; then
5363 echo "$ac_t""yes" 1>&6
5364 else
5365 echo "$ac_t""no" 1>&6
5366 fi
5367
5368
5369
5370 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
5371 echo "configure:5372: checking for --enable-xresources" >&5
5372 no_cache=0
5373 # Check whether --enable-xresources or --disable-xresources was given.
5374 if test "${enable_xresources+set}" = set; then
5375 enableval="$enable_xresources"
5376
5377 if test "$enableval" = yes; then
5378 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5379 else
5380 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5381 fi
5382
5383 else
5384
5385 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5386 if test "x$LINE" != x ; then
5387 eval "DEFAULT_$LINE"
5388 else
5389 no_cache=1
5390 fi
5391
5392 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5393
5394 fi
5395
5396
5397 eval "$ac_cv_use_xresources"
5398 if test "$no_cache" != 1; then
5399 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5400 fi
5401
5402 if test "$wxUSE_X_RESOURCES" = yes; then
5403 echo "$ac_t""yes" 1>&6
5404 else
5405 echo "$ac_t""no" 1>&6
5406 fi
5407
5408
5409
5410
5411 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
5412 echo "configure:5413: checking for --enable-clipboard" >&5
5413 no_cache=0
5414 # Check whether --enable-clipboard or --disable-clipboard was given.
5415 if test "${enable_clipboard+set}" = set; then
5416 enableval="$enable_clipboard"
5417
5418 if test "$enableval" = yes; then
5419 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5420 else
5421 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5422 fi
5423
5424 else
5425
5426 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5427 if test "x$LINE" != x ; then
5428 eval "DEFAULT_$LINE"
5429 else
5430 no_cache=1
5431 fi
5432
5433 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5434
5435 fi
5436
5437
5438 eval "$ac_cv_use_clipboard"
5439 if test "$no_cache" != 1; then
5440 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5441 fi
5442
5443 if test "$wxUSE_CLIPBOARD" = yes; then
5444 echo "$ac_t""yes" 1>&6
5445 else
5446 echo "$ac_t""no" 1>&6
5447 fi
5448
5449
5450 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5451 echo "configure:5452: checking for --enable-dnd" >&5
5452 no_cache=0
5453 # Check whether --enable-dnd or --disable-dnd was given.
5454 if test "${enable_dnd+set}" = set; then
5455 enableval="$enable_dnd"
5456
5457 if test "$enableval" = yes; then
5458 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5459 else
5460 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5461 fi
5462
5463 else
5464
5465 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5466 if test "x$LINE" != x ; then
5467 eval "DEFAULT_$LINE"
5468 else
5469 no_cache=1
5470 fi
5471
5472 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5473
5474 fi
5475
5476
5477 eval "$ac_cv_use_dnd"
5478 if test "$no_cache" != 1; then
5479 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5480 fi
5481
5482 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5483 echo "$ac_t""yes" 1>&6
5484 else
5485 echo "$ac_t""no" 1>&6
5486 fi
5487
5488
5489 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5490 echo "configure:5491: checking for --enable-metafile" >&5
5491 no_cache=0
5492 # Check whether --enable-metafile or --disable-metafile was given.
5493 if test "${enable_metafile+set}" = set; then
5494 enableval="$enable_metafile"
5495
5496 if test "$enableval" = yes; then
5497 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5498 else
5499 ac_cv_use_metafile='wxUSE_METAFILE=no'
5500 fi
5501
5502 else
5503
5504 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5505 if test "x$LINE" != x ; then
5506 eval "DEFAULT_$LINE"
5507 else
5508 no_cache=1
5509 fi
5510
5511 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5512
5513 fi
5514
5515
5516 eval "$ac_cv_use_metafile"
5517 if test "$no_cache" != 1; then
5518 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5519 fi
5520
5521 if test "$wxUSE_METAFILE" = yes; then
5522 echo "$ac_t""yes" 1>&6
5523 else
5524 echo "$ac_t""no" 1>&6
5525 fi
5526
5527
5528
5529 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5530 echo "configure:5531: checking for --enable-treelayout" >&5
5531 no_cache=0
5532 # Check whether --enable-treelayout or --disable-treelayout was given.
5533 if test "${enable_treelayout+set}" = set; then
5534 enableval="$enable_treelayout"
5535
5536 if test "$enableval" = yes; then
5537 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5538 else
5539 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5540 fi
5541
5542 else
5543
5544 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5545 if test "x$LINE" != x ; then
5546 eval "DEFAULT_$LINE"
5547 else
5548 no_cache=1
5549 fi
5550
5551 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5552
5553 fi
5554
5555
5556 eval "$ac_cv_use_treelayout"
5557 if test "$no_cache" != 1; then
5558 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5559 fi
5560
5561 if test "$wxUSE_TREELAYOUT" = yes; then
5562 echo "$ac_t""yes" 1>&6
5563 else
5564 echo "$ac_t""no" 1>&6
5565 fi
5566
5567
5568
5569
5570 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5571 echo "configure:5572: checking for --enable-controls" >&5
5572 no_cache=0
5573 # Check whether --enable-controls or --disable-controls was given.
5574 if test "${enable_controls+set}" = set; then
5575 enableval="$enable_controls"
5576
5577 if test "$enableval" = yes; then
5578 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5579 else
5580 ac_cv_use_controls='wxUSE_CONTROLS=no'
5581 fi
5582
5583 else
5584
5585 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5586 if test "x$LINE" != x ; then
5587 eval "DEFAULT_$LINE"
5588 else
5589 no_cache=1
5590 fi
5591
5592 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5593
5594 fi
5595
5596
5597 eval "$ac_cv_use_controls"
5598 if test "$no_cache" != 1; then
5599 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5600 fi
5601
5602 if test "$wxUSE_CONTROLS" = yes; then
5603 echo "$ac_t""yes" 1>&6
5604 else
5605 echo "$ac_t""no" 1>&6
5606 fi
5607
5608
5609 if test "$wxUSE_CONTROLS" = "yes"; then
5610 DEFAULT_wxUSE_ACCEL=yes
5611 DEFAULT_wxUSE_BMPBUTTON=yes
5612 DEFAULT_wxUSE_BUTTON=yes
5613 DEFAULT_wxUSE_CALCTRL=no
5614 DEFAULT_wxUSE_CARET=yes
5615 DEFAULT_wxUSE_COMBOBOX=yes
5616 DEFAULT_wxUSE_CHECKBOX=yes
5617 DEFAULT_wxUSE_CHECKLISTBOX=yes
5618 DEFAULT_wxUSE_CHOICE=yes
5619 DEFAULT_wxUSE_GAUGE=yes
5620 DEFAULT_wxUSE_GRID=yes
5621 DEFAULT_wxUSE_NEW_GRID=yes
5622 DEFAULT_wxUSE_IMAGLIST=yes
5623 DEFAULT_wxUSE_LISTBOX=yes
5624 DEFAULT_wxUSE_LISTCTRL=yes
5625 DEFAULT_wxUSE_NOTEBOOK=yes
5626 DEFAULT_wxUSE_PROPSHEET=yes
5627 DEFAULT_wxUSE_RADIOBOX=yes
5628 DEFAULT_wxUSE_RADIOBTN=yes
5629 DEFAULT_wxUSE_SASH=yes
5630 DEFAULT_wxUSE_SCROLLBAR=yes
5631 DEFAULT_wxUSE_SLIDER=yes
5632 DEFAULT_wxUSE_SPINBTN=yes
5633 DEFAULT_wxUSE_SPINCTRL=yes
5634 DEFAULT_wxUSE_SPLITTER=yes
5635 DEFAULT_wxUSE_STATBMP=yes
5636 DEFAULT_wxUSE_STATBOX=yes
5637 DEFAULT_wxUSE_STATLINE=yes
5638 DEFAULT_wxUSE_STATUSBAR=yes
5639 DEFAULT_wxUSE_TAB_DIALOG=yes
5640 DEFAULT_wxUSE_TOGGLEBTN=yes
5641 DEFAULT_wxUSE_TOOLBAR=yes
5642 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5643 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5644 DEFAULT_wxUSE_TOOLTIPS=yes
5645 DEFAULT_wxUSE_TREECTRL=yes
5646 DEFAULT_wxUSE_POPUPWIN=yes
5647 DEFAULT_wxUSE_TIPWINDOW=yes
5648 elif test "$wxUSE_CONTROLS" = "no"; then
5649 DEFAULT_wxUSE_ACCEL=no
5650 DEFAULT_wxUSE_BMPBUTTON=no
5651 DEFAULT_wxUSE_BUTTON=no
5652 DEFAULT_wxUSE_CALCTRL=no
5653 DEFAULT_wxUSE_CARET=no
5654 DEFAULT_wxUSE_COMBOBOX=no
5655 DEFAULT_wxUSE_CHECKBOX=no
5656 DEFAULT_wxUSE_CHECKLISTBOX=no
5657 DEFAULT_wxUSE_CHOICE=no
5658 DEFAULT_wxUSE_GAUGE=no
5659 DEFAULT_wxUSE_GRID=no
5660 DEFAULT_wxUSE_NEW_GRID=no
5661 DEFAULT_wxUSE_IMAGLIST=no
5662 DEFAULT_wxUSE_LISTBOX=no
5663 DEFAULT_wxUSE_LISTCTRL=no
5664 DEFAULT_wxUSE_NOTEBOOK=no
5665 DEFAULT_wxUSE_PROPSHEET=no
5666 DEFAULT_wxUSE_RADIOBOX=no
5667 DEFAULT_wxUSE_RADIOBTN=no
5668 DEFAULT_wxUSE_SASH=no
5669 DEFAULT_wxUSE_SCROLLBAR=no
5670 DEFAULT_wxUSE_SLIDER=no
5671 DEFAULT_wxUSE_SPINBTN=no
5672 DEFAULT_wxUSE_SPINCTRL=no
5673 DEFAULT_wxUSE_SPLITTER=no
5674 DEFAULT_wxUSE_STATBMP=no
5675 DEFAULT_wxUSE_STATBOX=no
5676 DEFAULT_wxUSE_STATLINE=no
5677 DEFAULT_wxUSE_STATUSBAR=no
5678 DEFAULT_wxUSE_TAB_DIALOG=no
5679 DEFAULT_wxUSE_TOGGLEBTN=no
5680 DEFAULT_wxUSE_TOOLBAR=no
5681 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5682 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5683 DEFAULT_wxUSE_TOOLTIPS=no
5684 DEFAULT_wxUSE_TREECTRL=no
5685 DEFAULT_wxUSE_POPUPWIN=no
5686 DEFAULT_wxUSE_TIPWINDOW=no
5687 fi
5688
5689
5690 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5691 echo "configure:5692: checking for --enable-accel" >&5
5692 no_cache=0
5693 # Check whether --enable-accel or --disable-accel was given.
5694 if test "${enable_accel+set}" = set; then
5695 enableval="$enable_accel"
5696
5697 if test "$enableval" = yes; then
5698 ac_cv_use_accel='wxUSE_ACCEL=yes'
5699 else
5700 ac_cv_use_accel='wxUSE_ACCEL=no'
5701 fi
5702
5703 else
5704
5705 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5706 if test "x$LINE" != x ; then
5707 eval "DEFAULT_$LINE"
5708 else
5709 no_cache=1
5710 fi
5711
5712 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5713
5714 fi
5715
5716
5717 eval "$ac_cv_use_accel"
5718 if test "$no_cache" != 1; then
5719 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5720 fi
5721
5722 if test "$wxUSE_ACCEL" = yes; then
5723 echo "$ac_t""yes" 1>&6
5724 else
5725 echo "$ac_t""no" 1>&6
5726 fi
5727
5728
5729 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5730 echo "configure:5731: checking for --enable-button" >&5
5731 no_cache=0
5732 # Check whether --enable-button or --disable-button was given.
5733 if test "${enable_button+set}" = set; then
5734 enableval="$enable_button"
5735
5736 if test "$enableval" = yes; then
5737 ac_cv_use_button='wxUSE_BUTTON=yes'
5738 else
5739 ac_cv_use_button='wxUSE_BUTTON=no'
5740 fi
5741
5742 else
5743
5744 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5745 if test "x$LINE" != x ; then
5746 eval "DEFAULT_$LINE"
5747 else
5748 no_cache=1
5749 fi
5750
5751 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5752
5753 fi
5754
5755
5756 eval "$ac_cv_use_button"
5757 if test "$no_cache" != 1; then
5758 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5759 fi
5760
5761 if test "$wxUSE_BUTTON" = yes; then
5762 echo "$ac_t""yes" 1>&6
5763 else
5764 echo "$ac_t""no" 1>&6
5765 fi
5766
5767
5768 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5769 echo "configure:5770: checking for --enable-bmpbutton" >&5
5770 no_cache=0
5771 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5772 if test "${enable_bmpbutton+set}" = set; then
5773 enableval="$enable_bmpbutton"
5774
5775 if test "$enableval" = yes; then
5776 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5777 else
5778 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5779 fi
5780
5781 else
5782
5783 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5784 if test "x$LINE" != x ; then
5785 eval "DEFAULT_$LINE"
5786 else
5787 no_cache=1
5788 fi
5789
5790 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5791
5792 fi
5793
5794
5795 eval "$ac_cv_use_bmpbutton"
5796 if test "$no_cache" != 1; then
5797 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5798 fi
5799
5800 if test "$wxUSE_BMPBUTTON" = yes; then
5801 echo "$ac_t""yes" 1>&6
5802 else
5803 echo "$ac_t""no" 1>&6
5804 fi
5805
5806
5807 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5808 echo "configure:5809: checking for --enable-calendar" >&5
5809 no_cache=0
5810 # Check whether --enable-calendar or --disable-calendar was given.
5811 if test "${enable_calendar+set}" = set; then
5812 enableval="$enable_calendar"
5813
5814 if test "$enableval" = yes; then
5815 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5816 else
5817 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5818 fi
5819
5820 else
5821
5822 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5823 if test "x$LINE" != x ; then
5824 eval "DEFAULT_$LINE"
5825 else
5826 no_cache=1
5827 fi
5828
5829 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5830
5831 fi
5832
5833
5834 eval "$ac_cv_use_calendar"
5835 if test "$no_cache" != 1; then
5836 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5837 fi
5838
5839 if test "$wxUSE_CALCTRL" = yes; then
5840 echo "$ac_t""yes" 1>&6
5841 else
5842 echo "$ac_t""no" 1>&6
5843 fi
5844
5845
5846 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5847 echo "configure:5848: checking for --enable-caret" >&5
5848 no_cache=0
5849 # Check whether --enable-caret or --disable-caret was given.
5850 if test "${enable_caret+set}" = set; then
5851 enableval="$enable_caret"
5852
5853 if test "$enableval" = yes; then
5854 ac_cv_use_caret='wxUSE_CARET=yes'
5855 else
5856 ac_cv_use_caret='wxUSE_CARET=no'
5857 fi
5858
5859 else
5860
5861 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5862 if test "x$LINE" != x ; then
5863 eval "DEFAULT_$LINE"
5864 else
5865 no_cache=1
5866 fi
5867
5868 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5869
5870 fi
5871
5872
5873 eval "$ac_cv_use_caret"
5874 if test "$no_cache" != 1; then
5875 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5876 fi
5877
5878 if test "$wxUSE_CARET" = yes; then
5879 echo "$ac_t""yes" 1>&6
5880 else
5881 echo "$ac_t""no" 1>&6
5882 fi
5883
5884
5885 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5886 echo "configure:5887: checking for --enable-checkbox" >&5
5887 no_cache=0
5888 # Check whether --enable-checkbox or --disable-checkbox was given.
5889 if test "${enable_checkbox+set}" = set; then
5890 enableval="$enable_checkbox"
5891
5892 if test "$enableval" = yes; then
5893 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5894 else
5895 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5896 fi
5897
5898 else
5899
5900 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5901 if test "x$LINE" != x ; then
5902 eval "DEFAULT_$LINE"
5903 else
5904 no_cache=1
5905 fi
5906
5907 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5908
5909 fi
5910
5911
5912 eval "$ac_cv_use_checkbox"
5913 if test "$no_cache" != 1; then
5914 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5915 fi
5916
5917 if test "$wxUSE_CHECKBOX" = yes; then
5918 echo "$ac_t""yes" 1>&6
5919 else
5920 echo "$ac_t""no" 1>&6
5921 fi
5922
5923
5924 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5925 echo "configure:5926: checking for --enable-checklst" >&5
5926 no_cache=0
5927 # Check whether --enable-checklst or --disable-checklst was given.
5928 if test "${enable_checklst+set}" = set; then
5929 enableval="$enable_checklst"
5930
5931 if test "$enableval" = yes; then
5932 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5933 else
5934 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5935 fi
5936
5937 else
5938
5939 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5940 if test "x$LINE" != x ; then
5941 eval "DEFAULT_$LINE"
5942 else
5943 no_cache=1
5944 fi
5945
5946 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5947
5948 fi
5949
5950
5951 eval "$ac_cv_use_checklst"
5952 if test "$no_cache" != 1; then
5953 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5954 fi
5955
5956 if test "$wxUSE_CHECKLST" = yes; then
5957 echo "$ac_t""yes" 1>&6
5958 else
5959 echo "$ac_t""no" 1>&6
5960 fi
5961
5962
5963 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5964 echo "configure:5965: checking for --enable-choice" >&5
5965 no_cache=0
5966 # Check whether --enable-choice or --disable-choice was given.
5967 if test "${enable_choice+set}" = set; then
5968 enableval="$enable_choice"
5969
5970 if test "$enableval" = yes; then
5971 ac_cv_use_choice='wxUSE_CHOICE=yes'
5972 else
5973 ac_cv_use_choice='wxUSE_CHOICE=no'
5974 fi
5975
5976 else
5977
5978 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5979 if test "x$LINE" != x ; then
5980 eval "DEFAULT_$LINE"
5981 else
5982 no_cache=1
5983 fi
5984
5985 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5986
5987 fi
5988
5989
5990 eval "$ac_cv_use_choice"
5991 if test "$no_cache" != 1; then
5992 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5993 fi
5994
5995 if test "$wxUSE_CHOICE" = yes; then
5996 echo "$ac_t""yes" 1>&6
5997 else
5998 echo "$ac_t""no" 1>&6
5999 fi
6000
6001
6002 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
6003 echo "configure:6004: checking for --enable-combobox" >&5
6004 no_cache=0
6005 # Check whether --enable-combobox or --disable-combobox was given.
6006 if test "${enable_combobox+set}" = set; then
6007 enableval="$enable_combobox"
6008
6009 if test "$enableval" = yes; then
6010 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6011 else
6012 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6013 fi
6014
6015 else
6016
6017 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6018 if test "x$LINE" != x ; then
6019 eval "DEFAULT_$LINE"
6020 else
6021 no_cache=1
6022 fi
6023
6024 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6025
6026 fi
6027
6028
6029 eval "$ac_cv_use_combobox"
6030 if test "$no_cache" != 1; then
6031 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6032 fi
6033
6034 if test "$wxUSE_COMBOBOX" = yes; then
6035 echo "$ac_t""yes" 1>&6
6036 else
6037 echo "$ac_t""no" 1>&6
6038 fi
6039
6040
6041 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
6042 echo "configure:6043: checking for --enable-gauge" >&5
6043 no_cache=0
6044 # Check whether --enable-gauge or --disable-gauge was given.
6045 if test "${enable_gauge+set}" = set; then
6046 enableval="$enable_gauge"
6047
6048 if test "$enableval" = yes; then
6049 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6050 else
6051 ac_cv_use_gauge='wxUSE_GAUGE=no'
6052 fi
6053
6054 else
6055
6056 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6057 if test "x$LINE" != x ; then
6058 eval "DEFAULT_$LINE"
6059 else
6060 no_cache=1
6061 fi
6062
6063 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6064
6065 fi
6066
6067
6068 eval "$ac_cv_use_gauge"
6069 if test "$no_cache" != 1; then
6070 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6071 fi
6072
6073 if test "$wxUSE_GAUGE" = yes; then
6074 echo "$ac_t""yes" 1>&6
6075 else
6076 echo "$ac_t""no" 1>&6
6077 fi
6078
6079
6080 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
6081 echo "configure:6082: checking for --enable-grid" >&5
6082 no_cache=0
6083 # Check whether --enable-grid or --disable-grid was given.
6084 if test "${enable_grid+set}" = set; then
6085 enableval="$enable_grid"
6086
6087 if test "$enableval" = yes; then
6088 ac_cv_use_grid='wxUSE_GRID=yes'
6089 else
6090 ac_cv_use_grid='wxUSE_GRID=no'
6091 fi
6092
6093 else
6094
6095 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6096 if test "x$LINE" != x ; then
6097 eval "DEFAULT_$LINE"
6098 else
6099 no_cache=1
6100 fi
6101
6102 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6103
6104 fi
6105
6106
6107 eval "$ac_cv_use_grid"
6108 if test "$no_cache" != 1; then
6109 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6110 fi
6111
6112 if test "$wxUSE_GRID" = yes; then
6113 echo "$ac_t""yes" 1>&6
6114 else
6115 echo "$ac_t""no" 1>&6
6116 fi
6117
6118
6119 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
6120 echo "configure:6121: checking for --enable-newgrid" >&5
6121 no_cache=0
6122 # Check whether --enable-newgrid or --disable-newgrid was given.
6123 if test "${enable_newgrid+set}" = set; then
6124 enableval="$enable_newgrid"
6125
6126 if test "$enableval" = yes; then
6127 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6128 else
6129 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6130 fi
6131
6132 else
6133
6134 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6135 if test "x$LINE" != x ; then
6136 eval "DEFAULT_$LINE"
6137 else
6138 no_cache=1
6139 fi
6140
6141 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6142
6143 fi
6144
6145
6146 eval "$ac_cv_use_newgrid"
6147 if test "$no_cache" != 1; then
6148 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6149 fi
6150
6151 if test "$wxUSE_NEW_GRID" = yes; then
6152 echo "$ac_t""yes" 1>&6
6153 else
6154 echo "$ac_t""no" 1>&6
6155 fi
6156
6157
6158 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
6159 echo "configure:6160: checking for --enable-imaglist" >&5
6160 no_cache=0
6161 # Check whether --enable-imaglist or --disable-imaglist was given.
6162 if test "${enable_imaglist+set}" = set; then
6163 enableval="$enable_imaglist"
6164
6165 if test "$enableval" = yes; then
6166 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6167 else
6168 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6169 fi
6170
6171 else
6172
6173 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6174 if test "x$LINE" != x ; then
6175 eval "DEFAULT_$LINE"
6176 else
6177 no_cache=1
6178 fi
6179
6180 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6181
6182 fi
6183
6184
6185 eval "$ac_cv_use_imaglist"
6186 if test "$no_cache" != 1; then
6187 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6188 fi
6189
6190 if test "$wxUSE_IMAGLIST" = yes; then
6191 echo "$ac_t""yes" 1>&6
6192 else
6193 echo "$ac_t""no" 1>&6
6194 fi
6195
6196
6197 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
6198 echo "configure:6199: checking for --enable-listbox" >&5
6199 no_cache=0
6200 # Check whether --enable-listbox or --disable-listbox was given.
6201 if test "${enable_listbox+set}" = set; then
6202 enableval="$enable_listbox"
6203
6204 if test "$enableval" = yes; then
6205 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6206 else
6207 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6208 fi
6209
6210 else
6211
6212 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6213 if test "x$LINE" != x ; then
6214 eval "DEFAULT_$LINE"
6215 else
6216 no_cache=1
6217 fi
6218
6219 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6220
6221 fi
6222
6223
6224 eval "$ac_cv_use_listbox"
6225 if test "$no_cache" != 1; then
6226 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6227 fi
6228
6229 if test "$wxUSE_LISTBOX" = yes; then
6230 echo "$ac_t""yes" 1>&6
6231 else
6232 echo "$ac_t""no" 1>&6
6233 fi
6234
6235
6236 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
6237 echo "configure:6238: checking for --enable-listctrl" >&5
6238 no_cache=0
6239 # Check whether --enable-listctrl or --disable-listctrl was given.
6240 if test "${enable_listctrl+set}" = set; then
6241 enableval="$enable_listctrl"
6242
6243 if test "$enableval" = yes; then
6244 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6245 else
6246 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6247 fi
6248
6249 else
6250
6251 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6252 if test "x$LINE" != x ; then
6253 eval "DEFAULT_$LINE"
6254 else
6255 no_cache=1
6256 fi
6257
6258 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6259
6260 fi
6261
6262
6263 eval "$ac_cv_use_listctrl"
6264 if test "$no_cache" != 1; then
6265 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6266 fi
6267
6268 if test "$wxUSE_LISTCTRL" = yes; then
6269 echo "$ac_t""yes" 1>&6
6270 else
6271 echo "$ac_t""no" 1>&6
6272 fi
6273
6274
6275 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
6276 echo "configure:6277: checking for --enable-notebook" >&5
6277 no_cache=0
6278 # Check whether --enable-notebook or --disable-notebook was given.
6279 if test "${enable_notebook+set}" = set; then
6280 enableval="$enable_notebook"
6281
6282 if test "$enableval" = yes; then
6283 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6284 else
6285 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6286 fi
6287
6288 else
6289
6290 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6291 if test "x$LINE" != x ; then
6292 eval "DEFAULT_$LINE"
6293 else
6294 no_cache=1
6295 fi
6296
6297 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6298
6299 fi
6300
6301
6302 eval "$ac_cv_use_notebook"
6303 if test "$no_cache" != 1; then
6304 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6305 fi
6306
6307 if test "$wxUSE_NOTEBOOK" = yes; then
6308 echo "$ac_t""yes" 1>&6
6309 else
6310 echo "$ac_t""no" 1>&6
6311 fi
6312
6313
6314 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
6315 echo "configure:6316: checking for --enable-propsheet" >&5
6316 no_cache=0
6317 # Check whether --enable-propsheet or --disable-propsheet was given.
6318 if test "${enable_propsheet+set}" = set; then
6319 enableval="$enable_propsheet"
6320
6321 if test "$enableval" = yes; then
6322 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6323 else
6324 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6325 fi
6326
6327 else
6328
6329 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6330 if test "x$LINE" != x ; then
6331 eval "DEFAULT_$LINE"
6332 else
6333 no_cache=1
6334 fi
6335
6336 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6337
6338 fi
6339
6340
6341 eval "$ac_cv_use_propsheet"
6342 if test "$no_cache" != 1; then
6343 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6344 fi
6345
6346 if test "$wxUSE_PROPSHEET" = yes; then
6347 echo "$ac_t""yes" 1>&6
6348 else
6349 echo "$ac_t""no" 1>&6
6350 fi
6351
6352
6353 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
6354 echo "configure:6355: checking for --enable-radiobox" >&5
6355 no_cache=0
6356 # Check whether --enable-radiobox or --disable-radiobox was given.
6357 if test "${enable_radiobox+set}" = set; then
6358 enableval="$enable_radiobox"
6359
6360 if test "$enableval" = yes; then
6361 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6362 else
6363 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6364 fi
6365
6366 else
6367
6368 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6369 if test "x$LINE" != x ; then
6370 eval "DEFAULT_$LINE"
6371 else
6372 no_cache=1
6373 fi
6374
6375 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6376
6377 fi
6378
6379
6380 eval "$ac_cv_use_radiobox"
6381 if test "$no_cache" != 1; then
6382 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6383 fi
6384
6385 if test "$wxUSE_RADIOBOX" = yes; then
6386 echo "$ac_t""yes" 1>&6
6387 else
6388 echo "$ac_t""no" 1>&6
6389 fi
6390
6391
6392 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
6393 echo "configure:6394: checking for --enable-radiobtn" >&5
6394 no_cache=0
6395 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6396 if test "${enable_radiobtn+set}" = set; then
6397 enableval="$enable_radiobtn"
6398
6399 if test "$enableval" = yes; then
6400 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6401 else
6402 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6403 fi
6404
6405 else
6406
6407 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6408 if test "x$LINE" != x ; then
6409 eval "DEFAULT_$LINE"
6410 else
6411 no_cache=1
6412 fi
6413
6414 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6415
6416 fi
6417
6418
6419 eval "$ac_cv_use_radiobtn"
6420 if test "$no_cache" != 1; then
6421 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6422 fi
6423
6424 if test "$wxUSE_RADIOBTN" = yes; then
6425 echo "$ac_t""yes" 1>&6
6426 else
6427 echo "$ac_t""no" 1>&6
6428 fi
6429
6430
6431 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
6432 echo "configure:6433: checking for --enable-sash" >&5
6433 no_cache=0
6434 # Check whether --enable-sash or --disable-sash was given.
6435 if test "${enable_sash+set}" = set; then
6436 enableval="$enable_sash"
6437
6438 if test "$enableval" = yes; then
6439 ac_cv_use_sash='wxUSE_SASH=yes'
6440 else
6441 ac_cv_use_sash='wxUSE_SASH=no'
6442 fi
6443
6444 else
6445
6446 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6447 if test "x$LINE" != x ; then
6448 eval "DEFAULT_$LINE"
6449 else
6450 no_cache=1
6451 fi
6452
6453 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6454
6455 fi
6456
6457
6458 eval "$ac_cv_use_sash"
6459 if test "$no_cache" != 1; then
6460 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6461 fi
6462
6463 if test "$wxUSE_SASH" = yes; then
6464 echo "$ac_t""yes" 1>&6
6465 else
6466 echo "$ac_t""no" 1>&6
6467 fi
6468
6469
6470 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
6471 echo "configure:6472: checking for --enable-scrollbar" >&5
6472 no_cache=0
6473 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6474 if test "${enable_scrollbar+set}" = set; then
6475 enableval="$enable_scrollbar"
6476
6477 if test "$enableval" = yes; then
6478 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6479 else
6480 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6481 fi
6482
6483 else
6484
6485 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6486 if test "x$LINE" != x ; then
6487 eval "DEFAULT_$LINE"
6488 else
6489 no_cache=1
6490 fi
6491
6492 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6493
6494 fi
6495
6496
6497 eval "$ac_cv_use_scrollbar"
6498 if test "$no_cache" != 1; then
6499 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6500 fi
6501
6502 if test "$wxUSE_SCROLLBAR" = yes; then
6503 echo "$ac_t""yes" 1>&6
6504 else
6505 echo "$ac_t""no" 1>&6
6506 fi
6507
6508
6509 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6510 echo "configure:6511: checking for --enable-slider" >&5
6511 no_cache=0
6512 # Check whether --enable-slider or --disable-slider was given.
6513 if test "${enable_slider+set}" = set; then
6514 enableval="$enable_slider"
6515
6516 if test "$enableval" = yes; then
6517 ac_cv_use_slider='wxUSE_SLIDER=yes'
6518 else
6519 ac_cv_use_slider='wxUSE_SLIDER=no'
6520 fi
6521
6522 else
6523
6524 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6525 if test "x$LINE" != x ; then
6526 eval "DEFAULT_$LINE"
6527 else
6528 no_cache=1
6529 fi
6530
6531 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6532
6533 fi
6534
6535
6536 eval "$ac_cv_use_slider"
6537 if test "$no_cache" != 1; then
6538 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6539 fi
6540
6541 if test "$wxUSE_SLIDER" = yes; then
6542 echo "$ac_t""yes" 1>&6
6543 else
6544 echo "$ac_t""no" 1>&6
6545 fi
6546
6547
6548 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6549 echo "configure:6550: checking for --enable-spinbtn" >&5
6550 no_cache=0
6551 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6552 if test "${enable_spinbtn+set}" = set; then
6553 enableval="$enable_spinbtn"
6554
6555 if test "$enableval" = yes; then
6556 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6557 else
6558 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6559 fi
6560
6561 else
6562
6563 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6564 if test "x$LINE" != x ; then
6565 eval "DEFAULT_$LINE"
6566 else
6567 no_cache=1
6568 fi
6569
6570 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6571
6572 fi
6573
6574
6575 eval "$ac_cv_use_spinbtn"
6576 if test "$no_cache" != 1; then
6577 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6578 fi
6579
6580 if test "$wxUSE_SPINBTN" = yes; then
6581 echo "$ac_t""yes" 1>&6
6582 else
6583 echo "$ac_t""no" 1>&6
6584 fi
6585
6586
6587 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6588 echo "configure:6589: checking for --enable-spinctrl" >&5
6589 no_cache=0
6590 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6591 if test "${enable_spinctrl+set}" = set; then
6592 enableval="$enable_spinctrl"
6593
6594 if test "$enableval" = yes; then
6595 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6596 else
6597 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6598 fi
6599
6600 else
6601
6602 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6603 if test "x$LINE" != x ; then
6604 eval "DEFAULT_$LINE"
6605 else
6606 no_cache=1
6607 fi
6608
6609 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6610
6611 fi
6612
6613
6614 eval "$ac_cv_use_spinctrl"
6615 if test "$no_cache" != 1; then
6616 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6617 fi
6618
6619 if test "$wxUSE_SPINCTRL" = yes; then
6620 echo "$ac_t""yes" 1>&6
6621 else
6622 echo "$ac_t""no" 1>&6
6623 fi
6624
6625
6626 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6627 echo "configure:6628: checking for --enable-splitter" >&5
6628 no_cache=0
6629 # Check whether --enable-splitter or --disable-splitter was given.
6630 if test "${enable_splitter+set}" = set; then
6631 enableval="$enable_splitter"
6632
6633 if test "$enableval" = yes; then
6634 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6635 else
6636 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6637 fi
6638
6639 else
6640
6641 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6642 if test "x$LINE" != x ; then
6643 eval "DEFAULT_$LINE"
6644 else
6645 no_cache=1
6646 fi
6647
6648 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6649
6650 fi
6651
6652
6653 eval "$ac_cv_use_splitter"
6654 if test "$no_cache" != 1; then
6655 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6656 fi
6657
6658 if test "$wxUSE_SPLITTER" = yes; then
6659 echo "$ac_t""yes" 1>&6
6660 else
6661 echo "$ac_t""no" 1>&6
6662 fi
6663
6664
6665 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6666 echo "configure:6667: checking for --enable-statbmp" >&5
6667 no_cache=0
6668 # Check whether --enable-statbmp or --disable-statbmp was given.
6669 if test "${enable_statbmp+set}" = set; then
6670 enableval="$enable_statbmp"
6671
6672 if test "$enableval" = yes; then
6673 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6674 else
6675 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6676 fi
6677
6678 else
6679
6680 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6681 if test "x$LINE" != x ; then
6682 eval "DEFAULT_$LINE"
6683 else
6684 no_cache=1
6685 fi
6686
6687 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6688
6689 fi
6690
6691
6692 eval "$ac_cv_use_statbmp"
6693 if test "$no_cache" != 1; then
6694 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6695 fi
6696
6697 if test "$wxUSE_STATBMP" = yes; then
6698 echo "$ac_t""yes" 1>&6
6699 else
6700 echo "$ac_t""no" 1>&6
6701 fi
6702
6703
6704 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6705 echo "configure:6706: checking for --enable-statbox" >&5
6706 no_cache=0
6707 # Check whether --enable-statbox or --disable-statbox was given.
6708 if test "${enable_statbox+set}" = set; then
6709 enableval="$enable_statbox"
6710
6711 if test "$enableval" = yes; then
6712 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6713 else
6714 ac_cv_use_statbox='wxUSE_STATBOX=no'
6715 fi
6716
6717 else
6718
6719 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6720 if test "x$LINE" != x ; then
6721 eval "DEFAULT_$LINE"
6722 else
6723 no_cache=1
6724 fi
6725
6726 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6727
6728 fi
6729
6730
6731 eval "$ac_cv_use_statbox"
6732 if test "$no_cache" != 1; then
6733 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6734 fi
6735
6736 if test "$wxUSE_STATBOX" = yes; then
6737 echo "$ac_t""yes" 1>&6
6738 else
6739 echo "$ac_t""no" 1>&6
6740 fi
6741
6742
6743 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6744 echo "configure:6745: checking for --enable-statline" >&5
6745 no_cache=0
6746 # Check whether --enable-statline or --disable-statline was given.
6747 if test "${enable_statline+set}" = set; then
6748 enableval="$enable_statline"
6749
6750 if test "$enableval" = yes; then
6751 ac_cv_use_statline='wxUSE_STATLINE=yes'
6752 else
6753 ac_cv_use_statline='wxUSE_STATLINE=no'
6754 fi
6755
6756 else
6757
6758 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6759 if test "x$LINE" != x ; then
6760 eval "DEFAULT_$LINE"
6761 else
6762 no_cache=1
6763 fi
6764
6765 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6766
6767 fi
6768
6769
6770 eval "$ac_cv_use_statline"
6771 if test "$no_cache" != 1; then
6772 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6773 fi
6774
6775 if test "$wxUSE_STATLINE" = yes; then
6776 echo "$ac_t""yes" 1>&6
6777 else
6778 echo "$ac_t""no" 1>&6
6779 fi
6780
6781
6782 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6783 echo "configure:6784: checking for --enable-stattext" >&5
6784 no_cache=0
6785 # Check whether --enable-stattext or --disable-stattext was given.
6786 if test "${enable_stattext+set}" = set; then
6787 enableval="$enable_stattext"
6788
6789 if test "$enableval" = yes; then
6790 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6791 else
6792 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6793 fi
6794
6795 else
6796
6797 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6798 if test "x$LINE" != x ; then
6799 eval "DEFAULT_$LINE"
6800 else
6801 no_cache=1
6802 fi
6803
6804 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6805
6806 fi
6807
6808
6809 eval "$ac_cv_use_stattext"
6810 if test "$no_cache" != 1; then
6811 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6812 fi
6813
6814 if test "$wxUSE_STATTEXT" = yes; then
6815 echo "$ac_t""yes" 1>&6
6816 else
6817 echo "$ac_t""no" 1>&6
6818 fi
6819
6820
6821 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6822 echo "configure:6823: checking for --enable-statusbar" >&5
6823 no_cache=0
6824 # Check whether --enable-statusbar or --disable-statusbar was given.
6825 if test "${enable_statusbar+set}" = set; then
6826 enableval="$enable_statusbar"
6827
6828 if test "$enableval" = yes; then
6829 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6830 else
6831 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6832 fi
6833
6834 else
6835
6836 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6837 if test "x$LINE" != x ; then
6838 eval "DEFAULT_$LINE"
6839 else
6840 no_cache=1
6841 fi
6842
6843 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6844
6845 fi
6846
6847
6848 eval "$ac_cv_use_statusbar"
6849 if test "$no_cache" != 1; then
6850 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6851 fi
6852
6853 if test "$wxUSE_STATUSBAR" = yes; then
6854 echo "$ac_t""yes" 1>&6
6855 else
6856 echo "$ac_t""no" 1>&6
6857 fi
6858
6859
6860 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6861 echo "configure:6862: checking for --enable-tabdialog" >&5
6862 no_cache=0
6863 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6864 if test "${enable_tabdialog+set}" = set; then
6865 enableval="$enable_tabdialog"
6866
6867 if test "$enableval" = yes; then
6868 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6869 else
6870 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6871 fi
6872
6873 else
6874
6875 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6876 if test "x$LINE" != x ; then
6877 eval "DEFAULT_$LINE"
6878 else
6879 no_cache=1
6880 fi
6881
6882 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6883
6884 fi
6885
6886
6887 eval "$ac_cv_use_tabdialog"
6888 if test "$no_cache" != 1; then
6889 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6890 fi
6891
6892 if test "$wxUSE_TABDIALOG" = yes; then
6893 echo "$ac_t""yes" 1>&6
6894 else
6895 echo "$ac_t""no" 1>&6
6896 fi
6897
6898
6899 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6900 echo "configure:6901: checking for --enable-textctrl" >&5
6901 no_cache=0
6902 # Check whether --enable-textctrl or --disable-textctrl was given.
6903 if test "${enable_textctrl+set}" = set; then
6904 enableval="$enable_textctrl"
6905
6906 if test "$enableval" = yes; then
6907 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6908 else
6909 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6910 fi
6911
6912 else
6913
6914 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6915 if test "x$LINE" != x ; then
6916 eval "DEFAULT_$LINE"
6917 else
6918 no_cache=1
6919 fi
6920
6921 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6922
6923 fi
6924
6925
6926 eval "$ac_cv_use_textctrl"
6927 if test "$no_cache" != 1; then
6928 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6929 fi
6930
6931 if test "$wxUSE_TEXTCTRL" = yes; then
6932 echo "$ac_t""yes" 1>&6
6933 else
6934 echo "$ac_t""no" 1>&6
6935 fi
6936
6937
6938 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6939 echo "configure:6940: checking for --enable-togglebtn" >&5
6940 no_cache=0
6941 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6942 if test "${enable_togglebtn+set}" = set; then
6943 enableval="$enable_togglebtn"
6944
6945 if test "$enableval" = yes; then
6946 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6947 else
6948 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6949 fi
6950
6951 else
6952
6953 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6954 if test "x$LINE" != x ; then
6955 eval "DEFAULT_$LINE"
6956 else
6957 no_cache=1
6958 fi
6959
6960 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6961
6962 fi
6963
6964
6965 eval "$ac_cv_use_togglebtn"
6966 if test "$no_cache" != 1; then
6967 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6968 fi
6969
6970 if test "$wxUSE_TOGGLEBTN" = yes; then
6971 echo "$ac_t""yes" 1>&6
6972 else
6973 echo "$ac_t""no" 1>&6
6974 fi
6975
6976
6977 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6978 echo "configure:6979: checking for --enable-toolbar" >&5
6979 no_cache=0
6980 # Check whether --enable-toolbar or --disable-toolbar was given.
6981 if test "${enable_toolbar+set}" = set; then
6982 enableval="$enable_toolbar"
6983
6984 if test "$enableval" = yes; then
6985 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6986 else
6987 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6988 fi
6989
6990 else
6991
6992 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6993 if test "x$LINE" != x ; then
6994 eval "DEFAULT_$LINE"
6995 else
6996 no_cache=1
6997 fi
6998
6999 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7000
7001 fi
7002
7003
7004 eval "$ac_cv_use_toolbar"
7005 if test "$no_cache" != 1; then
7006 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7007 fi
7008
7009 if test "$wxUSE_TOOLBAR" = yes; then
7010 echo "$ac_t""yes" 1>&6
7011 else
7012 echo "$ac_t""no" 1>&6
7013 fi
7014
7015
7016 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
7017 echo "configure:7018: checking for --enable-tbarnative" >&5
7018 no_cache=0
7019 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7020 if test "${enable_tbarnative+set}" = set; then
7021 enableval="$enable_tbarnative"
7022
7023 if test "$enableval" = yes; then
7024 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7025 else
7026 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7027 fi
7028
7029 else
7030
7031 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7032 if test "x$LINE" != x ; then
7033 eval "DEFAULT_$LINE"
7034 else
7035 no_cache=1
7036 fi
7037
7038 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7039
7040 fi
7041
7042
7043 eval "$ac_cv_use_tbarnative"
7044 if test "$no_cache" != 1; then
7045 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7046 fi
7047
7048 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7049 echo "$ac_t""yes" 1>&6
7050 else
7051 echo "$ac_t""no" 1>&6
7052 fi
7053
7054
7055 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
7056 echo "configure:7057: checking for --enable-tbarsmpl" >&5
7057 no_cache=0
7058 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7059 if test "${enable_tbarsmpl+set}" = set; then
7060 enableval="$enable_tbarsmpl"
7061
7062 if test "$enableval" = yes; then
7063 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7064 else
7065 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7066 fi
7067
7068 else
7069
7070 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7071 if test "x$LINE" != x ; then
7072 eval "DEFAULT_$LINE"
7073 else
7074 no_cache=1
7075 fi
7076
7077 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7078
7079 fi
7080
7081
7082 eval "$ac_cv_use_tbarsmpl"
7083 if test "$no_cache" != 1; then
7084 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7085 fi
7086
7087 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7088 echo "$ac_t""yes" 1>&6
7089 else
7090 echo "$ac_t""no" 1>&6
7091 fi
7092
7093
7094 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
7095 echo "configure:7096: checking for --enable-treectrl" >&5
7096 no_cache=0
7097 # Check whether --enable-treectrl or --disable-treectrl was given.
7098 if test "${enable_treectrl+set}" = set; then
7099 enableval="$enable_treectrl"
7100
7101 if test "$enableval" = yes; then
7102 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7103 else
7104 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7105 fi
7106
7107 else
7108
7109 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7110 if test "x$LINE" != x ; then
7111 eval "DEFAULT_$LINE"
7112 else
7113 no_cache=1
7114 fi
7115
7116 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7117
7118 fi
7119
7120
7121 eval "$ac_cv_use_treectrl"
7122 if test "$no_cache" != 1; then
7123 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7124 fi
7125
7126 if test "$wxUSE_TREECTRL" = yes; then
7127 echo "$ac_t""yes" 1>&6
7128 else
7129 echo "$ac_t""no" 1>&6
7130 fi
7131
7132
7133 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
7134 echo "configure:7135: checking for --enable-tipwindow" >&5
7135 no_cache=0
7136 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7137 if test "${enable_tipwindow+set}" = set; then
7138 enableval="$enable_tipwindow"
7139
7140 if test "$enableval" = yes; then
7141 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7142 else
7143 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7144 fi
7145
7146 else
7147
7148 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7149 if test "x$LINE" != x ; then
7150 eval "DEFAULT_$LINE"
7151 else
7152 no_cache=1
7153 fi
7154
7155 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7156
7157 fi
7158
7159
7160 eval "$ac_cv_use_tipwindow"
7161 if test "$no_cache" != 1; then
7162 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7163 fi
7164
7165 if test "$wxUSE_TIPWINDOW" = yes; then
7166 echo "$ac_t""yes" 1>&6
7167 else
7168 echo "$ac_t""no" 1>&6
7169 fi
7170
7171
7172 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
7173 echo "configure:7174: checking for --enable-popupwin" >&5
7174 no_cache=0
7175 # Check whether --enable-popupwin or --disable-popupwin was given.
7176 if test "${enable_popupwin+set}" = set; then
7177 enableval="$enable_popupwin"
7178
7179 if test "$enableval" = yes; then
7180 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7181 else
7182 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7183 fi
7184
7185 else
7186
7187 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7188 if test "x$LINE" != x ; then
7189 eval "DEFAULT_$LINE"
7190 else
7191 no_cache=1
7192 fi
7193
7194 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7195
7196 fi
7197
7198
7199 eval "$ac_cv_use_popupwin"
7200 if test "$no_cache" != 1; then
7201 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7202 fi
7203
7204 if test "$wxUSE_POPUPWIN" = yes; then
7205 echo "$ac_t""yes" 1>&6
7206 else
7207 echo "$ac_t""no" 1>&6
7208 fi
7209
7210
7211
7212
7213 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
7214 echo "configure:7215: checking for --enable-commondlg" >&5
7215 no_cache=0
7216 # Check whether --enable-commondlg or --disable-commondlg was given.
7217 if test "${enable_commondlg+set}" = set; then
7218 enableval="$enable_commondlg"
7219
7220 if test "$enableval" = yes; then
7221 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7222 else
7223 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7224 fi
7225
7226 else
7227
7228 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7229 if test "x$LINE" != x ; then
7230 eval "DEFAULT_$LINE"
7231 else
7232 no_cache=1
7233 fi
7234
7235 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7236
7237 fi
7238
7239
7240 eval "$ac_cv_use_commondlg"
7241 if test "$no_cache" != 1; then
7242 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7243 fi
7244
7245 if test "$wxUSE_COMMONDLGS" = yes; then
7246 echo "$ac_t""yes" 1>&6
7247 else
7248 echo "$ac_t""no" 1>&6
7249 fi
7250
7251
7252 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
7253 echo "configure:7254: checking for --enable-choicedlg" >&5
7254 no_cache=0
7255 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7256 if test "${enable_choicedlg+set}" = set; then
7257 enableval="$enable_choicedlg"
7258
7259 if test "$enableval" = yes; then
7260 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7261 else
7262 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7263 fi
7264
7265 else
7266
7267 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7268 if test "x$LINE" != x ; then
7269 eval "DEFAULT_$LINE"
7270 else
7271 no_cache=1
7272 fi
7273
7274 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7275
7276 fi
7277
7278
7279 eval "$ac_cv_use_choicedlg"
7280 if test "$no_cache" != 1; then
7281 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7282 fi
7283
7284 if test "$wxUSE_CHOICEDLG" = yes; then
7285 echo "$ac_t""yes" 1>&6
7286 else
7287 echo "$ac_t""no" 1>&6
7288 fi
7289
7290
7291 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
7292 echo "configure:7293: checking for --enable-coldlg" >&5
7293 no_cache=0
7294 # Check whether --enable-coldlg or --disable-coldlg was given.
7295 if test "${enable_coldlg+set}" = set; then
7296 enableval="$enable_coldlg"
7297
7298 if test "$enableval" = yes; then
7299 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7300 else
7301 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7302 fi
7303
7304 else
7305
7306 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7307 if test "x$LINE" != x ; then
7308 eval "DEFAULT_$LINE"
7309 else
7310 no_cache=1
7311 fi
7312
7313 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7314
7315 fi
7316
7317
7318 eval "$ac_cv_use_coldlg"
7319 if test "$no_cache" != 1; then
7320 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7321 fi
7322
7323 if test "$wxUSE_COLOURDLG" = yes; then
7324 echo "$ac_t""yes" 1>&6
7325 else
7326 echo "$ac_t""no" 1>&6
7327 fi
7328
7329
7330 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7331 echo "configure:7332: checking for --enable-filedlg" >&5
7332 no_cache=0
7333 # Check whether --enable-filedlg or --disable-filedlg was given.
7334 if test "${enable_filedlg+set}" = set; then
7335 enableval="$enable_filedlg"
7336
7337 if test "$enableval" = yes; then
7338 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7339 else
7340 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7341 fi
7342
7343 else
7344
7345 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7346 if test "x$LINE" != x ; then
7347 eval "DEFAULT_$LINE"
7348 else
7349 no_cache=1
7350 fi
7351
7352 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7353
7354 fi
7355
7356
7357 eval "$ac_cv_use_filedlg"
7358 if test "$no_cache" != 1; then
7359 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7360 fi
7361
7362 if test "$wxUSE_FILEDLG" = yes; then
7363 echo "$ac_t""yes" 1>&6
7364 else
7365 echo "$ac_t""no" 1>&6
7366 fi
7367
7368
7369 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
7370 echo "configure:7371: checking for --enable-finddlg" >&5
7371 no_cache=0
7372 # Check whether --enable-finddlg or --disable-finddlg was given.
7373 if test "${enable_finddlg+set}" = set; then
7374 enableval="$enable_finddlg"
7375
7376 if test "$enableval" = yes; then
7377 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7378 else
7379 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7380 fi
7381
7382 else
7383
7384 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7385 if test "x$LINE" != x ; then
7386 eval "DEFAULT_$LINE"
7387 else
7388 no_cache=1
7389 fi
7390
7391 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7392
7393 fi
7394
7395
7396 eval "$ac_cv_use_finddlg"
7397 if test "$no_cache" != 1; then
7398 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7399 fi
7400
7401 if test "$wxUSE_FINDREPLDLG" = yes; then
7402 echo "$ac_t""yes" 1>&6
7403 else
7404 echo "$ac_t""no" 1>&6
7405 fi
7406
7407
7408 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7409 echo "configure:7410: checking for --enable-fontdlg" >&5
7410 no_cache=0
7411 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7412 if test "${enable_fontdlg+set}" = set; then
7413 enableval="$enable_fontdlg"
7414
7415 if test "$enableval" = yes; then
7416 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7417 else
7418 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7419 fi
7420
7421 else
7422
7423 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7424 if test "x$LINE" != x ; then
7425 eval "DEFAULT_$LINE"
7426 else
7427 no_cache=1
7428 fi
7429
7430 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7431
7432 fi
7433
7434
7435 eval "$ac_cv_use_fontdlg"
7436 if test "$no_cache" != 1; then
7437 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7438 fi
7439
7440 if test "$wxUSE_FONTDLG" = yes; then
7441 echo "$ac_t""yes" 1>&6
7442 else
7443 echo "$ac_t""no" 1>&6
7444 fi
7445
7446
7447 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7448 echo "configure:7449: checking for --enable-dirdlg" >&5
7449 no_cache=0
7450 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7451 if test "${enable_dirdlg+set}" = set; then
7452 enableval="$enable_dirdlg"
7453
7454 if test "$enableval" = yes; then
7455 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7456 else
7457 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7458 fi
7459
7460 else
7461
7462 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7463 if test "x$LINE" != x ; then
7464 eval "DEFAULT_$LINE"
7465 else
7466 no_cache=1
7467 fi
7468
7469 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7470
7471 fi
7472
7473
7474 eval "$ac_cv_use_dirdlg"
7475 if test "$no_cache" != 1; then
7476 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7477 fi
7478
7479 if test "$wxUSE_DIRDLG" = yes; then
7480 echo "$ac_t""yes" 1>&6
7481 else
7482 echo "$ac_t""no" 1>&6
7483 fi
7484
7485
7486 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7487 echo "configure:7488: checking for --enable-msgdlg" >&5
7488 no_cache=0
7489 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7490 if test "${enable_msgdlg+set}" = set; then
7491 enableval="$enable_msgdlg"
7492
7493 if test "$enableval" = yes; then
7494 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7495 else
7496 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7497 fi
7498
7499 else
7500
7501 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7502 if test "x$LINE" != x ; then
7503 eval "DEFAULT_$LINE"
7504 else
7505 no_cache=1
7506 fi
7507
7508 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7509
7510 fi
7511
7512
7513 eval "$ac_cv_use_msgdlg"
7514 if test "$no_cache" != 1; then
7515 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7516 fi
7517
7518 if test "$wxUSE_MSGDLG" = yes; then
7519 echo "$ac_t""yes" 1>&6
7520 else
7521 echo "$ac_t""no" 1>&6
7522 fi
7523
7524
7525 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7526 echo "configure:7527: checking for --enable-numberdlg" >&5
7527 no_cache=0
7528 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7529 if test "${enable_numberdlg+set}" = set; then
7530 enableval="$enable_numberdlg"
7531
7532 if test "$enableval" = yes; then
7533 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7534 else
7535 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7536 fi
7537
7538 else
7539
7540 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7541 if test "x$LINE" != x ; then
7542 eval "DEFAULT_$LINE"
7543 else
7544 no_cache=1
7545 fi
7546
7547 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7548
7549 fi
7550
7551
7552 eval "$ac_cv_use_numberdlg"
7553 if test "$no_cache" != 1; then
7554 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7555 fi
7556
7557 if test "$wxUSE_NUMBERDLG" = yes; then
7558 echo "$ac_t""yes" 1>&6
7559 else
7560 echo "$ac_t""no" 1>&6
7561 fi
7562
7563
7564 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7565 echo "configure:7566: checking for --enable-splash" >&5
7566 no_cache=0
7567 # Check whether --enable-splash or --disable-splash was given.
7568 if test "${enable_splash+set}" = set; then
7569 enableval="$enable_splash"
7570
7571 if test "$enableval" = yes; then
7572 ac_cv_use_splash='wxUSE_SPLASH=yes'
7573 else
7574 ac_cv_use_splash='wxUSE_SPLASH=no'
7575 fi
7576
7577 else
7578
7579 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7580 if test "x$LINE" != x ; then
7581 eval "DEFAULT_$LINE"
7582 else
7583 no_cache=1
7584 fi
7585
7586 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7587
7588 fi
7589
7590
7591 eval "$ac_cv_use_splash"
7592 if test "$no_cache" != 1; then
7593 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7594 fi
7595
7596 if test "$wxUSE_SPLASH" = yes; then
7597 echo "$ac_t""yes" 1>&6
7598 else
7599 echo "$ac_t""no" 1>&6
7600 fi
7601
7602
7603 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7604 echo "configure:7605: checking for --enable-textdlg" >&5
7605 no_cache=0
7606 # Check whether --enable-textdlg or --disable-textdlg was given.
7607 if test "${enable_textdlg+set}" = set; then
7608 enableval="$enable_textdlg"
7609
7610 if test "$enableval" = yes; then
7611 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7612 else
7613 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7614 fi
7615
7616 else
7617
7618 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7619 if test "x$LINE" != x ; then
7620 eval "DEFAULT_$LINE"
7621 else
7622 no_cache=1
7623 fi
7624
7625 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7626
7627 fi
7628
7629
7630 eval "$ac_cv_use_textdlg"
7631 if test "$no_cache" != 1; then
7632 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7633 fi
7634
7635 if test "$wxUSE_TEXTDLG" = yes; then
7636 echo "$ac_t""yes" 1>&6
7637 else
7638 echo "$ac_t""no" 1>&6
7639 fi
7640
7641
7642 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7643 echo "configure:7644: checking for --enable-tipdlg" >&5
7644 no_cache=0
7645 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7646 if test "${enable_tipdlg+set}" = set; then
7647 enableval="$enable_tipdlg"
7648
7649 if test "$enableval" = yes; then
7650 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7651 else
7652 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7653 fi
7654
7655 else
7656
7657 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7658 if test "x$LINE" != x ; then
7659 eval "DEFAULT_$LINE"
7660 else
7661 no_cache=1
7662 fi
7663
7664 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7665
7666 fi
7667
7668
7669 eval "$ac_cv_use_tipdlg"
7670 if test "$no_cache" != 1; then
7671 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7672 fi
7673
7674 if test "$wxUSE_STARTUP_TIPS" = yes; then
7675 echo "$ac_t""yes" 1>&6
7676 else
7677 echo "$ac_t""no" 1>&6
7678 fi
7679
7680
7681 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7682 echo "configure:7683: checking for --enable-progressdlg" >&5
7683 no_cache=0
7684 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7685 if test "${enable_progressdlg+set}" = set; then
7686 enableval="$enable_progressdlg"
7687
7688 if test "$enableval" = yes; then
7689 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7690 else
7691 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7692 fi
7693
7694 else
7695
7696 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7697 if test "x$LINE" != x ; then
7698 eval "DEFAULT_$LINE"
7699 else
7700 no_cache=1
7701 fi
7702
7703 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7704
7705 fi
7706
7707
7708 eval "$ac_cv_use_progressdlg"
7709 if test "$no_cache" != 1; then
7710 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7711 fi
7712
7713 if test "$wxUSE_PROGRESSDLG" = yes; then
7714 echo "$ac_t""yes" 1>&6
7715 else
7716 echo "$ac_t""no" 1>&6
7717 fi
7718
7719
7720 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7721 echo "configure:7722: checking for --enable-wizarddlg" >&5
7722 no_cache=0
7723 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7724 if test "${enable_wizarddlg+set}" = set; then
7725 enableval="$enable_wizarddlg"
7726
7727 if test "$enableval" = yes; then
7728 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7729 else
7730 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7731 fi
7732
7733 else
7734
7735 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7736 if test "x$LINE" != x ; then
7737 eval "DEFAULT_$LINE"
7738 else
7739 no_cache=1
7740 fi
7741
7742 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7743
7744 fi
7745
7746
7747 eval "$ac_cv_use_wizarddlg"
7748 if test "$no_cache" != 1; then
7749 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7750 fi
7751
7752 if test "$wxUSE_WIZARDDLG" = yes; then
7753 echo "$ac_t""yes" 1>&6
7754 else
7755 echo "$ac_t""no" 1>&6
7756 fi
7757
7758
7759
7760
7761 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7762 echo "configure:7763: checking for --enable-menus" >&5
7763 no_cache=0
7764 # Check whether --enable-menus or --disable-menus was given.
7765 if test "${enable_menus+set}" = set; then
7766 enableval="$enable_menus"
7767
7768 if test "$enableval" = yes; then
7769 ac_cv_use_menus='wxUSE_MENUS=yes'
7770 else
7771 ac_cv_use_menus='wxUSE_MENUS=no'
7772 fi
7773
7774 else
7775
7776 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7777 if test "x$LINE" != x ; then
7778 eval "DEFAULT_$LINE"
7779 else
7780 no_cache=1
7781 fi
7782
7783 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7784
7785 fi
7786
7787
7788 eval "$ac_cv_use_menus"
7789 if test "$no_cache" != 1; then
7790 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7791 fi
7792
7793 if test "$wxUSE_MENUS" = yes; then
7794 echo "$ac_t""yes" 1>&6
7795 else
7796 echo "$ac_t""no" 1>&6
7797 fi
7798
7799
7800 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7801 echo "configure:7802: checking for --enable-miniframe" >&5
7802 no_cache=0
7803 # Check whether --enable-miniframe or --disable-miniframe was given.
7804 if test "${enable_miniframe+set}" = set; then
7805 enableval="$enable_miniframe"
7806
7807 if test "$enableval" = yes; then
7808 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7809 else
7810 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7811 fi
7812
7813 else
7814
7815 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7816 if test "x$LINE" != x ; then
7817 eval "DEFAULT_$LINE"
7818 else
7819 no_cache=1
7820 fi
7821
7822 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7823
7824 fi
7825
7826
7827 eval "$ac_cv_use_miniframe"
7828 if test "$no_cache" != 1; then
7829 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7830 fi
7831
7832 if test "$wxUSE_MINIFRAME" = yes; then
7833 echo "$ac_t""yes" 1>&6
7834 else
7835 echo "$ac_t""no" 1>&6
7836 fi
7837
7838
7839 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7840 echo "configure:7841: checking for --enable-tooltips" >&5
7841 no_cache=0
7842 # Check whether --enable-tooltips or --disable-tooltips was given.
7843 if test "${enable_tooltips+set}" = set; then
7844 enableval="$enable_tooltips"
7845
7846 if test "$enableval" = yes; then
7847 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7848 else
7849 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7850 fi
7851
7852 else
7853
7854 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7855 if test "x$LINE" != x ; then
7856 eval "DEFAULT_$LINE"
7857 else
7858 no_cache=1
7859 fi
7860
7861 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7862
7863 fi
7864
7865
7866 eval "$ac_cv_use_tooltips"
7867 if test "$no_cache" != 1; then
7868 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7869 fi
7870
7871 if test "$wxUSE_TOOLTIPS" = yes; then
7872 echo "$ac_t""yes" 1>&6
7873 else
7874 echo "$ac_t""no" 1>&6
7875 fi
7876
7877
7878 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7879 echo "configure:7880: checking for --enable-splines" >&5
7880 no_cache=0
7881 # Check whether --enable-splines or --disable-splines was given.
7882 if test "${enable_splines+set}" = set; then
7883 enableval="$enable_splines"
7884
7885 if test "$enableval" = yes; then
7886 ac_cv_use_splines='wxUSE_SPLINES=yes'
7887 else
7888 ac_cv_use_splines='wxUSE_SPLINES=no'
7889 fi
7890
7891 else
7892
7893 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7894 if test "x$LINE" != x ; then
7895 eval "DEFAULT_$LINE"
7896 else
7897 no_cache=1
7898 fi
7899
7900 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7901
7902 fi
7903
7904
7905 eval "$ac_cv_use_splines"
7906 if test "$no_cache" != 1; then
7907 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7908 fi
7909
7910 if test "$wxUSE_SPLINES" = yes; then
7911 echo "$ac_t""yes" 1>&6
7912 else
7913 echo "$ac_t""no" 1>&6
7914 fi
7915
7916
7917 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7918 echo "configure:7919: checking for --enable-validators" >&5
7919 no_cache=0
7920 # Check whether --enable-validators or --disable-validators was given.
7921 if test "${enable_validators+set}" = set; then
7922 enableval="$enable_validators"
7923
7924 if test "$enableval" = yes; then
7925 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7926 else
7927 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7928 fi
7929
7930 else
7931
7932 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7933 if test "x$LINE" != x ; then
7934 eval "DEFAULT_$LINE"
7935 else
7936 no_cache=1
7937 fi
7938
7939 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7940
7941 fi
7942
7943
7944 eval "$ac_cv_use_validators"
7945 if test "$no_cache" != 1; then
7946 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7947 fi
7948
7949 if test "$wxUSE_VALIDATORS" = yes; then
7950 echo "$ac_t""yes" 1>&6
7951 else
7952 echo "$ac_t""no" 1>&6
7953 fi
7954
7955
7956 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7957 echo "configure:7958: checking for --enable-busyinfo" >&5
7958 no_cache=0
7959 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7960 if test "${enable_busyinfo+set}" = set; then
7961 enableval="$enable_busyinfo"
7962
7963 if test "$enableval" = yes; then
7964 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7965 else
7966 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7967 fi
7968
7969 else
7970
7971 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7972 if test "x$LINE" != x ; then
7973 eval "DEFAULT_$LINE"
7974 else
7975 no_cache=1
7976 fi
7977
7978 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7979
7980 fi
7981
7982
7983 eval "$ac_cv_use_busyinfo"
7984 if test "$no_cache" != 1; then
7985 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7986 fi
7987
7988 if test "$wxUSE_BUSYINFO" = yes; then
7989 echo "$ac_t""yes" 1>&6
7990 else
7991 echo "$ac_t""no" 1>&6
7992 fi
7993
7994
7995 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7996 echo "configure:7997: checking for --enable-joystick" >&5
7997 no_cache=0
7998 # Check whether --enable-joystick or --disable-joystick was given.
7999 if test "${enable_joystick+set}" = set; then
8000 enableval="$enable_joystick"
8001
8002 if test "$enableval" = yes; then
8003 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8004 else
8005 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8006 fi
8007
8008 else
8009
8010 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8011 if test "x$LINE" != x ; then
8012 eval "DEFAULT_$LINE"
8013 else
8014 no_cache=1
8015 fi
8016
8017 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8018
8019 fi
8020
8021
8022 eval "$ac_cv_use_joystick"
8023 if test "$no_cache" != 1; then
8024 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8025 fi
8026
8027 if test "$wxUSE_JOYSTICK" = yes; then
8028 echo "$ac_t""yes" 1>&6
8029 else
8030 echo "$ac_t""no" 1>&6
8031 fi
8032
8033
8034 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
8035 echo "configure:8036: checking for --enable-metafile" >&5
8036 no_cache=0
8037 # Check whether --enable-metafile or --disable-metafile was given.
8038 if test "${enable_metafile+set}" = set; then
8039 enableval="$enable_metafile"
8040
8041 if test "$enableval" = yes; then
8042 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8043 else
8044 ac_cv_use_metafile='wxUSE_METAFILE=no'
8045 fi
8046
8047 else
8048
8049 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8050 if test "x$LINE" != x ; then
8051 eval "DEFAULT_$LINE"
8052 else
8053 no_cache=1
8054 fi
8055
8056 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8057
8058 fi
8059
8060
8061 eval "$ac_cv_use_metafile"
8062 if test "$no_cache" != 1; then
8063 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8064 fi
8065
8066 if test "$wxUSE_METAFILE" = yes; then
8067 echo "$ac_t""yes" 1>&6
8068 else
8069 echo "$ac_t""no" 1>&6
8070 fi
8071
8072
8073 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
8074 echo "configure:8075: checking for --enable-dragimage" >&5
8075 no_cache=0
8076 # Check whether --enable-dragimage or --disable-dragimage was given.
8077 if test "${enable_dragimage+set}" = set; then
8078 enableval="$enable_dragimage"
8079
8080 if test "$enableval" = yes; then
8081 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8082 else
8083 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8084 fi
8085
8086 else
8087
8088 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8089 if test "x$LINE" != x ; then
8090 eval "DEFAULT_$LINE"
8091 else
8092 no_cache=1
8093 fi
8094
8095 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8096
8097 fi
8098
8099
8100 eval "$ac_cv_use_dragimage"
8101 if test "$no_cache" != 1; then
8102 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8103 fi
8104
8105 if test "$wxUSE_DRAGIMAGE" = yes; then
8106 echo "$ac_t""yes" 1>&6
8107 else
8108 echo "$ac_t""no" 1>&6
8109 fi
8110
8111
8112
8113
8114 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
8115 echo "configure:8116: checking for --enable-palette" >&5
8116 no_cache=0
8117 # Check whether --enable-palette or --disable-palette was given.
8118 if test "${enable_palette+set}" = set; then
8119 enableval="$enable_palette"
8120
8121 if test "$enableval" = yes; then
8122 ac_cv_use_palette='wxUSE_PALETTE=yes'
8123 else
8124 ac_cv_use_palette='wxUSE_PALETTE=no'
8125 fi
8126
8127 else
8128
8129 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8130 if test "x$LINE" != x ; then
8131 eval "DEFAULT_$LINE"
8132 else
8133 no_cache=1
8134 fi
8135
8136 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8137
8138 fi
8139
8140
8141 eval "$ac_cv_use_palette"
8142 if test "$no_cache" != 1; then
8143 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8144 fi
8145
8146 if test "$wxUSE_PALETTE" = yes; then
8147 echo "$ac_t""yes" 1>&6
8148 else
8149 echo "$ac_t""no" 1>&6
8150 fi
8151
8152
8153 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
8154 echo "configure:8155: checking for --enable-image" >&5
8155 no_cache=0
8156 # Check whether --enable-image or --disable-image was given.
8157 if test "${enable_image+set}" = set; then
8158 enableval="$enable_image"
8159
8160 if test "$enableval" = yes; then
8161 ac_cv_use_image='wxUSE_IMAGE=yes'
8162 else
8163 ac_cv_use_image='wxUSE_IMAGE=no'
8164 fi
8165
8166 else
8167
8168 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8169 if test "x$LINE" != x ; then
8170 eval "DEFAULT_$LINE"
8171 else
8172 no_cache=1
8173 fi
8174
8175 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8176
8177 fi
8178
8179
8180 eval "$ac_cv_use_image"
8181 if test "$no_cache" != 1; then
8182 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8183 fi
8184
8185 if test "$wxUSE_IMAGE" = yes; then
8186 echo "$ac_t""yes" 1>&6
8187 else
8188 echo "$ac_t""no" 1>&6
8189 fi
8190
8191
8192 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
8193 echo "configure:8194: checking for --enable-gif" >&5
8194 no_cache=0
8195 # Check whether --enable-gif or --disable-gif was given.
8196 if test "${enable_gif+set}" = set; then
8197 enableval="$enable_gif"
8198
8199 if test "$enableval" = yes; then
8200 ac_cv_use_gif='wxUSE_GIF=yes'
8201 else
8202 ac_cv_use_gif='wxUSE_GIF=no'
8203 fi
8204
8205 else
8206
8207 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8208 if test "x$LINE" != x ; then
8209 eval "DEFAULT_$LINE"
8210 else
8211 no_cache=1
8212 fi
8213
8214 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8215
8216 fi
8217
8218
8219 eval "$ac_cv_use_gif"
8220 if test "$no_cache" != 1; then
8221 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8222 fi
8223
8224 if test "$wxUSE_GIF" = yes; then
8225 echo "$ac_t""yes" 1>&6
8226 else
8227 echo "$ac_t""no" 1>&6
8228 fi
8229
8230
8231 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
8232 echo "configure:8233: checking for --enable-pcx" >&5
8233 no_cache=0
8234 # Check whether --enable-pcx or --disable-pcx was given.
8235 if test "${enable_pcx+set}" = set; then
8236 enableval="$enable_pcx"
8237
8238 if test "$enableval" = yes; then
8239 ac_cv_use_pcx='wxUSE_PCX=yes'
8240 else
8241 ac_cv_use_pcx='wxUSE_PCX=no'
8242 fi
8243
8244 else
8245
8246 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8247 if test "x$LINE" != x ; then
8248 eval "DEFAULT_$LINE"
8249 else
8250 no_cache=1
8251 fi
8252
8253 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8254
8255 fi
8256
8257
8258 eval "$ac_cv_use_pcx"
8259 if test "$no_cache" != 1; then
8260 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8261 fi
8262
8263 if test "$wxUSE_PCX" = yes; then
8264 echo "$ac_t""yes" 1>&6
8265 else
8266 echo "$ac_t""no" 1>&6
8267 fi
8268
8269
8270 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
8271 echo "configure:8272: checking for --enable-iff" >&5
8272 no_cache=0
8273 # Check whether --enable-iff or --disable-iff was given.
8274 if test "${enable_iff+set}" = set; then
8275 enableval="$enable_iff"
8276
8277 if test "$enableval" = yes; then
8278 ac_cv_use_iff='wxUSE_IFF=yes'
8279 else
8280 ac_cv_use_iff='wxUSE_IFF=no'
8281 fi
8282
8283 else
8284
8285 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8286 if test "x$LINE" != x ; then
8287 eval "DEFAULT_$LINE"
8288 else
8289 no_cache=1
8290 fi
8291
8292 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8293
8294 fi
8295
8296
8297 eval "$ac_cv_use_iff"
8298 if test "$no_cache" != 1; then
8299 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8300 fi
8301
8302 if test "$wxUSE_IFF" = yes; then
8303 echo "$ac_t""yes" 1>&6
8304 else
8305 echo "$ac_t""no" 1>&6
8306 fi
8307
8308
8309 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8310 echo "configure:8311: checking for --enable-pnm" >&5
8311 no_cache=0
8312 # Check whether --enable-pnm or --disable-pnm was given.
8313 if test "${enable_pnm+set}" = set; then
8314 enableval="$enable_pnm"
8315
8316 if test "$enableval" = yes; then
8317 ac_cv_use_pnm='wxUSE_PNM=yes'
8318 else
8319 ac_cv_use_pnm='wxUSE_PNM=no'
8320 fi
8321
8322 else
8323
8324 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8325 if test "x$LINE" != x ; then
8326 eval "DEFAULT_$LINE"
8327 else
8328 no_cache=1
8329 fi
8330
8331 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8332
8333 fi
8334
8335
8336 eval "$ac_cv_use_pnm"
8337 if test "$no_cache" != 1; then
8338 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8339 fi
8340
8341 if test "$wxUSE_PNM" = yes; then
8342 echo "$ac_t""yes" 1>&6
8343 else
8344 echo "$ac_t""no" 1>&6
8345 fi
8346
8347
8348 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
8349 echo "configure:8350: checking for --enable-xpm" >&5
8350 no_cache=0
8351 # Check whether --enable-xpm or --disable-xpm was given.
8352 if test "${enable_xpm+set}" = set; then
8353 enableval="$enable_xpm"
8354
8355 if test "$enableval" = yes; then
8356 ac_cv_use_xpm='wxUSE_XPM=yes'
8357 else
8358 ac_cv_use_xpm='wxUSE_XPM=no'
8359 fi
8360
8361 else
8362
8363 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8364 if test "x$LINE" != x ; then
8365 eval "DEFAULT_$LINE"
8366 else
8367 no_cache=1
8368 fi
8369
8370 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8371
8372 fi
8373
8374
8375 eval "$ac_cv_use_xpm"
8376 if test "$no_cache" != 1; then
8377 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8378 fi
8379
8380 if test "$wxUSE_XPM" = yes; then
8381 echo "$ac_t""yes" 1>&6
8382 else
8383 echo "$ac_t""no" 1>&6
8384 fi
8385
8386
8387 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
8388 echo "configure:8389: checking for --enable-ico_cur" >&5
8389 no_cache=0
8390 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8391 if test "${enable_ico_cur+set}" = set; then
8392 enableval="$enable_ico_cur"
8393
8394 if test "$enableval" = yes; then
8395 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8396 else
8397 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8398 fi
8399
8400 else
8401
8402 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8403 if test "x$LINE" != x ; then
8404 eval "DEFAULT_$LINE"
8405 else
8406 no_cache=1
8407 fi
8408
8409 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8410
8411 fi
8412
8413
8414 eval "$ac_cv_use_ico_cur"
8415 if test "$no_cache" != 1; then
8416 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8417 fi
8418
8419 if test "$wxUSE_ICO_CUR" = yes; then
8420 echo "$ac_t""yes" 1>&6
8421 else
8422 echo "$ac_t""no" 1>&6
8423 fi
8424
8425
8426 fi
8427
8428 case "${host}" in
8429 *-pc-os2_emx | *-pc-os2-emx )
8430 LEX_STEM="lexyy"
8431 ;;
8432 *)
8433 PATH_IFS=':'
8434 LEX_STEM="lex.yy"
8435 ;;
8436 esac
8437
8438
8439
8440 echo "saving argument cache $wx_arg_cache_file"
8441 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8442
8443
8444
8445 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8446 echo "configure:8447: checking for toolkit" >&5
8447
8448 if test "$wxUSE_GUI" = "yes"; then
8449
8450 if test "$USE_BEOS" = 1; then
8451 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8452 fi
8453
8454 if test "$TOOLKIT_GIVEN" = 1; then
8455 for toolkit in `echo $ALL_TOOLKITS`; do
8456 var=wxUSE_$toolkit
8457 eval "value=\$${var}"
8458 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8459 done
8460 else
8461 for toolkit in `echo $ALL_TOOLKITS`; do
8462 if test "$has_toolkit_in_cache" != 1; then
8463 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8464 else
8465 var=DEFAULT_wxUSE_$toolkit
8466 fi
8467 eval "wxUSE_$toolkit=\$${var}"
8468 done
8469 fi
8470
8471 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8472 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8473
8474 case "${host}" in
8475 *-pc-os2_emx | *-pc-os2-emx )
8476 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8477 esac
8478
8479 case "$NUM_TOOLKITS" in
8480 1)
8481 ;;
8482 0)
8483 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8484 ;;
8485 *)
8486 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8487 esac
8488
8489 for toolkit in `echo $ALL_TOOLKITS`; do
8490 var=wxUSE_$toolkit
8491 eval "value=\$${var}"
8492 if test "x$value" != x; then
8493 cache_var=CACHE_$toolkit
8494 eval "cache=\$${cache_var}"
8495 if test "$cache" = 1; then
8496 echo "$var=$value" >> ${wx_arg_cache_file}
8497 fi
8498 if test "$value" = 1; then
8499 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8500 echo "$ac_t""$toolkit_echo" 1>&6
8501 fi
8502 fi
8503 done
8504 else
8505 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8506 fi
8507
8508
8509 cat > confcache <<\EOF
8510 # This file is a shell script that caches the results of configure
8511 # tests run on this system so they can be shared between configure
8512 # scripts and configure runs. It is not useful on other systems.
8513 # If it contains results you don't want to keep, you may remove or edit it.
8514 #
8515 # By default, configure uses ./config.cache as the cache file,
8516 # creating it if it does not exist already. You can give configure
8517 # the --cache-file=FILE option to use a different cache file; that is
8518 # what configure does when it calls configure scripts in
8519 # subdirectories, so they share the cache.
8520 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8521 # config.status only pays attention to the cache file if you give it the
8522 # --recheck option to rerun configure.
8523 #
8524 EOF
8525 # The following way of writing the cache mishandles newlines in values,
8526 # but we know of no workaround that is simple, portable, and efficient.
8527 # So, don't put newlines in cache variables' values.
8528 # Ultrix sh set writes to stderr and can't be redirected directly,
8529 # and sets the high bit in the cache file unless we assign to the vars.
8530 (set) 2>&1 |
8531 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8532 *ac_space=\ *)
8533 # `set' does not quote correctly, so add quotes (double-quote substitution
8534 # turns \\\\ into \\, and sed turns \\ into \).
8535 sed -n \
8536 -e "s/'/'\\\\''/g" \
8537 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8538 ;;
8539 *)
8540 # `set' quotes correctly as required by POSIX, so do not add quotes.
8541 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8542 ;;
8543 esac >> confcache
8544 if cmp -s $cache_file confcache; then
8545 :
8546 else
8547 if test -w $cache_file; then
8548 echo "updating cache $cache_file"
8549 cat confcache > $cache_file
8550 else
8551 echo "not updating unwritable cache $cache_file"
8552 fi
8553 fi
8554 rm -f confcache
8555
8556
8557 if test "$build" != "$host" ; then
8558 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8559 CC=$host_alias-gcc
8560 CXX=$host_alias-c++
8561 AR=$host_alias-ar
8562 RANLIB=$host_alias-ranlib
8563 DLLTOOL=$host_alias-dlltool
8564 RESCOMP=$host_alias-windres
8565 LD=$host_alias-ld
8566 NM=$host_alias-nm
8567 STRIP=$host_alias-strip
8568 else
8569 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8570 fi
8571 fi
8572
8573 CFLAGS=${CFLAGS:=}
8574 # Extract the first word of "gcc", so it can be a program name with args.
8575 set dummy gcc; ac_word=$2
8576 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8577 echo "configure:8578: checking for $ac_word" >&5
8578 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8579 echo $ac_n "(cached) $ac_c" 1>&6
8580 else
8581 if test -n "$CC"; then
8582 ac_cv_prog_CC="$CC" # Let the user override the test.
8583 else
8584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8585 ac_dummy="$PATH"
8586 for ac_dir in $ac_dummy; do
8587 test -z "$ac_dir" && ac_dir=.
8588 if test -f $ac_dir/$ac_word; then
8589 ac_cv_prog_CC="gcc"
8590 break
8591 fi
8592 done
8593 IFS="$ac_save_ifs"
8594 fi
8595 fi
8596 CC="$ac_cv_prog_CC"
8597 if test -n "$CC"; then
8598 echo "$ac_t""$CC" 1>&6
8599 else
8600 echo "$ac_t""no" 1>&6
8601 fi
8602
8603 if test -z "$CC"; then
8604 # Extract the first word of "cc", so it can be a program name with args.
8605 set dummy cc; ac_word=$2
8606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8607 echo "configure:8608: checking for $ac_word" >&5
8608 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8609 echo $ac_n "(cached) $ac_c" 1>&6
8610 else
8611 if test -n "$CC"; then
8612 ac_cv_prog_CC="$CC" # Let the user override the test.
8613 else
8614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8615 ac_prog_rejected=no
8616 ac_dummy="$PATH"
8617 for ac_dir in $ac_dummy; do
8618 test -z "$ac_dir" && ac_dir=.
8619 if test -f $ac_dir/$ac_word; then
8620 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8621 ac_prog_rejected=yes
8622 continue
8623 fi
8624 ac_cv_prog_CC="cc"
8625 break
8626 fi
8627 done
8628 IFS="$ac_save_ifs"
8629 if test $ac_prog_rejected = yes; then
8630 # We found a bogon in the path, so make sure we never use it.
8631 set dummy $ac_cv_prog_CC
8632 shift
8633 if test $# -gt 0; then
8634 # We chose a different compiler from the bogus one.
8635 # However, it has the same basename, so the bogon will be chosen
8636 # first if we set CC to just the basename; use the full file name.
8637 shift
8638 set dummy "$ac_dir/$ac_word" "$@"
8639 shift
8640 ac_cv_prog_CC="$@"
8641 fi
8642 fi
8643 fi
8644 fi
8645 CC="$ac_cv_prog_CC"
8646 if test -n "$CC"; then
8647 echo "$ac_t""$CC" 1>&6
8648 else
8649 echo "$ac_t""no" 1>&6
8650 fi
8651
8652 if test -z "$CC"; then
8653 case "`uname -s`" in
8654 *win32* | *WIN32*)
8655 # Extract the first word of "cl", so it can be a program name with args.
8656 set dummy cl; ac_word=$2
8657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8658 echo "configure:8659: checking for $ac_word" >&5
8659 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8660 echo $ac_n "(cached) $ac_c" 1>&6
8661 else
8662 if test -n "$CC"; then
8663 ac_cv_prog_CC="$CC" # Let the user override the test.
8664 else
8665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8666 ac_dummy="$PATH"
8667 for ac_dir in $ac_dummy; do
8668 test -z "$ac_dir" && ac_dir=.
8669 if test -f $ac_dir/$ac_word; then
8670 ac_cv_prog_CC="cl"
8671 break
8672 fi
8673 done
8674 IFS="$ac_save_ifs"
8675 fi
8676 fi
8677 CC="$ac_cv_prog_CC"
8678 if test -n "$CC"; then
8679 echo "$ac_t""$CC" 1>&6
8680 else
8681 echo "$ac_t""no" 1>&6
8682 fi
8683 ;;
8684 esac
8685 fi
8686 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8687 fi
8688
8689 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8690 echo "configure:8691: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8691
8692 ac_ext=c
8693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8694 ac_cpp='$CPP $CPPFLAGS'
8695 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8696 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8697 cross_compiling=$ac_cv_prog_cc_cross
8698
8699 cat > conftest.$ac_ext << EOF
8700
8701 #line 8702 "configure"
8702 #include "confdefs.h"
8703
8704 main(){return(0);}
8705 EOF
8706 if { (eval echo configure:8707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8707 ac_cv_prog_cc_works=yes
8708 # If we can't run a trivial program, we are probably using a cross compiler.
8709 if (./conftest; exit) 2>/dev/null; then
8710 ac_cv_prog_cc_cross=no
8711 else
8712 ac_cv_prog_cc_cross=yes
8713 fi
8714 else
8715 echo "configure: failed program was:" >&5
8716 cat conftest.$ac_ext >&5
8717 ac_cv_prog_cc_works=no
8718 fi
8719 rm -fr conftest*
8720 ac_ext=c
8721 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8722 ac_cpp='$CPP $CPPFLAGS'
8723 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8724 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8725 cross_compiling=$ac_cv_prog_cc_cross
8726
8727 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8728 if test $ac_cv_prog_cc_works = no; then
8729 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8730 fi
8731 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8732 echo "configure:8733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8733 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8734 cross_compiling=$ac_cv_prog_cc_cross
8735
8736 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8737 echo "configure:8738: checking whether we are using GNU C" >&5
8738 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8739 echo $ac_n "(cached) $ac_c" 1>&6
8740 else
8741 cat > conftest.c <<EOF
8742 #ifdef __GNUC__
8743 yes;
8744 #endif
8745 EOF
8746 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8747 ac_cv_prog_gcc=yes
8748 else
8749 ac_cv_prog_gcc=no
8750 fi
8751 fi
8752
8753 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8754
8755 if test $ac_cv_prog_gcc = yes; then
8756 GCC=yes
8757 else
8758 GCC=
8759 fi
8760
8761 ac_test_CFLAGS="${CFLAGS+set}"
8762 ac_save_CFLAGS="$CFLAGS"
8763 CFLAGS=
8764 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8765 echo "configure:8766: checking whether ${CC-cc} accepts -g" >&5
8766 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8767 echo $ac_n "(cached) $ac_c" 1>&6
8768 else
8769 echo 'void f(){}' > conftest.c
8770 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8771 ac_cv_prog_cc_g=yes
8772 else
8773 ac_cv_prog_cc_g=no
8774 fi
8775 rm -f conftest*
8776
8777 fi
8778
8779 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8780 if test "$ac_test_CFLAGS" = set; then
8781 CFLAGS="$ac_save_CFLAGS"
8782 elif test $ac_cv_prog_cc_g = yes; then
8783 if test "$GCC" = yes; then
8784 CFLAGS="-g -O2"
8785 else
8786 CFLAGS="-g"
8787 fi
8788 else
8789 if test "$GCC" = yes; then
8790 CFLAGS="-O2"
8791 else
8792 CFLAGS=
8793 fi
8794 fi
8795
8796
8797 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8798 echo "configure:8799: checking how to run the C preprocessor" >&5
8799 # On Suns, sometimes $CPP names a directory.
8800 if test -n "$CPP" && test -d "$CPP"; then
8801 CPP=
8802 fi
8803 if test -z "$CPP"; then
8804 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8805 echo $ac_n "(cached) $ac_c" 1>&6
8806 else
8807 # This must be in double quotes, not single quotes, because CPP may get
8808 # substituted into the Makefile and "${CC-cc}" will confuse make.
8809 CPP="${CC-cc} -E"
8810 # On the NeXT, cc -E runs the code through the compiler's parser,
8811 # not just through cpp.
8812 cat > conftest.$ac_ext <<EOF
8813 #line 8814 "configure"
8814 #include "confdefs.h"
8815 #include <assert.h>
8816 Syntax Error
8817 EOF
8818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8819 { (eval echo configure:8820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8821 if test -z "$ac_err"; then
8822 :
8823 else
8824 echo "$ac_err" >&5
8825 echo "configure: failed program was:" >&5
8826 cat conftest.$ac_ext >&5
8827 rm -rf conftest*
8828 CPP="${CC-cc} -E -traditional-cpp"
8829 cat > conftest.$ac_ext <<EOF
8830 #line 8831 "configure"
8831 #include "confdefs.h"
8832 #include <assert.h>
8833 Syntax Error
8834 EOF
8835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8836 { (eval echo configure:8837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8838 if test -z "$ac_err"; then
8839 :
8840 else
8841 echo "$ac_err" >&5
8842 echo "configure: failed program was:" >&5
8843 cat conftest.$ac_ext >&5
8844 rm -rf conftest*
8845 CPP="${CC-cc} -nologo -E"
8846 cat > conftest.$ac_ext <<EOF
8847 #line 8848 "configure"
8848 #include "confdefs.h"
8849 #include <assert.h>
8850 Syntax Error
8851 EOF
8852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8853 { (eval echo configure:8854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8855 if test -z "$ac_err"; then
8856 :
8857 else
8858 echo "$ac_err" >&5
8859 echo "configure: failed program was:" >&5
8860 cat conftest.$ac_ext >&5
8861 rm -rf conftest*
8862 CPP=/lib/cpp
8863 fi
8864 rm -f conftest*
8865 fi
8866 rm -f conftest*
8867 fi
8868 rm -f conftest*
8869 ac_cv_prog_CPP="$CPP"
8870 fi
8871 CPP="$ac_cv_prog_CPP"
8872 else
8873 ac_cv_prog_CPP="$CPP"
8874 fi
8875 echo "$ac_t""$CPP" 1>&6
8876
8877 if test $ac_cv_prog_gcc = yes; then
8878 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8879 echo "configure:8880: checking whether ${CC-cc} needs -traditional" >&5
8880 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8881 echo $ac_n "(cached) $ac_c" 1>&6
8882 else
8883 ac_pattern="Autoconf.*'x'"
8884 cat > conftest.$ac_ext <<EOF
8885 #line 8886 "configure"
8886 #include "confdefs.h"
8887 #include <sgtty.h>
8888 Autoconf TIOCGETP
8889 EOF
8890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8891 egrep "$ac_pattern" >/dev/null 2>&1; then
8892 rm -rf conftest*
8893 ac_cv_prog_gcc_traditional=yes
8894 else
8895 rm -rf conftest*
8896 ac_cv_prog_gcc_traditional=no
8897 fi
8898 rm -f conftest*
8899
8900
8901 if test $ac_cv_prog_gcc_traditional = no; then
8902 cat > conftest.$ac_ext <<EOF
8903 #line 8904 "configure"
8904 #include "confdefs.h"
8905 #include <termio.h>
8906 Autoconf TCGETA
8907 EOF
8908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8909 egrep "$ac_pattern" >/dev/null 2>&1; then
8910 rm -rf conftest*
8911 ac_cv_prog_gcc_traditional=yes
8912 fi
8913 rm -f conftest*
8914
8915 fi
8916 fi
8917
8918 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8919 if test $ac_cv_prog_gcc_traditional = yes; then
8920 CC="$CC -traditional"
8921 fi
8922 fi
8923
8924
8925
8926 ac_ext=C
8927 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8928 ac_cpp='$CXXCPP $CPPFLAGS'
8929 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8930 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8931 cross_compiling=$ac_cv_prog_cxx_cross
8932
8933
8934 CXXFLAGS=${CXXFLAGS:=}
8935 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8936 do
8937 # Extract the first word of "$ac_prog", so it can be a program name with args.
8938 set dummy $ac_prog; ac_word=$2
8939 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8940 echo "configure:8941: checking for $ac_word" >&5
8941 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8942 echo $ac_n "(cached) $ac_c" 1>&6
8943 else
8944 if test -n "$CXX"; then
8945 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8946 else
8947 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8948 ac_dummy="$PATH"
8949 for ac_dir in $ac_dummy; do
8950 test -z "$ac_dir" && ac_dir=.
8951 if test -f $ac_dir/$ac_word; then
8952 ac_cv_prog_CXX="$ac_prog"
8953 break
8954 fi
8955 done
8956 IFS="$ac_save_ifs"
8957 fi
8958 fi
8959 CXX="$ac_cv_prog_CXX"
8960 if test -n "$CXX"; then
8961 echo "$ac_t""$CXX" 1>&6
8962 else
8963 echo "$ac_t""no" 1>&6
8964 fi
8965
8966 test -n "$CXX" && break
8967 done
8968 test -n "$CXX" || CXX="gcc"
8969
8970
8971 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8972 echo "configure:8973: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8973
8974 ac_ext=C
8975 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8976 ac_cpp='$CXXCPP $CPPFLAGS'
8977 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8978 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8979 cross_compiling=$ac_cv_prog_cxx_cross
8980
8981 cat > conftest.$ac_ext << EOF
8982
8983 #line 8984 "configure"
8984 #include "confdefs.h"
8985
8986 int main(){return(0);}
8987 EOF
8988 if { (eval echo configure:8989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8989 ac_cv_prog_cxx_works=yes
8990 # If we can't run a trivial program, we are probably using a cross compiler.
8991 if (./conftest; exit) 2>/dev/null; then
8992 ac_cv_prog_cxx_cross=no
8993 else
8994 ac_cv_prog_cxx_cross=yes
8995 fi
8996 else
8997 echo "configure: failed program was:" >&5
8998 cat conftest.$ac_ext >&5
8999 ac_cv_prog_cxx_works=no
9000 fi
9001 rm -fr conftest*
9002 ac_ext=C
9003 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9004 ac_cpp='$CXXCPP $CPPFLAGS'
9005 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9006 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9007 cross_compiling=$ac_cv_prog_cxx_cross
9008
9009 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9010 if test $ac_cv_prog_cxx_works = no; then
9011 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9012 fi
9013 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9014 echo "configure:9015: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9015 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9016 cross_compiling=$ac_cv_prog_cxx_cross
9017
9018 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9019 echo "configure:9020: checking whether we are using GNU C++" >&5
9020 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9021 echo $ac_n "(cached) $ac_c" 1>&6
9022 else
9023 cat > conftest.C <<EOF
9024 #ifdef __GNUC__
9025 yes;
9026 #endif
9027 EOF
9028 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9029 ac_cv_prog_gxx=yes
9030 else
9031 ac_cv_prog_gxx=no
9032 fi
9033 fi
9034
9035 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9036
9037 if test $ac_cv_prog_gxx = yes; then
9038 GXX=yes
9039 else
9040 GXX=
9041 fi
9042
9043 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9044 ac_save_CXXFLAGS="$CXXFLAGS"
9045 CXXFLAGS=
9046 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9047 echo "configure:9048: checking whether ${CXX-g++} accepts -g" >&5
9048 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9049 echo $ac_n "(cached) $ac_c" 1>&6
9050 else
9051 echo 'void f(){}' > conftest.cc
9052 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9053 ac_cv_prog_cxx_g=yes
9054 else
9055 ac_cv_prog_cxx_g=no
9056 fi
9057 rm -f conftest*
9058
9059 fi
9060
9061 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9062 if test "$ac_test_CXXFLAGS" = set; then
9063 CXXFLAGS="$ac_save_CXXFLAGS"
9064 elif test $ac_cv_prog_cxx_g = yes; then
9065 if test "$GXX" = yes; then
9066 CXXFLAGS="-g -O2"
9067 else
9068 CXXFLAGS="-g"
9069 fi
9070 else
9071 if test "$GXX" = yes; then
9072 CXXFLAGS="-O2"
9073 else
9074 CXXFLAGS=
9075 fi
9076 fi
9077
9078
9079 ac_ext=c
9080 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9081 ac_cpp='$CPP $CPPFLAGS'
9082 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9083 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9084 cross_compiling=$ac_cv_prog_cc_cross
9085
9086
9087 # Extract the first word of "ranlib", so it can be a program name with args.
9088 set dummy ranlib; ac_word=$2
9089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9090 echo "configure:9091: checking for $ac_word" >&5
9091 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9092 echo $ac_n "(cached) $ac_c" 1>&6
9093 else
9094 if test -n "$RANLIB"; then
9095 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9096 else
9097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9098 ac_dummy="$PATH"
9099 for ac_dir in $ac_dummy; do
9100 test -z "$ac_dir" && ac_dir=.
9101 if test -f $ac_dir/$ac_word; then
9102 ac_cv_prog_RANLIB="ranlib"
9103 break
9104 fi
9105 done
9106 IFS="$ac_save_ifs"
9107 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9108 fi
9109 fi
9110 RANLIB="$ac_cv_prog_RANLIB"
9111 if test -n "$RANLIB"; then
9112 echo "$ac_t""$RANLIB" 1>&6
9113 else
9114 echo "$ac_t""no" 1>&6
9115 fi
9116
9117
9118 # Extract the first word of "ar", so it can be a program name with args.
9119 set dummy ar; ac_word=$2
9120 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9121 echo "configure:9122: checking for $ac_word" >&5
9122 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9123 echo $ac_n "(cached) $ac_c" 1>&6
9124 else
9125 if test -n "$AR"; then
9126 ac_cv_prog_AR="$AR" # Let the user override the test.
9127 else
9128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9129 ac_dummy="$PATH"
9130 for ac_dir in $ac_dummy; do
9131 test -z "$ac_dir" && ac_dir=.
9132 if test -f $ac_dir/$ac_word; then
9133 ac_cv_prog_AR="ar"
9134 break
9135 fi
9136 done
9137 IFS="$ac_save_ifs"
9138 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9139 fi
9140 fi
9141 AR="$ac_cv_prog_AR"
9142 if test -n "$AR"; then
9143 echo "$ac_t""$AR" 1>&6
9144 else
9145 echo "$ac_t""no" 1>&6
9146 fi
9147
9148
9149 # Find a good install program. We prefer a C program (faster),
9150 # so one script is as good as another. But avoid the broken or
9151 # incompatible versions:
9152 # SysV /etc/install, /usr/sbin/install
9153 # SunOS /usr/etc/install
9154 # IRIX /sbin/install
9155 # AIX /bin/install
9156 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9157 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9158 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9159 # ./install, which can be erroneously created by make from ./install.sh.
9160 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9161 echo "configure:9162: checking for a BSD compatible install" >&5
9162 if test -z "$INSTALL"; then
9163 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9164 echo $ac_n "(cached) $ac_c" 1>&6
9165 else
9166 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9167 for ac_dir in $PATH; do
9168 # Account for people who put trailing slashes in PATH elements.
9169 case "$ac_dir/" in
9170 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9171 *)
9172 # OSF1 and SCO ODT 3.0 have their own names for install.
9173 # Don't use installbsd from OSF since it installs stuff as root
9174 # by default.
9175 for ac_prog in ginstall scoinst install; do
9176 if test -f $ac_dir/$ac_prog; then
9177 if test $ac_prog = install &&
9178 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9179 # AIX install. It has an incompatible calling convention.
9180 :
9181 else
9182 ac_cv_path_install="$ac_dir/$ac_prog -c"
9183 break 2
9184 fi
9185 fi
9186 done
9187 ;;
9188 esac
9189 done
9190 IFS="$ac_save_IFS"
9191
9192 fi
9193 if test "${ac_cv_path_install+set}" = set; then
9194 INSTALL="$ac_cv_path_install"
9195 else
9196 # As a last resort, use the slow shell script. We don't cache a
9197 # path for INSTALL within a source directory, because that will
9198 # break other packages using the cache if that directory is
9199 # removed, or if the path is relative.
9200 INSTALL="$ac_install_sh"
9201 fi
9202 fi
9203 echo "$ac_t""$INSTALL" 1>&6
9204
9205 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9206 # It thinks the first close brace ends the variable substitution.
9207 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9208
9209 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9210
9211 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9212
9213 case "${host}" in
9214
9215 powerpc-*-darwin* )
9216 INSTALL_PROGRAM="cp -fp"
9217 INSTALL_DATA="cp -fp"
9218 ;;
9219 *)
9220 ;;
9221 esac
9222
9223 # Extract the first word of "strip", so it can be a program name with args.
9224 set dummy strip; ac_word=$2
9225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9226 echo "configure:9227: checking for $ac_word" >&5
9227 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9228 echo $ac_n "(cached) $ac_c" 1>&6
9229 else
9230 if test -n "$STRIP"; then
9231 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9232 else
9233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9234 ac_dummy="$PATH"
9235 for ac_dir in $ac_dummy; do
9236 test -z "$ac_dir" && ac_dir=.
9237 if test -f $ac_dir/$ac_word; then
9238 ac_cv_prog_STRIP="strip"
9239 break
9240 fi
9241 done
9242 IFS="$ac_save_ifs"
9243 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9244 fi
9245 fi
9246 STRIP="$ac_cv_prog_STRIP"
9247 if test -n "$STRIP"; then
9248 echo "$ac_t""$STRIP" 1>&6
9249 else
9250 echo "$ac_t""no" 1>&6
9251 fi
9252
9253
9254 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9255 echo "configure:9256: checking if make is GNU make" >&5
9256 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9257 echo $ac_n "(cached) $ac_c" 1>&6
9258 else
9259
9260 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9261 egrep -s GNU > /dev/null); then
9262 wx_cv_prog_makeisgnu="yes"
9263 else
9264 wx_cv_prog_makeisgnu="no"
9265 fi
9266
9267 fi
9268
9269 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9270
9271 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9272 IF_GNU_MAKE=""
9273 else
9274 IF_GNU_MAKE="#"
9275 fi
9276
9277
9278
9279 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9280 echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9281 echo "configure:9282: checking if make supports VPATH" >&5
9282 if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9283 echo $ac_n "(cached) $ac_c" 1>&6
9284 else
9285
9286 cat - << EOF > confMake
9287 check : file
9288 cp \$? \$@
9289 cp \$? final_file
9290 EOF
9291
9292 if test ! -d sub ; then
9293 mkdir sub
9294 fi
9295 echo dummy > sub/file
9296 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9297 RESULT=$?
9298 rm -f sub/file check final_file confMake
9299 rmdir sub
9300 if test "$RESULT" = 0; then
9301 wx_cv_prog_makevpath="yes"
9302 else
9303 wx_cv_prog_makevpath="no"
9304 fi
9305
9306 fi
9307
9308 echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9309
9310 if test "x$wx_cv_prog_makevpath" != "xyes"; then
9311 { echo "configure: error:
9312 You need a make-utility that is able to use the variable
9313 VPATH correctly.
9314 If your version of make does not support VPATH correctly,
9315 please install GNU-make (possibly as gmake), and start
9316 configure with the following command:
9317 export MAKE=gmake; ./configure for sh-type shells
9318 setenv MAKE gmake; ./configure for csh-type shells
9319 Also please do remember to use gmake in this case every time
9320 you are trying to compile.
9321 " 1>&2; exit 1; }
9322 fi fi
9323 for ac_prog in 'bison -y' byacc
9324 do
9325 # Extract the first word of "$ac_prog", so it can be a program name with args.
9326 set dummy $ac_prog; ac_word=$2
9327 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9328 echo "configure:9329: checking for $ac_word" >&5
9329 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9330 echo $ac_n "(cached) $ac_c" 1>&6
9331 else
9332 if test -n "$YACC"; then
9333 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9334 else
9335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9336 ac_dummy="$PATH"
9337 for ac_dir in $ac_dummy; do
9338 test -z "$ac_dir" && ac_dir=.
9339 if test -f $ac_dir/$ac_word; then
9340 ac_cv_prog_YACC="$ac_prog"
9341 break
9342 fi
9343 done
9344 IFS="$ac_save_ifs"
9345 fi
9346 fi
9347 YACC="$ac_cv_prog_YACC"
9348 if test -n "$YACC"; then
9349 echo "$ac_t""$YACC" 1>&6
9350 else
9351 echo "$ac_t""no" 1>&6
9352 fi
9353
9354 test -n "$YACC" && break
9355 done
9356 test -n "$YACC" || YACC="yacc"
9357
9358
9359 # Extract the first word of "flex", so it can be a program name with args.
9360 set dummy flex; ac_word=$2
9361 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9362 echo "configure:9363: checking for $ac_word" >&5
9363 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9364 echo $ac_n "(cached) $ac_c" 1>&6
9365 else
9366 if test -n "$LEX"; then
9367 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9368 else
9369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9370 ac_dummy="$PATH"
9371 for ac_dir in $ac_dummy; do
9372 test -z "$ac_dir" && ac_dir=.
9373 if test -f $ac_dir/$ac_word; then
9374 ac_cv_prog_LEX="flex"
9375 break
9376 fi
9377 done
9378 IFS="$ac_save_ifs"
9379 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9380 fi
9381 fi
9382 LEX="$ac_cv_prog_LEX"
9383 if test -n "$LEX"; then
9384 echo "$ac_t""$LEX" 1>&6
9385 else
9386 echo "$ac_t""no" 1>&6
9387 fi
9388
9389 if test -z "$LEXLIB"
9390 then
9391 case "$LEX" in
9392 flex*) ac_lib=fl ;;
9393 *) ac_lib=l ;;
9394 esac
9395 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9396 echo "configure:9397: checking for yywrap in -l$ac_lib" >&5
9397 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9398 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9399 echo $ac_n "(cached) $ac_c" 1>&6
9400 else
9401 ac_save_LIBS="$LIBS"
9402 LIBS="-l$ac_lib $LIBS"
9403 cat > conftest.$ac_ext <<EOF
9404 #line 9405 "configure"
9405 #include "confdefs.h"
9406 /* Override any gcc2 internal prototype to avoid an error. */
9407 /* We use char because int might match the return type of a gcc2
9408 builtin and then its argument prototype would still apply. */
9409 char yywrap();
9410
9411 int main() {
9412 yywrap()
9413 ; return 0; }
9414 EOF
9415 if { (eval echo configure:9416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9416 rm -rf conftest*
9417 eval "ac_cv_lib_$ac_lib_var=yes"
9418 else
9419 echo "configure: failed program was:" >&5
9420 cat conftest.$ac_ext >&5
9421 rm -rf conftest*
9422 eval "ac_cv_lib_$ac_lib_var=no"
9423 fi
9424 rm -f conftest*
9425 LIBS="$ac_save_LIBS"
9426
9427 fi
9428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9429 echo "$ac_t""yes" 1>&6
9430 LEXLIB="-l$ac_lib"
9431 else
9432 echo "$ac_t""no" 1>&6
9433 fi
9434
9435 fi
9436
9437
9438 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9439 echo "configure:9440: checking whether ln -s works" >&5
9440 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9441 echo $ac_n "(cached) $ac_c" 1>&6
9442 else
9443 rm -f conftestdata
9444 if ln -s X conftestdata 2>/dev/null
9445 then
9446 rm -f conftestdata
9447 ac_cv_prog_LN_S="ln -s"
9448 else
9449 ac_cv_prog_LN_S=ln
9450 fi
9451 fi
9452 LN_S="$ac_cv_prog_LN_S"
9453 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9454 echo "$ac_t""yes" 1>&6
9455 else
9456 echo "$ac_t""no" 1>&6
9457 fi
9458
9459
9460
9461 echo $ac_n "checking for working const""... $ac_c" 1>&6
9462 echo "configure:9463: checking for working const" >&5
9463 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9464 echo $ac_n "(cached) $ac_c" 1>&6
9465 else
9466 cat > conftest.$ac_ext <<EOF
9467 #line 9468 "configure"
9468 #include "confdefs.h"
9469
9470 int main() {
9471
9472 /* Ultrix mips cc rejects this. */
9473 typedef int charset[2]; const charset x;
9474 /* SunOS 4.1.1 cc rejects this. */
9475 char const *const *ccp;
9476 char **p;
9477 /* NEC SVR4.0.2 mips cc rejects this. */
9478 struct point {int x, y;};
9479 static struct point const zero = {0,0};
9480 /* AIX XL C 1.02.0.0 rejects this.
9481 It does not let you subtract one const X* pointer from another in an arm
9482 of an if-expression whose if-part is not a constant expression */
9483 const char *g = "string";
9484 ccp = &g + (g ? g-g : 0);
9485 /* HPUX 7.0 cc rejects these. */
9486 ++ccp;
9487 p = (char**) ccp;
9488 ccp = (char const *const *) p;
9489 { /* SCO 3.2v4 cc rejects this. */
9490 char *t;
9491 char const *s = 0 ? (char *) 0 : (char const *) 0;
9492
9493 *t++ = 0;
9494 }
9495 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9496 int x[] = {25, 17};
9497 const int *foo = &x[0];
9498 ++foo;
9499 }
9500 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9501 typedef const int *iptr;
9502 iptr p = 0;
9503 ++p;
9504 }
9505 { /* AIX XL C 1.02.0.0 rejects this saying
9506 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9507 struct s { int j; const int *ap[3]; };
9508 struct s *b; b->j = 5;
9509 }
9510 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9511 const int foo = 10;
9512 }
9513
9514 ; return 0; }
9515 EOF
9516 if { (eval echo configure:9517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9517 rm -rf conftest*
9518 ac_cv_c_const=yes
9519 else
9520 echo "configure: failed program was:" >&5
9521 cat conftest.$ac_ext >&5
9522 rm -rf conftest*
9523 ac_cv_c_const=no
9524 fi
9525 rm -f conftest*
9526 fi
9527
9528 echo "$ac_t""$ac_cv_c_const" 1>&6
9529 if test $ac_cv_c_const = no; then
9530 cat >> confdefs.h <<\EOF
9531 #define const
9532 EOF
9533
9534 fi
9535
9536 echo $ac_n "checking for inline""... $ac_c" 1>&6
9537 echo "configure:9538: checking for inline" >&5
9538 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
9539 echo $ac_n "(cached) $ac_c" 1>&6
9540 else
9541 ac_cv_c_inline=no
9542 for ac_kw in inline __inline__ __inline; do
9543 cat > conftest.$ac_ext <<EOF
9544 #line 9545 "configure"
9545 #include "confdefs.h"
9546
9547 int main() {
9548 } $ac_kw foo() {
9549 ; return 0; }
9550 EOF
9551 if { (eval echo configure:9552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9552 rm -rf conftest*
9553 ac_cv_c_inline=$ac_kw; break
9554 else
9555 echo "configure: failed program was:" >&5
9556 cat conftest.$ac_ext >&5
9557 fi
9558 rm -f conftest*
9559 done
9560
9561 fi
9562
9563 echo "$ac_t""$ac_cv_c_inline" 1>&6
9564 case "$ac_cv_c_inline" in
9565 inline | yes) ;;
9566 no) cat >> confdefs.h <<\EOF
9567 #define inline
9568 EOF
9569 ;;
9570 *) cat >> confdefs.h <<EOF
9571 #define inline $ac_cv_c_inline
9572 EOF
9573 ;;
9574 esac
9575
9576
9577 echo $ac_n "checking size of char""... $ac_c" 1>&6
9578 echo "configure:9579: checking size of char" >&5
9579 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
9580 echo $ac_n "(cached) $ac_c" 1>&6
9581 else
9582 if test "$cross_compiling" = yes; then
9583 ac_cv_sizeof_char=1
9584 else
9585 cat > conftest.$ac_ext <<EOF
9586 #line 9587 "configure"
9587 #include "confdefs.h"
9588 #include <stdio.h>
9589 main()
9590 {
9591 FILE *f=fopen("conftestval", "w");
9592 if (!f) exit(1);
9593 fprintf(f, "%d\n", sizeof(char));
9594 exit(0);
9595 }
9596 EOF
9597 if { (eval echo configure:9598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9598 then
9599 ac_cv_sizeof_char=`cat conftestval`
9600 else
9601 echo "configure: failed program was:" >&5
9602 cat conftest.$ac_ext >&5
9603 rm -fr conftest*
9604 ac_cv_sizeof_char=0
9605 fi
9606 rm -fr conftest*
9607 fi
9608
9609 fi
9610 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
9611 cat >> confdefs.h <<EOF
9612 #define SIZEOF_CHAR $ac_cv_sizeof_char
9613 EOF
9614
9615
9616 echo $ac_n "checking size of short""... $ac_c" 1>&6
9617 echo "configure:9618: checking size of short" >&5
9618 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9619 echo $ac_n "(cached) $ac_c" 1>&6
9620 else
9621 if test "$cross_compiling" = yes; then
9622 ac_cv_sizeof_short=2
9623 else
9624 cat > conftest.$ac_ext <<EOF
9625 #line 9626 "configure"
9626 #include "confdefs.h"
9627 #include <stdio.h>
9628 main()
9629 {
9630 FILE *f=fopen("conftestval", "w");
9631 if (!f) exit(1);
9632 fprintf(f, "%d\n", sizeof(short));
9633 exit(0);
9634 }
9635 EOF
9636 if { (eval echo configure:9637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9637 then
9638 ac_cv_sizeof_short=`cat conftestval`
9639 else
9640 echo "configure: failed program was:" >&5
9641 cat conftest.$ac_ext >&5
9642 rm -fr conftest*
9643 ac_cv_sizeof_short=0
9644 fi
9645 rm -fr conftest*
9646 fi
9647
9648 fi
9649 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9650 cat >> confdefs.h <<EOF
9651 #define SIZEOF_SHORT $ac_cv_sizeof_short
9652 EOF
9653
9654
9655 echo $ac_n "checking size of void *""... $ac_c" 1>&6
9656 echo "configure:9657: checking size of void *" >&5
9657 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
9658 echo $ac_n "(cached) $ac_c" 1>&6
9659 else
9660 if test "$cross_compiling" = yes; then
9661 ac_cv_sizeof_void_p=4
9662 else
9663 cat > conftest.$ac_ext <<EOF
9664 #line 9665 "configure"
9665 #include "confdefs.h"
9666 #include <stdio.h>
9667 main()
9668 {
9669 FILE *f=fopen("conftestval", "w");
9670 if (!f) exit(1);
9671 fprintf(f, "%d\n", sizeof(void *));
9672 exit(0);
9673 }
9674 EOF
9675 if { (eval echo configure:9676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9676 then
9677 ac_cv_sizeof_void_p=`cat conftestval`
9678 else
9679 echo "configure: failed program was:" >&5
9680 cat conftest.$ac_ext >&5
9681 rm -fr conftest*
9682 ac_cv_sizeof_void_p=0
9683 fi
9684 rm -fr conftest*
9685 fi
9686
9687 fi
9688 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
9689 cat >> confdefs.h <<EOF
9690 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
9691 EOF
9692
9693
9694 echo $ac_n "checking size of int""... $ac_c" 1>&6
9695 echo "configure:9696: checking size of int" >&5
9696 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9697 echo $ac_n "(cached) $ac_c" 1>&6
9698 else
9699 if test "$cross_compiling" = yes; then
9700 ac_cv_sizeof_int=4
9701 else
9702 cat > conftest.$ac_ext <<EOF
9703 #line 9704 "configure"
9704 #include "confdefs.h"
9705 #include <stdio.h>
9706 main()
9707 {
9708 FILE *f=fopen("conftestval", "w");
9709 if (!f) exit(1);
9710 fprintf(f, "%d\n", sizeof(int));
9711 exit(0);
9712 }
9713 EOF
9714 if { (eval echo configure:9715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9715 then
9716 ac_cv_sizeof_int=`cat conftestval`
9717 else
9718 echo "configure: failed program was:" >&5
9719 cat conftest.$ac_ext >&5
9720 rm -fr conftest*
9721 ac_cv_sizeof_int=0
9722 fi
9723 rm -fr conftest*
9724 fi
9725
9726 fi
9727 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9728 cat >> confdefs.h <<EOF
9729 #define SIZEOF_INT $ac_cv_sizeof_int
9730 EOF
9731
9732
9733 echo $ac_n "checking size of long""... $ac_c" 1>&6
9734 echo "configure:9735: checking size of long" >&5
9735 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9736 echo $ac_n "(cached) $ac_c" 1>&6
9737 else
9738 if test "$cross_compiling" = yes; then
9739 ac_cv_sizeof_long=4
9740 else
9741 cat > conftest.$ac_ext <<EOF
9742 #line 9743 "configure"
9743 #include "confdefs.h"
9744 #include <stdio.h>
9745 main()
9746 {
9747 FILE *f=fopen("conftestval", "w");
9748 if (!f) exit(1);
9749 fprintf(f, "%d\n", sizeof(long));
9750 exit(0);
9751 }
9752 EOF
9753 if { (eval echo configure:9754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9754 then
9755 ac_cv_sizeof_long=`cat conftestval`
9756 else
9757 echo "configure: failed program was:" >&5
9758 cat conftest.$ac_ext >&5
9759 rm -fr conftest*
9760 ac_cv_sizeof_long=0
9761 fi
9762 rm -fr conftest*
9763 fi
9764
9765 fi
9766 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9767 cat >> confdefs.h <<EOF
9768 #define SIZEOF_LONG $ac_cv_sizeof_long
9769 EOF
9770
9771
9772
9773 case "${host}" in
9774 arm-*-linux* )
9775 echo $ac_n "checking size of long long""... $ac_c" 1>&6
9776 echo "configure:9777: checking size of long long" >&5
9777 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9778 echo $ac_n "(cached) $ac_c" 1>&6
9779 else
9780 if test "$cross_compiling" = yes; then
9781 ac_cv_sizeof_long_long=8
9782 else
9783 cat > conftest.$ac_ext <<EOF
9784 #line 9785 "configure"
9785 #include "confdefs.h"
9786 #include <stdio.h>
9787 main()
9788 {
9789 FILE *f=fopen("conftestval", "w");
9790 if (!f) exit(1);
9791 fprintf(f, "%d\n", sizeof(long long));
9792 exit(0);
9793 }
9794 EOF
9795 if { (eval echo configure:9796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9796 then
9797 ac_cv_sizeof_long_long=`cat conftestval`
9798 else
9799 echo "configure: failed program was:" >&5
9800 cat conftest.$ac_ext >&5
9801 rm -fr conftest*
9802 ac_cv_sizeof_long_long=0
9803 fi
9804 rm -fr conftest*
9805 fi
9806
9807 fi
9808 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9809 cat >> confdefs.h <<EOF
9810 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9811 EOF
9812
9813
9814 ;;
9815 * )
9816 echo $ac_n "checking size of long long""... $ac_c" 1>&6
9817 echo "configure:9818: checking size of long long" >&5
9818 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9819 echo $ac_n "(cached) $ac_c" 1>&6
9820 else
9821 if test "$cross_compiling" = yes; then
9822 ac_cv_sizeof_long_long=0
9823 else
9824 cat > conftest.$ac_ext <<EOF
9825 #line 9826 "configure"
9826 #include "confdefs.h"
9827 #include <stdio.h>
9828 main()
9829 {
9830 FILE *f=fopen("conftestval", "w");
9831 if (!f) exit(1);
9832 fprintf(f, "%d\n", sizeof(long long));
9833 exit(0);
9834 }
9835 EOF
9836 if { (eval echo configure:9837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9837 then
9838 ac_cv_sizeof_long_long=`cat conftestval`
9839 else
9840 echo "configure: failed program was:" >&5
9841 cat conftest.$ac_ext >&5
9842 rm -fr conftest*
9843 ac_cv_sizeof_long_long=0
9844 fi
9845 rm -fr conftest*
9846 fi
9847
9848 fi
9849 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9850 cat >> confdefs.h <<EOF
9851 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9852 EOF
9853
9854
9855 esac
9856
9857
9858 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
9859 echo "configure:9860: checking size of wchar_t" >&5
9860 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
9861 echo $ac_n "(cached) $ac_c" 1>&6
9862 else
9863
9864 if test "$cross_compiling" = yes; then
9865 wx_cv_sizeof_wchar_t=4
9866
9867 else
9868 cat > conftest.$ac_ext <<EOF
9869 #line 9870 "configure"
9870 #include "confdefs.h"
9871
9872 #ifdef HAVE_WCHAR_H
9873 # ifdef __CYGWIN__
9874 # include <stddef.h>
9875 # endif
9876 # include <wchar.h>
9877 #endif
9878 #ifdef HAVE_STDLIB_H
9879 # include <stdlib.h>
9880 #endif
9881 #include <stdio.h>
9882 int main()
9883 {
9884 FILE *f=fopen("conftestval", "w");
9885 if (!f) exit(1);
9886 fprintf(f, "%i", sizeof(wchar_t));
9887 exit(0);
9888 }
9889
9890 EOF
9891 if { (eval echo configure:9892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9892 then
9893 wx_cv_sizeof_wchar_t=`cat conftestval`
9894 else
9895 echo "configure: failed program was:" >&5
9896 cat conftest.$ac_ext >&5
9897 rm -fr conftest*
9898 wx_cv_sizeof_wchar_t=0
9899 fi
9900 rm -fr conftest*
9901 fi
9902
9903
9904 fi
9905
9906 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
9907
9908 cat >> confdefs.h <<EOF
9909 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
9910 EOF
9911
9912
9913 # Check whether --enable-largefile or --disable-largefile was given.
9914 if test "${enable_largefile+set}" = set; then
9915 enableval="$enable_largefile"
9916 :
9917 fi
9918
9919 if test "$enable_largefile" != no; then
9920
9921 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
9922 echo "configure:9923: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9923 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
9924 echo $ac_n "(cached) $ac_c" 1>&6
9925 else
9926
9927 cat > conftest.$ac_ext <<EOF
9928 #line 9929 "configure"
9929 #include "confdefs.h"
9930 #define _FILE_OFFSET_BITS 64
9931 #include <sys/types.h>
9932 int main() {
9933 typedef struct {
9934 unsigned int field: sizeof(off_t) == 8;
9935 } wxlf;
9936
9937 ; return 0; }
9938 EOF
9939 if { (eval echo configure:9940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9940 rm -rf conftest*
9941 ac_cv_sys_file_offset_bits=64
9942 else
9943 echo "configure: failed program was:" >&5
9944 cat conftest.$ac_ext >&5
9945 rm -rf conftest*
9946 ac_cv_sys_file_offset_bits=no
9947 fi
9948 rm -f conftest*
9949
9950
9951 fi
9952
9953 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
9954
9955 if test "$ac_cv_sys_file_offset_bits" != no; then
9956 $wx_largefile=yes
9957 cat >> confdefs.h <<EOF
9958 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9959 EOF
9960
9961 fi
9962
9963 if test "x$wx_largefile" != "xyes"; then
9964
9965 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
9966 echo "configure:9967: checking for _LARGE_FILES value needed for large files" >&5
9967 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
9968 echo $ac_n "(cached) $ac_c" 1>&6
9969 else
9970
9971 cat > conftest.$ac_ext <<EOF
9972 #line 9973 "configure"
9973 #include "confdefs.h"
9974 #define _LARGE_FILES 1
9975 #include <sys/types.h>
9976 int main() {
9977 typedef struct {
9978 unsigned int field: sizeof(off_t) == 8;
9979 } wxlf;
9980
9981 ; return 0; }
9982 EOF
9983 if { (eval echo configure:9984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9984 rm -rf conftest*
9985 ac_cv_sys_large_files=1
9986 else
9987 echo "configure: failed program was:" >&5
9988 cat conftest.$ac_ext >&5
9989 rm -rf conftest*
9990 ac_cv_sys_large_files=no
9991 fi
9992 rm -f conftest*
9993
9994
9995 fi
9996
9997 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
9998
9999 if test "$ac_cv_sys_large_files" != no; then
10000 $wx_largefile=yes
10001 cat >> confdefs.h <<EOF
10002 #define _LARGE_FILES $ac_cv_sys_large_files
10003 EOF
10004
10005 fi
10006
10007 fi
10008
10009 if test "x$wx_largefile" = "xyes"; then
10010 cat >> confdefs.h <<\EOF
10011 #define HAVE_LARGEFILE_SUPPORT 1
10012 EOF
10013
10014 fi
10015 fi
10016
10017
10018 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10019 echo "configure:10020: checking whether byte ordering is bigendian" >&5
10020 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10021 echo $ac_n "(cached) $ac_c" 1>&6
10022 else
10023 ac_cv_c_bigendian=unknown
10024 # See if sys/param.h defines the BYTE_ORDER macro.
10025 cat > conftest.$ac_ext <<EOF
10026 #line 10027 "configure"
10027 #include "confdefs.h"
10028 #include <sys/types.h>
10029 #include <sys/param.h>
10030 int main() {
10031
10032 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10033 bogus endian macros
10034 #endif
10035 ; return 0; }
10036 EOF
10037 if { (eval echo configure:10038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10038 rm -rf conftest*
10039 # It does; now see whether it defined to BIG_ENDIAN or not.
10040 cat > conftest.$ac_ext <<EOF
10041 #line 10042 "configure"
10042 #include "confdefs.h"
10043 #include <sys/types.h>
10044 #include <sys/param.h>
10045 int main() {
10046
10047 #if BYTE_ORDER != BIG_ENDIAN
10048 not big endian
10049 #endif
10050 ; return 0; }
10051 EOF
10052 if { (eval echo configure:10053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10053 rm -rf conftest*
10054 ac_cv_c_bigendian=yes
10055 else
10056 echo "configure: failed program was:" >&5
10057 cat conftest.$ac_ext >&5
10058 rm -rf conftest*
10059 ac_cv_c_bigendian=no
10060 fi
10061 rm -f conftest*
10062 else
10063 echo "configure: failed program was:" >&5
10064 cat conftest.$ac_ext >&5
10065 fi
10066 rm -f conftest*
10067 if test $ac_cv_c_bigendian = unknown; then
10068 if test "$cross_compiling" = yes; then
10069 ac_cv_c_bigendian=unknown
10070 else
10071 cat > conftest.$ac_ext <<EOF
10072 #line 10073 "configure"
10073 #include "confdefs.h"
10074 main () {
10075 /* Are we little or big endian? From Harbison&Steele. */
10076 union
10077 {
10078 long l;
10079 char c[sizeof (long)];
10080 } u;
10081 u.l = 1;
10082 exit (u.c[sizeof (long) - 1] == 1);
10083 }
10084 EOF
10085 if { (eval echo configure:10086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10086 then
10087 ac_cv_c_bigendian=no
10088 else
10089 echo "configure: failed program was:" >&5
10090 cat conftest.$ac_ext >&5
10091 rm -fr conftest*
10092 ac_cv_c_bigendian=yes
10093 fi
10094 rm -fr conftest*
10095 fi
10096
10097 fi
10098 fi
10099
10100 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10101 if test $ac_cv_c_bigendian = unknown; then
10102 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
10103 fi
10104 if test $ac_cv_c_bigendian = yes; then
10105 cat >> confdefs.h <<\EOF
10106 #define WORDS_BIGENDIAN 1
10107 EOF
10108
10109 fi
10110
10111
10112 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
10113 echo "configure:10114: checking how to run the C++ preprocessor" >&5
10114 if test -z "$CXXCPP"; then
10115 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
10116 echo $ac_n "(cached) $ac_c" 1>&6
10117 else
10118 ac_ext=C
10119 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10120 ac_cpp='$CXXCPP $CPPFLAGS'
10121 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10122 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10123 cross_compiling=$ac_cv_prog_cxx_cross
10124 CXXCPP="${CXX-g++} -E"
10125 cat > conftest.$ac_ext <<EOF
10126 #line 10127 "configure"
10127 #include "confdefs.h"
10128 #include <stdlib.h>
10129 EOF
10130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10131 { (eval echo configure:10132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10133 if test -z "$ac_err"; then
10134 :
10135 else
10136 echo "$ac_err" >&5
10137 echo "configure: failed program was:" >&5
10138 cat conftest.$ac_ext >&5
10139 rm -rf conftest*
10140 CXXCPP=/lib/cpp
10141 fi
10142 rm -f conftest*
10143 ac_cv_prog_CXXCPP="$CXXCPP"
10144 ac_ext=C
10145 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10146 ac_cpp='$CXXCPP $CPPFLAGS'
10147 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10148 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10149 cross_compiling=$ac_cv_prog_cxx_cross
10150 fi
10151 fi
10152 CXXCPP="$ac_cv_prog_CXXCPP"
10153 echo "$ac_t""$CXXCPP" 1>&6
10154
10155
10156 if test "$cross_compiling" = "yes"; then
10157 cat >> confdefs.h <<\EOF
10158 #define wxUSE_IOSTREAMH 1
10159 EOF
10160
10161 else
10162
10163 ac_ext=C
10164 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10165 ac_cpp='$CXXCPP $CPPFLAGS'
10166 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10167 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10168 cross_compiling=$ac_cv_prog_cxx_cross
10169
10170
10171 for ac_hdr in iostream
10172 do
10173 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10174 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10175 echo "configure:10176: checking for $ac_hdr" >&5
10176 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10177 echo $ac_n "(cached) $ac_c" 1>&6
10178 else
10179 cat > conftest.$ac_ext <<EOF
10180 #line 10181 "configure"
10181 #include "confdefs.h"
10182 #include <$ac_hdr>
10183 EOF
10184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10185 { (eval echo configure:10186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10186 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10187 if test -z "$ac_err"; then
10188 rm -rf conftest*
10189 eval "ac_cv_header_$ac_safe=yes"
10190 else
10191 echo "$ac_err" >&5
10192 echo "configure: failed program was:" >&5
10193 cat conftest.$ac_ext >&5
10194 rm -rf conftest*
10195 eval "ac_cv_header_$ac_safe=no"
10196 fi
10197 rm -f conftest*
10198 fi
10199 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10200 echo "$ac_t""yes" 1>&6
10201 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10202 cat >> confdefs.h <<EOF
10203 #define $ac_tr_hdr 1
10204 EOF
10205
10206 else
10207 echo "$ac_t""no" 1>&6
10208 fi
10209 done
10210
10211
10212 if test "$ac_cv_header_iostream" = "yes" ; then
10213 :
10214 else
10215 cat >> confdefs.h <<\EOF
10216 #define wxUSE_IOSTREAMH 1
10217 EOF
10218
10219 fi
10220
10221 ac_ext=c
10222 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10223 ac_cpp='$CPP $CPPFLAGS'
10224 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10225 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10226 cross_compiling=$ac_cv_prog_cc_cross
10227
10228 fi
10229
10230
10231
10232 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
10233 echo "configure:10234: checking if C++ compiler supports bool" >&5
10234 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10235 echo $ac_n "(cached) $ac_c" 1>&6
10236 else
10237
10238
10239 ac_ext=C
10240 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10241 ac_cpp='$CXXCPP $CPPFLAGS'
10242 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10243 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10244 cross_compiling=$ac_cv_prog_cxx_cross
10245
10246
10247 cat > conftest.$ac_ext <<EOF
10248 #line 10249 "configure"
10249 #include "confdefs.h"
10250
10251
10252 int main() {
10253
10254 bool b = true;
10255
10256 return 0;
10257
10258 ; return 0; }
10259 EOF
10260 if { (eval echo configure:10261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10261 rm -rf conftest*
10262
10263 wx_cv_cpp_bool=yes
10264
10265 else
10266 echo "configure: failed program was:" >&5
10267 cat conftest.$ac_ext >&5
10268 rm -rf conftest*
10269
10270 wx_cv_cpp_bool=no
10271
10272
10273 fi
10274 rm -f conftest*
10275
10276 ac_ext=c
10277 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10278 ac_cpp='$CPP $CPPFLAGS'
10279 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10280 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10281 cross_compiling=$ac_cv_prog_cc_cross
10282
10283
10284 fi
10285
10286 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10287
10288 if test "$wx_cv_cpp_bool" = "yes"; then
10289 cat >> confdefs.h <<\EOF
10290 #define HAVE_BOOL 1
10291 EOF
10292
10293 fi
10294
10295
10296
10297 SEARCH_INCLUDE="\
10298 /usr/local/include \
10299 \
10300 /usr/Motif-1.2/include \
10301 /usr/Motif-2.1/include \
10302 \
10303 /usr/include/Motif1.2 \
10304 /opt/xpm/include/X11 \
10305 /opt/GBxpm/include/ \
10306 /opt/GBxpm/X11/include/ \
10307 \
10308 /usr/Motif1.2/include \
10309 /usr/dt/include \
10310 /usr/openwin/include \
10311 \
10312 /usr/include/Xm \
10313 \
10314 /usr/X11R6/include \
10315 /usr/X11R6.4/include \
10316 /usr/X11R5/include \
10317 /usr/X11R4/include \
10318 \
10319 /usr/include/X11R6 \
10320 /usr/include/X11R5 \
10321 /usr/include/X11R4 \
10322 \
10323 /usr/local/X11R6/include \
10324 /usr/local/X11R5/include \
10325 /usr/local/X11R4/include \
10326 \
10327 /usr/local/include/X11R6 \
10328 /usr/local/include/X11R5 \
10329 /usr/local/include/X11R4 \
10330 \
10331 /usr/X11/include \
10332 /usr/include/X11 \
10333 /usr/local/X11/include \
10334 /usr/local/include/X11 \
10335 \
10336 /usr/X386/include \
10337 /usr/x386/include \
10338 /usr/XFree86/include/X11 \
10339 \
10340 X:/XFree86/include \
10341 X:/XFree86/include/X11 \
10342 \
10343 /usr/include/gtk \
10344 /usr/local/include/gtk \
10345 /usr/include/glib \
10346 /usr/local/include/glib \
10347 \
10348 /usr/include/qt \
10349 /usr/local/include/qt \
10350 \
10351 /usr/include/windows \
10352 /usr/include/wine \
10353 /usr/local/include/wine \
10354 \
10355 /usr/unsupported/include \
10356 /usr/athena/include \
10357 /usr/local/x11r5/include \
10358 /usr/lpp/Xamples/include \
10359 \
10360 /usr/openwin/share/include \
10361 \
10362 /usr/include"
10363
10364 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
10365
10366
10367 cat > confcache <<\EOF
10368 # This file is a shell script that caches the results of configure
10369 # tests run on this system so they can be shared between configure
10370 # scripts and configure runs. It is not useful on other systems.
10371 # If it contains results you don't want to keep, you may remove or edit it.
10372 #
10373 # By default, configure uses ./config.cache as the cache file,
10374 # creating it if it does not exist already. You can give configure
10375 # the --cache-file=FILE option to use a different cache file; that is
10376 # what configure does when it calls configure scripts in
10377 # subdirectories, so they share the cache.
10378 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10379 # config.status only pays attention to the cache file if you give it the
10380 # --recheck option to rerun configure.
10381 #
10382 EOF
10383 # The following way of writing the cache mishandles newlines in values,
10384 # but we know of no workaround that is simple, portable, and efficient.
10385 # So, don't put newlines in cache variables' values.
10386 # Ultrix sh set writes to stderr and can't be redirected directly,
10387 # and sets the high bit in the cache file unless we assign to the vars.
10388 (set) 2>&1 |
10389 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10390 *ac_space=\ *)
10391 # `set' does not quote correctly, so add quotes (double-quote substitution
10392 # turns \\\\ into \\, and sed turns \\ into \).
10393 sed -n \
10394 -e "s/'/'\\\\''/g" \
10395 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10396 ;;
10397 *)
10398 # `set' quotes correctly as required by POSIX, so do not add quotes.
10399 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10400 ;;
10401 esac >> confcache
10402 if cmp -s $cache_file confcache; then
10403 :
10404 else
10405 if test -w $cache_file; then
10406 echo "updating cache $cache_file"
10407 cat confcache > $cache_file
10408 else
10409 echo "not updating unwritable cache $cache_file"
10410 fi
10411 fi
10412 rm -f confcache
10413
10414
10415 if test "$USE_LINUX" = 1; then
10416 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
10417 echo "configure:10418: checking for glibc 2.1 or later" >&5
10418 if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
10419 echo $ac_n "(cached) $ac_c" 1>&6
10420 else
10421
10422 cat > conftest.$ac_ext <<EOF
10423 #line 10424 "configure"
10424 #include "confdefs.h"
10425 #include <features.h>
10426 int main() {
10427
10428 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
10429 #error not glibc2.1
10430 #endif
10431
10432 ; return 0; }
10433 EOF
10434 if { (eval echo configure:10435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10435 rm -rf conftest*
10436
10437 wx_cv_lib_glibc21=yes
10438
10439 else
10440 echo "configure: failed program was:" >&5
10441 cat conftest.$ac_ext >&5
10442 rm -rf conftest*
10443
10444 wx_cv_lib_glibc21=no
10445
10446
10447 fi
10448 rm -f conftest*
10449
10450 fi
10451
10452 echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
10453 if test "$wx_cv_lib_glibc21" = "yes"; then
10454 cat >> confdefs.h <<\EOF
10455 #define wxHAVE_GLIBC2 1
10456 EOF
10457
10458 fi
10459 fi
10460
10461
10462
10463 REGEX_INCLUDE=
10464 if test "$wxUSE_REGEX" != "no"; then
10465 cat >> confdefs.h <<\EOF
10466 #define wxUSE_REGEX 1
10467 EOF
10468
10469
10470 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
10471 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
10472 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
10473 echo "configure:10474: checking for regex.h" >&5
10474 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10475 echo $ac_n "(cached) $ac_c" 1>&6
10476 else
10477 cat > conftest.$ac_ext <<EOF
10478 #line 10479 "configure"
10479 #include "confdefs.h"
10480 #include <regex.h>
10481 EOF
10482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10483 { (eval echo configure:10484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10485 if test -z "$ac_err"; then
10486 rm -rf conftest*
10487 eval "ac_cv_header_$ac_safe=yes"
10488 else
10489 echo "$ac_err" >&5
10490 echo "configure: failed program was:" >&5
10491 cat conftest.$ac_ext >&5
10492 rm -rf conftest*
10493 eval "ac_cv_header_$ac_safe=no"
10494 fi
10495 rm -f conftest*
10496 fi
10497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10498 echo "$ac_t""yes" 1>&6
10499 for ac_func in regcomp
10500 do
10501 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10502 echo "configure:10503: checking for $ac_func" >&5
10503 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10504 echo $ac_n "(cached) $ac_c" 1>&6
10505 else
10506 cat > conftest.$ac_ext <<EOF
10507 #line 10508 "configure"
10508 #include "confdefs.h"
10509 /* System header to define __stub macros and hopefully few prototypes,
10510 which can conflict with char $ac_func(); below. */
10511 #include <assert.h>
10512 /* Override any gcc2 internal prototype to avoid an error. */
10513 /* We use char because int might match the return type of a gcc2
10514 builtin and then its argument prototype would still apply. */
10515 char $ac_func();
10516
10517 int main() {
10518
10519 /* The GNU C library defines this for functions which it implements
10520 to always fail with ENOSYS. Some functions are actually named
10521 something starting with __ and the normal name is an alias. */
10522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10523 choke me
10524 #else
10525 $ac_func();
10526 #endif
10527
10528 ; return 0; }
10529 EOF
10530 if { (eval echo configure:10531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10531 rm -rf conftest*
10532 eval "ac_cv_func_$ac_func=yes"
10533 else
10534 echo "configure: failed program was:" >&5
10535 cat conftest.$ac_ext >&5
10536 rm -rf conftest*
10537 eval "ac_cv_func_$ac_func=no"
10538 fi
10539 rm -f conftest*
10540 fi
10541
10542 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10543 echo "$ac_t""yes" 1>&6
10544 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10545 cat >> confdefs.h <<EOF
10546 #define $ac_tr_func 1
10547 EOF
10548
10549 else
10550 echo "$ac_t""no" 1>&6
10551 fi
10552 done
10553
10554 else
10555 echo "$ac_t""no" 1>&6
10556 fi
10557
10558
10559 if test "x$ac_cv_func_regcomp" != "xyes"; then
10560 if test "$wxUSE_REGEX" = "sys" ; then
10561 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
10562 else
10563 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
10564 wxUSE_REGEX=builtin
10565 fi
10566 else
10567 wxUSE_REGEX=sys
10568 fi
10569 fi
10570
10571 if test "$wxUSE_REGEX" = "builtin" ; then
10572 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
10573 fi
10574 fi
10575
10576
10577 ZLIB_INCLUDE=
10578 ZLIB_LINK=
10579 if test "$wxUSE_ZLIB" != "no" ; then
10580 cat >> confdefs.h <<\EOF
10581 #define wxUSE_ZLIB 1
10582 EOF
10583
10584
10585 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
10586 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
10587 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
10588 echo "configure:10589: checking for zlib.h" >&5
10589 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10590 echo $ac_n "(cached) $ac_c" 1>&6
10591 else
10592 cat > conftest.$ac_ext <<EOF
10593 #line 10594 "configure"
10594 #include "confdefs.h"
10595 #include <zlib.h>
10596 EOF
10597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10598 { (eval echo configure:10599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10600 if test -z "$ac_err"; then
10601 rm -rf conftest*
10602 eval "ac_cv_header_$ac_safe=yes"
10603 else
10604 echo "$ac_err" >&5
10605 echo "configure: failed program was:" >&5
10606 cat conftest.$ac_ext >&5
10607 rm -rf conftest*
10608 eval "ac_cv_header_$ac_safe=no"
10609 fi
10610 rm -f conftest*
10611 fi
10612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10613 echo "$ac_t""yes" 1>&6
10614 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
10615 echo "configure:10616: checking for deflate in -lz" >&5
10616 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
10617 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10618 echo $ac_n "(cached) $ac_c" 1>&6
10619 else
10620 ac_save_LIBS="$LIBS"
10621 LIBS="-lz $LIBS"
10622 cat > conftest.$ac_ext <<EOF
10623 #line 10624 "configure"
10624 #include "confdefs.h"
10625 /* Override any gcc2 internal prototype to avoid an error. */
10626 /* We use char because int might match the return type of a gcc2
10627 builtin and then its argument prototype would still apply. */
10628 char deflate();
10629
10630 int main() {
10631 deflate()
10632 ; return 0; }
10633 EOF
10634 if { (eval echo configure:10635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10635 rm -rf conftest*
10636 eval "ac_cv_lib_$ac_lib_var=yes"
10637 else
10638 echo "configure: failed program was:" >&5
10639 cat conftest.$ac_ext >&5
10640 rm -rf conftest*
10641 eval "ac_cv_lib_$ac_lib_var=no"
10642 fi
10643 rm -f conftest*
10644 LIBS="$ac_save_LIBS"
10645
10646 fi
10647 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10648 echo "$ac_t""yes" 1>&6
10649 ZLIB_LINK=" -lz"
10650 else
10651 echo "$ac_t""no" 1>&6
10652 fi
10653
10654 else
10655 echo "$ac_t""no" 1>&6
10656 fi
10657
10658
10659 if test "x$ZLIB_LINK" = "x" ; then
10660 if test "$wxUSE_ZLIB" = "sys" ; then
10661 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
10662 else
10663 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
10664 wxUSE_ZLIB=builtin
10665 fi
10666 else
10667 wxUSE_ZLIB=sys
10668 fi
10669 fi
10670
10671 if test "$wxUSE_ZLIB" = "builtin" ; then
10672 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
10673 fi
10674 fi
10675
10676
10677 PNG_INCLUDE=
10678 PNG_LINK=
10679 if test "$wxUSE_LIBPNG" != "no" ; then
10680 cat >> confdefs.h <<\EOF
10681 #define wxUSE_LIBPNG 1
10682 EOF
10683
10684
10685 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
10686 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
10687 wxUSE_LIBPNG=sys
10688 fi
10689
10690 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
10691 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
10692 wxUSE_LIBPNG=builtin
10693 fi
10694
10695 if test "$wxUSE_MGL" != 1 ; then
10696 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
10697 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
10698 echo $ac_n "checking for png.h""... $ac_c" 1>&6
10699 echo "configure:10700: checking for png.h" >&5
10700 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10701 echo $ac_n "(cached) $ac_c" 1>&6
10702 else
10703 cat > conftest.$ac_ext <<EOF
10704 #line 10705 "configure"
10705 #include "confdefs.h"
10706 #include <png.h>
10707 EOF
10708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10709 { (eval echo configure:10710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10711 if test -z "$ac_err"; then
10712 rm -rf conftest*
10713 eval "ac_cv_header_$ac_safe=yes"
10714 else
10715 echo "$ac_err" >&5
10716 echo "configure: failed program was:" >&5
10717 cat conftest.$ac_ext >&5
10718 rm -rf conftest*
10719 eval "ac_cv_header_$ac_safe=no"
10720 fi
10721 rm -f conftest*
10722 fi
10723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10724 echo "$ac_t""yes" 1>&6
10725 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
10726 echo "configure:10727: checking for png_check_sig in -lpng" >&5
10727 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
10728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10729 echo $ac_n "(cached) $ac_c" 1>&6
10730 else
10731 ac_save_LIBS="$LIBS"
10732 LIBS="-lpng -lz -lm $LIBS"
10733 cat > conftest.$ac_ext <<EOF
10734 #line 10735 "configure"
10735 #include "confdefs.h"
10736 /* Override any gcc2 internal prototype to avoid an error. */
10737 /* We use char because int might match the return type of a gcc2
10738 builtin and then its argument prototype would still apply. */
10739 char png_check_sig();
10740
10741 int main() {
10742 png_check_sig()
10743 ; return 0; }
10744 EOF
10745 if { (eval echo configure:10746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10746 rm -rf conftest*
10747 eval "ac_cv_lib_$ac_lib_var=yes"
10748 else
10749 echo "configure: failed program was:" >&5
10750 cat conftest.$ac_ext >&5
10751 rm -rf conftest*
10752 eval "ac_cv_lib_$ac_lib_var=no"
10753 fi
10754 rm -f conftest*
10755 LIBS="$ac_save_LIBS"
10756
10757 fi
10758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10759 echo "$ac_t""yes" 1>&6
10760 PNG_LINK=" -lpng"
10761 else
10762 echo "$ac_t""no" 1>&6
10763 fi
10764
10765
10766 else
10767 echo "$ac_t""no" 1>&6
10768 fi
10769
10770
10771 if test "x$PNG_LINK" = "x" ; then
10772 if test "$wxUSE_LIBPNG" = "sys" ; then
10773 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
10774 else
10775 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
10776 wxUSE_LIBPNG=builtin
10777 fi
10778 else
10779 wxUSE_LIBPNG=yes
10780 fi
10781 fi
10782 fi
10783
10784 if test "$wxUSE_LIBPNG" = "builtin" ; then
10785 PNG_INCLUDE="-I\${top_srcdir}/src/png"
10786 fi
10787
10788 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
10789 fi
10790
10791
10792 JPEG_INCLUDE=
10793 JPEG_LINK=
10794 if test "$wxUSE_LIBJPEG" != "no" ; then
10795 cat >> confdefs.h <<\EOF
10796 #define wxUSE_LIBJPEG 1
10797 EOF
10798
10799
10800 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
10801 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
10802 wxUSE_LIBJPEG=sys
10803 fi
10804
10805 if test "$wxUSE_MGL" != 1 ; then
10806 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
10807 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
10808 echo "configure:10809: checking for jpeglib.h" >&5
10809 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
10810 echo $ac_n "(cached) $ac_c" 1>&6
10811 else
10812 cat > conftest.$ac_ext <<EOF
10813 #line 10814 "configure"
10814 #include "confdefs.h"
10815
10816 #undef HAVE_STDLIB_H
10817 #include <stdio.h>
10818 #include <jpeglib.h>
10819
10820 int main() {
10821
10822
10823 ; return 0; }
10824 EOF
10825 if { (eval echo configure:10826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10826 rm -rf conftest*
10827 ac_cv_header_jpeglib_h=yes
10828 else
10829 echo "configure: failed program was:" >&5
10830 cat conftest.$ac_ext >&5
10831 rm -rf conftest*
10832 ac_cv_header_jpeglib_h=no
10833
10834 fi
10835 rm -f conftest*
10836
10837 fi
10838
10839 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
10840
10841 if test "$ac_cv_header_jpeglib_h" = "yes"; then
10842 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
10843 echo "configure:10844: checking for jpeg_read_header in -ljpeg" >&5
10844 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
10845 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10846 echo $ac_n "(cached) $ac_c" 1>&6
10847 else
10848 ac_save_LIBS="$LIBS"
10849 LIBS="-ljpeg $LIBS"
10850 cat > conftest.$ac_ext <<EOF
10851 #line 10852 "configure"
10852 #include "confdefs.h"
10853 /* Override any gcc2 internal prototype to avoid an error. */
10854 /* We use char because int might match the return type of a gcc2
10855 builtin and then its argument prototype would still apply. */
10856 char jpeg_read_header();
10857
10858 int main() {
10859 jpeg_read_header()
10860 ; return 0; }
10861 EOF
10862 if { (eval echo configure:10863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10863 rm -rf conftest*
10864 eval "ac_cv_lib_$ac_lib_var=yes"
10865 else
10866 echo "configure: failed program was:" >&5
10867 cat conftest.$ac_ext >&5
10868 rm -rf conftest*
10869 eval "ac_cv_lib_$ac_lib_var=no"
10870 fi
10871 rm -f conftest*
10872 LIBS="$ac_save_LIBS"
10873
10874 fi
10875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10876 echo "$ac_t""yes" 1>&6
10877 JPEG_LINK=" -ljpeg"
10878 else
10879 echo "$ac_t""no" 1>&6
10880 fi
10881
10882 fi
10883
10884 if test "x$JPEG_LINK" = "x" ; then
10885 if test "$wxUSE_LIBJPEG" = "sys" ; then
10886 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
10887 else
10888 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
10889 wxUSE_LIBJPEG=builtin
10890 fi
10891 else
10892 wxUSE_LIBJPEG=sys
10893 fi
10894 fi
10895 fi
10896
10897 if test "$wxUSE_LIBJPEG" = "builtin" ; then
10898 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
10899 fi
10900 fi
10901
10902
10903 TIFF_INCLUDE=
10904 TIFF_LINK=
10905 if test "$wxUSE_LIBTIFF" != "no" ; then
10906 cat >> confdefs.h <<\EOF
10907 #define wxUSE_LIBTIFF 1
10908 EOF
10909
10910
10911 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
10912 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
10913 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
10914 echo "configure:10915: checking for tiffio.h" >&5
10915 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10916 echo $ac_n "(cached) $ac_c" 1>&6
10917 else
10918 cat > conftest.$ac_ext <<EOF
10919 #line 10920 "configure"
10920 #include "confdefs.h"
10921 #include <tiffio.h>
10922 EOF
10923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10924 { (eval echo configure:10925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10926 if test -z "$ac_err"; then
10927 rm -rf conftest*
10928 eval "ac_cv_header_$ac_safe=yes"
10929 else
10930 echo "$ac_err" >&5
10931 echo "configure: failed program was:" >&5
10932 cat conftest.$ac_ext >&5
10933 rm -rf conftest*
10934 eval "ac_cv_header_$ac_safe=no"
10935 fi
10936 rm -f conftest*
10937 fi
10938 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10939 echo "$ac_t""yes" 1>&6
10940 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
10941 echo "configure:10942: checking for TIFFError in -ltiff" >&5
10942 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
10943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10944 echo $ac_n "(cached) $ac_c" 1>&6
10945 else
10946 ac_save_LIBS="$LIBS"
10947 LIBS="-ltiff -lm $LIBS"
10948 cat > conftest.$ac_ext <<EOF
10949 #line 10950 "configure"
10950 #include "confdefs.h"
10951 /* Override any gcc2 internal prototype to avoid an error. */
10952 /* We use char because int might match the return type of a gcc2
10953 builtin and then its argument prototype would still apply. */
10954 char TIFFError();
10955
10956 int main() {
10957 TIFFError()
10958 ; return 0; }
10959 EOF
10960 if { (eval echo configure:10961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10961 rm -rf conftest*
10962 eval "ac_cv_lib_$ac_lib_var=yes"
10963 else
10964 echo "configure: failed program was:" >&5
10965 cat conftest.$ac_ext >&5
10966 rm -rf conftest*
10967 eval "ac_cv_lib_$ac_lib_var=no"
10968 fi
10969 rm -f conftest*
10970 LIBS="$ac_save_LIBS"
10971
10972 fi
10973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10974 echo "$ac_t""yes" 1>&6
10975 TIFF_LINK=" -ltiff"
10976 else
10977 echo "$ac_t""no" 1>&6
10978 fi
10979
10980
10981 else
10982 echo "$ac_t""no" 1>&6
10983 fi
10984
10985
10986 if test "x$TIFF_LINK" = "x" ; then
10987 if test "$wxUSE_LIBTIFF" = "sys" ; then
10988 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
10989 else
10990 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
10991 wxUSE_LIBTIFF=builtin
10992 fi
10993 else
10994 wxUSE_LIBTIFF=sys
10995 fi
10996 fi
10997
10998 if test "$wxUSE_LIBTIFF" = "builtin" ; then
10999 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11000 fi
11001 fi
11002
11003
11004 AFMINSTALL=
11005
11006 TOOLKIT=
11007 TOOLKIT_INCLUDE=
11008 WIDGET_SET=
11009
11010 if test "$USE_WIN32" = 1 ; then
11011 for ac_hdr in w32api.h
11012 do
11013 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11014 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11015 echo "configure:11016: checking for $ac_hdr" >&5
11016 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11017 echo $ac_n "(cached) $ac_c" 1>&6
11018 else
11019 cat > conftest.$ac_ext <<EOF
11020 #line 11021 "configure"
11021 #include "confdefs.h"
11022 #include <$ac_hdr>
11023 EOF
11024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11025 { (eval echo configure:11026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11026 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11027 if test -z "$ac_err"; then
11028 rm -rf conftest*
11029 eval "ac_cv_header_$ac_safe=yes"
11030 else
11031 echo "$ac_err" >&5
11032 echo "configure: failed program was:" >&5
11033 cat conftest.$ac_ext >&5
11034 rm -rf conftest*
11035 eval "ac_cv_header_$ac_safe=no"
11036 fi
11037 rm -f conftest*
11038 fi
11039 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11040 echo "$ac_t""yes" 1>&6
11041 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11042 cat >> confdefs.h <<EOF
11043 #define $ac_tr_hdr 1
11044 EOF
11045
11046 else
11047 echo "$ac_t""no" 1>&6
11048 fi
11049 done
11050
11051 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11052 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
11053 echo "configure:11054: checking for windows.h" >&5
11054 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11055 echo $ac_n "(cached) $ac_c" 1>&6
11056 else
11057 cat > conftest.$ac_ext <<EOF
11058 #line 11059 "configure"
11059 #include "confdefs.h"
11060 #include <windows.h>
11061 EOF
11062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11063 { (eval echo configure:11064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11065 if test -z "$ac_err"; then
11066 rm -rf conftest*
11067 eval "ac_cv_header_$ac_safe=yes"
11068 else
11069 echo "$ac_err" >&5
11070 echo "configure: failed program was:" >&5
11071 cat conftest.$ac_ext >&5
11072 rm -rf conftest*
11073 eval "ac_cv_header_$ac_safe=no"
11074 fi
11075 rm -f conftest*
11076 fi
11077 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11078 echo "$ac_t""yes" 1>&6
11079 :
11080 else
11081 echo "$ac_t""no" 1>&6
11082
11083 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
11084
11085 fi
11086
11087
11088 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
11089 echo "configure:11090: checking if w32api has good enough MSIE support" >&5
11090 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
11091 echo $ac_n "(cached) $ac_c" 1>&6
11092 else
11093
11094 cat > conftest.$ac_ext <<EOF
11095 #line 11096 "configure"
11096 #include "confdefs.h"
11097 #include <w32api.h>
11098 int main() {
11099
11100 #define wxCHECK_W32API_VERSION( major, minor ) \
11101 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
11102 && ( ( __W32API_MAJOR_VERSION > (major) ) \
11103 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
11104
11105 #if !wxCHECK_W32API_VERSION(1,1)
11106 #error You need w32api 1.1 or newer
11107 #endif
11108
11109 ; return 0; }
11110 EOF
11111 if { (eval echo configure:11112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11112 rm -rf conftest*
11113
11114 wx_cv_w32api_win32_ie=yes
11115
11116 else
11117 echo "configure: failed program was:" >&5
11118 cat conftest.$ac_ext >&5
11119 rm -rf conftest*
11120
11121 wx_cv_w32api_win32_ie=no
11122
11123 fi
11124 rm -f conftest*
11125
11126 fi
11127
11128 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
11129 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
11130 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
11131 fi
11132
11133 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
11134
11135 case "${host}" in
11136 *-*-cygwin* )
11137 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
11138 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
11139 esac
11140
11141 if test "$wxUSE_ODBC" = "yes" ; then
11142 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
11143 fi
11144
11145 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
11146 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
11147 fi
11148
11149 if test "$wxUSE_GUI" = "yes"; then
11150 USE_GUI=1
11151
11152 GUI_TK_LIBRARY=
11153
11154 WXGTK12=
11155 WXGTK127=
11156 WXGTK20=
11157
11158 if test "$wxUSE_MSW" = 1 ; then
11159 TOOLKIT=MSW
11160 GUIDIST=MSW_DIST
11161
11162 case "${host}" in
11163 *-*-mingw32* )
11164 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
11165 esac
11166 fi
11167
11168 if test "$wxUSE_GTK" = 1; then
11169 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
11170 echo "configure:11171: checking for GTK+ version" >&5
11171
11172 gtk_version_cached=1
11173 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
11174 echo $ac_n "(cached) $ac_c" 1>&6
11175 else
11176
11177 gtk_version_cached=0
11178 echo "$ac_t""" 1>&6
11179
11180 GTK_MODULES=
11181 if test "$wxUSE_THREADS" = "yes"; then
11182 GTK_MODULES=gthread
11183 fi
11184
11185 wx_cv_lib_gtk=
11186 if test "x$wxUSE_GTK2" = "xyes"; then
11187 # Check whether --enable-gtktest or --disable-gtktest was given.
11188 if test "${enable_gtktest+set}" = set; then
11189 enableval="$enable_gtktest"
11190 :
11191 else
11192 enable_gtktest=yes
11193 fi
11194
11195
11196 pkg_config_args=gtk+-2.0
11197 for module in . $GTK_MODULES
11198 do
11199 case "$module" in
11200 gthread)
11201 pkg_config_args="$pkg_config_args gthread-2.0"
11202 ;;
11203 esac
11204 done
11205
11206 no_gtk=""
11207
11208 # Extract the first word of "pkg-config", so it can be a program name with args.
11209 set dummy pkg-config; ac_word=$2
11210 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11211 echo "configure:11212: checking for $ac_word" >&5
11212 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
11213 echo $ac_n "(cached) $ac_c" 1>&6
11214 else
11215 case "$PKG_CONFIG" in
11216 /*)
11217 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11218 ;;
11219 ?:/*)
11220 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
11221 ;;
11222 *)
11223 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11224 ac_dummy="$PATH"
11225 for ac_dir in $ac_dummy; do
11226 test -z "$ac_dir" && ac_dir=.
11227 if test -f $ac_dir/$ac_word; then
11228 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
11229 break
11230 fi
11231 done
11232 IFS="$ac_save_ifs"
11233 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11234 ;;
11235 esac
11236 fi
11237 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11238 if test -n "$PKG_CONFIG"; then
11239 echo "$ac_t""$PKG_CONFIG" 1>&6
11240 else
11241 echo "$ac_t""no" 1>&6
11242 fi
11243
11244
11245 if test x$PKG_CONFIG != xno ; then
11246 if pkg-config --atleast-pkgconfig-version 0.7 ; then
11247 :
11248 else
11249 echo *** pkg-config too old; version 0.7 or better required.
11250 no_gtk=yes
11251 PKG_CONFIG=no
11252 fi
11253 else
11254 no_gtk=yes
11255 fi
11256
11257 min_gtk_version=2.0.0
11258 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
11259 echo "configure:11260: checking for GTK+ - version >= $min_gtk_version" >&5
11260
11261 if test x$PKG_CONFIG != xno ; then
11262 ## don't try to run the test against uninstalled libtool libs
11263 if $PKG_CONFIG --uninstalled $pkg_config_args; then
11264 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
11265 enable_gtktest=no
11266 fi
11267
11268 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
11269 :
11270 else
11271 no_gtk=yes
11272 fi
11273 fi
11274
11275 if test x"$no_gtk" = x ; then
11276 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
11277 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
11278 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11279 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11280 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11281 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11282 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11283 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11284 if test "x$enable_gtktest" = "xyes" ; then
11285 ac_save_CFLAGS="$CFLAGS"
11286 ac_save_LIBS="$LIBS"
11287 CFLAGS="$CFLAGS $GTK_CFLAGS"
11288 LIBS="$GTK_LIBS $LIBS"
11289 rm -f conf.gtktest
11290 if test "$cross_compiling" = yes; then
11291 echo $ac_n "cross compiling; assumed OK... $ac_c"
11292 else
11293 cat > conftest.$ac_ext <<EOF
11294 #line 11295 "configure"
11295 #include "confdefs.h"
11296
11297 #include <gtk/gtk.h>
11298 #include <stdio.h>
11299 #include <stdlib.h>
11300
11301 int
11302 main ()
11303 {
11304 int major, minor, micro;
11305 char *tmp_version;
11306
11307 system ("touch conf.gtktest");
11308
11309 /* HP/UX 9 (%@#!) writes to sscanf strings */
11310 tmp_version = g_strdup("$min_gtk_version");
11311 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11312 printf("%s, bad version string\n", "$min_gtk_version");
11313 exit(1);
11314 }
11315
11316 if ((gtk_major_version != $gtk_config_major_version) ||
11317 (gtk_minor_version != $gtk_config_minor_version) ||
11318 (gtk_micro_version != $gtk_config_micro_version))
11319 {
11320 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11321 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11322 gtk_major_version, gtk_minor_version, gtk_micro_version);
11323 printf ("*** was found! If pkg-config was correct, then it is best\n");
11324 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11325 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11326 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11327 printf("*** required on your system.\n");
11328 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
11329 printf("*** to point to the correct configuration files\n");
11330 }
11331 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11332 (gtk_minor_version != GTK_MINOR_VERSION) ||
11333 (gtk_micro_version != GTK_MICRO_VERSION))
11334 {
11335 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11336 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11337 printf("*** library (version %d.%d.%d)\n",
11338 gtk_major_version, gtk_minor_version, gtk_micro_version);
11339 }
11340 else
11341 {
11342 if ((gtk_major_version > major) ||
11343 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11344 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11345 {
11346 return 0;
11347 }
11348 else
11349 {
11350 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11351 gtk_major_version, gtk_minor_version, gtk_micro_version);
11352 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11353 major, minor, micro);
11354 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11355 printf("***\n");
11356 printf("*** If you have already installed a sufficiently new version, this error\n");
11357 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
11358 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11359 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
11360 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
11361 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11362 printf("*** so that the correct libraries are found at run-time))\n");
11363 }
11364 }
11365 return 1;
11366 }
11367
11368 EOF
11369 if { (eval echo configure:11370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11370 then
11371 :
11372 else
11373 echo "configure: failed program was:" >&5
11374 cat conftest.$ac_ext >&5
11375 rm -fr conftest*
11376 no_gtk=yes
11377 fi
11378 rm -fr conftest*
11379 fi
11380
11381 CFLAGS="$ac_save_CFLAGS"
11382 LIBS="$ac_save_LIBS"
11383 fi
11384 fi
11385 if test "x$no_gtk" = x ; then
11386 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
11387 wx_cv_lib_gtk=2.0
11388 else
11389 echo "$ac_t""no" 1>&6
11390 if test "$PKG_CONFIG" = "no" ; then
11391 echo "*** A new enough version of pkg-config was not found."
11392 echo "*** See http://pkgconfig.sourceforge.net"
11393 else
11394 if test -f conf.gtktest ; then
11395 :
11396 else
11397 echo "*** Could not run GTK+ test program, checking why..."
11398 CFLAGS="$CFLAGS $GTK_CFLAGS"
11399 LIBS="$LIBS $GTK_LIBS"
11400 cat > conftest.$ac_ext <<EOF
11401 #line 11402 "configure"
11402 #include "confdefs.h"
11403
11404 #include <gtk/gtk.h>
11405 #include <stdio.h>
11406
11407 int main() {
11408 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11409 ; return 0; }
11410 EOF
11411 if { (eval echo configure:11412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11412 rm -rf conftest*
11413 echo "*** The test program compiled, but did not run. This usually means"
11414 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
11415 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
11416 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11417 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11418 echo "*** is required on your system"
11419 echo "***"
11420 echo "*** If you have an old version installed, it is best to remove it, although"
11421 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11422 else
11423 echo "configure: failed program was:" >&5
11424 cat conftest.$ac_ext >&5
11425 rm -rf conftest*
11426 echo "*** The test program failed to compile or link. See the file config.log for the"
11427 echo "*** exact error that occured. This usually means GTK+ was incorrectly installed"
11428 echo "*** or that you have moved GTK+ since it was installed. In the latter case, you"
11429 echo "*** may want to edit the pkg-config script: $PKG_CONFIG"
11430 fi
11431 rm -f conftest*
11432 CFLAGS="$ac_save_CFLAGS"
11433 LIBS="$ac_save_LIBS"
11434 fi
11435 fi
11436 GTK_CFLAGS=""
11437 GTK_LIBS=""
11438 :
11439 fi
11440
11441
11442 rm -f conf.gtktest
11443
11444 fi
11445
11446 if test -z "$wx_cv_lib_gtk"; then
11447 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
11448 if test "${with_gtk_prefix+set}" = set; then
11449 withval="$with_gtk_prefix"
11450 gtk_config_prefix="$withval"
11451 else
11452 gtk_config_prefix=""
11453 fi
11454
11455 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
11456 if test "${with_gtk_exec_prefix+set}" = set; then
11457 withval="$with_gtk_exec_prefix"
11458 gtk_config_exec_prefix="$withval"
11459 else
11460 gtk_config_exec_prefix=""
11461 fi
11462
11463 # Check whether --enable-gtktest or --disable-gtktest was given.
11464 if test "${enable_gtktest+set}" = set; then
11465 enableval="$enable_gtktest"
11466 :
11467 else
11468 enable_gtktest=yes
11469 fi
11470
11471
11472 for module in . $GTK_MODULES
11473 do
11474 case "$module" in
11475 gthread)
11476 gtk_config_args="$gtk_config_args gthread"
11477 ;;
11478 esac
11479 done
11480
11481 if test x$gtk_config_exec_prefix != x ; then
11482 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
11483 if test x${GTK_CONFIG+set} != xset ; then
11484 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
11485 fi
11486 fi
11487 if test x$gtk_config_prefix != x ; then
11488 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
11489 if test x${GTK_CONFIG+set} != xset ; then
11490 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
11491 fi
11492 fi
11493
11494 # Extract the first word of "gtk-config", so it can be a program name with args.
11495 set dummy gtk-config; ac_word=$2
11496 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11497 echo "configure:11498: checking for $ac_word" >&5
11498 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
11499 echo $ac_n "(cached) $ac_c" 1>&6
11500 else
11501 case "$GTK_CONFIG" in
11502 /*)
11503 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
11504 ;;
11505 ?:/*)
11506 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
11507 ;;
11508 *)
11509 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11510 ac_dummy="$PATH"
11511 for ac_dir in $ac_dummy; do
11512 test -z "$ac_dir" && ac_dir=.
11513 if test -f $ac_dir/$ac_word; then
11514 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
11515 break
11516 fi
11517 done
11518 IFS="$ac_save_ifs"
11519 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
11520 ;;
11521 esac
11522 fi
11523 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
11524 if test -n "$GTK_CONFIG"; then
11525 echo "$ac_t""$GTK_CONFIG" 1>&6
11526 else
11527 echo "$ac_t""no" 1>&6
11528 fi
11529
11530 min_gtk_version=1.2.7
11531 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
11532 echo "configure:11533: checking for GTK - version >= $min_gtk_version" >&5
11533 no_gtk=""
11534 if test "$GTK_CONFIG" = "no" ; then
11535 no_gtk=yes
11536 else
11537 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
11538 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
11539 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
11540 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11541 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
11542 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11543 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
11544 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11545 if test "x$enable_gtktest" = "xyes" ; then
11546 ac_save_CFLAGS="$CFLAGS"
11547 ac_save_LIBS="$LIBS"
11548 CFLAGS="$CFLAGS $GTK_CFLAGS"
11549 LIBS="$GTK_LIBS $LIBS"
11550 rm -f conf.gtktest
11551 if test "$cross_compiling" = yes; then
11552 echo $ac_n "cross compiling; assumed OK... $ac_c"
11553 else
11554 cat > conftest.$ac_ext <<EOF
11555 #line 11556 "configure"
11556 #include "confdefs.h"
11557
11558 #include <gtk/gtk.h>
11559 #include <stdio.h>
11560 #include <stdlib.h>
11561
11562 int
11563 main ()
11564 {
11565 int major, minor, micro;
11566 char *tmp_version;
11567
11568 system ("touch conf.gtktest");
11569
11570 /* HP/UX 9 (%@#!) writes to sscanf strings */
11571 tmp_version = g_strdup("$min_gtk_version");
11572 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11573 printf("%s, bad version string\n", "$min_gtk_version");
11574 exit(1);
11575 }
11576
11577 if ((gtk_major_version != $gtk_config_major_version) ||
11578 (gtk_minor_version != $gtk_config_minor_version) ||
11579 (gtk_micro_version != $gtk_config_micro_version))
11580 {
11581 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11582 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11583 gtk_major_version, gtk_minor_version, gtk_micro_version);
11584 printf ("*** was found! If gtk-config was correct, then it is best\n");
11585 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11586 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11587 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11588 printf("*** required on your system.\n");
11589 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
11590 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
11591 printf("*** before re-running configure\n");
11592 }
11593 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
11594 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11595 (gtk_minor_version != GTK_MINOR_VERSION) ||
11596 (gtk_micro_version != GTK_MICRO_VERSION))
11597 {
11598 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11599 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11600 printf("*** library (version %d.%d.%d)\n",
11601 gtk_major_version, gtk_minor_version, gtk_micro_version);
11602 }
11603 #endif /* defined (GTK_MAJOR_VERSION) ... */
11604 else
11605 {
11606 if ((gtk_major_version > major) ||
11607 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11608 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11609 {
11610 return 0;
11611 }
11612 else
11613 {
11614 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11615 gtk_major_version, gtk_minor_version, gtk_micro_version);
11616 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11617 major, minor, micro);
11618 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11619 printf("***\n");
11620 printf("*** If you have already installed a sufficiently new version, this error\n");
11621 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
11622 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11623 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
11624 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
11625 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11626 printf("*** so that the correct libraries are found at run-time))\n");
11627 }
11628 }
11629 return 1;
11630 }
11631
11632 EOF
11633 if { (eval echo configure:11634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11634 then
11635 :
11636 else
11637 echo "configure: failed program was:" >&5
11638 cat conftest.$ac_ext >&5
11639 rm -fr conftest*
11640 no_gtk=yes
11641 fi
11642 rm -fr conftest*
11643 fi
11644
11645 CFLAGS="$ac_save_CFLAGS"
11646 LIBS="$ac_save_LIBS"
11647 fi
11648 fi
11649 if test "x$no_gtk" = x ; then
11650 echo "$ac_t""yes" 1>&6
11651 wx_cv_lib_gtk=1.2.7
11652 else
11653 echo "$ac_t""no" 1>&6
11654 if test "$GTK_CONFIG" = "no" ; then
11655 echo "*** The gtk-config script installed by GTK could not be found"
11656 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
11657 echo "*** your path, or set the GTK_CONFIG environment variable to the"
11658 echo "*** full path to gtk-config."
11659 else
11660 if test -f conf.gtktest ; then
11661 :
11662 else
11663 echo "*** Could not run GTK test program, checking why..."
11664 CFLAGS="$CFLAGS $GTK_CFLAGS"
11665 LIBS="$LIBS $GTK_LIBS"
11666 cat > conftest.$ac_ext <<EOF
11667 #line 11668 "configure"
11668 #include "confdefs.h"
11669
11670 #include <gtk/gtk.h>
11671 #include <stdio.h>
11672
11673 int main() {
11674 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11675 ; return 0; }
11676 EOF
11677 if { (eval echo configure:11678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11678 rm -rf conftest*
11679 echo "*** The test program compiled, but did not run. This usually means"
11680 echo "*** that the run-time linker is not finding GTK or finding the wrong"
11681 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
11682 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11683 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11684 echo "*** is required on your system"
11685 echo "***"
11686 echo "*** If you have an old version installed, it is best to remove it, although"
11687 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11688 echo "***"
11689 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
11690 echo "*** came with the system with the command"
11691 echo "***"
11692 echo "*** rpm --erase --nodeps gtk gtk-devel"
11693 else
11694 echo "configure: failed program was:" >&5
11695 cat conftest.$ac_ext >&5
11696 rm -rf conftest*
11697 echo "*** The test program failed to compile or link. See the file config.log for the"
11698 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
11699 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
11700 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
11701 fi
11702 rm -f conftest*
11703 CFLAGS="$ac_save_CFLAGS"
11704 LIBS="$ac_save_LIBS"
11705 fi
11706 fi
11707 GTK_CFLAGS=""
11708 GTK_LIBS=""
11709 :
11710 fi
11711
11712
11713 rm -f conf.gtktest
11714
11715 fi
11716
11717 if test -z "$wx_cv_lib_gtk"; then
11718 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
11719 if test "${with_gtk_prefix+set}" = set; then
11720 withval="$with_gtk_prefix"
11721 gtk_config_prefix="$withval"
11722 else
11723 gtk_config_prefix=""
11724 fi
11725
11726 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
11727 if test "${with_gtk_exec_prefix+set}" = set; then
11728 withval="$with_gtk_exec_prefix"
11729 gtk_config_exec_prefix="$withval"
11730 else
11731 gtk_config_exec_prefix=""
11732 fi
11733
11734 # Check whether --enable-gtktest or --disable-gtktest was given.
11735 if test "${enable_gtktest+set}" = set; then
11736 enableval="$enable_gtktest"
11737 :
11738 else
11739 enable_gtktest=yes
11740 fi
11741
11742
11743 for module in . $GTK_MODULES
11744 do
11745 case "$module" in
11746 gthread)
11747 gtk_config_args="$gtk_config_args gthread"
11748 ;;
11749 esac
11750 done
11751
11752 if test x$gtk_config_exec_prefix != x ; then
11753 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
11754 if test x${GTK_CONFIG+set} != xset ; then
11755 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
11756 fi
11757 fi
11758 if test x$gtk_config_prefix != x ; then
11759 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
11760 if test x${GTK_CONFIG+set} != xset ; then
11761 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
11762 fi
11763 fi
11764
11765 # Extract the first word of "gtk-config", so it can be a program name with args.
11766 set dummy gtk-config; ac_word=$2
11767 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11768 echo "configure:11769: checking for $ac_word" >&5
11769 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
11770 echo $ac_n "(cached) $ac_c" 1>&6
11771 else
11772 case "$GTK_CONFIG" in
11773 /*)
11774 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
11775 ;;
11776 ?:/*)
11777 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
11778 ;;
11779 *)
11780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11781 ac_dummy="$PATH"
11782 for ac_dir in $ac_dummy; do
11783 test -z "$ac_dir" && ac_dir=.
11784 if test -f $ac_dir/$ac_word; then
11785 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
11786 break
11787 fi
11788 done
11789 IFS="$ac_save_ifs"
11790 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
11791 ;;
11792 esac
11793 fi
11794 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
11795 if test -n "$GTK_CONFIG"; then
11796 echo "$ac_t""$GTK_CONFIG" 1>&6
11797 else
11798 echo "$ac_t""no" 1>&6
11799 fi
11800
11801 min_gtk_version=1.2.3
11802 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
11803 echo "configure:11804: checking for GTK - version >= $min_gtk_version" >&5
11804 no_gtk=""
11805 if test "$GTK_CONFIG" = "no" ; then
11806 no_gtk=yes
11807 else
11808 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
11809 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
11810 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
11811 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11812 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
11813 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11814 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
11815 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11816 if test "x$enable_gtktest" = "xyes" ; then
11817 ac_save_CFLAGS="$CFLAGS"
11818 ac_save_LIBS="$LIBS"
11819 CFLAGS="$CFLAGS $GTK_CFLAGS"
11820 LIBS="$GTK_LIBS $LIBS"
11821 rm -f conf.gtktest
11822 if test "$cross_compiling" = yes; then
11823 echo $ac_n "cross compiling; assumed OK... $ac_c"
11824 else
11825 cat > conftest.$ac_ext <<EOF
11826 #line 11827 "configure"
11827 #include "confdefs.h"
11828
11829 #include <gtk/gtk.h>
11830 #include <stdio.h>
11831 #include <stdlib.h>
11832
11833 int
11834 main ()
11835 {
11836 int major, minor, micro;
11837 char *tmp_version;
11838
11839 system ("touch conf.gtktest");
11840
11841 /* HP/UX 9 (%@#!) writes to sscanf strings */
11842 tmp_version = g_strdup("$min_gtk_version");
11843 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11844 printf("%s, bad version string\n", "$min_gtk_version");
11845 exit(1);
11846 }
11847
11848 if ((gtk_major_version != $gtk_config_major_version) ||
11849 (gtk_minor_version != $gtk_config_minor_version) ||
11850 (gtk_micro_version != $gtk_config_micro_version))
11851 {
11852 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11853 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11854 gtk_major_version, gtk_minor_version, gtk_micro_version);
11855 printf ("*** was found! If gtk-config was correct, then it is best\n");
11856 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11857 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11858 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11859 printf("*** required on your system.\n");
11860 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
11861 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
11862 printf("*** before re-running configure\n");
11863 }
11864 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
11865 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11866 (gtk_minor_version != GTK_MINOR_VERSION) ||
11867 (gtk_micro_version != GTK_MICRO_VERSION))
11868 {
11869 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11870 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11871 printf("*** library (version %d.%d.%d)\n",
11872 gtk_major_version, gtk_minor_version, gtk_micro_version);
11873 }
11874 #endif /* defined (GTK_MAJOR_VERSION) ... */
11875 else
11876 {
11877 if ((gtk_major_version > major) ||
11878 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11879 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11880 {
11881 return 0;
11882 }
11883 else
11884 {
11885 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11886 gtk_major_version, gtk_minor_version, gtk_micro_version);
11887 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11888 major, minor, micro);
11889 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11890 printf("***\n");
11891 printf("*** If you have already installed a sufficiently new version, this error\n");
11892 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
11893 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11894 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
11895 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
11896 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11897 printf("*** so that the correct libraries are found at run-time))\n");
11898 }
11899 }
11900 return 1;
11901 }
11902
11903 EOF
11904 if { (eval echo configure:11905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11905 then
11906 :
11907 else
11908 echo "configure: failed program was:" >&5
11909 cat conftest.$ac_ext >&5
11910 rm -fr conftest*
11911 no_gtk=yes
11912 fi
11913 rm -fr conftest*
11914 fi
11915
11916 CFLAGS="$ac_save_CFLAGS"
11917 LIBS="$ac_save_LIBS"
11918 fi
11919 fi
11920 if test "x$no_gtk" = x ; then
11921 echo "$ac_t""yes" 1>&6
11922 wx_cv_lib_gtk=1.2.3
11923 else
11924 echo "$ac_t""no" 1>&6
11925 if test "$GTK_CONFIG" = "no" ; then
11926 echo "*** The gtk-config script installed by GTK could not be found"
11927 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
11928 echo "*** your path, or set the GTK_CONFIG environment variable to the"
11929 echo "*** full path to gtk-config."
11930 else
11931 if test -f conf.gtktest ; then
11932 :
11933 else
11934 echo "*** Could not run GTK test program, checking why..."
11935 CFLAGS="$CFLAGS $GTK_CFLAGS"
11936 LIBS="$LIBS $GTK_LIBS"
11937 cat > conftest.$ac_ext <<EOF
11938 #line 11939 "configure"
11939 #include "confdefs.h"
11940
11941 #include <gtk/gtk.h>
11942 #include <stdio.h>
11943
11944 int main() {
11945 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11946 ; return 0; }
11947 EOF
11948 if { (eval echo configure:11949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11949 rm -rf conftest*
11950 echo "*** The test program compiled, but did not run. This usually means"
11951 echo "*** that the run-time linker is not finding GTK or finding the wrong"
11952 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
11953 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11954 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11955 echo "*** is required on your system"
11956 echo "***"
11957 echo "*** If you have an old version installed, it is best to remove it, although"
11958 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11959 echo "***"
11960 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
11961 echo "*** came with the system with the command"
11962 echo "***"
11963 echo "*** rpm --erase --nodeps gtk gtk-devel"
11964 else
11965 echo "configure: failed program was:" >&5
11966 cat conftest.$ac_ext >&5
11967 rm -rf conftest*
11968 echo "*** The test program failed to compile or link. See the file config.log for the"
11969 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
11970 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
11971 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
11972 fi
11973 rm -f conftest*
11974 CFLAGS="$ac_save_CFLAGS"
11975 LIBS="$ac_save_LIBS"
11976 fi
11977 fi
11978 GTK_CFLAGS=""
11979 GTK_LIBS=""
11980 :
11981 fi
11982
11983
11984 rm -f conf.gtktest
11985
11986 fi
11987
11988 if test -z "$wx_cv_lib_gtk"; then
11989 wx_cv_lib_gtk=none
11990 else
11991 wx_cv_cflags_gtk=$GTK_CFLAGS
11992 wx_cv_libs_gtk=$GTK_LIBS
11993 fi
11994
11995
11996 fi
11997
11998
11999 if test "$gtk_version_cached" = 1; then
12000 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
12001 fi
12002
12003 case "$wx_cv_lib_gtk" in
12004 2.0) WXGTK20=1
12005 ;;
12006 1.2.7) WXGTK127=1
12007 WXGTK12=1
12008 ;;
12009 1.2.3) WXGTK12=1
12010 ;;
12011 *) { echo "configure: error:
12012 Please check that gtk-config is in path, the directory
12013 where GTK+ libraries are installed (returned by
12014 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
12015 equivalent variable and GTK+ is version 1.2.3 or above.
12016 " 1>&2; exit 1; }
12017 ;;
12018 esac
12019
12020 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
12021 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
12022
12023 AFMINSTALL=afminstall
12024 TOOLKIT=GTK
12025 GUIDIST=GTK_DIST
12026
12027 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
12028 echo "configure:12029: checking for gdk_im_open in -lgdk" >&5
12029 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
12030 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12031 echo $ac_n "(cached) $ac_c" 1>&6
12032 else
12033 ac_save_LIBS="$LIBS"
12034 LIBS="-lgdk $LIBS"
12035 cat > conftest.$ac_ext <<EOF
12036 #line 12037 "configure"
12037 #include "confdefs.h"
12038 /* Override any gcc2 internal prototype to avoid an error. */
12039 /* We use char because int might match the return type of a gcc2
12040 builtin and then its argument prototype would still apply. */
12041 char gdk_im_open();
12042
12043 int main() {
12044 gdk_im_open()
12045 ; return 0; }
12046 EOF
12047 if { (eval echo configure:12048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12048 rm -rf conftest*
12049 eval "ac_cv_lib_$ac_lib_var=yes"
12050 else
12051 echo "configure: failed program was:" >&5
12052 cat conftest.$ac_ext >&5
12053 rm -rf conftest*
12054 eval "ac_cv_lib_$ac_lib_var=no"
12055 fi
12056 rm -f conftest*
12057 LIBS="$ac_save_LIBS"
12058
12059 fi
12060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12061 echo "$ac_t""yes" 1>&6
12062 cat >> confdefs.h <<\EOF
12063 #define HAVE_XIM 1
12064 EOF
12065
12066 else
12067 echo "$ac_t""no" 1>&6
12068 fi
12069
12070 fi
12071
12072 if test "$wxUSE_MGL" = 1; then
12073 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
12074 echo "configure:12075: checking for SciTech MGL library" >&5
12075 if test "x$MGL_ROOT" = x ; then
12076 echo "$ac_t""not found" 1>&6
12077 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
12078 else
12079 echo "$ac_t""$MGL_ROOT" 1>&6
12080 fi
12081
12082 case "${host}" in
12083 *-*-linux* )
12084 mgl_os=linux/gcc/glibc
12085 ;;
12086 *-pc-msdosdjgpp )
12087 mgl_os=dos32/dj2
12088 ;;
12089 *)
12090 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
12091 esac
12092
12093 mgl_lib_type=""
12094
12095 if test "$wxUSE_DEBUG_FLAG" = yes ; then
12096 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
12097 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
12098 mgl_lib_type=debug
12099 fi
12100 fi
12101 if test "x$mgl_lib_type" = x ; then
12102 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
12103 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
12104 mgl_lib_type=release
12105 else
12106 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
12107 fi
12108 fi
12109
12110 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
12111 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
12112
12113 AFMINSTALL=afminstall
12114 TOOLKIT=MGL
12115 GUIDIST=MGL_DIST
12116 fi
12117
12118 if test "$wxUSE_MICROWIN" = 1; then
12119 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
12120 echo "configure:12121: checking for MicroWindows" >&5
12121 if test "x$MICROWINDOWS" = x ; then
12122 echo "$ac_t""not found" 1>&6
12123 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
12124 else
12125 echo "$ac_t""$MICROWINDOWS" 1>&6
12126 fi
12127
12128 if test -f $MICROWINDOWS/lib/libmwin.a; then
12129 echo "$ac_t""MicroWindows' libraries found." 1>&6
12130 else
12131 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
12132 fi
12133
12134 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
12135 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
12136
12137 AFMINSTALL=afminstall
12138 TOOLKIT=MICROWIN
12139 GUIDIST=MICROWIN_DIST
12140
12141 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
12142 fi
12143
12144 if test "$wxUSE_X11" = 1; then
12145 # If we find X, set shell vars x_includes and x_libraries to the
12146 # paths, otherwise set no_x=yes.
12147 # Uses ac_ vars as temps to allow command line to override cache and checks.
12148 # --without-x overrides everything else, but does not touch the cache.
12149 echo $ac_n "checking for X""... $ac_c" 1>&6
12150 echo "configure:12151: checking for X" >&5
12151
12152 # Check whether --with-x or --without-x was given.
12153 if test "${with_x+set}" = set; then
12154 withval="$with_x"
12155 :
12156 fi
12157
12158 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12159 if test "x$with_x" = xno; then
12160 # The user explicitly disabled X.
12161 have_x=disabled
12162 else
12163 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
12164 # Both variables are already set.
12165 have_x=yes
12166 else
12167 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
12168 echo $ac_n "(cached) $ac_c" 1>&6
12169 else
12170 # One or both of the vars are not set, and there is no cached value.
12171 ac_x_includes=NO ac_x_libraries=NO
12172 rm -fr conftestdir
12173 if mkdir conftestdir; then
12174 cd conftestdir
12175 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
12176 cat > Imakefile <<'EOF'
12177 acfindx:
12178 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
12179 EOF
12180 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
12181 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12182 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
12183 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12184 for ac_extension in a so sl; do
12185 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
12186 test -f $ac_im_libdir/libX11.$ac_extension; then
12187 ac_im_usrlibdir=$ac_im_libdir; break
12188 fi
12189 done
12190 # Screen out bogus values from the imake configuration. They are
12191 # bogus both because they are the default anyway, and because
12192 # using them would break gcc on systems where it needs fixed includes.
12193 case "$ac_im_incroot" in
12194 /usr/include) ;;
12195 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
12196 esac
12197 case "$ac_im_usrlibdir" in
12198 /usr/lib | /lib) ;;
12199 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
12200 esac
12201 fi
12202 cd ..
12203 rm -fr conftestdir
12204 fi
12205
12206 if test "$ac_x_includes" = NO; then
12207 # Guess where to find include files, by looking for this one X11 .h file.
12208 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
12209
12210 # First, try using that file with no special directory specified.
12211 cat > conftest.$ac_ext <<EOF
12212 #line 12213 "configure"
12213 #include "confdefs.h"
12214 #include <$x_direct_test_include>
12215 EOF
12216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12217 { (eval echo configure:12218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12219 if test -z "$ac_err"; then
12220 rm -rf conftest*
12221 # We can compile using X headers with no special include directory.
12222 ac_x_includes=
12223 else
12224 echo "$ac_err" >&5
12225 echo "configure: failed program was:" >&5
12226 cat conftest.$ac_ext >&5
12227 rm -rf conftest*
12228 # Look for the header file in a standard set of common directories.
12229 # Check X11 before X11Rn because it is often a symlink to the current release.
12230 for ac_dir in \
12231 /usr/X11/include \
12232 /usr/X11R6/include \
12233 /usr/X11R5/include \
12234 /usr/X11R4/include \
12235 \
12236 /usr/include/X11 \
12237 /usr/include/X11R6 \
12238 /usr/include/X11R5 \
12239 /usr/include/X11R4 \
12240 \
12241 /usr/local/X11/include \
12242 /usr/local/X11R6/include \
12243 /usr/local/X11R5/include \
12244 /usr/local/X11R4/include \
12245 \
12246 /usr/local/include/X11 \
12247 /usr/local/include/X11R6 \
12248 /usr/local/include/X11R5 \
12249 /usr/local/include/X11R4 \
12250 \
12251 /usr/X386/include \
12252 /usr/x386/include \
12253 /usr/XFree86/include/X11 \
12254 \
12255 /usr/include \
12256 /usr/local/include \
12257 /usr/unsupported/include \
12258 /usr/athena/include \
12259 /usr/local/x11r5/include \
12260 /usr/lpp/Xamples/include \
12261 \
12262 /usr/openwin/include \
12263 /usr/openwin/share/include \
12264 ; \
12265 do
12266 if test -r "$ac_dir/$x_direct_test_include"; then
12267 ac_x_includes=$ac_dir
12268 break
12269 fi
12270 done
12271 fi
12272 rm -f conftest*
12273 fi # $ac_x_includes = NO
12274
12275 if test "$ac_x_libraries" = NO; then
12276 # Check for the libraries.
12277
12278 test -z "$x_direct_test_library" && x_direct_test_library=Xt
12279 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
12280
12281 # See if we find them without any special options.
12282 # Don't add to $LIBS permanently.
12283 ac_save_LIBS="$LIBS"
12284 LIBS="-l$x_direct_test_library $LIBS"
12285 cat > conftest.$ac_ext <<EOF
12286 #line 12287 "configure"
12287 #include "confdefs.h"
12288
12289 int main() {
12290 ${x_direct_test_function}()
12291 ; return 0; }
12292 EOF
12293 if { (eval echo configure:12294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12294 rm -rf conftest*
12295 LIBS="$ac_save_LIBS"
12296 # We can link X programs with no special library path.
12297 ac_x_libraries=
12298 else
12299 echo "configure: failed program was:" >&5
12300 cat conftest.$ac_ext >&5
12301 rm -rf conftest*
12302 LIBS="$ac_save_LIBS"
12303 # First see if replacing the include by lib works.
12304 # Check X11 before X11Rn because it is often a symlink to the current release.
12305 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
12306 /usr/X11/lib \
12307 /usr/X11R6/lib \
12308 /usr/X11R5/lib \
12309 /usr/X11R4/lib \
12310 \
12311 /usr/lib/X11 \
12312 /usr/lib/X11R6 \
12313 /usr/lib/X11R5 \
12314 /usr/lib/X11R4 \
12315 \
12316 /usr/local/X11/lib \
12317 /usr/local/X11R6/lib \
12318 /usr/local/X11R5/lib \
12319 /usr/local/X11R4/lib \
12320 \
12321 /usr/local/lib/X11 \
12322 /usr/local/lib/X11R6 \
12323 /usr/local/lib/X11R5 \
12324 /usr/local/lib/X11R4 \
12325 \
12326 /usr/X386/lib \
12327 /usr/x386/lib \
12328 /usr/XFree86/lib/X11 \
12329 \
12330 /usr/lib \
12331 /usr/local/lib \
12332 /usr/unsupported/lib \
12333 /usr/athena/lib \
12334 /usr/local/x11r5/lib \
12335 /usr/lpp/Xamples/lib \
12336 /lib/usr/lib/X11 \
12337 \
12338 /usr/openwin/lib \
12339 /usr/openwin/share/lib \
12340 ; \
12341 do
12342 for ac_extension in a so sl; do
12343 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
12344 ac_x_libraries=$ac_dir
12345 break 2
12346 fi
12347 done
12348 done
12349 fi
12350 rm -f conftest*
12351 fi # $ac_x_libraries = NO
12352
12353 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
12354 # Didn't find X anywhere. Cache the known absence of X.
12355 ac_cv_have_x="have_x=no"
12356 else
12357 # Record where we found X for the cache.
12358 ac_cv_have_x="have_x=yes \
12359 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
12360 fi
12361 fi
12362 fi
12363 eval "$ac_cv_have_x"
12364 fi # $with_x != no
12365
12366 if test "$have_x" != yes; then
12367 echo "$ac_t""$have_x" 1>&6
12368 no_x=yes
12369 else
12370 # If each of the values was on the command line, it overrides each guess.
12371 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12372 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12373 # Update the cache value to reflect the command line values.
12374 ac_cv_have_x="have_x=yes \
12375 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
12376 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
12377 fi
12378
12379 if test "$no_x" = yes; then
12380 # Not all programs may use this symbol, but it does not hurt to define it.
12381 cat >> confdefs.h <<\EOF
12382 #define X_DISPLAY_MISSING 1
12383 EOF
12384
12385 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12386 else
12387 if test -n "$x_includes"; then
12388 X_CFLAGS="$X_CFLAGS -I$x_includes"
12389 fi
12390
12391 # It would also be nice to do this for all -L options, not just this one.
12392 if test -n "$x_libraries"; then
12393 X_LIBS="$X_LIBS -L$x_libraries"
12394 # For Solaris; some versions of Sun CC require a space after -R and
12395 # others require no space. Words are not sufficient . . . .
12396 case "`(uname -sr) 2>/dev/null`" in
12397 "SunOS 5"*)
12398 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
12399 echo "configure:12400: checking whether -R must be followed by a space" >&5
12400 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
12401 cat > conftest.$ac_ext <<EOF
12402 #line 12403 "configure"
12403 #include "confdefs.h"
12404
12405 int main() {
12406
12407 ; return 0; }
12408 EOF
12409 if { (eval echo configure:12410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12410 rm -rf conftest*
12411 ac_R_nospace=yes
12412 else
12413 echo "configure: failed program was:" >&5
12414 cat conftest.$ac_ext >&5
12415 rm -rf conftest*
12416 ac_R_nospace=no
12417 fi
12418 rm -f conftest*
12419 if test $ac_R_nospace = yes; then
12420 echo "$ac_t""no" 1>&6
12421 X_LIBS="$X_LIBS -R$x_libraries"
12422 else
12423 LIBS="$ac_xsave_LIBS -R $x_libraries"
12424 cat > conftest.$ac_ext <<EOF
12425 #line 12426 "configure"
12426 #include "confdefs.h"
12427
12428 int main() {
12429
12430 ; return 0; }
12431 EOF
12432 if { (eval echo configure:12433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12433 rm -rf conftest*
12434 ac_R_space=yes
12435 else
12436 echo "configure: failed program was:" >&5
12437 cat conftest.$ac_ext >&5
12438 rm -rf conftest*
12439 ac_R_space=no
12440 fi
12441 rm -f conftest*
12442 if test $ac_R_space = yes; then
12443 echo "$ac_t""yes" 1>&6
12444 X_LIBS="$X_LIBS -R $x_libraries"
12445 else
12446 echo "$ac_t""neither works" 1>&6
12447 fi
12448 fi
12449 LIBS="$ac_xsave_LIBS"
12450 esac
12451 fi
12452
12453 # Check for system-dependent libraries X programs must link with.
12454 # Do this before checking for the system-independent R6 libraries
12455 # (-lICE), since we may need -lsocket or whatever for X linking.
12456
12457 if test "$ISC" = yes; then
12458 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12459 else
12460 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
12461 # libraries were built with DECnet support. And karl@cs.umb.edu says
12462 # the Alpha needs dnet_stub (dnet does not exist).
12463 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
12464 echo "configure:12465: checking for dnet_ntoa in -ldnet" >&5
12465 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12466 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12467 echo $ac_n "(cached) $ac_c" 1>&6
12468 else
12469 ac_save_LIBS="$LIBS"
12470 LIBS="-ldnet $LIBS"
12471 cat > conftest.$ac_ext <<EOF
12472 #line 12473 "configure"
12473 #include "confdefs.h"
12474 /* Override any gcc2 internal prototype to avoid an error. */
12475 /* We use char because int might match the return type of a gcc2
12476 builtin and then its argument prototype would still apply. */
12477 char dnet_ntoa();
12478
12479 int main() {
12480 dnet_ntoa()
12481 ; return 0; }
12482 EOF
12483 if { (eval echo configure:12484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12484 rm -rf conftest*
12485 eval "ac_cv_lib_$ac_lib_var=yes"
12486 else
12487 echo "configure: failed program was:" >&5
12488 cat conftest.$ac_ext >&5
12489 rm -rf conftest*
12490 eval "ac_cv_lib_$ac_lib_var=no"
12491 fi
12492 rm -f conftest*
12493 LIBS="$ac_save_LIBS"
12494
12495 fi
12496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12497 echo "$ac_t""yes" 1>&6
12498 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12499 else
12500 echo "$ac_t""no" 1>&6
12501 fi
12502
12503 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12504 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
12505 echo "configure:12506: checking for dnet_ntoa in -ldnet_stub" >&5
12506 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12507 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12508 echo $ac_n "(cached) $ac_c" 1>&6
12509 else
12510 ac_save_LIBS="$LIBS"
12511 LIBS="-ldnet_stub $LIBS"
12512 cat > conftest.$ac_ext <<EOF
12513 #line 12514 "configure"
12514 #include "confdefs.h"
12515 /* Override any gcc2 internal prototype to avoid an error. */
12516 /* We use char because int might match the return type of a gcc2
12517 builtin and then its argument prototype would still apply. */
12518 char dnet_ntoa();
12519
12520 int main() {
12521 dnet_ntoa()
12522 ; return 0; }
12523 EOF
12524 if { (eval echo configure:12525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12525 rm -rf conftest*
12526 eval "ac_cv_lib_$ac_lib_var=yes"
12527 else
12528 echo "configure: failed program was:" >&5
12529 cat conftest.$ac_ext >&5
12530 rm -rf conftest*
12531 eval "ac_cv_lib_$ac_lib_var=no"
12532 fi
12533 rm -f conftest*
12534 LIBS="$ac_save_LIBS"
12535
12536 fi
12537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12538 echo "$ac_t""yes" 1>&6
12539 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12540 else
12541 echo "$ac_t""no" 1>&6
12542 fi
12543
12544 fi
12545
12546 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12547 # to get the SysV transport functions.
12548 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
12549 # needs -lnsl.
12550 # The nsl library prevents programs from opening the X display
12551 # on Irix 5.2, according to dickey@clark.net.
12552 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
12553 echo "configure:12554: checking for gethostbyname" >&5
12554 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
12555 echo $ac_n "(cached) $ac_c" 1>&6
12556 else
12557 cat > conftest.$ac_ext <<EOF
12558 #line 12559 "configure"
12559 #include "confdefs.h"
12560 /* System header to define __stub macros and hopefully few prototypes,
12561 which can conflict with char gethostbyname(); below. */
12562 #include <assert.h>
12563 /* Override any gcc2 internal prototype to avoid an error. */
12564 /* We use char because int might match the return type of a gcc2
12565 builtin and then its argument prototype would still apply. */
12566 char gethostbyname();
12567
12568 int main() {
12569
12570 /* The GNU C library defines this for functions which it implements
12571 to always fail with ENOSYS. Some functions are actually named
12572 something starting with __ and the normal name is an alias. */
12573 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12574 choke me
12575 #else
12576 gethostbyname();
12577 #endif
12578
12579 ; return 0; }
12580 EOF
12581 if { (eval echo configure:12582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12582 rm -rf conftest*
12583 eval "ac_cv_func_gethostbyname=yes"
12584 else
12585 echo "configure: failed program was:" >&5
12586 cat conftest.$ac_ext >&5
12587 rm -rf conftest*
12588 eval "ac_cv_func_gethostbyname=no"
12589 fi
12590 rm -f conftest*
12591 fi
12592
12593 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
12594 echo "$ac_t""yes" 1>&6
12595 :
12596 else
12597 echo "$ac_t""no" 1>&6
12598 fi
12599
12600 if test $ac_cv_func_gethostbyname = no; then
12601 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
12602 echo "configure:12603: checking for gethostbyname in -lnsl" >&5
12603 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
12604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12605 echo $ac_n "(cached) $ac_c" 1>&6
12606 else
12607 ac_save_LIBS="$LIBS"
12608 LIBS="-lnsl $LIBS"
12609 cat > conftest.$ac_ext <<EOF
12610 #line 12611 "configure"
12611 #include "confdefs.h"
12612 /* Override any gcc2 internal prototype to avoid an error. */
12613 /* We use char because int might match the return type of a gcc2
12614 builtin and then its argument prototype would still apply. */
12615 char gethostbyname();
12616
12617 int main() {
12618 gethostbyname()
12619 ; return 0; }
12620 EOF
12621 if { (eval echo configure:12622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12622 rm -rf conftest*
12623 eval "ac_cv_lib_$ac_lib_var=yes"
12624 else
12625 echo "configure: failed program was:" >&5
12626 cat conftest.$ac_ext >&5
12627 rm -rf conftest*
12628 eval "ac_cv_lib_$ac_lib_var=no"
12629 fi
12630 rm -f conftest*
12631 LIBS="$ac_save_LIBS"
12632
12633 fi
12634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12635 echo "$ac_t""yes" 1>&6
12636 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12637 else
12638 echo "$ac_t""no" 1>&6
12639 fi
12640
12641 fi
12642
12643 # lieder@skyler.mavd.honeywell.com says without -lsocket,
12644 # socket/setsockopt and other routines are undefined under SCO ODT
12645 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12646 # on later versions), says simon@lia.di.epfl.ch: it contains
12647 # gethostby* variants that don't use the nameserver (or something).
12648 # -lsocket must be given before -lnsl if both are needed.
12649 # We assume that if connect needs -lnsl, so does gethostbyname.
12650 echo $ac_n "checking for connect""... $ac_c" 1>&6
12651 echo "configure:12652: checking for connect" >&5
12652 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
12653 echo $ac_n "(cached) $ac_c" 1>&6
12654 else
12655 cat > conftest.$ac_ext <<EOF
12656 #line 12657 "configure"
12657 #include "confdefs.h"
12658 /* System header to define __stub macros and hopefully few prototypes,
12659 which can conflict with char connect(); below. */
12660 #include <assert.h>
12661 /* Override any gcc2 internal prototype to avoid an error. */
12662 /* We use char because int might match the return type of a gcc2
12663 builtin and then its argument prototype would still apply. */
12664 char connect();
12665
12666 int main() {
12667
12668 /* The GNU C library defines this for functions which it implements
12669 to always fail with ENOSYS. Some functions are actually named
12670 something starting with __ and the normal name is an alias. */
12671 #if defined (__stub_connect) || defined (__stub___connect)
12672 choke me
12673 #else
12674 connect();
12675 #endif
12676
12677 ; return 0; }
12678 EOF
12679 if { (eval echo configure:12680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12680 rm -rf conftest*
12681 eval "ac_cv_func_connect=yes"
12682 else
12683 echo "configure: failed program was:" >&5
12684 cat conftest.$ac_ext >&5
12685 rm -rf conftest*
12686 eval "ac_cv_func_connect=no"
12687 fi
12688 rm -f conftest*
12689 fi
12690
12691 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
12692 echo "$ac_t""yes" 1>&6
12693 :
12694 else
12695 echo "$ac_t""no" 1>&6
12696 fi
12697
12698 if test $ac_cv_func_connect = no; then
12699 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
12700 echo "configure:12701: checking for connect in -lsocket" >&5
12701 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
12702 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12703 echo $ac_n "(cached) $ac_c" 1>&6
12704 else
12705 ac_save_LIBS="$LIBS"
12706 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12707 cat > conftest.$ac_ext <<EOF
12708 #line 12709 "configure"
12709 #include "confdefs.h"
12710 /* Override any gcc2 internal prototype to avoid an error. */
12711 /* We use char because int might match the return type of a gcc2
12712 builtin and then its argument prototype would still apply. */
12713 char connect();
12714
12715 int main() {
12716 connect()
12717 ; return 0; }
12718 EOF
12719 if { (eval echo configure:12720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12720 rm -rf conftest*
12721 eval "ac_cv_lib_$ac_lib_var=yes"
12722 else
12723 echo "configure: failed program was:" >&5
12724 cat conftest.$ac_ext >&5
12725 rm -rf conftest*
12726 eval "ac_cv_lib_$ac_lib_var=no"
12727 fi
12728 rm -f conftest*
12729 LIBS="$ac_save_LIBS"
12730
12731 fi
12732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12733 echo "$ac_t""yes" 1>&6
12734 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12735 else
12736 echo "$ac_t""no" 1>&6
12737 fi
12738
12739 fi
12740
12741 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
12742 echo $ac_n "checking for remove""... $ac_c" 1>&6
12743 echo "configure:12744: checking for remove" >&5
12744 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
12745 echo $ac_n "(cached) $ac_c" 1>&6
12746 else
12747 cat > conftest.$ac_ext <<EOF
12748 #line 12749 "configure"
12749 #include "confdefs.h"
12750 /* System header to define __stub macros and hopefully few prototypes,
12751 which can conflict with char remove(); below. */
12752 #include <assert.h>
12753 /* Override any gcc2 internal prototype to avoid an error. */
12754 /* We use char because int might match the return type of a gcc2
12755 builtin and then its argument prototype would still apply. */
12756 char remove();
12757
12758 int main() {
12759
12760 /* The GNU C library defines this for functions which it implements
12761 to always fail with ENOSYS. Some functions are actually named
12762 something starting with __ and the normal name is an alias. */
12763 #if defined (__stub_remove) || defined (__stub___remove)
12764 choke me
12765 #else
12766 remove();
12767 #endif
12768
12769 ; return 0; }
12770 EOF
12771 if { (eval echo configure:12772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12772 rm -rf conftest*
12773 eval "ac_cv_func_remove=yes"
12774 else
12775 echo "configure: failed program was:" >&5
12776 cat conftest.$ac_ext >&5
12777 rm -rf conftest*
12778 eval "ac_cv_func_remove=no"
12779 fi
12780 rm -f conftest*
12781 fi
12782
12783 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
12784 echo "$ac_t""yes" 1>&6
12785 :
12786 else
12787 echo "$ac_t""no" 1>&6
12788 fi
12789
12790 if test $ac_cv_func_remove = no; then
12791 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
12792 echo "configure:12793: checking for remove in -lposix" >&5
12793 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
12794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12795 echo $ac_n "(cached) $ac_c" 1>&6
12796 else
12797 ac_save_LIBS="$LIBS"
12798 LIBS="-lposix $LIBS"
12799 cat > conftest.$ac_ext <<EOF
12800 #line 12801 "configure"
12801 #include "confdefs.h"
12802 /* Override any gcc2 internal prototype to avoid an error. */
12803 /* We use char because int might match the return type of a gcc2
12804 builtin and then its argument prototype would still apply. */
12805 char remove();
12806
12807 int main() {
12808 remove()
12809 ; return 0; }
12810 EOF
12811 if { (eval echo configure:12812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12812 rm -rf conftest*
12813 eval "ac_cv_lib_$ac_lib_var=yes"
12814 else
12815 echo "configure: failed program was:" >&5
12816 cat conftest.$ac_ext >&5
12817 rm -rf conftest*
12818 eval "ac_cv_lib_$ac_lib_var=no"
12819 fi
12820 rm -f conftest*
12821 LIBS="$ac_save_LIBS"
12822
12823 fi
12824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12825 echo "$ac_t""yes" 1>&6
12826 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12827 else
12828 echo "$ac_t""no" 1>&6
12829 fi
12830
12831 fi
12832
12833 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12834 echo $ac_n "checking for shmat""... $ac_c" 1>&6
12835 echo "configure:12836: checking for shmat" >&5
12836 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
12837 echo $ac_n "(cached) $ac_c" 1>&6
12838 else
12839 cat > conftest.$ac_ext <<EOF
12840 #line 12841 "configure"
12841 #include "confdefs.h"
12842 /* System header to define __stub macros and hopefully few prototypes,
12843 which can conflict with char shmat(); below. */
12844 #include <assert.h>
12845 /* Override any gcc2 internal prototype to avoid an error. */
12846 /* We use char because int might match the return type of a gcc2
12847 builtin and then its argument prototype would still apply. */
12848 char shmat();
12849
12850 int main() {
12851
12852 /* The GNU C library defines this for functions which it implements
12853 to always fail with ENOSYS. Some functions are actually named
12854 something starting with __ and the normal name is an alias. */
12855 #if defined (__stub_shmat) || defined (__stub___shmat)
12856 choke me
12857 #else
12858 shmat();
12859 #endif
12860
12861 ; return 0; }
12862 EOF
12863 if { (eval echo configure:12864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12864 rm -rf conftest*
12865 eval "ac_cv_func_shmat=yes"
12866 else
12867 echo "configure: failed program was:" >&5
12868 cat conftest.$ac_ext >&5
12869 rm -rf conftest*
12870 eval "ac_cv_func_shmat=no"
12871 fi
12872 rm -f conftest*
12873 fi
12874
12875 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12876 echo "$ac_t""yes" 1>&6
12877 :
12878 else
12879 echo "$ac_t""no" 1>&6
12880 fi
12881
12882 if test $ac_cv_func_shmat = no; then
12883 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
12884 echo "configure:12885: checking for shmat in -lipc" >&5
12885 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12886 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12887 echo $ac_n "(cached) $ac_c" 1>&6
12888 else
12889 ac_save_LIBS="$LIBS"
12890 LIBS="-lipc $LIBS"
12891 cat > conftest.$ac_ext <<EOF
12892 #line 12893 "configure"
12893 #include "confdefs.h"
12894 /* Override any gcc2 internal prototype to avoid an error. */
12895 /* We use char because int might match the return type of a gcc2
12896 builtin and then its argument prototype would still apply. */
12897 char shmat();
12898
12899 int main() {
12900 shmat()
12901 ; return 0; }
12902 EOF
12903 if { (eval echo configure:12904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12904 rm -rf conftest*
12905 eval "ac_cv_lib_$ac_lib_var=yes"
12906 else
12907 echo "configure: failed program was:" >&5
12908 cat conftest.$ac_ext >&5
12909 rm -rf conftest*
12910 eval "ac_cv_lib_$ac_lib_var=no"
12911 fi
12912 rm -f conftest*
12913 LIBS="$ac_save_LIBS"
12914
12915 fi
12916 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12917 echo "$ac_t""yes" 1>&6
12918 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12919 else
12920 echo "$ac_t""no" 1>&6
12921 fi
12922
12923 fi
12924 fi
12925
12926 # Check for libraries that X11R6 Xt/Xaw programs need.
12927 ac_save_LDFLAGS="$LDFLAGS"
12928 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12929 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12930 # check for ICE first), but we must link in the order -lSM -lICE or
12931 # we get undefined symbols. So assume we have SM if we have ICE.
12932 # These have to be linked with before -lX11, unlike the other
12933 # libraries we check for below, so use a different variable.
12934 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12935 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
12936 echo "configure:12937: checking for IceConnectionNumber in -lICE" >&5
12937 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12938 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12939 echo $ac_n "(cached) $ac_c" 1>&6
12940 else
12941 ac_save_LIBS="$LIBS"
12942 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12943 cat > conftest.$ac_ext <<EOF
12944 #line 12945 "configure"
12945 #include "confdefs.h"
12946 /* Override any gcc2 internal prototype to avoid an error. */
12947 /* We use char because int might match the return type of a gcc2
12948 builtin and then its argument prototype would still apply. */
12949 char IceConnectionNumber();
12950
12951 int main() {
12952 IceConnectionNumber()
12953 ; return 0; }
12954 EOF
12955 if { (eval echo configure:12956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12956 rm -rf conftest*
12957 eval "ac_cv_lib_$ac_lib_var=yes"
12958 else
12959 echo "configure: failed program was:" >&5
12960 cat conftest.$ac_ext >&5
12961 rm -rf conftest*
12962 eval "ac_cv_lib_$ac_lib_var=no"
12963 fi
12964 rm -f conftest*
12965 LIBS="$ac_save_LIBS"
12966
12967 fi
12968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12969 echo "$ac_t""yes" 1>&6
12970 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12971 else
12972 echo "$ac_t""no" 1>&6
12973 fi
12974
12975 LDFLAGS="$ac_save_LDFLAGS"
12976
12977 fi
12978
12979
12980 if test "$no_x" = "yes"; then
12981 { echo "configure: error: X11 not found" 1>&2; exit 1; }
12982 fi
12983
12984 GUI_TK_LIBRARY="$X_LIBS"
12985 TOOLKIT_INCLUDE="$X_CFLAGS"
12986 AFMINSTALL=afminstall
12987 COMPILED_X_PROGRAM=0
12988
12989 if test "$wxUSE_NANOX" = "yes"; then
12990 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
12991 echo "configure:12992: checking for MicroWindows/NanoX distribution" >&5
12992 if test "x$MICROWIN" = x ; then
12993 echo "$ac_t""not found" 1>&6
12994 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
12995 else
12996 echo "$ac_t""$MICROWIN" 1>&6
12997 cat >> confdefs.h <<\EOF
12998 #define wxUSE_NANOX 1
12999 EOF
13000
13001 fi
13002 fi
13003
13004 xpm_link=
13005 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13006 echo "configure:13007: checking for Xpm library" >&5
13007
13008 ac_find_libraries=
13009 for ac_dir in $SEARCH_LIB;
13010 do
13011 for ac_extension in a so sl dylib; do
13012 if test -f "$ac_dir/libXpm.$ac_extension"; then
13013 ac_find_libraries=$ac_dir
13014 break 2
13015 fi
13016 done
13017 done
13018
13019 if test "$ac_find_libraries" != "" ; then
13020
13021 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13022 result=$?
13023 if test $result = 0; then
13024 ac_path_to_link=""
13025 else
13026 ac_path_to_link=" -L$ac_find_libraries"
13027 fi
13028
13029 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13030 xpm_link=" -lXpm"
13031 cat >> confdefs.h <<\EOF
13032 #define wxHAVE_LIB_XPM 1
13033 EOF
13034
13035 echo "$ac_t""found at $ac_find_libraries" 1>&6
13036 else
13037 cat > conftest.$ac_ext <<EOF
13038 #line 13039 "configure"
13039 #include "confdefs.h"
13040
13041 #include <X11/xpm.h>
13042
13043 int main() {
13044
13045 int version;
13046 version = XpmLibraryVersion();
13047
13048 ; return 0; }
13049 EOF
13050 if { (eval echo configure:13051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13051 rm -rf conftest*
13052
13053 xpm_link=" -lXpm"
13054 cat >> confdefs.h <<\EOF
13055 #define wxHAVE_LIB_XPM 1
13056 EOF
13057
13058 echo "$ac_t""found in default search path" 1>&6
13059 COMPILED_X_PROGRAM=0
13060
13061 else
13062 echo "configure: failed program was:" >&5
13063 cat conftest.$ac_ext >&5
13064 rm -rf conftest*
13065
13066 echo "$ac_t""no" 1>&6
13067 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13068
13069
13070 fi
13071 rm -f conftest*
13072 fi
13073
13074 if test "$wxUSE_NANOX" = "yes"; then
13075 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
13076 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"
13077 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
13078 else
13079 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
13080 fi
13081
13082 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
13083 TOOLKIT=X11
13084 GUIDIST=X11_DIST
13085 fi
13086
13087 if test "$wxUSE_WINE" = 1; then
13088 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
13089 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
13090 echo "configure:13091: checking for windows.h" >&5
13091 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13092 echo $ac_n "(cached) $ac_c" 1>&6
13093 else
13094 cat > conftest.$ac_ext <<EOF
13095 #line 13096 "configure"
13096 #include "confdefs.h"
13097 #include <windows.h>
13098 EOF
13099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13100 { (eval echo configure:13101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13101 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13102 if test -z "$ac_err"; then
13103 rm -rf conftest*
13104 eval "ac_cv_header_$ac_safe=yes"
13105 else
13106 echo "$ac_err" >&5
13107 echo "configure: failed program was:" >&5
13108 cat conftest.$ac_ext >&5
13109 rm -rf conftest*
13110 eval "ac_cv_header_$ac_safe=no"
13111 fi
13112 rm -f conftest*
13113 fi
13114 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13115 echo "$ac_t""yes" 1>&6
13116 :
13117 else
13118 echo "$ac_t""no" 1>&6
13119
13120 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
13121
13122 fi
13123
13124
13125 xpm_link=
13126 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13127 echo "configure:13128: checking for Xpm library" >&5
13128
13129 ac_find_libraries=
13130 for ac_dir in $SEARCH_LIB;
13131 do
13132 for ac_extension in a so sl dylib; do
13133 if test -f "$ac_dir/libXpm.$ac_extension"; then
13134 ac_find_libraries=$ac_dir
13135 break 2
13136 fi
13137 done
13138 done
13139
13140 if test "$ac_find_libraries" != "" ; then
13141 GUI_TK_LIBRARY="-L$ac_find_libraries"
13142 xpm_link=" -lXpm"
13143 cat >> confdefs.h <<\EOF
13144 #define wxHAVE_LIB_XPM 1
13145 EOF
13146
13147 echo "$ac_t""found at $ac_find_libraries" 1>&6
13148 else
13149 echo "$ac_t""no" 1>&6
13150 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13151 fi
13152
13153 mesa_link=
13154 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
13155 echo "configure:13156: checking for Mesa library" >&5
13156
13157 ac_find_libraries=
13158 for ac_dir in $SEARCH_LIB;
13159 do
13160 for ac_extension in a so sl dylib; do
13161 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13162 ac_find_libraries=$ac_dir
13163 break 2
13164 fi
13165 done
13166 done
13167
13168 if test "$ac_find_libraries" != "" ; then
13169 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
13170 mesa_link=" -lMesaGL"
13171 echo "$ac_t""found at $ac_find_libraries" 1>&6
13172 else
13173 { echo "configure: error: no" 1>&2; exit 1; }
13174 fi
13175
13176 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
13177 TOOLKIT=MSW
13178 GUIDIST=MSW_DIST
13179 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
13180 fi
13181
13182 if test "$wxUSE_MOTIF" = 1; then
13183 if test "$no_x" = yes; then
13184 # Not all programs may use this symbol, but it does not hurt to define it.
13185 cat >> confdefs.h <<\EOF
13186 #define X_DISPLAY_MISSING 1
13187 EOF
13188
13189 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13190 else
13191 if test -n "$x_includes"; then
13192 X_CFLAGS="$X_CFLAGS -I$x_includes"
13193 fi
13194
13195 # It would also be nice to do this for all -L options, not just this one.
13196 if test -n "$x_libraries"; then
13197 X_LIBS="$X_LIBS -L$x_libraries"
13198 # For Solaris; some versions of Sun CC require a space after -R and
13199 # others require no space. Words are not sufficient . . . .
13200 case "`(uname -sr) 2>/dev/null`" in
13201 "SunOS 5"*)
13202 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13203 echo "configure:13204: checking whether -R must be followed by a space" >&5
13204 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13205 cat > conftest.$ac_ext <<EOF
13206 #line 13207 "configure"
13207 #include "confdefs.h"
13208
13209 int main() {
13210
13211 ; return 0; }
13212 EOF
13213 if { (eval echo configure:13214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13214 rm -rf conftest*
13215 ac_R_nospace=yes
13216 else
13217 echo "configure: failed program was:" >&5
13218 cat conftest.$ac_ext >&5
13219 rm -rf conftest*
13220 ac_R_nospace=no
13221 fi
13222 rm -f conftest*
13223 if test $ac_R_nospace = yes; then
13224 echo "$ac_t""no" 1>&6
13225 X_LIBS="$X_LIBS -R$x_libraries"
13226 else
13227 LIBS="$ac_xsave_LIBS -R $x_libraries"
13228 cat > conftest.$ac_ext <<EOF
13229 #line 13230 "configure"
13230 #include "confdefs.h"
13231
13232 int main() {
13233
13234 ; return 0; }
13235 EOF
13236 if { (eval echo configure:13237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13237 rm -rf conftest*
13238 ac_R_space=yes
13239 else
13240 echo "configure: failed program was:" >&5
13241 cat conftest.$ac_ext >&5
13242 rm -rf conftest*
13243 ac_R_space=no
13244 fi
13245 rm -f conftest*
13246 if test $ac_R_space = yes; then
13247 echo "$ac_t""yes" 1>&6
13248 X_LIBS="$X_LIBS -R $x_libraries"
13249 else
13250 echo "$ac_t""neither works" 1>&6
13251 fi
13252 fi
13253 LIBS="$ac_xsave_LIBS"
13254 esac
13255 fi
13256
13257 # Check for system-dependent libraries X programs must link with.
13258 # Do this before checking for the system-independent R6 libraries
13259 # (-lICE), since we may need -lsocket or whatever for X linking.
13260
13261 if test "$ISC" = yes; then
13262 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13263 else
13264 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13265 # libraries were built with DECnet support. And karl@cs.umb.edu says
13266 # the Alpha needs dnet_stub (dnet does not exist).
13267 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13268 echo "configure:13269: checking for dnet_ntoa in -ldnet" >&5
13269 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13271 echo $ac_n "(cached) $ac_c" 1>&6
13272 else
13273 ac_save_LIBS="$LIBS"
13274 LIBS="-ldnet $LIBS"
13275 cat > conftest.$ac_ext <<EOF
13276 #line 13277 "configure"
13277 #include "confdefs.h"
13278 /* Override any gcc2 internal prototype to avoid an error. */
13279 /* We use char because int might match the return type of a gcc2
13280 builtin and then its argument prototype would still apply. */
13281 char dnet_ntoa();
13282
13283 int main() {
13284 dnet_ntoa()
13285 ; return 0; }
13286 EOF
13287 if { (eval echo configure:13288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13288 rm -rf conftest*
13289 eval "ac_cv_lib_$ac_lib_var=yes"
13290 else
13291 echo "configure: failed program was:" >&5
13292 cat conftest.$ac_ext >&5
13293 rm -rf conftest*
13294 eval "ac_cv_lib_$ac_lib_var=no"
13295 fi
13296 rm -f conftest*
13297 LIBS="$ac_save_LIBS"
13298
13299 fi
13300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13301 echo "$ac_t""yes" 1>&6
13302 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13303 else
13304 echo "$ac_t""no" 1>&6
13305 fi
13306
13307 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13308 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13309 echo "configure:13310: checking for dnet_ntoa in -ldnet_stub" >&5
13310 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13311 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13312 echo $ac_n "(cached) $ac_c" 1>&6
13313 else
13314 ac_save_LIBS="$LIBS"
13315 LIBS="-ldnet_stub $LIBS"
13316 cat > conftest.$ac_ext <<EOF
13317 #line 13318 "configure"
13318 #include "confdefs.h"
13319 /* Override any gcc2 internal prototype to avoid an error. */
13320 /* We use char because int might match the return type of a gcc2
13321 builtin and then its argument prototype would still apply. */
13322 char dnet_ntoa();
13323
13324 int main() {
13325 dnet_ntoa()
13326 ; return 0; }
13327 EOF
13328 if { (eval echo configure:13329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13329 rm -rf conftest*
13330 eval "ac_cv_lib_$ac_lib_var=yes"
13331 else
13332 echo "configure: failed program was:" >&5
13333 cat conftest.$ac_ext >&5
13334 rm -rf conftest*
13335 eval "ac_cv_lib_$ac_lib_var=no"
13336 fi
13337 rm -f conftest*
13338 LIBS="$ac_save_LIBS"
13339
13340 fi
13341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13342 echo "$ac_t""yes" 1>&6
13343 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13344 else
13345 echo "$ac_t""no" 1>&6
13346 fi
13347
13348 fi
13349
13350 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13351 # to get the SysV transport functions.
13352 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13353 # needs -lnsl.
13354 # The nsl library prevents programs from opening the X display
13355 # on Irix 5.2, according to dickey@clark.net.
13356 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13357 echo "configure:13358: checking for gethostbyname" >&5
13358 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13359 echo $ac_n "(cached) $ac_c" 1>&6
13360 else
13361 cat > conftest.$ac_ext <<EOF
13362 #line 13363 "configure"
13363 #include "confdefs.h"
13364 /* System header to define __stub macros and hopefully few prototypes,
13365 which can conflict with char gethostbyname(); below. */
13366 #include <assert.h>
13367 /* Override any gcc2 internal prototype to avoid an error. */
13368 /* We use char because int might match the return type of a gcc2
13369 builtin and then its argument prototype would still apply. */
13370 char gethostbyname();
13371
13372 int main() {
13373
13374 /* The GNU C library defines this for functions which it implements
13375 to always fail with ENOSYS. Some functions are actually named
13376 something starting with __ and the normal name is an alias. */
13377 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13378 choke me
13379 #else
13380 gethostbyname();
13381 #endif
13382
13383 ; return 0; }
13384 EOF
13385 if { (eval echo configure:13386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13386 rm -rf conftest*
13387 eval "ac_cv_func_gethostbyname=yes"
13388 else
13389 echo "configure: failed program was:" >&5
13390 cat conftest.$ac_ext >&5
13391 rm -rf conftest*
13392 eval "ac_cv_func_gethostbyname=no"
13393 fi
13394 rm -f conftest*
13395 fi
13396
13397 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13398 echo "$ac_t""yes" 1>&6
13399 :
13400 else
13401 echo "$ac_t""no" 1>&6
13402 fi
13403
13404 if test $ac_cv_func_gethostbyname = no; then
13405 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13406 echo "configure:13407: checking for gethostbyname in -lnsl" >&5
13407 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13408 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13409 echo $ac_n "(cached) $ac_c" 1>&6
13410 else
13411 ac_save_LIBS="$LIBS"
13412 LIBS="-lnsl $LIBS"
13413 cat > conftest.$ac_ext <<EOF
13414 #line 13415 "configure"
13415 #include "confdefs.h"
13416 /* Override any gcc2 internal prototype to avoid an error. */
13417 /* We use char because int might match the return type of a gcc2
13418 builtin and then its argument prototype would still apply. */
13419 char gethostbyname();
13420
13421 int main() {
13422 gethostbyname()
13423 ; return 0; }
13424 EOF
13425 if { (eval echo configure:13426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13426 rm -rf conftest*
13427 eval "ac_cv_lib_$ac_lib_var=yes"
13428 else
13429 echo "configure: failed program was:" >&5
13430 cat conftest.$ac_ext >&5
13431 rm -rf conftest*
13432 eval "ac_cv_lib_$ac_lib_var=no"
13433 fi
13434 rm -f conftest*
13435 LIBS="$ac_save_LIBS"
13436
13437 fi
13438 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13439 echo "$ac_t""yes" 1>&6
13440 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13441 else
13442 echo "$ac_t""no" 1>&6
13443 fi
13444
13445 fi
13446
13447 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13448 # socket/setsockopt and other routines are undefined under SCO ODT
13449 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13450 # on later versions), says simon@lia.di.epfl.ch: it contains
13451 # gethostby* variants that don't use the nameserver (or something).
13452 # -lsocket must be given before -lnsl if both are needed.
13453 # We assume that if connect needs -lnsl, so does gethostbyname.
13454 echo $ac_n "checking for connect""... $ac_c" 1>&6
13455 echo "configure:13456: checking for connect" >&5
13456 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13457 echo $ac_n "(cached) $ac_c" 1>&6
13458 else
13459 cat > conftest.$ac_ext <<EOF
13460 #line 13461 "configure"
13461 #include "confdefs.h"
13462 /* System header to define __stub macros and hopefully few prototypes,
13463 which can conflict with char connect(); below. */
13464 #include <assert.h>
13465 /* Override any gcc2 internal prototype to avoid an error. */
13466 /* We use char because int might match the return type of a gcc2
13467 builtin and then its argument prototype would still apply. */
13468 char connect();
13469
13470 int main() {
13471
13472 /* The GNU C library defines this for functions which it implements
13473 to always fail with ENOSYS. Some functions are actually named
13474 something starting with __ and the normal name is an alias. */
13475 #if defined (__stub_connect) || defined (__stub___connect)
13476 choke me
13477 #else
13478 connect();
13479 #endif
13480
13481 ; return 0; }
13482 EOF
13483 if { (eval echo configure:13484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13484 rm -rf conftest*
13485 eval "ac_cv_func_connect=yes"
13486 else
13487 echo "configure: failed program was:" >&5
13488 cat conftest.$ac_ext >&5
13489 rm -rf conftest*
13490 eval "ac_cv_func_connect=no"
13491 fi
13492 rm -f conftest*
13493 fi
13494
13495 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13496 echo "$ac_t""yes" 1>&6
13497 :
13498 else
13499 echo "$ac_t""no" 1>&6
13500 fi
13501
13502 if test $ac_cv_func_connect = no; then
13503 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
13504 echo "configure:13505: checking for connect in -lsocket" >&5
13505 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13506 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13507 echo $ac_n "(cached) $ac_c" 1>&6
13508 else
13509 ac_save_LIBS="$LIBS"
13510 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13511 cat > conftest.$ac_ext <<EOF
13512 #line 13513 "configure"
13513 #include "confdefs.h"
13514 /* Override any gcc2 internal prototype to avoid an error. */
13515 /* We use char because int might match the return type of a gcc2
13516 builtin and then its argument prototype would still apply. */
13517 char connect();
13518
13519 int main() {
13520 connect()
13521 ; return 0; }
13522 EOF
13523 if { (eval echo configure:13524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13524 rm -rf conftest*
13525 eval "ac_cv_lib_$ac_lib_var=yes"
13526 else
13527 echo "configure: failed program was:" >&5
13528 cat conftest.$ac_ext >&5
13529 rm -rf conftest*
13530 eval "ac_cv_lib_$ac_lib_var=no"
13531 fi
13532 rm -f conftest*
13533 LIBS="$ac_save_LIBS"
13534
13535 fi
13536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13537 echo "$ac_t""yes" 1>&6
13538 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13539 else
13540 echo "$ac_t""no" 1>&6
13541 fi
13542
13543 fi
13544
13545 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
13546 echo $ac_n "checking for remove""... $ac_c" 1>&6
13547 echo "configure:13548: checking for remove" >&5
13548 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
13549 echo $ac_n "(cached) $ac_c" 1>&6
13550 else
13551 cat > conftest.$ac_ext <<EOF
13552 #line 13553 "configure"
13553 #include "confdefs.h"
13554 /* System header to define __stub macros and hopefully few prototypes,
13555 which can conflict with char remove(); below. */
13556 #include <assert.h>
13557 /* Override any gcc2 internal prototype to avoid an error. */
13558 /* We use char because int might match the return type of a gcc2
13559 builtin and then its argument prototype would still apply. */
13560 char remove();
13561
13562 int main() {
13563
13564 /* The GNU C library defines this for functions which it implements
13565 to always fail with ENOSYS. Some functions are actually named
13566 something starting with __ and the normal name is an alias. */
13567 #if defined (__stub_remove) || defined (__stub___remove)
13568 choke me
13569 #else
13570 remove();
13571 #endif
13572
13573 ; return 0; }
13574 EOF
13575 if { (eval echo configure:13576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13576 rm -rf conftest*
13577 eval "ac_cv_func_remove=yes"
13578 else
13579 echo "configure: failed program was:" >&5
13580 cat conftest.$ac_ext >&5
13581 rm -rf conftest*
13582 eval "ac_cv_func_remove=no"
13583 fi
13584 rm -f conftest*
13585 fi
13586
13587 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
13588 echo "$ac_t""yes" 1>&6
13589 :
13590 else
13591 echo "$ac_t""no" 1>&6
13592 fi
13593
13594 if test $ac_cv_func_remove = no; then
13595 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
13596 echo "configure:13597: checking for remove in -lposix" >&5
13597 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
13598 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13599 echo $ac_n "(cached) $ac_c" 1>&6
13600 else
13601 ac_save_LIBS="$LIBS"
13602 LIBS="-lposix $LIBS"
13603 cat > conftest.$ac_ext <<EOF
13604 #line 13605 "configure"
13605 #include "confdefs.h"
13606 /* Override any gcc2 internal prototype to avoid an error. */
13607 /* We use char because int might match the return type of a gcc2
13608 builtin and then its argument prototype would still apply. */
13609 char remove();
13610
13611 int main() {
13612 remove()
13613 ; return 0; }
13614 EOF
13615 if { (eval echo configure:13616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13616 rm -rf conftest*
13617 eval "ac_cv_lib_$ac_lib_var=yes"
13618 else
13619 echo "configure: failed program was:" >&5
13620 cat conftest.$ac_ext >&5
13621 rm -rf conftest*
13622 eval "ac_cv_lib_$ac_lib_var=no"
13623 fi
13624 rm -f conftest*
13625 LIBS="$ac_save_LIBS"
13626
13627 fi
13628 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13629 echo "$ac_t""yes" 1>&6
13630 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13631 else
13632 echo "$ac_t""no" 1>&6
13633 fi
13634
13635 fi
13636
13637 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13638 echo $ac_n "checking for shmat""... $ac_c" 1>&6
13639 echo "configure:13640: checking for shmat" >&5
13640 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
13641 echo $ac_n "(cached) $ac_c" 1>&6
13642 else
13643 cat > conftest.$ac_ext <<EOF
13644 #line 13645 "configure"
13645 #include "confdefs.h"
13646 /* System header to define __stub macros and hopefully few prototypes,
13647 which can conflict with char shmat(); below. */
13648 #include <assert.h>
13649 /* Override any gcc2 internal prototype to avoid an error. */
13650 /* We use char because int might match the return type of a gcc2
13651 builtin and then its argument prototype would still apply. */
13652 char shmat();
13653
13654 int main() {
13655
13656 /* The GNU C library defines this for functions which it implements
13657 to always fail with ENOSYS. Some functions are actually named
13658 something starting with __ and the normal name is an alias. */
13659 #if defined (__stub_shmat) || defined (__stub___shmat)
13660 choke me
13661 #else
13662 shmat();
13663 #endif
13664
13665 ; return 0; }
13666 EOF
13667 if { (eval echo configure:13668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13668 rm -rf conftest*
13669 eval "ac_cv_func_shmat=yes"
13670 else
13671 echo "configure: failed program was:" >&5
13672 cat conftest.$ac_ext >&5
13673 rm -rf conftest*
13674 eval "ac_cv_func_shmat=no"
13675 fi
13676 rm -f conftest*
13677 fi
13678
13679 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
13680 echo "$ac_t""yes" 1>&6
13681 :
13682 else
13683 echo "$ac_t""no" 1>&6
13684 fi
13685
13686 if test $ac_cv_func_shmat = no; then
13687 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
13688 echo "configure:13689: checking for shmat in -lipc" >&5
13689 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
13690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13691 echo $ac_n "(cached) $ac_c" 1>&6
13692 else
13693 ac_save_LIBS="$LIBS"
13694 LIBS="-lipc $LIBS"
13695 cat > conftest.$ac_ext <<EOF
13696 #line 13697 "configure"
13697 #include "confdefs.h"
13698 /* Override any gcc2 internal prototype to avoid an error. */
13699 /* We use char because int might match the return type of a gcc2
13700 builtin and then its argument prototype would still apply. */
13701 char shmat();
13702
13703 int main() {
13704 shmat()
13705 ; return 0; }
13706 EOF
13707 if { (eval echo configure:13708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13708 rm -rf conftest*
13709 eval "ac_cv_lib_$ac_lib_var=yes"
13710 else
13711 echo "configure: failed program was:" >&5
13712 cat conftest.$ac_ext >&5
13713 rm -rf conftest*
13714 eval "ac_cv_lib_$ac_lib_var=no"
13715 fi
13716 rm -f conftest*
13717 LIBS="$ac_save_LIBS"
13718
13719 fi
13720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13721 echo "$ac_t""yes" 1>&6
13722 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13723 else
13724 echo "$ac_t""no" 1>&6
13725 fi
13726
13727 fi
13728 fi
13729
13730 # Check for libraries that X11R6 Xt/Xaw programs need.
13731 ac_save_LDFLAGS="$LDFLAGS"
13732 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13733 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13734 # check for ICE first), but we must link in the order -lSM -lICE or
13735 # we get undefined symbols. So assume we have SM if we have ICE.
13736 # These have to be linked with before -lX11, unlike the other
13737 # libraries we check for below, so use a different variable.
13738 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
13739 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
13740 echo "configure:13741: checking for IceConnectionNumber in -lICE" >&5
13741 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
13742 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13743 echo $ac_n "(cached) $ac_c" 1>&6
13744 else
13745 ac_save_LIBS="$LIBS"
13746 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13747 cat > conftest.$ac_ext <<EOF
13748 #line 13749 "configure"
13749 #include "confdefs.h"
13750 /* Override any gcc2 internal prototype to avoid an error. */
13751 /* We use char because int might match the return type of a gcc2
13752 builtin and then its argument prototype would still apply. */
13753 char IceConnectionNumber();
13754
13755 int main() {
13756 IceConnectionNumber()
13757 ; return 0; }
13758 EOF
13759 if { (eval echo configure:13760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13760 rm -rf conftest*
13761 eval "ac_cv_lib_$ac_lib_var=yes"
13762 else
13763 echo "configure: failed program was:" >&5
13764 cat conftest.$ac_ext >&5
13765 rm -rf conftest*
13766 eval "ac_cv_lib_$ac_lib_var=no"
13767 fi
13768 rm -f conftest*
13769 LIBS="$ac_save_LIBS"
13770
13771 fi
13772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13773 echo "$ac_t""yes" 1>&6
13774 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13775 else
13776 echo "$ac_t""no" 1>&6
13777 fi
13778
13779 LDFLAGS="$ac_save_LDFLAGS"
13780
13781 fi
13782
13783
13784 if test "$no_x" = "yes"; then
13785 { echo "configure: error: X11 not found" 1>&2; exit 1; }
13786 fi
13787
13788 GUI_TK_LIBRARY="$X_LIBS"
13789 TOOLKIT_INCLUDE="$X_CFLAGS"
13790 AFMINSTALL=afminstall
13791 COMPILED_X_PROGRAM=0
13792
13793 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
13794 echo "configure:13795: checking for Motif/Lesstif headers" >&5
13795
13796 ac_find_includes=
13797 for ac_dir in $SEARCH_INCLUDE;
13798 do
13799 if test -f "$ac_dir/Xm/Xm.h"; then
13800 ac_find_includes=$ac_dir
13801 break
13802 fi
13803 done
13804
13805 if test "$ac_find_includes" != "" ; then
13806 echo "$ac_t""found $ac_find_includes" 1>&6
13807 else
13808 cat > conftest.$ac_ext <<EOF
13809 #line 13810 "configure"
13810 #include "confdefs.h"
13811
13812 #include <Xm/Xm.h>
13813
13814 int main() {
13815
13816 int version;
13817 version = xmUseVersion;
13818
13819 ; return 0; }
13820 EOF
13821 if { (eval echo configure:13822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13822 rm -rf conftest*
13823
13824 echo "$ac_t""found in default search path" 1>&6
13825 COMPILED_X_PROGRAM=1
13826
13827 else
13828 echo "configure: failed program was:" >&5
13829 cat conftest.$ac_ext >&5
13830 rm -rf conftest*
13831
13832 echo "$ac_t""no" 1>&6
13833 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
13834
13835
13836 fi
13837 rm -f conftest*
13838 fi
13839
13840 if test "$COMPILED_X_PROGRAM" = 0; then
13841 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
13842 echo "configure:13843: checking for Motif/Lesstif library" >&5
13843
13844 ac_find_libraries=
13845 for ac_dir in $SEARCH_LIB;
13846 do
13847 for ac_extension in a so sl dylib; do
13848 if test -f "$ac_dir/libXm.$ac_extension"; then
13849 ac_find_libraries=$ac_dir
13850 break 2
13851 fi
13852 done
13853 done
13854
13855 if test "$ac_find_libraries" != "" ; then
13856
13857 ac_path_to_include=$ac_find_includes
13858 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
13859 result=$?
13860 if test $result = 0; then
13861 ac_path_to_include=""
13862 else
13863 ac_path_to_include=" -I$ac_find_includes"
13864 fi
13865
13866
13867 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13868 result=$?
13869 if test $result = 0; then
13870 ac_path_to_link=""
13871 else
13872 ac_path_to_link=" -L$ac_find_libraries"
13873 fi
13874
13875
13876 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13877 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
13878 echo "$ac_t""found at $ac_find_libraries" 1>&6
13879 else
13880 cat > conftest.$ac_ext <<EOF
13881 #line 13882 "configure"
13882 #include "confdefs.h"
13883
13884 #include <Xm/Xm.h>
13885
13886 int main() {
13887
13888 int version;
13889 version = xmUseVersion;
13890
13891 ; return 0; }
13892 EOF
13893 if { (eval echo configure:13894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13894 rm -rf conftest*
13895
13896 echo "$ac_t""found in default search path" 1>&6
13897 COMPILED_X_PROGRAM=1
13898
13899 else
13900 echo "configure: failed program was:" >&5
13901 cat conftest.$ac_ext >&5
13902 rm -rf conftest*
13903
13904 echo "$ac_t""no" 1>&6
13905 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
13906
13907
13908 fi
13909 rm -f conftest*
13910 fi
13911 fi
13912
13913 xpm_link=
13914 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13915 echo "configure:13916: checking for Xpm library" >&5
13916
13917 ac_find_libraries=
13918 for ac_dir in $SEARCH_LIB;
13919 do
13920 for ac_extension in a so sl dylib; do
13921 if test -f "$ac_dir/libXpm.$ac_extension"; then
13922 ac_find_libraries=$ac_dir
13923 break 2
13924 fi
13925 done
13926 done
13927
13928 if test "$ac_find_libraries" != "" ; then
13929
13930 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13931 result=$?
13932 if test $result = 0; then
13933 ac_path_to_link=""
13934 else
13935 ac_path_to_link=" -L$ac_find_libraries"
13936 fi
13937
13938 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13939 xpm_link=" -lXpm"
13940 cat >> confdefs.h <<\EOF
13941 #define wxHAVE_LIB_XPM 1
13942 EOF
13943
13944 echo "$ac_t""found at $ac_find_libraries" 1>&6
13945 else
13946 cat > conftest.$ac_ext <<EOF
13947 #line 13948 "configure"
13948 #include "confdefs.h"
13949
13950 #include <X11/xpm.h>
13951
13952 int main() {
13953
13954 int version;
13955 version = XpmLibraryVersion();
13956
13957 ; return 0; }
13958 EOF
13959 if { (eval echo configure:13960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13960 rm -rf conftest*
13961
13962 xpm_link=" -lXpm"
13963 cat >> confdefs.h <<\EOF
13964 #define wxHAVE_LIB_XPM 1
13965 EOF
13966
13967 echo "$ac_t""found in default search path" 1>&6
13968 COMPILED_X_PROGRAM=0
13969
13970 else
13971 echo "configure: failed program was:" >&5
13972 cat conftest.$ac_ext >&5
13973 rm -rf conftest*
13974
13975 echo "$ac_t""no" 1>&6
13976 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13977
13978
13979 fi
13980 rm -f conftest*
13981 fi
13982
13983 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
13984 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
13985 TOOLKIT=MOTIF
13986 GUIDIST=MOTIF_DIST
13987 fi
13988
13989 if test "$wxUSE_MAC" = 1; then
13990 if test "$wxUSE_PRECOMP" = "yes"; then
13991 CPPFLAGS="$CPPFLAGS -cpp-precomp"
13992 else
13993 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
13994 fi
13995 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
13996 CFLAGS="$CFLAGS -fpascal-strings"
13997 CXXFLAGS="$CXXFLAGS -fpascal-strings"
13998
13999 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
14000 TOOLKIT=MAC
14001 GUIDIST=MACX_DIST
14002 fi
14003
14004 if test "$wxUSE_PM" = 1; then
14005 TOOLKIT=PM
14006 GUIDIST=GTK_DIST
14007 fi
14008
14009 if test "$TOOLKIT" = "PM" ; then
14010 TOOLKIT_DIR="os2"
14011 else
14012 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
14013 fi
14014
14015 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
14016
14017 if test "$wxUSE_UNIVERSAL" = "yes"; then
14018 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
14019
14020 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
14021 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
14022
14023 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
14024 if test "$wxUSE_X11" = 1; then
14025 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
14026 else
14027 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
14028 fi
14029 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
14030 WIDGET_SET=univ
14031 else
14032 ALL_OBJECTS="\$(GUIOBJS)"
14033 ALL_SOURCES="\$(ALL_SOURCES)"
14034 ALL_HEADERS="\$(ALL_HEADERS)"
14035 fi
14036
14037 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
14038
14039 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
14040 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
14041 fi
14042
14043 if test "$wxUSE_HTML" = "yes"; then
14044 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
14045 fi
14046
14047 if test "$wxUSE_LIBJPEG" = "builtin" ; then
14048 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
14049 fi
14050 if test "$wxUSE_LIBTIFF" = "builtin" ; then
14051 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
14052 fi
14053 if test "$wxUSE_LIBPNG" = "builtin" ; then
14054 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
14055 fi
14056
14057 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
14058 DISTDIR="wx\$(TOOLKIT)"
14059 else
14060 USE_GUI=0
14061
14062 TOOLKIT_DIR="base"
14063
14064 if test "$USE_WIN32" = 1 ; then
14065 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
14066 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
14067
14068 TOOLKIT="MSW"
14069 else
14070 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
14071 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
14072 fi
14073
14074 ALL_SOURCES="\$(ALL_SOURCES)"
14075 ALL_HEADERS="\$(ALL_HEADERS)"
14076
14077 PORT_FILES="\${top_srcdir}/src/files.lst"
14078
14079 GUIDIST="BASE_DIST"
14080 DISTDIR="wxBase"
14081 fi
14082
14083
14084 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
14085 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
14086 fi
14087
14088 if test "$wxUSE_REGEX" = "builtin" ; then
14089 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
14090 fi
14091 if test "$wxUSE_ZLIB" = "builtin" ; then
14092 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
14093 fi
14094
14095
14096 if test "$wxUSE_OPENGL" = "yes"; then
14097 if test "$wxUSE_MAC" = 1; then
14098 OPENGL_LIBS="-framework OpenGL -framework AGL"
14099 elif test "$wxUSE_MSW" = 1; then
14100 OPENGL_LIBS="-lopengl32 -lglu32"
14101 else
14102 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14103 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
14104 echo "configure:14105: checking for GL/gl.h" >&5
14105 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14106 echo $ac_n "(cached) $ac_c" 1>&6
14107 else
14108 cat > conftest.$ac_ext <<EOF
14109 #line 14110 "configure"
14110 #include "confdefs.h"
14111 #include <GL/gl.h>
14112 EOF
14113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14114 { (eval echo configure:14115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14116 if test -z "$ac_err"; then
14117 rm -rf conftest*
14118 eval "ac_cv_header_$ac_safe=yes"
14119 else
14120 echo "$ac_err" >&5
14121 echo "configure: failed program was:" >&5
14122 cat conftest.$ac_ext >&5
14123 rm -rf conftest*
14124 eval "ac_cv_header_$ac_safe=no"
14125 fi
14126 rm -f conftest*
14127 fi
14128 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14129 echo "$ac_t""yes" 1>&6
14130
14131 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
14132 echo "configure:14133: checking for -lGL" >&5
14133
14134 ac_find_libraries=
14135 for ac_dir in $SEARCH_LIB;
14136 do
14137 for ac_extension in a so sl dylib; do
14138 if test -f "$ac_dir/libGL.$ac_extension"; then
14139 ac_find_libraries=$ac_dir
14140 break 2
14141 fi
14142 done
14143 done
14144
14145 if test "$ac_find_libraries" != "" ; then
14146
14147 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14148 result=$?
14149 if test $result = 0; then
14150 ac_path_to_link=""
14151 else
14152 ac_path_to_link=" -L$ac_find_libraries"
14153 fi
14154
14155 if test "$ac_path_to_link" = " -L/usr/lib" ; then
14156 LDFLAGS_GL="$LDFLAGS"
14157 else
14158 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14159 fi
14160 OPENGL_LIBS="-lGL -lGLU"
14161 echo "$ac_t""yes" 1>&6
14162 else
14163 echo "$ac_t""no" 1>&6
14164 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
14165 echo "configure:14166: checking for -lMesaGL" >&5
14166
14167 ac_find_libraries=
14168 for ac_dir in $SEARCH_LIB;
14169 do
14170 for ac_extension in a so sl dylib; do
14171 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
14172 ac_find_libraries=$ac_dir
14173 break 2
14174 fi
14175 done
14176 done
14177
14178 if test "$ac_find_libraries" != "" ; then
14179
14180 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14181 result=$?
14182 if test $result = 0; then
14183 ac_path_to_link=""
14184 else
14185 ac_path_to_link=" -L$ac_find_libraries"
14186 fi
14187
14188 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14189 OPENGL_LIBS="-lMesaGL -lMesaGLU"
14190 echo "$ac_t""yes" 1>&6
14191 else
14192 echo "$ac_t""no" 1>&6
14193 fi
14194 fi
14195
14196 else
14197 echo "$ac_t""no" 1>&6
14198 fi
14199
14200
14201 if test "x$OPENGL_LIBS" = "x"; then
14202 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
14203 fi
14204 fi
14205
14206 if test "$wxUSE_OPENGL" = "yes"; then
14207 cat >> confdefs.h <<\EOF
14208 #define wxUSE_OPENGL 1
14209 EOF
14210
14211 cat >> confdefs.h <<\EOF
14212 #define wxUSE_GLCANVAS 1
14213 EOF
14214
14215 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
14216 fi
14217 fi
14218
14219 if test -z "$TOOLKIT_VPATH" ; then
14220 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
14221 fi
14222
14223 if test -n "$TOOLKIT" ; then
14224 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
14225 fi
14226
14227 lib_unicode_suffix=
14228 if test "$wxUSE_UNICODE" = "yes"; then
14229 lib_unicode_suffix=u
14230 fi
14231
14232 lib_debug_suffix=
14233 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
14234 lib_debug_suffix=d
14235 fi
14236
14237 TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
14238 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
14239
14240 if test "$cross_compiling" = "yes"; then
14241 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
14242 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
14243 fi
14244
14245 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
14246 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
14247
14248 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14249 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14250
14251 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
14252 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
14253 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
14254 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14255
14256 case "${host}" in
14257 *-*-cygwin* | *-*-mingw32* )
14258
14259
14260
14261 if test "$cross_compiling" != "yes"; then
14262 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14263 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14264 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
14265 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
14266 else
14267 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
14268 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14269 fi
14270 ;;
14271
14272 *-*-darwin* )
14273 if test "$wxUSE_MAC" = 1; then
14274 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
14275 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
14276 fi
14277 ;;
14278 esac
14279
14280 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
14281 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
14282
14283 WXCONFIG_LIBS="-l${WX_LIBRARY}"
14284 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
14285
14286 if test "$wxUSE_OPENGL" = "yes"; then
14287 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
14288 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
14289 fi
14290
14291
14292
14293 if test "$wxUSE_SHARED" = "yes"; then
14294 case "${host}" in
14295 *-pc-os2_emx | *-pc-os2-emx | \
14296 *-pc-msdosdjgpp )
14297 wxUSE_SHARED=no
14298 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
14299 ;;
14300 esac
14301 fi
14302
14303 if test "$wxUSE_SHARED" = "yes"; then
14304
14305 if test "$wxUSE_OPENGL" = "yes"; then
14306 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
14307 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
14308 else
14309 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
14310 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
14311 fi
14312
14313 if test "$GCC" = "yes"; then
14314 PIC_FLAG="-fPIC"
14315 fi
14316
14317 SHARED_LD="${CXX} -shared -o"
14318
14319 case "${host}" in
14320 *-hp-hpux* )
14321 if test "$GCC" == "yes"; then
14322 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
14323 else
14324 LDFLAGS="$LDFLAGS -L/usr/lib"
14325
14326 SHARED_LD="${CXX} -b -o"
14327 PIC_FLAG="+Z"
14328 fi
14329
14330 if test "$wxUSE_OPENGL" = "yes"; then
14331 WX_ALL_INSTALLED="preinstall_gl"
14332 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
14333 else
14334 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
14335 fi
14336 ;;
14337
14338 *-*-linux* )
14339 if test "$GCC" != "yes"; then
14340 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
14341 echo "configure:14342: checking for Intel compiler" >&5
14342 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
14343 echo $ac_n "(cached) $ac_c" 1>&6
14344 else
14345
14346 cat > conftest.$ac_ext <<EOF
14347 #line 14348 "configure"
14348 #include "confdefs.h"
14349
14350 int main() {
14351
14352 #ifndef __INTEL_COMPILER
14353 #error Not icc
14354 #endif
14355
14356 ; return 0; }
14357 EOF
14358 if { (eval echo configure:14359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14359 rm -rf conftest*
14360 wx_cv_prog_icc=yes
14361 else
14362 echo "configure: failed program was:" >&5
14363 cat conftest.$ac_ext >&5
14364 rm -rf conftest*
14365 wx_cv_prog_icc=no
14366
14367 fi
14368 rm -f conftest*
14369
14370 fi
14371
14372 echo "$ac_t""$wx_cv_prog_icc" 1>&6
14373 if test "$wx_cv_prog_icc" = "yes"; then
14374 PIC_FLAG="-KPIC"
14375 fi
14376 fi
14377
14378 if test "$wxUSE_SONAME" = "yes" ; then
14379 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
14380 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
14381 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
14382 fi
14383 ;;
14384
14385 *-*-solaris2* )
14386 if test "$GCC" = yes ; then
14387 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
14388 else
14389 SHARED_LD="${CXX} -G -o"
14390 PIC_FLAG="-KPIC"
14391 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
14392 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
14393 fi
14394 ;;
14395
14396 *-*-darwin* )
14397 CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
14398 CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
14399 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
14400 PIC_FLAG="-dynamic -fPIC"
14401 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
14402 SONAME_FLAGS_GL=${SONAME_FLAGS}
14403 ;;
14404
14405 *-*-aix* )
14406 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
14407 ;;
14408
14409 *-*-cygwin* | *-*-mingw32* )
14410
14411 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
14412
14413 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
14414 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
14415
14416 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
14417
14418 if test "$wxUSE_OPENGL" = "yes"; then
14419 WX_ALL_INSTALLED="preinstall_gl"
14420 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
14421 else
14422 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
14423 fi
14424 ;;
14425
14426 *-*-beos* )
14427 SHARED_LD="${LD} -shared -o"
14428 ;;
14429
14430 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
14431 *-*-sunos4* | \
14432 *-*-irix5* | *-*-irix6* | \
14433 *-*-osf* | \
14434 *-*-dgux5* | \
14435 *-*-sysv5* )
14436 ;;
14437
14438 *)
14439 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
14440 esac
14441
14442 if test "x$WX_TARGET_LIBRARY" = "x"; then
14443 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
14444 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
14445 fi
14446
14447 WX_TARGET_LIBRARY_TYPE="so"
14448 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
14449 fi
14450
14451 if test "$wxUSE_SHARED" = "no"; then
14452
14453 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
14454 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
14455 fi
14456
14457 if test "$wxUSE_MAC" = 1; then
14458 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
14459 fi
14460
14461 if test "$wxUSE_OPENGL" = "yes"; then
14462 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
14463 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
14464 else
14465 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
14466 fi
14467
14468 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
14469 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
14470
14471 WX_TARGET_LIBRARY_TYPE="a"
14472 INSTALL_LIBRARY='$(INSTALL_DATA)'
14473 fi
14474
14475 if test "$wxUSE_MAC" = 1; then
14476 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
14477 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
14478 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
14479 # Extract the first word of "Rez", so it can be a program name with args.
14480 set dummy Rez; ac_word=$2
14481 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14482 echo "configure:14483: checking for $ac_word" >&5
14483 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
14484 echo $ac_n "(cached) $ac_c" 1>&6
14485 else
14486 if test -n "$RESCOMP"; then
14487 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
14488 else
14489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14490 ac_dummy="$PATH"
14491 for ac_dir in $ac_dummy; do
14492 test -z "$ac_dir" && ac_dir=.
14493 if test -f $ac_dir/$ac_word; then
14494 ac_cv_prog_RESCOMP="Rez"
14495 break
14496 fi
14497 done
14498 IFS="$ac_save_ifs"
14499 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
14500 fi
14501 fi
14502 RESCOMP="$ac_cv_prog_RESCOMP"
14503 if test -n "$RESCOMP"; then
14504 echo "$ac_t""$RESCOMP" 1>&6
14505 else
14506 echo "$ac_t""no" 1>&6
14507 fi
14508
14509 # Extract the first word of "DeRez", so it can be a program name with args.
14510 set dummy DeRez; ac_word=$2
14511 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14512 echo "configure:14513: checking for $ac_word" >&5
14513 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14514 echo $ac_n "(cached) $ac_c" 1>&6
14515 else
14516 if test -n "$DEREZ"; then
14517 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14518 else
14519 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14520 ac_dummy="$PATH"
14521 for ac_dir in $ac_dummy; do
14522 test -z "$ac_dir" && ac_dir=.
14523 if test -f $ac_dir/$ac_word; then
14524 ac_cv_prog_DEREZ="DeRez"
14525 break
14526 fi
14527 done
14528 IFS="$ac_save_ifs"
14529 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
14530 fi
14531 fi
14532 DEREZ="$ac_cv_prog_DEREZ"
14533 if test -n "$DEREZ"; then
14534 echo "$ac_t""$DEREZ" 1>&6
14535 else
14536 echo "$ac_t""no" 1>&6
14537 fi
14538
14539 MACOSX_BUNDLE="bundle"
14540 if test "$wxUSE_SHARED" = "yes"; then
14541 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
14542 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
14543 else
14544 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
14545 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
14546 fi
14547 else
14548 if test "$wxUSE_PM" = 1; then
14549 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
14550 fi
14551 fi
14552
14553
14554 if test "$wxUSE_MAC" != 1; then
14555 for ac_hdr in strings.h
14556 do
14557 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14558 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14559 echo "configure:14560: checking for $ac_hdr" >&5
14560 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14561 echo $ac_n "(cached) $ac_c" 1>&6
14562 else
14563 cat > conftest.$ac_ext <<EOF
14564 #line 14565 "configure"
14565 #include "confdefs.h"
14566 #include <$ac_hdr>
14567 EOF
14568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14569 { (eval echo configure:14570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14570 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14571 if test -z "$ac_err"; then
14572 rm -rf conftest*
14573 eval "ac_cv_header_$ac_safe=yes"
14574 else
14575 echo "$ac_err" >&5
14576 echo "configure: failed program was:" >&5
14577 cat conftest.$ac_ext >&5
14578 rm -rf conftest*
14579 eval "ac_cv_header_$ac_safe=no"
14580 fi
14581 rm -f conftest*
14582 fi
14583 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14584 echo "$ac_t""yes" 1>&6
14585 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14586 cat >> confdefs.h <<EOF
14587 #define $ac_tr_hdr 1
14588 EOF
14589
14590 else
14591 echo "$ac_t""no" 1>&6
14592 fi
14593 done
14594
14595 fi
14596
14597 for ac_hdr in stdlib.h
14598 do
14599 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14600 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14601 echo "configure:14602: checking for $ac_hdr" >&5
14602 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14603 echo $ac_n "(cached) $ac_c" 1>&6
14604 else
14605 cat > conftest.$ac_ext <<EOF
14606 #line 14607 "configure"
14607 #include "confdefs.h"
14608 #include <$ac_hdr>
14609 EOF
14610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14611 { (eval echo configure:14612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14613 if test -z "$ac_err"; then
14614 rm -rf conftest*
14615 eval "ac_cv_header_$ac_safe=yes"
14616 else
14617 echo "$ac_err" >&5
14618 echo "configure: failed program was:" >&5
14619 cat conftest.$ac_ext >&5
14620 rm -rf conftest*
14621 eval "ac_cv_header_$ac_safe=no"
14622 fi
14623 rm -f conftest*
14624 fi
14625 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14626 echo "$ac_t""yes" 1>&6
14627 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14628 cat >> confdefs.h <<EOF
14629 #define $ac_tr_hdr 1
14630 EOF
14631
14632 else
14633 echo "$ac_t""no" 1>&6
14634 fi
14635 done
14636
14637 for ac_hdr in malloc.h
14638 do
14639 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14640 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14641 echo "configure:14642: checking for $ac_hdr" >&5
14642 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14643 echo $ac_n "(cached) $ac_c" 1>&6
14644 else
14645 cat > conftest.$ac_ext <<EOF
14646 #line 14647 "configure"
14647 #include "confdefs.h"
14648 #include <$ac_hdr>
14649 EOF
14650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14651 { (eval echo configure:14652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14652 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14653 if test -z "$ac_err"; then
14654 rm -rf conftest*
14655 eval "ac_cv_header_$ac_safe=yes"
14656 else
14657 echo "$ac_err" >&5
14658 echo "configure: failed program was:" >&5
14659 cat conftest.$ac_ext >&5
14660 rm -rf conftest*
14661 eval "ac_cv_header_$ac_safe=no"
14662 fi
14663 rm -f conftest*
14664 fi
14665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14666 echo "$ac_t""yes" 1>&6
14667 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14668 cat >> confdefs.h <<EOF
14669 #define $ac_tr_hdr 1
14670 EOF
14671
14672 else
14673 echo "$ac_t""no" 1>&6
14674 fi
14675 done
14676
14677 for ac_hdr in unistd.h
14678 do
14679 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14680 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14681 echo "configure:14682: checking for $ac_hdr" >&5
14682 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14683 echo $ac_n "(cached) $ac_c" 1>&6
14684 else
14685 cat > conftest.$ac_ext <<EOF
14686 #line 14687 "configure"
14687 #include "confdefs.h"
14688 #include <$ac_hdr>
14689 EOF
14690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14691 { (eval echo configure:14692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14693 if test -z "$ac_err"; then
14694 rm -rf conftest*
14695 eval "ac_cv_header_$ac_safe=yes"
14696 else
14697 echo "$ac_err" >&5
14698 echo "configure: failed program was:" >&5
14699 cat conftest.$ac_ext >&5
14700 rm -rf conftest*
14701 eval "ac_cv_header_$ac_safe=no"
14702 fi
14703 rm -f conftest*
14704 fi
14705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14706 echo "$ac_t""yes" 1>&6
14707 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14708 cat >> confdefs.h <<EOF
14709 #define $ac_tr_hdr 1
14710 EOF
14711
14712 else
14713 echo "$ac_t""no" 1>&6
14714 fi
14715 done
14716
14717 for ac_hdr in wchar.h
14718 do
14719 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14720 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14721 echo "configure:14722: checking for $ac_hdr" >&5
14722 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14723 echo $ac_n "(cached) $ac_c" 1>&6
14724 else
14725 cat > conftest.$ac_ext <<EOF
14726 #line 14727 "configure"
14727 #include "confdefs.h"
14728 #include <$ac_hdr>
14729 EOF
14730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14731 { (eval echo configure:14732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14733 if test -z "$ac_err"; then
14734 rm -rf conftest*
14735 eval "ac_cv_header_$ac_safe=yes"
14736 else
14737 echo "$ac_err" >&5
14738 echo "configure: failed program was:" >&5
14739 cat conftest.$ac_ext >&5
14740 rm -rf conftest*
14741 eval "ac_cv_header_$ac_safe=no"
14742 fi
14743 rm -f conftest*
14744 fi
14745 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14746 echo "$ac_t""yes" 1>&6
14747 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14748 cat >> confdefs.h <<EOF
14749 #define $ac_tr_hdr 1
14750 EOF
14751
14752 else
14753 echo "$ac_t""no" 1>&6
14754 fi
14755 done
14756
14757
14758 if test "$ac_cv_header_wchar_h" != "yes"; then
14759 for ac_hdr in wcstr.h
14760 do
14761 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14762 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14763 echo "configure:14764: checking for $ac_hdr" >&5
14764 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14765 echo $ac_n "(cached) $ac_c" 1>&6
14766 else
14767 cat > conftest.$ac_ext <<EOF
14768 #line 14769 "configure"
14769 #include "confdefs.h"
14770 #include <$ac_hdr>
14771 EOF
14772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14773 { (eval echo configure:14774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14774 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14775 if test -z "$ac_err"; then
14776 rm -rf conftest*
14777 eval "ac_cv_header_$ac_safe=yes"
14778 else
14779 echo "$ac_err" >&5
14780 echo "configure: failed program was:" >&5
14781 cat conftest.$ac_ext >&5
14782 rm -rf conftest*
14783 eval "ac_cv_header_$ac_safe=no"
14784 fi
14785 rm -f conftest*
14786 fi
14787 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14788 echo "$ac_t""yes" 1>&6
14789 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14790 cat >> confdefs.h <<EOF
14791 #define $ac_tr_hdr 1
14792 EOF
14793
14794 else
14795 echo "$ac_t""no" 1>&6
14796 fi
14797 done
14798
14799 fi
14800
14801
14802 for ac_hdr in fnmatch.h
14803 do
14804 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14805 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14806 echo "configure:14807: checking for $ac_hdr" >&5
14807 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14808 echo $ac_n "(cached) $ac_c" 1>&6
14809 else
14810 cat > conftest.$ac_ext <<EOF
14811 #line 14812 "configure"
14812 #include "confdefs.h"
14813 #include <$ac_hdr>
14814 EOF
14815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14816 { (eval echo configure:14817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14817 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14818 if test -z "$ac_err"; then
14819 rm -rf conftest*
14820 eval "ac_cv_header_$ac_safe=yes"
14821 else
14822 echo "$ac_err" >&5
14823 echo "configure: failed program was:" >&5
14824 cat conftest.$ac_ext >&5
14825 rm -rf conftest*
14826 eval "ac_cv_header_$ac_safe=no"
14827 fi
14828 rm -f conftest*
14829 fi
14830 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14831 echo "$ac_t""yes" 1>&6
14832 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14833 cat >> confdefs.h <<EOF
14834 #define $ac_tr_hdr 1
14835 EOF
14836
14837 else
14838 echo "$ac_t""no" 1>&6
14839 fi
14840 done
14841
14842
14843 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14844 for ac_func in fnmatch
14845 do
14846 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14847 echo "configure:14848: checking for $ac_func" >&5
14848 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14849 echo $ac_n "(cached) $ac_c" 1>&6
14850 else
14851 cat > conftest.$ac_ext <<EOF
14852 #line 14853 "configure"
14853 #include "confdefs.h"
14854 /* System header to define __stub macros and hopefully few prototypes,
14855 which can conflict with char $ac_func(); below. */
14856 #include <assert.h>
14857 /* Override any gcc2 internal prototype to avoid an error. */
14858 /* We use char because int might match the return type of a gcc2
14859 builtin and then its argument prototype would still apply. */
14860 char $ac_func();
14861
14862 int main() {
14863
14864 /* The GNU C library defines this for functions which it implements
14865 to always fail with ENOSYS. Some functions are actually named
14866 something starting with __ and the normal name is an alias. */
14867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14868 choke me
14869 #else
14870 $ac_func();
14871 #endif
14872
14873 ; return 0; }
14874 EOF
14875 if { (eval echo configure:14876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14876 rm -rf conftest*
14877 eval "ac_cv_func_$ac_func=yes"
14878 else
14879 echo "configure: failed program was:" >&5
14880 cat conftest.$ac_ext >&5
14881 rm -rf conftest*
14882 eval "ac_cv_func_$ac_func=no"
14883 fi
14884 rm -f conftest*
14885 fi
14886
14887 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14888 echo "$ac_t""yes" 1>&6
14889 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14890 cat >> confdefs.h <<EOF
14891 #define $ac_tr_func 1
14892 EOF
14893
14894 else
14895 echo "$ac_t""no" 1>&6
14896 fi
14897 done
14898
14899 fi
14900
14901 for ac_hdr in langinfo.h
14902 do
14903 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14904 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14905 echo "configure:14906: checking for $ac_hdr" >&5
14906 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14907 echo $ac_n "(cached) $ac_c" 1>&6
14908 else
14909 cat > conftest.$ac_ext <<EOF
14910 #line 14911 "configure"
14911 #include "confdefs.h"
14912 #include <$ac_hdr>
14913 EOF
14914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14915 { (eval echo configure:14916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14917 if test -z "$ac_err"; then
14918 rm -rf conftest*
14919 eval "ac_cv_header_$ac_safe=yes"
14920 else
14921 echo "$ac_err" >&5
14922 echo "configure: failed program was:" >&5
14923 cat conftest.$ac_ext >&5
14924 rm -rf conftest*
14925 eval "ac_cv_header_$ac_safe=no"
14926 fi
14927 rm -f conftest*
14928 fi
14929 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14930 echo "$ac_t""yes" 1>&6
14931 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14932 cat >> confdefs.h <<EOF
14933 #define $ac_tr_hdr 1
14934 EOF
14935
14936 else
14937 echo "$ac_t""no" 1>&6
14938 fi
14939 done
14940
14941
14942 if test "$wxUSE_GUI" = "yes"; then
14943 if test "$wxUSE_UNIX" = "yes"; then
14944 for ac_hdr in X11/XKBlib.h
14945 do
14946 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14947 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14948 echo "configure:14949: checking for $ac_hdr" >&5
14949 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14950 echo $ac_n "(cached) $ac_c" 1>&6
14951 else
14952 cat > conftest.$ac_ext <<EOF
14953 #line 14954 "configure"
14954 #include "confdefs.h"
14955 #include <$ac_hdr>
14956 EOF
14957 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14958 { (eval echo configure:14959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14959 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14960 if test -z "$ac_err"; then
14961 rm -rf conftest*
14962 eval "ac_cv_header_$ac_safe=yes"
14963 else
14964 echo "$ac_err" >&5
14965 echo "configure: failed program was:" >&5
14966 cat conftest.$ac_ext >&5
14967 rm -rf conftest*
14968 eval "ac_cv_header_$ac_safe=no"
14969 fi
14970 rm -f conftest*
14971 fi
14972 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14973 echo "$ac_t""yes" 1>&6
14974 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14975 cat >> confdefs.h <<EOF
14976 #define $ac_tr_hdr 1
14977 EOF
14978
14979 else
14980 echo "$ac_t""no" 1>&6
14981 fi
14982 done
14983
14984 fi
14985 fi
14986
14987
14988 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
14989 echo "configure:14990: checking for ANSI C header files" >&5
14990 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
14991 echo $ac_n "(cached) $ac_c" 1>&6
14992 else
14993 cat > conftest.$ac_ext <<EOF
14994 #line 14995 "configure"
14995 #include "confdefs.h"
14996 #include <stdlib.h>
14997 #include <stdarg.h>
14998 #include <string.h>
14999 #include <float.h>
15000 EOF
15001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15002 { (eval echo configure:15003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15003 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15004 if test -z "$ac_err"; then
15005 rm -rf conftest*
15006 ac_cv_header_stdc=yes
15007 else
15008 echo "$ac_err" >&5
15009 echo "configure: failed program was:" >&5
15010 cat conftest.$ac_ext >&5
15011 rm -rf conftest*
15012 ac_cv_header_stdc=no
15013 fi
15014 rm -f conftest*
15015
15016 if test $ac_cv_header_stdc = yes; then
15017 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15018 cat > conftest.$ac_ext <<EOF
15019 #line 15020 "configure"
15020 #include "confdefs.h"
15021 #include <string.h>
15022 EOF
15023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15024 egrep "memchr" >/dev/null 2>&1; then
15025 :
15026 else
15027 rm -rf conftest*
15028 ac_cv_header_stdc=no
15029 fi
15030 rm -f conftest*
15031
15032 fi
15033
15034 if test $ac_cv_header_stdc = yes; then
15035 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15036 cat > conftest.$ac_ext <<EOF
15037 #line 15038 "configure"
15038 #include "confdefs.h"
15039 #include <stdlib.h>
15040 EOF
15041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15042 egrep "free" >/dev/null 2>&1; then
15043 :
15044 else
15045 rm -rf conftest*
15046 ac_cv_header_stdc=no
15047 fi
15048 rm -f conftest*
15049
15050 fi
15051
15052 if test $ac_cv_header_stdc = yes; then
15053 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15054 if test "$cross_compiling" = yes; then
15055 :
15056 else
15057 cat > conftest.$ac_ext <<EOF
15058 #line 15059 "configure"
15059 #include "confdefs.h"
15060 #include <ctype.h>
15061 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15062 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15063 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15064 int main () { int i; for (i = 0; i < 256; i++)
15065 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15066 exit (0); }
15067
15068 EOF
15069 if { (eval echo configure:15070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15070 then
15071 :
15072 else
15073 echo "configure: failed program was:" >&5
15074 cat conftest.$ac_ext >&5
15075 rm -fr conftest*
15076 ac_cv_header_stdc=no
15077 fi
15078 rm -fr conftest*
15079 fi
15080
15081 fi
15082 fi
15083
15084 echo "$ac_t""$ac_cv_header_stdc" 1>&6
15085 if test $ac_cv_header_stdc = yes; then
15086 cat >> confdefs.h <<\EOF
15087 #define STDC_HEADERS 1
15088 EOF
15089
15090 fi
15091
15092 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
15093 echo "configure:15094: checking for mode_t" >&5
15094 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
15095 echo $ac_n "(cached) $ac_c" 1>&6
15096 else
15097 cat > conftest.$ac_ext <<EOF
15098 #line 15099 "configure"
15099 #include "confdefs.h"
15100 #include <sys/types.h>
15101 #if STDC_HEADERS
15102 #include <stdlib.h>
15103 #include <stddef.h>
15104 #endif
15105 EOF
15106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15107 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15108 rm -rf conftest*
15109 ac_cv_type_mode_t=yes
15110 else
15111 rm -rf conftest*
15112 ac_cv_type_mode_t=no
15113 fi
15114 rm -f conftest*
15115
15116 fi
15117 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
15118 if test $ac_cv_type_mode_t = no; then
15119 cat >> confdefs.h <<\EOF
15120 #define mode_t int
15121 EOF
15122
15123 fi
15124
15125 echo $ac_n "checking for off_t""... $ac_c" 1>&6
15126 echo "configure:15127: checking for off_t" >&5
15127 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
15128 echo $ac_n "(cached) $ac_c" 1>&6
15129 else
15130 cat > conftest.$ac_ext <<EOF
15131 #line 15132 "configure"
15132 #include "confdefs.h"
15133 #include <sys/types.h>
15134 #if STDC_HEADERS
15135 #include <stdlib.h>
15136 #include <stddef.h>
15137 #endif
15138 EOF
15139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15140 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15141 rm -rf conftest*
15142 ac_cv_type_off_t=yes
15143 else
15144 rm -rf conftest*
15145 ac_cv_type_off_t=no
15146 fi
15147 rm -f conftest*
15148
15149 fi
15150 echo "$ac_t""$ac_cv_type_off_t" 1>&6
15151 if test $ac_cv_type_off_t = no; then
15152 cat >> confdefs.h <<\EOF
15153 #define off_t long
15154 EOF
15155
15156 fi
15157
15158 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
15159 echo "configure:15160: checking for pid_t" >&5
15160 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
15161 echo $ac_n "(cached) $ac_c" 1>&6
15162 else
15163 cat > conftest.$ac_ext <<EOF
15164 #line 15165 "configure"
15165 #include "confdefs.h"
15166 #include <sys/types.h>
15167 #if STDC_HEADERS
15168 #include <stdlib.h>
15169 #include <stddef.h>
15170 #endif
15171 EOF
15172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15173 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15174 rm -rf conftest*
15175 ac_cv_type_pid_t=yes
15176 else
15177 rm -rf conftest*
15178 ac_cv_type_pid_t=no
15179 fi
15180 rm -f conftest*
15181
15182 fi
15183 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
15184 if test $ac_cv_type_pid_t = no; then
15185 cat >> confdefs.h <<\EOF
15186 #define pid_t int
15187 EOF
15188
15189 fi
15190
15191 echo $ac_n "checking for size_t""... $ac_c" 1>&6
15192 echo "configure:15193: checking for size_t" >&5
15193 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
15194 echo $ac_n "(cached) $ac_c" 1>&6
15195 else
15196 cat > conftest.$ac_ext <<EOF
15197 #line 15198 "configure"
15198 #include "confdefs.h"
15199 #include <sys/types.h>
15200 #if STDC_HEADERS
15201 #include <stdlib.h>
15202 #include <stddef.h>
15203 #endif
15204 EOF
15205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15206 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15207 rm -rf conftest*
15208 ac_cv_type_size_t=yes
15209 else
15210 rm -rf conftest*
15211 ac_cv_type_size_t=no
15212 fi
15213 rm -f conftest*
15214
15215 fi
15216 echo "$ac_t""$ac_cv_type_size_t" 1>&6
15217 if test $ac_cv_type_size_t = no; then
15218 cat >> confdefs.h <<\EOF
15219 #define size_t unsigned
15220 EOF
15221
15222 fi
15223
15224 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
15225 echo "configure:15226: checking for uid_t in sys/types.h" >&5
15226 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
15227 echo $ac_n "(cached) $ac_c" 1>&6
15228 else
15229 cat > conftest.$ac_ext <<EOF
15230 #line 15231 "configure"
15231 #include "confdefs.h"
15232 #include <sys/types.h>
15233 EOF
15234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15235 egrep "uid_t" >/dev/null 2>&1; then
15236 rm -rf conftest*
15237 ac_cv_type_uid_t=yes
15238 else
15239 rm -rf conftest*
15240 ac_cv_type_uid_t=no
15241 fi
15242 rm -f conftest*
15243
15244 fi
15245
15246 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15247 if test $ac_cv_type_uid_t = no; then
15248 cat >> confdefs.h <<\EOF
15249 #define uid_t int
15250 EOF
15251
15252 cat >> confdefs.h <<\EOF
15253 #define gid_t int
15254 EOF
15255
15256 fi
15257
15258
15259
15260 ac_ext=C
15261 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15262 ac_cpp='$CXXCPP $CPPFLAGS'
15263 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15264 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15265 cross_compiling=$ac_cv_prog_cxx_cross
15266
15267 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
15268 echo "configure:15269: checking if size_t is unsigned int" >&5
15269 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
15270 echo $ac_n "(cached) $ac_c" 1>&6
15271 else
15272 cat > conftest.$ac_ext <<EOF
15273 #line 15274 "configure"
15274 #include "confdefs.h"
15275 #include <stddef.h>
15276 int main() {
15277
15278 return 0; }
15279
15280 struct Foo { void foo(size_t); void foo(unsigned int); };
15281
15282 int bar() {
15283
15284 ; return 0; }
15285 EOF
15286 if { (eval echo configure:15287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15287 rm -rf conftest*
15288 wx_cv_size_t_is_uint=no
15289 else
15290 echo "configure: failed program was:" >&5
15291 cat conftest.$ac_ext >&5
15292 rm -rf conftest*
15293 wx_cv_size_t_is_uint=yes
15294
15295 fi
15296 rm -f conftest*
15297
15298 fi
15299
15300 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
15301
15302 if test "$wx_cv_size_t_is_uint" = "yes"; then
15303 cat >> confdefs.h <<\EOF
15304 #define wxSIZE_T_IS_UINT 1
15305 EOF
15306
15307 else
15308 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
15309 echo "configure:15310: checking if size_t is unsigned long" >&5
15310 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
15311 echo $ac_n "(cached) $ac_c" 1>&6
15312 else
15313 cat > conftest.$ac_ext <<EOF
15314 #line 15315 "configure"
15315 #include "confdefs.h"
15316 #include <stddef.h>
15317 int main() {
15318
15319 return 0; }
15320
15321 struct Foo { void foo(size_t); void foo(unsigned long); };
15322
15323 int bar() {
15324
15325 ; return 0; }
15326 EOF
15327 if { (eval echo configure:15328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15328 rm -rf conftest*
15329 wx_cv_size_t_is_ulong=no
15330 else
15331 echo "configure: failed program was:" >&5
15332 cat conftest.$ac_ext >&5
15333 rm -rf conftest*
15334 wx_cv_size_t_is_ulong=yes
15335
15336 fi
15337 rm -f conftest*
15338
15339 fi
15340
15341 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
15342
15343 if test "$wx_cv_size_t_is_ulong" = "yes"; then
15344 cat >> confdefs.h <<\EOF
15345 #define wxSIZE_T_IS_ULONG 1
15346 EOF
15347
15348 fi
15349 fi
15350
15351 ac_ext=c
15352 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15353 ac_cpp='$CPP $CPPFLAGS'
15354 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15355 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15356 cross_compiling=$ac_cv_prog_cc_cross
15357
15358
15359
15360 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
15361 echo "configure:15362: checking for pw_gecos in struct passwd" >&5
15362 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
15363 echo $ac_n "(cached) $ac_c" 1>&6
15364 else
15365
15366 cat > conftest.$ac_ext <<EOF
15367 #line 15368 "configure"
15368 #include "confdefs.h"
15369 #include <pwd.h>
15370 int main() {
15371
15372 char *p;
15373 struct passwd *pw;
15374 p = pw->pw_gecos;
15375
15376 ; return 0; }
15377 EOF
15378 if { (eval echo configure:15379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15379 rm -rf conftest*
15380
15381 wx_cv_struct_pw_gecos=yes
15382
15383 else
15384 echo "configure: failed program was:" >&5
15385 cat conftest.$ac_ext >&5
15386 rm -rf conftest*
15387
15388 wx_cv_struct_pw_gecos=no
15389
15390
15391 fi
15392 rm -f conftest*
15393
15394
15395 fi
15396
15397 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
15398
15399 if test "$wx_cv_struct_pw_gecos" = "yes"; then
15400 cat >> confdefs.h <<\EOF
15401 #define HAVE_PW_GECOS 1
15402 EOF
15403
15404 fi
15405
15406
15407 WCHAR_OK=0
15408 if test "$wx_cv_sizeof_wchar_t" != "0"; then
15409 WCHAR_LINK=
15410 for ac_func in wcslen
15411 do
15412 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15413 echo "configure:15414: checking for $ac_func" >&5
15414 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15415 echo $ac_n "(cached) $ac_c" 1>&6
15416 else
15417 cat > conftest.$ac_ext <<EOF
15418 #line 15419 "configure"
15419 #include "confdefs.h"
15420 /* System header to define __stub macros and hopefully few prototypes,
15421 which can conflict with char $ac_func(); below. */
15422 #include <assert.h>
15423 /* Override any gcc2 internal prototype to avoid an error. */
15424 /* We use char because int might match the return type of a gcc2
15425 builtin and then its argument prototype would still apply. */
15426 char $ac_func();
15427
15428 int main() {
15429
15430 /* The GNU C library defines this for functions which it implements
15431 to always fail with ENOSYS. Some functions are actually named
15432 something starting with __ and the normal name is an alias. */
15433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15434 choke me
15435 #else
15436 $ac_func();
15437 #endif
15438
15439 ; return 0; }
15440 EOF
15441 if { (eval echo configure:15442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15442 rm -rf conftest*
15443 eval "ac_cv_func_$ac_func=yes"
15444 else
15445 echo "configure: failed program was:" >&5
15446 cat conftest.$ac_ext >&5
15447 rm -rf conftest*
15448 eval "ac_cv_func_$ac_func=no"
15449 fi
15450 rm -f conftest*
15451 fi
15452
15453 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15454 echo "$ac_t""yes" 1>&6
15455 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15456 cat >> confdefs.h <<EOF
15457 #define $ac_tr_func 1
15458 EOF
15459
15460 cat >> confdefs.h <<\EOF
15461 #define HAVE_WCSLEN 1
15462 EOF
15463
15464 WCHAR_OK=1
15465
15466 else
15467 echo "$ac_t""no" 1>&6
15468 fi
15469 done
15470
15471
15472 if test "$WCHAR_OK" = 0; then
15473 if test "$TOOLKIT" = "MSW"; then
15474 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
15475 echo "configure:15476: checking for wcslen in -lmsvcrt" >&5
15476 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
15477 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15478 echo $ac_n "(cached) $ac_c" 1>&6
15479 else
15480 ac_save_LIBS="$LIBS"
15481 LIBS="-lmsvcrt $LIBS"
15482 cat > conftest.$ac_ext <<EOF
15483 #line 15484 "configure"
15484 #include "confdefs.h"
15485 /* Override any gcc2 internal prototype to avoid an error. */
15486 /* We use char because int might match the return type of a gcc2
15487 builtin and then its argument prototype would still apply. */
15488 char wcslen();
15489
15490 int main() {
15491 wcslen()
15492 ; return 0; }
15493 EOF
15494 if { (eval echo configure:15495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15495 rm -rf conftest*
15496 eval "ac_cv_lib_$ac_lib_var=yes"
15497 else
15498 echo "configure: failed program was:" >&5
15499 cat conftest.$ac_ext >&5
15500 rm -rf conftest*
15501 eval "ac_cv_lib_$ac_lib_var=no"
15502 fi
15503 rm -f conftest*
15504 LIBS="$ac_save_LIBS"
15505
15506 fi
15507 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15508 echo "$ac_t""yes" 1>&6
15509
15510 cat >> confdefs.h <<\EOF
15511 #define HAVE_WCSLEN 1
15512 EOF
15513
15514 WCHAR_OK=1
15515
15516 else
15517 echo "$ac_t""no" 1>&6
15518 fi
15519
15520 else
15521 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
15522 echo "configure:15523: checking for wcslen in -lw" >&5
15523 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
15524 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15525 echo $ac_n "(cached) $ac_c" 1>&6
15526 else
15527 ac_save_LIBS="$LIBS"
15528 LIBS="-lw $LIBS"
15529 cat > conftest.$ac_ext <<EOF
15530 #line 15531 "configure"
15531 #include "confdefs.h"
15532 /* Override any gcc2 internal prototype to avoid an error. */
15533 /* We use char because int might match the return type of a gcc2
15534 builtin and then its argument prototype would still apply. */
15535 char wcslen();
15536
15537 int main() {
15538 wcslen()
15539 ; return 0; }
15540 EOF
15541 if { (eval echo configure:15542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15542 rm -rf conftest*
15543 eval "ac_cv_lib_$ac_lib_var=yes"
15544 else
15545 echo "configure: failed program was:" >&5
15546 cat conftest.$ac_ext >&5
15547 rm -rf conftest*
15548 eval "ac_cv_lib_$ac_lib_var=no"
15549 fi
15550 rm -f conftest*
15551 LIBS="$ac_save_LIBS"
15552
15553 fi
15554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15555 echo "$ac_t""yes" 1>&6
15556
15557 cat >> confdefs.h <<\EOF
15558 #define HAVE_WCSLEN 1
15559 EOF
15560
15561 WCHAR_LINK=" -lw"
15562 WCHAR_OK=1
15563
15564 else
15565 echo "$ac_t""no" 1>&6
15566 fi
15567
15568 fi
15569 fi
15570 fi
15571
15572 if test "$WCHAR_OK" = 1; then
15573 cat >> confdefs.h <<\EOF
15574 #define wxUSE_WCHAR_T 1
15575 EOF
15576
15577
15578 for ac_func in wcsrtombs
15579 do
15580 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15581 echo "configure:15582: checking for $ac_func" >&5
15582 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15583 echo $ac_n "(cached) $ac_c" 1>&6
15584 else
15585 cat > conftest.$ac_ext <<EOF
15586 #line 15587 "configure"
15587 #include "confdefs.h"
15588 /* System header to define __stub macros and hopefully few prototypes,
15589 which can conflict with char $ac_func(); below. */
15590 #include <assert.h>
15591 /* Override any gcc2 internal prototype to avoid an error. */
15592 /* We use char because int might match the return type of a gcc2
15593 builtin and then its argument prototype would still apply. */
15594 char $ac_func();
15595
15596 int main() {
15597
15598 /* The GNU C library defines this for functions which it implements
15599 to always fail with ENOSYS. Some functions are actually named
15600 something starting with __ and the normal name is an alias. */
15601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15602 choke me
15603 #else
15604 $ac_func();
15605 #endif
15606
15607 ; return 0; }
15608 EOF
15609 if { (eval echo configure:15610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15610 rm -rf conftest*
15611 eval "ac_cv_func_$ac_func=yes"
15612 else
15613 echo "configure: failed program was:" >&5
15614 cat conftest.$ac_ext >&5
15615 rm -rf conftest*
15616 eval "ac_cv_func_$ac_func=no"
15617 fi
15618 rm -f conftest*
15619 fi
15620
15621 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15622 echo "$ac_t""yes" 1>&6
15623 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15624 cat >> confdefs.h <<EOF
15625 #define $ac_tr_func 1
15626 EOF
15627
15628 else
15629 echo "$ac_t""no" 1>&6
15630 fi
15631 done
15632
15633 else
15634 if test "$USE_DARWIN" = 1; then
15635 cat >> confdefs.h <<\EOF
15636 #define wxUSE_WCHAR_T 1
15637 EOF
15638
15639 else
15640 echo "configure: warning: Wide character support is unavailable" 1>&2
15641 fi
15642 fi
15643
15644 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15645 echo "configure:15646: checking for vprintf" >&5
15646 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
15647 echo $ac_n "(cached) $ac_c" 1>&6
15648 else
15649 cat > conftest.$ac_ext <<EOF
15650 #line 15651 "configure"
15651 #include "confdefs.h"
15652 /* System header to define __stub macros and hopefully few prototypes,
15653 which can conflict with char vprintf(); below. */
15654 #include <assert.h>
15655 /* Override any gcc2 internal prototype to avoid an error. */
15656 /* We use char because int might match the return type of a gcc2
15657 builtin and then its argument prototype would still apply. */
15658 char vprintf();
15659
15660 int main() {
15661
15662 /* The GNU C library defines this for functions which it implements
15663 to always fail with ENOSYS. Some functions are actually named
15664 something starting with __ and the normal name is an alias. */
15665 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15666 choke me
15667 #else
15668 vprintf();
15669 #endif
15670
15671 ; return 0; }
15672 EOF
15673 if { (eval echo configure:15674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15674 rm -rf conftest*
15675 eval "ac_cv_func_vprintf=yes"
15676 else
15677 echo "configure: failed program was:" >&5
15678 cat conftest.$ac_ext >&5
15679 rm -rf conftest*
15680 eval "ac_cv_func_vprintf=no"
15681 fi
15682 rm -f conftest*
15683 fi
15684
15685 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15686 echo "$ac_t""yes" 1>&6
15687 cat >> confdefs.h <<\EOF
15688 #define HAVE_VPRINTF 1
15689 EOF
15690
15691 else
15692 echo "$ac_t""no" 1>&6
15693 fi
15694
15695 if test "$ac_cv_func_vprintf" != yes; then
15696 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15697 echo "configure:15698: checking for _doprnt" >&5
15698 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
15699 echo $ac_n "(cached) $ac_c" 1>&6
15700 else
15701 cat > conftest.$ac_ext <<EOF
15702 #line 15703 "configure"
15703 #include "confdefs.h"
15704 /* System header to define __stub macros and hopefully few prototypes,
15705 which can conflict with char _doprnt(); below. */
15706 #include <assert.h>
15707 /* Override any gcc2 internal prototype to avoid an error. */
15708 /* We use char because int might match the return type of a gcc2
15709 builtin and then its argument prototype would still apply. */
15710 char _doprnt();
15711
15712 int main() {
15713
15714 /* The GNU C library defines this for functions which it implements
15715 to always fail with ENOSYS. Some functions are actually named
15716 something starting with __ and the normal name is an alias. */
15717 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15718 choke me
15719 #else
15720 _doprnt();
15721 #endif
15722
15723 ; return 0; }
15724 EOF
15725 if { (eval echo configure:15726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15726 rm -rf conftest*
15727 eval "ac_cv_func__doprnt=yes"
15728 else
15729 echo "configure: failed program was:" >&5
15730 cat conftest.$ac_ext >&5
15731 rm -rf conftest*
15732 eval "ac_cv_func__doprnt=no"
15733 fi
15734 rm -f conftest*
15735 fi
15736
15737 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15738 echo "$ac_t""yes" 1>&6
15739 cat >> confdefs.h <<\EOF
15740 #define HAVE_DOPRNT 1
15741 EOF
15742
15743 else
15744 echo "$ac_t""no" 1>&6
15745 fi
15746
15747 fi
15748
15749
15750
15751
15752
15753
15754 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
15755 echo "configure:15756: checking for vsnprintf" >&5
15756 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
15757 echo $ac_n "(cached) $ac_c" 1>&6
15758 else
15759
15760 cat > conftest.$ac_ext <<EOF
15761 #line 15762 "configure"
15762 #include "confdefs.h"
15763
15764 #include <stdio.h>
15765 #include <stdarg.h>
15766
15767 int main() {
15768
15769 int wx_test_vsnprintf(const char *, ...);
15770
15771 wx_test_vsnprintf("%s");
15772 return 0;
15773 }
15774
15775 int wx_test_vsnprintf(const char *fmt, ...)
15776 {
15777 char *s;
15778
15779 va_list argp;
15780 va_start(argp, fmt);
15781 vsnprintf(s, 42, fmt, argp);
15782 va_end(argp);
15783
15784 ; return 0; }
15785 EOF
15786 if { (eval echo configure:15787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15787 rm -rf conftest*
15788
15789 wx_cv_func_vsnprintf=yes
15790
15791 else
15792 echo "configure: failed program was:" >&5
15793 cat conftest.$ac_ext >&5
15794 rm -rf conftest*
15795
15796 cat > conftest.$ac_ext <<EOF
15797 #line 15798 "configure"
15798 #include "confdefs.h"
15799
15800 #include <stdio.h>
15801 #include <stdarg.h>
15802
15803 int main() {
15804
15805 int wx_test_vsnprintf(const char *, ...);
15806
15807 wx_test_vsnprintf("%s");
15808 return 0;
15809 }
15810
15811 int wx_test_vsnprintf(const char *fmt, ...)
15812 {
15813 char *s;
15814
15815 va_list argp;
15816 va_start(argp, fmt);
15817 _vsnprintf(s, 42, fmt, argp);
15818 va_end(argp);
15819
15820 ; return 0; }
15821 EOF
15822 if { (eval echo configure:15823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15823 rm -rf conftest*
15824
15825 wx_cv_func_vsnprintf=yes
15826
15827 else
15828 echo "configure: failed program was:" >&5
15829 cat conftest.$ac_ext >&5
15830 rm -rf conftest*
15831
15832 wx_cv_func_vsnprintf=no
15833
15834 fi
15835 rm -f conftest*
15836
15837 fi
15838 rm -f conftest*
15839
15840 fi
15841
15842 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
15843
15844 if test "$wx_cv_func_vsnprintf" = yes; then
15845 cat >> confdefs.h <<\EOF
15846 #define HAVE_VSNPRINTF 1
15847 EOF
15848
15849 else
15850 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
15851 fi
15852
15853 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
15854 echo "configure:15855: checking for vsscanf" >&5
15855 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
15856 echo $ac_n "(cached) $ac_c" 1>&6
15857 else
15858
15859 cat > conftest.$ac_ext <<EOF
15860 #line 15861 "configure"
15861 #include "confdefs.h"
15862
15863 #include <stdio.h>
15864 #include <stdarg.h>
15865
15866 int main() {
15867
15868 int wx_test_vsscanf(const char *, ...);
15869
15870 wx_test_vsscanf("%d");
15871 return 0;
15872 }
15873
15874 int wx_test_vsscanf(const char *fmt, ...)
15875 {
15876 va_list argp;
15877 va_start(argp, fmt);
15878 vsscanf("42", fmt, argp);
15879 va_end(argp);
15880
15881 ; return 0; }
15882 EOF
15883 if { (eval echo configure:15884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15884 rm -rf conftest*
15885
15886 wx_cv_func_vsscanf=yes
15887
15888 else
15889 echo "configure: failed program was:" >&5
15890 cat conftest.$ac_ext >&5
15891 rm -rf conftest*
15892
15893 wx_cv_func_vsscanf=no
15894
15895 fi
15896 rm -f conftest*
15897
15898 fi
15899
15900 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
15901
15902 if test "$wx_cv_func_vsscanf" = yes; then
15903 cat >> confdefs.h <<\EOF
15904 #define HAVE_VSSCANF 1
15905 EOF
15906
15907 fi
15908
15909 if test "$TOOLKIT" != "MSW"; then
15910
15911
15912
15913 ac_ext=C
15914 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15915 ac_cpp='$CXXCPP $CPPFLAGS'
15916 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15917 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15918 cross_compiling=$ac_cv_prog_cxx_cross
15919
15920
15921
15922 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15923 if test "${with_libiconv_prefix+set}" = set; then
15924 withval="$with_libiconv_prefix"
15925
15926 for dir in `echo "$withval" | tr : ' '`; do
15927 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
15928 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
15929 done
15930
15931 fi
15932
15933
15934 echo $ac_n "checking for iconv""... $ac_c" 1>&6
15935 echo "configure:15936: checking for iconv" >&5
15936 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
15937 echo $ac_n "(cached) $ac_c" 1>&6
15938 else
15939
15940 am_cv_func_iconv="no, consider installing GNU libiconv"
15941 am_cv_lib_iconv=no
15942 cat > conftest.$ac_ext <<EOF
15943 #line 15944 "configure"
15944 #include "confdefs.h"
15945 #include <stdlib.h>
15946 #include <iconv.h>
15947 int main() {
15948 iconv_t cd = iconv_open("","");
15949 iconv(cd,NULL,NULL,NULL,NULL);
15950 iconv_close(cd);
15951 ; return 0; }
15952 EOF
15953 if { (eval echo configure:15954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15954 rm -rf conftest*
15955 am_cv_func_iconv=yes
15956 else
15957 echo "configure: failed program was:" >&5
15958 cat conftest.$ac_ext >&5
15959 fi
15960 rm -f conftest*
15961 if test "$am_cv_func_iconv" != yes; then
15962 am_save_LIBS="$LIBS"
15963 LIBS="$LIBS -liconv"
15964 cat > conftest.$ac_ext <<EOF
15965 #line 15966 "configure"
15966 #include "confdefs.h"
15967 #include <stdlib.h>
15968 #include <iconv.h>
15969 int main() {
15970 iconv_t cd = iconv_open("","");
15971 iconv(cd,NULL,NULL,NULL,NULL);
15972 iconv_close(cd);
15973 ; return 0; }
15974 EOF
15975 if { (eval echo configure:15976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15976 rm -rf conftest*
15977 am_cv_lib_iconv=yes
15978 am_cv_func_iconv=yes
15979 else
15980 echo "configure: failed program was:" >&5
15981 cat conftest.$ac_ext >&5
15982 fi
15983 rm -f conftest*
15984 LIBS="$am_save_LIBS"
15985 fi
15986
15987 fi
15988
15989 echo "$ac_t""$am_cv_func_iconv" 1>&6
15990 if test "$am_cv_func_iconv" = yes; then
15991 cat >> confdefs.h <<\EOF
15992 #define HAVE_ICONV 1
15993 EOF
15994
15995 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
15996 echo "configure:15997: checking if iconv needs const" >&5
15997 if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
15998 echo $ac_n "(cached) $ac_c" 1>&6
15999 else
16000 cat > conftest.$ac_ext <<EOF
16001 #line 16002 "configure"
16002 #include "confdefs.h"
16003
16004 #include <stdlib.h>
16005 #include <iconv.h>
16006 extern
16007 #ifdef __cplusplus
16008 "C"
16009 #endif
16010 #if defined(__STDC__) || defined(__cplusplus)
16011 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16012 #else
16013 size_t iconv();
16014 #endif
16015
16016 int main() {
16017
16018 ; return 0; }
16019 EOF
16020 if { (eval echo configure:16021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16021 rm -rf conftest*
16022 wx_cv_func_iconv_const="no"
16023 else
16024 echo "configure: failed program was:" >&5
16025 cat conftest.$ac_ext >&5
16026 rm -rf conftest*
16027 wx_cv_func_iconv_const="yes"
16028
16029 fi
16030 rm -f conftest*
16031
16032 fi
16033
16034 echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
16035
16036 iconv_const=
16037 if test "x$wx_cv_func_iconv_const" = "xyes"; then
16038 iconv_const="const"
16039 fi
16040
16041 cat >> confdefs.h <<EOF
16042 #define ICONV_CONST $iconv_const
16043 EOF
16044
16045 fi
16046 LIBICONV=
16047 if test "$am_cv_lib_iconv" = yes; then
16048 LIBICONV="-liconv"
16049 fi
16050
16051
16052 LIBS="$LIBICONV $LIBS"
16053 ac_ext=c
16054 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16055 ac_cpp='$CPP $CPPFLAGS'
16056 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16057 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16058 cross_compiling=$ac_cv_prog_cc_cross
16059
16060
16061 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
16062 for ac_func in sigaction
16063 do
16064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16065 echo "configure:16066: checking for $ac_func" >&5
16066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16067 echo $ac_n "(cached) $ac_c" 1>&6
16068 else
16069 cat > conftest.$ac_ext <<EOF
16070 #line 16071 "configure"
16071 #include "confdefs.h"
16072 /* System header to define __stub macros and hopefully few prototypes,
16073 which can conflict with char $ac_func(); below. */
16074 #include <assert.h>
16075 /* Override any gcc2 internal prototype to avoid an error. */
16076 /* We use char because int might match the return type of a gcc2
16077 builtin and then its argument prototype would still apply. */
16078 char $ac_func();
16079
16080 int main() {
16081
16082 /* The GNU C library defines this for functions which it implements
16083 to always fail with ENOSYS. Some functions are actually named
16084 something starting with __ and the normal name is an alias. */
16085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16086 choke me
16087 #else
16088 $ac_func();
16089 #endif
16090
16091 ; return 0; }
16092 EOF
16093 if { (eval echo configure:16094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16094 rm -rf conftest*
16095 eval "ac_cv_func_$ac_func=yes"
16096 else
16097 echo "configure: failed program was:" >&5
16098 cat conftest.$ac_ext >&5
16099 rm -rf conftest*
16100 eval "ac_cv_func_$ac_func=no"
16101 fi
16102 rm -f conftest*
16103 fi
16104
16105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16106 echo "$ac_t""yes" 1>&6
16107 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16108 cat >> confdefs.h <<EOF
16109 #define $ac_tr_func 1
16110 EOF
16111
16112 else
16113 echo "$ac_t""no" 1>&6
16114 fi
16115 done
16116
16117
16118 if test "$ac_cv_func_sigaction" = "no"; then
16119 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
16120 wxUSE_ON_FATAL_EXCEPTION=no
16121 fi
16122
16123 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16124
16125 ac_ext=C
16126 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16127 ac_cpp='$CXXCPP $CPPFLAGS'
16128 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16129 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16130 cross_compiling=$ac_cv_prog_cxx_cross
16131
16132
16133 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
16134 echo "configure:16135: checking for sa_handler type" >&5
16135 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
16136 echo $ac_n "(cached) $ac_c" 1>&6
16137 else
16138
16139 cat > conftest.$ac_ext <<EOF
16140 #line 16141 "configure"
16141 #include "confdefs.h"
16142 #include <signal.h>
16143 int main() {
16144
16145 extern void testSigHandler(int);
16146
16147 struct sigaction sa;
16148 sa.sa_handler = testSigHandler;
16149
16150 ; return 0; }
16151 EOF
16152 if { (eval echo configure:16153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16153 rm -rf conftest*
16154
16155 wx_cv_type_sa_handler=int
16156
16157 else
16158 echo "configure: failed program was:" >&5
16159 cat conftest.$ac_ext >&5
16160 rm -rf conftest*
16161
16162 wx_cv_type_sa_handler=void
16163
16164 fi
16165 rm -f conftest*
16166
16167 fi
16168
16169 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
16170
16171 ac_ext=c
16172 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16173 ac_cpp='$CPP $CPPFLAGS'
16174 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16175 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16176 cross_compiling=$ac_cv_prog_cc_cross
16177
16178
16179 cat >> confdefs.h <<EOF
16180 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
16181 EOF
16182
16183 fi
16184 fi
16185
16186 for ac_func in vfork
16187 do
16188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16189 echo "configure:16190: checking for $ac_func" >&5
16190 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16191 echo $ac_n "(cached) $ac_c" 1>&6
16192 else
16193 cat > conftest.$ac_ext <<EOF
16194 #line 16195 "configure"
16195 #include "confdefs.h"
16196 /* System header to define __stub macros and hopefully few prototypes,
16197 which can conflict with char $ac_func(); below. */
16198 #include <assert.h>
16199 /* Override any gcc2 internal prototype to avoid an error. */
16200 /* We use char because int might match the return type of a gcc2
16201 builtin and then its argument prototype would still apply. */
16202 char $ac_func();
16203
16204 int main() {
16205
16206 /* The GNU C library defines this for functions which it implements
16207 to always fail with ENOSYS. Some functions are actually named
16208 something starting with __ and the normal name is an alias. */
16209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16210 choke me
16211 #else
16212 $ac_func();
16213 #endif
16214
16215 ; return 0; }
16216 EOF
16217 if { (eval echo configure:16218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16218 rm -rf conftest*
16219 eval "ac_cv_func_$ac_func=yes"
16220 else
16221 echo "configure: failed program was:" >&5
16222 cat conftest.$ac_ext >&5
16223 rm -rf conftest*
16224 eval "ac_cv_func_$ac_func=no"
16225 fi
16226 rm -f conftest*
16227 fi
16228
16229 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16230 echo "$ac_t""yes" 1>&6
16231 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16232 cat >> confdefs.h <<EOF
16233 #define $ac_tr_func 1
16234 EOF
16235
16236 else
16237 echo "$ac_t""no" 1>&6
16238 fi
16239 done
16240
16241
16242 for ac_func in mkstemp mktemp
16243 do
16244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16245 echo "configure:16246: checking for $ac_func" >&5
16246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16247 echo $ac_n "(cached) $ac_c" 1>&6
16248 else
16249 cat > conftest.$ac_ext <<EOF
16250 #line 16251 "configure"
16251 #include "confdefs.h"
16252 /* System header to define __stub macros and hopefully few prototypes,
16253 which can conflict with char $ac_func(); below. */
16254 #include <assert.h>
16255 /* Override any gcc2 internal prototype to avoid an error. */
16256 /* We use char because int might match the return type of a gcc2
16257 builtin and then its argument prototype would still apply. */
16258 char $ac_func();
16259
16260 int main() {
16261
16262 /* The GNU C library defines this for functions which it implements
16263 to always fail with ENOSYS. Some functions are actually named
16264 something starting with __ and the normal name is an alias. */
16265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16266 choke me
16267 #else
16268 $ac_func();
16269 #endif
16270
16271 ; return 0; }
16272 EOF
16273 if { (eval echo configure:16274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16274 rm -rf conftest*
16275 eval "ac_cv_func_$ac_func=yes"
16276 else
16277 echo "configure: failed program was:" >&5
16278 cat conftest.$ac_ext >&5
16279 rm -rf conftest*
16280 eval "ac_cv_func_$ac_func=no"
16281 fi
16282 rm -f conftest*
16283 fi
16284
16285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16286 echo "$ac_t""yes" 1>&6
16287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16288 cat >> confdefs.h <<EOF
16289 #define $ac_tr_func 1
16290 EOF
16291 break
16292 else
16293 echo "$ac_t""no" 1>&6
16294 fi
16295 done
16296
16297
16298 echo $ac_n "checking for statfs""... $ac_c" 1>&6
16299 echo "configure:16300: checking for statfs" >&5
16300 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16301 echo $ac_n "(cached) $ac_c" 1>&6
16302 else
16303 cat > conftest.$ac_ext <<EOF
16304 #line 16305 "configure"
16305 #include "confdefs.h"
16306
16307 #if defined(__BSD__)
16308 #include <sys/param.h>
16309 #include <sys/mount.h>
16310 #else
16311 #include <sys/vfs.h>
16312 #endif
16313
16314 int main() {
16315
16316 long l;
16317 struct statfs fs;
16318 statfs("/", &fs);
16319 l = fs.f_bsize;
16320 l += fs.f_blocks;
16321 l += fs.f_bavail;
16322
16323 ; return 0; }
16324 EOF
16325 if { (eval echo configure:16326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16326 rm -rf conftest*
16327
16328 wx_cv_func_statfs=yes
16329
16330 else
16331 echo "configure: failed program was:" >&5
16332 cat conftest.$ac_ext >&5
16333 rm -rf conftest*
16334
16335 wx_cv_func_statfs=no
16336
16337
16338 fi
16339 rm -f conftest*
16340
16341 fi
16342
16343 echo "$ac_t""$wx_cv_func_statfs" 1>&6
16344
16345 if test "$wx_cv_func_statfs" = "yes"; then
16346 cat >> confdefs.h <<\EOF
16347 #define HAVE_STATFS 1
16348 EOF
16349
16350 else
16351 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
16352 echo "configure:16353: checking for statvfs" >&5
16353 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
16354 echo $ac_n "(cached) $ac_c" 1>&6
16355 else
16356 cat > conftest.$ac_ext <<EOF
16357 #line 16358 "configure"
16358 #include "confdefs.h"
16359
16360 #include <sys/statvfs.h>
16361
16362 int main() {
16363
16364 long l;
16365 struct statvfs fs;
16366 statvfs("/", &fs);
16367 l = fs.f_bsize;
16368 l += fs.f_blocks;
16369 l += fs.f_bavail;
16370
16371 ; return 0; }
16372 EOF
16373 if { (eval echo configure:16374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16374 rm -rf conftest*
16375
16376 wx_cv_func_statvfs=yes
16377
16378 else
16379 echo "configure: failed program was:" >&5
16380 cat conftest.$ac_ext >&5
16381 rm -rf conftest*
16382
16383 wx_cv_func_statvfs=no
16384
16385
16386 fi
16387 rm -f conftest*
16388
16389 fi
16390
16391 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
16392
16393 if test "$wx_cv_func_statvfs" = "yes"; then
16394 cat >> confdefs.h <<\EOF
16395 #define HAVE_STATVFS 1
16396 EOF
16397
16398 else
16399 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16400 fi
16401 fi
16402
16403 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16404 for ac_func in fcntl flock
16405 do
16406 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16407 echo "configure:16408: checking for $ac_func" >&5
16408 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16409 echo $ac_n "(cached) $ac_c" 1>&6
16410 else
16411 cat > conftest.$ac_ext <<EOF
16412 #line 16413 "configure"
16413 #include "confdefs.h"
16414 /* System header to define __stub macros and hopefully few prototypes,
16415 which can conflict with char $ac_func(); below. */
16416 #include <assert.h>
16417 /* Override any gcc2 internal prototype to avoid an error. */
16418 /* We use char because int might match the return type of a gcc2
16419 builtin and then its argument prototype would still apply. */
16420 char $ac_func();
16421
16422 int main() {
16423
16424 /* The GNU C library defines this for functions which it implements
16425 to always fail with ENOSYS. Some functions are actually named
16426 something starting with __ and the normal name is an alias. */
16427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16428 choke me
16429 #else
16430 $ac_func();
16431 #endif
16432
16433 ; return 0; }
16434 EOF
16435 if { (eval echo configure:16436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16436 rm -rf conftest*
16437 eval "ac_cv_func_$ac_func=yes"
16438 else
16439 echo "configure: failed program was:" >&5
16440 cat conftest.$ac_ext >&5
16441 rm -rf conftest*
16442 eval "ac_cv_func_$ac_func=no"
16443 fi
16444 rm -f conftest*
16445 fi
16446
16447 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16448 echo "$ac_t""yes" 1>&6
16449 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16450 cat >> confdefs.h <<EOF
16451 #define $ac_tr_func 1
16452 EOF
16453 break
16454 else
16455 echo "$ac_t""no" 1>&6
16456 fi
16457 done
16458
16459
16460 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16461 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16462 wxUSE_SNGLINST_CHECKER=no
16463 fi
16464 fi
16465
16466 for ac_func in timegm
16467 do
16468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16469 echo "configure:16470: checking for $ac_func" >&5
16470 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16471 echo $ac_n "(cached) $ac_c" 1>&6
16472 else
16473 cat > conftest.$ac_ext <<EOF
16474 #line 16475 "configure"
16475 #include "confdefs.h"
16476 /* System header to define __stub macros and hopefully few prototypes,
16477 which can conflict with char $ac_func(); below. */
16478 #include <assert.h>
16479 /* Override any gcc2 internal prototype to avoid an error. */
16480 /* We use char because int might match the return type of a gcc2
16481 builtin and then its argument prototype would still apply. */
16482 char $ac_func();
16483
16484 int main() {
16485
16486 /* The GNU C library defines this for functions which it implements
16487 to always fail with ENOSYS. Some functions are actually named
16488 something starting with __ and the normal name is an alias. */
16489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16490 choke me
16491 #else
16492 $ac_func();
16493 #endif
16494
16495 ; return 0; }
16496 EOF
16497 if { (eval echo configure:16498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16498 rm -rf conftest*
16499 eval "ac_cv_func_$ac_func=yes"
16500 else
16501 echo "configure: failed program was:" >&5
16502 cat conftest.$ac_ext >&5
16503 rm -rf conftest*
16504 eval "ac_cv_func_$ac_func=no"
16505 fi
16506 rm -f conftest*
16507 fi
16508
16509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16510 echo "$ac_t""yes" 1>&6
16511 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16512 cat >> confdefs.h <<EOF
16513 #define $ac_tr_func 1
16514 EOF
16515
16516 else
16517 echo "$ac_t""no" 1>&6
16518 fi
16519 done
16520
16521
16522 for ac_func in putenv setenv
16523 do
16524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16525 echo "configure:16526: checking for $ac_func" >&5
16526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16527 echo $ac_n "(cached) $ac_c" 1>&6
16528 else
16529 cat > conftest.$ac_ext <<EOF
16530 #line 16531 "configure"
16531 #include "confdefs.h"
16532 /* System header to define __stub macros and hopefully few prototypes,
16533 which can conflict with char $ac_func(); below. */
16534 #include <assert.h>
16535 /* Override any gcc2 internal prototype to avoid an error. */
16536 /* We use char because int might match the return type of a gcc2
16537 builtin and then its argument prototype would still apply. */
16538 char $ac_func();
16539
16540 int main() {
16541
16542 /* The GNU C library defines this for functions which it implements
16543 to always fail with ENOSYS. Some functions are actually named
16544 something starting with __ and the normal name is an alias. */
16545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16546 choke me
16547 #else
16548 $ac_func();
16549 #endif
16550
16551 ; return 0; }
16552 EOF
16553 if { (eval echo configure:16554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16554 rm -rf conftest*
16555 eval "ac_cv_func_$ac_func=yes"
16556 else
16557 echo "configure: failed program was:" >&5
16558 cat conftest.$ac_ext >&5
16559 rm -rf conftest*
16560 eval "ac_cv_func_$ac_func=no"
16561 fi
16562 rm -f conftest*
16563 fi
16564
16565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16566 echo "$ac_t""yes" 1>&6
16567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16568 cat >> confdefs.h <<EOF
16569 #define $ac_tr_func 1
16570 EOF
16571 break
16572 else
16573 echo "$ac_t""no" 1>&6
16574 fi
16575 done
16576
16577
16578 HAVE_SOME_SLEEP_FUNC=0
16579 if test "$USE_BEOS" = 1; then
16580 cat >> confdefs.h <<\EOF
16581 #define HAVE_SLEEP 1
16582 EOF
16583
16584 HAVE_SOME_SLEEP_FUNC=1
16585 fi
16586
16587 if test "$USE_DARWIN" = 1; then
16588 cat >> confdefs.h <<\EOF
16589 #define HAVE_USLEEP 1
16590 EOF
16591
16592 HAVE_SOME_SLEEP_FUNC=1
16593 fi
16594
16595 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16596 POSIX4_LINK=
16597 for ac_func in nanosleep
16598 do
16599 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16600 echo "configure:16601: checking for $ac_func" >&5
16601 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16602 echo $ac_n "(cached) $ac_c" 1>&6
16603 else
16604 cat > conftest.$ac_ext <<EOF
16605 #line 16606 "configure"
16606 #include "confdefs.h"
16607 /* System header to define __stub macros and hopefully few prototypes,
16608 which can conflict with char $ac_func(); below. */
16609 #include <assert.h>
16610 /* Override any gcc2 internal prototype to avoid an error. */
16611 /* We use char because int might match the return type of a gcc2
16612 builtin and then its argument prototype would still apply. */
16613 char $ac_func();
16614
16615 int main() {
16616
16617 /* The GNU C library defines this for functions which it implements
16618 to always fail with ENOSYS. Some functions are actually named
16619 something starting with __ and the normal name is an alias. */
16620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16621 choke me
16622 #else
16623 $ac_func();
16624 #endif
16625
16626 ; return 0; }
16627 EOF
16628 if { (eval echo configure:16629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16629 rm -rf conftest*
16630 eval "ac_cv_func_$ac_func=yes"
16631 else
16632 echo "configure: failed program was:" >&5
16633 cat conftest.$ac_ext >&5
16634 rm -rf conftest*
16635 eval "ac_cv_func_$ac_func=no"
16636 fi
16637 rm -f conftest*
16638 fi
16639
16640 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16641 echo "$ac_t""yes" 1>&6
16642 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16643 cat >> confdefs.h <<EOF
16644 #define $ac_tr_func 1
16645 EOF
16646 cat >> confdefs.h <<\EOF
16647 #define HAVE_NANOSLEEP 1
16648 EOF
16649
16650 else
16651 echo "$ac_t""no" 1>&6
16652 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
16653 echo "configure:16654: checking for nanosleep in -lposix4" >&5
16654 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
16655 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16656 echo $ac_n "(cached) $ac_c" 1>&6
16657 else
16658 ac_save_LIBS="$LIBS"
16659 LIBS="-lposix4 $LIBS"
16660 cat > conftest.$ac_ext <<EOF
16661 #line 16662 "configure"
16662 #include "confdefs.h"
16663 /* Override any gcc2 internal prototype to avoid an error. */
16664 /* We use char because int might match the return type of a gcc2
16665 builtin and then its argument prototype would still apply. */
16666 char nanosleep();
16667
16668 int main() {
16669 nanosleep()
16670 ; return 0; }
16671 EOF
16672 if { (eval echo configure:16673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16673 rm -rf conftest*
16674 eval "ac_cv_lib_$ac_lib_var=yes"
16675 else
16676 echo "configure: failed program was:" >&5
16677 cat conftest.$ac_ext >&5
16678 rm -rf conftest*
16679 eval "ac_cv_lib_$ac_lib_var=no"
16680 fi
16681 rm -f conftest*
16682 LIBS="$ac_save_LIBS"
16683
16684 fi
16685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16686 echo "$ac_t""yes" 1>&6
16687
16688 cat >> confdefs.h <<\EOF
16689 #define HAVE_NANOSLEEP 1
16690 EOF
16691
16692 POSIX4_LINK=" -lposix4"
16693
16694 else
16695 echo "$ac_t""no" 1>&6
16696
16697 for ac_func in usleep
16698 do
16699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16700 echo "configure:16701: checking for $ac_func" >&5
16701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16702 echo $ac_n "(cached) $ac_c" 1>&6
16703 else
16704 cat > conftest.$ac_ext <<EOF
16705 #line 16706 "configure"
16706 #include "confdefs.h"
16707 /* System header to define __stub macros and hopefully few prototypes,
16708 which can conflict with char $ac_func(); below. */
16709 #include <assert.h>
16710 /* Override any gcc2 internal prototype to avoid an error. */
16711 /* We use char because int might match the return type of a gcc2
16712 builtin and then its argument prototype would still apply. */
16713 char $ac_func();
16714
16715 int main() {
16716
16717 /* The GNU C library defines this for functions which it implements
16718 to always fail with ENOSYS. Some functions are actually named
16719 something starting with __ and the normal name is an alias. */
16720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16721 choke me
16722 #else
16723 $ac_func();
16724 #endif
16725
16726 ; return 0; }
16727 EOF
16728 if { (eval echo configure:16729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16729 rm -rf conftest*
16730 eval "ac_cv_func_$ac_func=yes"
16731 else
16732 echo "configure: failed program was:" >&5
16733 cat conftest.$ac_ext >&5
16734 rm -rf conftest*
16735 eval "ac_cv_func_$ac_func=no"
16736 fi
16737 rm -f conftest*
16738 fi
16739
16740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16741 echo "$ac_t""yes" 1>&6
16742 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16743 cat >> confdefs.h <<EOF
16744 #define $ac_tr_func 1
16745 EOF
16746 cat >> confdefs.h <<\EOF
16747 #define HAVE_USLEEP 1
16748 EOF
16749
16750 else
16751 echo "$ac_t""no" 1>&6
16752 echo "configure: warning: wxSleep() function will not work" 1>&2
16753
16754 fi
16755 done
16756
16757
16758
16759 fi
16760
16761
16762
16763 fi
16764 done
16765
16766 fi
16767
16768 for ac_func in uname gethostname
16769 do
16770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16771 echo "configure:16772: checking for $ac_func" >&5
16772 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16773 echo $ac_n "(cached) $ac_c" 1>&6
16774 else
16775 cat > conftest.$ac_ext <<EOF
16776 #line 16777 "configure"
16777 #include "confdefs.h"
16778 /* System header to define __stub macros and hopefully few prototypes,
16779 which can conflict with char $ac_func(); below. */
16780 #include <assert.h>
16781 /* Override any gcc2 internal prototype to avoid an error. */
16782 /* We use char because int might match the return type of a gcc2
16783 builtin and then its argument prototype would still apply. */
16784 char $ac_func();
16785
16786 int main() {
16787
16788 /* The GNU C library defines this for functions which it implements
16789 to always fail with ENOSYS. Some functions are actually named
16790 something starting with __ and the normal name is an alias. */
16791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16792 choke me
16793 #else
16794 $ac_func();
16795 #endif
16796
16797 ; return 0; }
16798 EOF
16799 if { (eval echo configure:16800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16800 rm -rf conftest*
16801 eval "ac_cv_func_$ac_func=yes"
16802 else
16803 echo "configure: failed program was:" >&5
16804 cat conftest.$ac_ext >&5
16805 rm -rf conftest*
16806 eval "ac_cv_func_$ac_func=no"
16807 fi
16808 rm -f conftest*
16809 fi
16810
16811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16812 echo "$ac_t""yes" 1>&6
16813 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16814 cat >> confdefs.h <<EOF
16815 #define $ac_tr_func 1
16816 EOF
16817 break
16818 else
16819 echo "$ac_t""no" 1>&6
16820 fi
16821 done
16822
16823
16824
16825 ac_ext=C
16826 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16827 ac_cpp='$CXXCPP $CPPFLAGS'
16828 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16829 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16830 cross_compiling=$ac_cv_prog_cxx_cross
16831
16832
16833 for ac_func in strtok_r
16834 do
16835 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16836 echo "configure:16837: checking for $ac_func" >&5
16837 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16838 echo $ac_n "(cached) $ac_c" 1>&6
16839 else
16840 cat > conftest.$ac_ext <<EOF
16841 #line 16842 "configure"
16842 #include "confdefs.h"
16843 /* System header to define __stub macros and hopefully few prototypes,
16844 which can conflict with char $ac_func(); below. */
16845 #include <assert.h>
16846 /* Override any gcc2 internal prototype to avoid an error. */
16847 #ifdef __cplusplus
16848 extern "C"
16849 #endif
16850 /* We use char because int might match the return type of a gcc2
16851 builtin and then its argument prototype would still apply. */
16852 char $ac_func();
16853
16854 int main() {
16855
16856 /* The GNU C library defines this for functions which it implements
16857 to always fail with ENOSYS. Some functions are actually named
16858 something starting with __ and the normal name is an alias. */
16859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16860 choke me
16861 #else
16862 $ac_func();
16863 #endif
16864
16865 ; return 0; }
16866 EOF
16867 if { (eval echo configure:16868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16868 rm -rf conftest*
16869 eval "ac_cv_func_$ac_func=yes"
16870 else
16871 echo "configure: failed program was:" >&5
16872 cat conftest.$ac_ext >&5
16873 rm -rf conftest*
16874 eval "ac_cv_func_$ac_func=no"
16875 fi
16876 rm -f conftest*
16877 fi
16878
16879 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16880 echo "$ac_t""yes" 1>&6
16881 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16882 cat >> confdefs.h <<EOF
16883 #define $ac_tr_func 1
16884 EOF
16885
16886 else
16887 echo "$ac_t""no" 1>&6
16888 fi
16889 done
16890
16891
16892 ac_ext=c
16893 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16894 ac_cpp='$CPP $CPPFLAGS'
16895 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16896 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16897 cross_compiling=$ac_cv_prog_cc_cross
16898
16899
16900 INET_LINK=
16901 for ac_func in inet_addr
16902 do
16903 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16904 echo "configure:16905: checking for $ac_func" >&5
16905 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16906 echo $ac_n "(cached) $ac_c" 1>&6
16907 else
16908 cat > conftest.$ac_ext <<EOF
16909 #line 16910 "configure"
16910 #include "confdefs.h"
16911 /* System header to define __stub macros and hopefully few prototypes,
16912 which can conflict with char $ac_func(); below. */
16913 #include <assert.h>
16914 /* Override any gcc2 internal prototype to avoid an error. */
16915 /* We use char because int might match the return type of a gcc2
16916 builtin and then its argument prototype would still apply. */
16917 char $ac_func();
16918
16919 int main() {
16920
16921 /* The GNU C library defines this for functions which it implements
16922 to always fail with ENOSYS. Some functions are actually named
16923 something starting with __ and the normal name is an alias. */
16924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16925 choke me
16926 #else
16927 $ac_func();
16928 #endif
16929
16930 ; return 0; }
16931 EOF
16932 if { (eval echo configure:16933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16933 rm -rf conftest*
16934 eval "ac_cv_func_$ac_func=yes"
16935 else
16936 echo "configure: failed program was:" >&5
16937 cat conftest.$ac_ext >&5
16938 rm -rf conftest*
16939 eval "ac_cv_func_$ac_func=no"
16940 fi
16941 rm -f conftest*
16942 fi
16943
16944 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16945 echo "$ac_t""yes" 1>&6
16946 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16947 cat >> confdefs.h <<EOF
16948 #define $ac_tr_func 1
16949 EOF
16950 cat >> confdefs.h <<\EOF
16951 #define HAVE_INET_ADDR 1
16952 EOF
16953
16954 else
16955 echo "$ac_t""no" 1>&6
16956 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
16957 echo "configure:16958: checking for inet_addr in -lnsl" >&5
16958 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
16959 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16960 echo $ac_n "(cached) $ac_c" 1>&6
16961 else
16962 ac_save_LIBS="$LIBS"
16963 LIBS="-lnsl $LIBS"
16964 cat > conftest.$ac_ext <<EOF
16965 #line 16966 "configure"
16966 #include "confdefs.h"
16967 /* Override any gcc2 internal prototype to avoid an error. */
16968 /* We use char because int might match the return type of a gcc2
16969 builtin and then its argument prototype would still apply. */
16970 char inet_addr();
16971
16972 int main() {
16973 inet_addr()
16974 ; return 0; }
16975 EOF
16976 if { (eval echo configure:16977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16977 rm -rf conftest*
16978 eval "ac_cv_lib_$ac_lib_var=yes"
16979 else
16980 echo "configure: failed program was:" >&5
16981 cat conftest.$ac_ext >&5
16982 rm -rf conftest*
16983 eval "ac_cv_lib_$ac_lib_var=no"
16984 fi
16985 rm -f conftest*
16986 LIBS="$ac_save_LIBS"
16987
16988 fi
16989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16990 echo "$ac_t""yes" 1>&6
16991 INET_LINK="nsl"
16992 else
16993 echo "$ac_t""no" 1>&6
16994 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
16995 echo "configure:16996: checking for inet_addr in -lresolv" >&5
16996 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
16997 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16998 echo $ac_n "(cached) $ac_c" 1>&6
16999 else
17000 ac_save_LIBS="$LIBS"
17001 LIBS="-lresolv $LIBS"
17002 cat > conftest.$ac_ext <<EOF
17003 #line 17004 "configure"
17004 #include "confdefs.h"
17005 /* Override any gcc2 internal prototype to avoid an error. */
17006 /* We use char because int might match the return type of a gcc2
17007 builtin and then its argument prototype would still apply. */
17008 char inet_addr();
17009
17010 int main() {
17011 inet_addr()
17012 ; return 0; }
17013 EOF
17014 if { (eval echo configure:17015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17015 rm -rf conftest*
17016 eval "ac_cv_lib_$ac_lib_var=yes"
17017 else
17018 echo "configure: failed program was:" >&5
17019 cat conftest.$ac_ext >&5
17020 rm -rf conftest*
17021 eval "ac_cv_lib_$ac_lib_var=no"
17022 fi
17023 rm -f conftest*
17024 LIBS="$ac_save_LIBS"
17025
17026 fi
17027 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17028 echo "$ac_t""yes" 1>&6
17029 INET_LINK="resolv"
17030 else
17031 echo "$ac_t""no" 1>&6
17032 echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
17033 echo "configure:17034: checking for inet_addr in -lsocket" >&5
17034 ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
17035 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17036 echo $ac_n "(cached) $ac_c" 1>&6
17037 else
17038 ac_save_LIBS="$LIBS"
17039 LIBS="-lsocket $LIBS"
17040 cat > conftest.$ac_ext <<EOF
17041 #line 17042 "configure"
17042 #include "confdefs.h"
17043 /* Override any gcc2 internal prototype to avoid an error. */
17044 /* We use char because int might match the return type of a gcc2
17045 builtin and then its argument prototype would still apply. */
17046 char inet_addr();
17047
17048 int main() {
17049 inet_addr()
17050 ; return 0; }
17051 EOF
17052 if { (eval echo configure:17053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17053 rm -rf conftest*
17054 eval "ac_cv_lib_$ac_lib_var=yes"
17055 else
17056 echo "configure: failed program was:" >&5
17057 cat conftest.$ac_ext >&5
17058 rm -rf conftest*
17059 eval "ac_cv_lib_$ac_lib_var=no"
17060 fi
17061 rm -f conftest*
17062 LIBS="$ac_save_LIBS"
17063
17064 fi
17065 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17066 echo "$ac_t""yes" 1>&6
17067 INET_LINK="socket"
17068
17069 else
17070 echo "$ac_t""no" 1>&6
17071 fi
17072
17073
17074 fi
17075
17076
17077 fi
17078
17079
17080
17081 fi
17082 done
17083
17084
17085 for ac_func in inet_aton
17086 do
17087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17088 echo "configure:17089: checking for $ac_func" >&5
17089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17090 echo $ac_n "(cached) $ac_c" 1>&6
17091 else
17092 cat > conftest.$ac_ext <<EOF
17093 #line 17094 "configure"
17094 #include "confdefs.h"
17095 /* System header to define __stub macros and hopefully few prototypes,
17096 which can conflict with char $ac_func(); below. */
17097 #include <assert.h>
17098 /* Override any gcc2 internal prototype to avoid an error. */
17099 /* We use char because int might match the return type of a gcc2
17100 builtin and then its argument prototype would still apply. */
17101 char $ac_func();
17102
17103 int main() {
17104
17105 /* The GNU C library defines this for functions which it implements
17106 to always fail with ENOSYS. Some functions are actually named
17107 something starting with __ and the normal name is an alias. */
17108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17109 choke me
17110 #else
17111 $ac_func();
17112 #endif
17113
17114 ; return 0; }
17115 EOF
17116 if { (eval echo configure:17117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17117 rm -rf conftest*
17118 eval "ac_cv_func_$ac_func=yes"
17119 else
17120 echo "configure: failed program was:" >&5
17121 cat conftest.$ac_ext >&5
17122 rm -rf conftest*
17123 eval "ac_cv_func_$ac_func=no"
17124 fi
17125 rm -f conftest*
17126 fi
17127
17128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17129 echo "$ac_t""yes" 1>&6
17130 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17131 cat >> confdefs.h <<EOF
17132 #define $ac_tr_func 1
17133 EOF
17134 cat >> confdefs.h <<\EOF
17135 #define HAVE_INET_ATON 1
17136 EOF
17137
17138 else
17139 echo "$ac_t""no" 1>&6
17140 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
17141 echo "configure:17142: checking for inet_aton in -l$INET_LINK" >&5
17142 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
17143 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17144 echo $ac_n "(cached) $ac_c" 1>&6
17145 else
17146 ac_save_LIBS="$LIBS"
17147 LIBS="-l$INET_LINK $LIBS"
17148 cat > conftest.$ac_ext <<EOF
17149 #line 17150 "configure"
17150 #include "confdefs.h"
17151 /* Override any gcc2 internal prototype to avoid an error. */
17152 /* We use char because int might match the return type of a gcc2
17153 builtin and then its argument prototype would still apply. */
17154 char inet_aton();
17155
17156 int main() {
17157 inet_aton()
17158 ; return 0; }
17159 EOF
17160 if { (eval echo configure:17161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17161 rm -rf conftest*
17162 eval "ac_cv_lib_$ac_lib_var=yes"
17163 else
17164 echo "configure: failed program was:" >&5
17165 cat conftest.$ac_ext >&5
17166 rm -rf conftest*
17167 eval "ac_cv_lib_$ac_lib_var=no"
17168 fi
17169 rm -f conftest*
17170 LIBS="$ac_save_LIBS"
17171
17172 fi
17173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17174 echo "$ac_t""yes" 1>&6
17175 cat >> confdefs.h <<\EOF
17176 #define HAVE_INET_ATON 1
17177 EOF
17178
17179 else
17180 echo "$ac_t""no" 1>&6
17181 fi
17182
17183
17184 fi
17185 done
17186
17187
17188 if test "x$INET_LINK" != "x"; then
17189 cat >> confdefs.h <<\EOF
17190 #define HAVE_INET_ADDR 1
17191 EOF
17192
17193 INET_LINK=" -l$INET_LINK"
17194 fi
17195
17196 fi
17197
17198
17199 cat > confcache <<\EOF
17200 # This file is a shell script that caches the results of configure
17201 # tests run on this system so they can be shared between configure
17202 # scripts and configure runs. It is not useful on other systems.
17203 # If it contains results you don't want to keep, you may remove or edit it.
17204 #
17205 # By default, configure uses ./config.cache as the cache file,
17206 # creating it if it does not exist already. You can give configure
17207 # the --cache-file=FILE option to use a different cache file; that is
17208 # what configure does when it calls configure scripts in
17209 # subdirectories, so they share the cache.
17210 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17211 # config.status only pays attention to the cache file if you give it the
17212 # --recheck option to rerun configure.
17213 #
17214 EOF
17215 # The following way of writing the cache mishandles newlines in values,
17216 # but we know of no workaround that is simple, portable, and efficient.
17217 # So, don't put newlines in cache variables' values.
17218 # Ultrix sh set writes to stderr and can't be redirected directly,
17219 # and sets the high bit in the cache file unless we assign to the vars.
17220 (set) 2>&1 |
17221 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17222 *ac_space=\ *)
17223 # `set' does not quote correctly, so add quotes (double-quote substitution
17224 # turns \\\\ into \\, and sed turns \\ into \).
17225 sed -n \
17226 -e "s/'/'\\\\''/g" \
17227 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17228 ;;
17229 *)
17230 # `set' quotes correctly as required by POSIX, so do not add quotes.
17231 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17232 ;;
17233 esac >> confcache
17234 if cmp -s $cache_file confcache; then
17235 :
17236 else
17237 if test -w $cache_file; then
17238 echo "updating cache $cache_file"
17239 cat confcache > $cache_file
17240 else
17241 echo "not updating unwritable cache $cache_file"
17242 fi
17243 fi
17244 rm -f confcache
17245
17246
17247
17248 CPP_MT_FLAG=
17249 if test "$TOOLKIT" != "MSW"; then
17250
17251
17252 THREADS_LINK=
17253 THREADS_CFLAGS=
17254
17255 if test "$wxUSE_THREADS" = "yes" ; then
17256 if test "$wxUSE_WINE" = 1 ; then
17257 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
17258 wxUSE_THREADS="no"
17259 elif test "$USE_BEOS" = 1; then
17260 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
17261 wxUSE_THREADS="no"
17262 fi
17263 fi
17264
17265 if test "$wxUSE_THREADS" = "yes" ; then
17266
17267
17268 THREAD_OPTS="-pthread"
17269 case "${host}" in
17270 *-*-solaris2* | *-*-sunos4* )
17271 if test "x$GCC" = "xyes"; then
17272 THREAD_OPTS="-pthreads $THREAD_OPTS"
17273 else
17274 THREAD_OPTS="-mt $THREAD_OPTS"
17275 fi
17276 ;;
17277 *-*-freebsd*)
17278 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
17279 ;;
17280 *-*-darwin*)
17281 THREAD_OPTS=""
17282 ;;
17283 *-*-aix*)
17284 THREAD_OPTS="pthreads"
17285 ;;
17286 esac
17287
17288 THREAD_OPTS="$THREAD_OPTS pthread none"
17289
17290 THREADS_OK=no
17291 for flag in $THREAD_OPTS; do
17292 case $flag in
17293 none)
17294 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
17295 echo "configure:17296: checking whether pthreads work without any flags" >&5
17296 ;;
17297
17298 -*)
17299 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
17300 echo "configure:17301: checking whether pthreads work with $flag" >&5
17301 THREADS_CFLAGS="$flag"
17302 ;;
17303
17304 *)
17305 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
17306 echo "configure:17307: checking for the pthreads library -l$flag" >&5
17307 THREADS_LINK="-l$flag"
17308 ;;
17309 esac
17310
17311 save_LIBS="$LIBS"
17312 save_CFLAGS="$CFLAGS"
17313 LIBS="$THREADS_LINK $LIBS"
17314 CFLAGS="$THREADS_CFLAGS $CFLAGS"
17315
17316 cat > conftest.$ac_ext <<EOF
17317 #line 17318 "configure"
17318 #include "confdefs.h"
17319 #include <pthread.h>
17320 int main() {
17321 pthread_create(0,0,0,0);
17322 ; return 0; }
17323 EOF
17324 if { (eval echo configure:17325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17325 rm -rf conftest*
17326 THREADS_OK=yes
17327 else
17328 echo "configure: failed program was:" >&5
17329 cat conftest.$ac_ext >&5
17330 fi
17331 rm -f conftest*
17332
17333 LIBS="$save_LIBS"
17334 CFLAGS="$save_CFLAGS"
17335
17336 echo "$ac_t""$THREADS_OK" 1>&6
17337 if test "x$THREADS_OK" = "xyes"; then
17338 break;
17339 fi
17340
17341 THREADS_LINK=""
17342 THREADS_CFLAGS=""
17343 done
17344
17345 if test "x$THREADS_OK" != "xyes"; then
17346 wxUSE_THREADS=no
17347 echo "configure: warning: No thread support on this system... disabled" 1>&2
17348 else
17349 LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
17350
17351 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
17352 echo "configure:17353: checking if more special flags are required for pthreads" >&5
17353 flag=no
17354 case "${host}" in
17355 *-aix* | *-freebsd*)
17356 flag="-D_THREAD_SAFE"
17357 ;;
17358 *solaris* | alpha*-osf*)
17359 flag="-D_REENTRANT"
17360 ;;
17361 esac
17362 echo "$ac_t""${flag}" 1>&6
17363 if test "x$flag" != xno; then
17364 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
17365 fi
17366
17367 if test "x$THREADS_CFLAGS" != "x"; then
17368 CFLAGS="$CFLAGS $THREADS_CFLAGS"
17369 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
17370 fi
17371 fi
17372 fi
17373
17374 if test "$wxUSE_THREADS" = "yes" ; then
17375 for ac_func in thr_setconcurrency
17376 do
17377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17378 echo "configure:17379: checking for $ac_func" >&5
17379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17380 echo $ac_n "(cached) $ac_c" 1>&6
17381 else
17382 cat > conftest.$ac_ext <<EOF
17383 #line 17384 "configure"
17384 #include "confdefs.h"
17385 /* System header to define __stub macros and hopefully few prototypes,
17386 which can conflict with char $ac_func(); below. */
17387 #include <assert.h>
17388 /* Override any gcc2 internal prototype to avoid an error. */
17389 /* We use char because int might match the return type of a gcc2
17390 builtin and then its argument prototype would still apply. */
17391 char $ac_func();
17392
17393 int main() {
17394
17395 /* The GNU C library defines this for functions which it implements
17396 to always fail with ENOSYS. Some functions are actually named
17397 something starting with __ and the normal name is an alias. */
17398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17399 choke me
17400 #else
17401 $ac_func();
17402 #endif
17403
17404 ; return 0; }
17405 EOF
17406 if { (eval echo configure:17407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17407 rm -rf conftest*
17408 eval "ac_cv_func_$ac_func=yes"
17409 else
17410 echo "configure: failed program was:" >&5
17411 cat conftest.$ac_ext >&5
17412 rm -rf conftest*
17413 eval "ac_cv_func_$ac_func=no"
17414 fi
17415 rm -f conftest*
17416 fi
17417
17418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17419 echo "$ac_t""yes" 1>&6
17420 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17421 cat >> confdefs.h <<EOF
17422 #define $ac_tr_func 1
17423 EOF
17424
17425 else
17426 echo "$ac_t""no" 1>&6
17427 fi
17428 done
17429
17430
17431 for ac_hdr in sched.h
17432 do
17433 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17434 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17435 echo "configure:17436: checking for $ac_hdr" >&5
17436 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17437 echo $ac_n "(cached) $ac_c" 1>&6
17438 else
17439 cat > conftest.$ac_ext <<EOF
17440 #line 17441 "configure"
17441 #include "confdefs.h"
17442 #include <$ac_hdr>
17443 EOF
17444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17445 { (eval echo configure:17446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17446 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17447 if test -z "$ac_err"; then
17448 rm -rf conftest*
17449 eval "ac_cv_header_$ac_safe=yes"
17450 else
17451 echo "$ac_err" >&5
17452 echo "configure: failed program was:" >&5
17453 cat conftest.$ac_ext >&5
17454 rm -rf conftest*
17455 eval "ac_cv_header_$ac_safe=no"
17456 fi
17457 rm -f conftest*
17458 fi
17459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17460 echo "$ac_t""yes" 1>&6
17461 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17462 cat >> confdefs.h <<EOF
17463 #define $ac_tr_hdr 1
17464 EOF
17465
17466 else
17467 echo "$ac_t""no" 1>&6
17468 fi
17469 done
17470
17471 if test "$ac_cv_header_sched_h" = "yes"; then
17472 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
17473 echo "configure:17474: checking for sched_yield" >&5
17474 if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
17475 echo $ac_n "(cached) $ac_c" 1>&6
17476 else
17477 cat > conftest.$ac_ext <<EOF
17478 #line 17479 "configure"
17479 #include "confdefs.h"
17480 /* System header to define __stub macros and hopefully few prototypes,
17481 which can conflict with char sched_yield(); below. */
17482 #include <assert.h>
17483 /* Override any gcc2 internal prototype to avoid an error. */
17484 /* We use char because int might match the return type of a gcc2
17485 builtin and then its argument prototype would still apply. */
17486 char sched_yield();
17487
17488 int main() {
17489
17490 /* The GNU C library defines this for functions which it implements
17491 to always fail with ENOSYS. Some functions are actually named
17492 something starting with __ and the normal name is an alias. */
17493 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
17494 choke me
17495 #else
17496 sched_yield();
17497 #endif
17498
17499 ; return 0; }
17500 EOF
17501 if { (eval echo configure:17502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17502 rm -rf conftest*
17503 eval "ac_cv_func_sched_yield=yes"
17504 else
17505 echo "configure: failed program was:" >&5
17506 cat conftest.$ac_ext >&5
17507 rm -rf conftest*
17508 eval "ac_cv_func_sched_yield=no"
17509 fi
17510 rm -f conftest*
17511 fi
17512
17513 if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
17514 echo "$ac_t""yes" 1>&6
17515 cat >> confdefs.h <<\EOF
17516 #define HAVE_SCHED_YIELD 1
17517 EOF
17518
17519 else
17520 echo "$ac_t""no" 1>&6
17521
17522 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
17523 echo "configure:17524: checking for sched_yield in -lposix4" >&5
17524 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17525 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17526 echo $ac_n "(cached) $ac_c" 1>&6
17527 else
17528 ac_save_LIBS="$LIBS"
17529 LIBS="-lposix4 $LIBS"
17530 cat > conftest.$ac_ext <<EOF
17531 #line 17532 "configure"
17532 #include "confdefs.h"
17533 /* Override any gcc2 internal prototype to avoid an error. */
17534 /* We use char because int might match the return type of a gcc2
17535 builtin and then its argument prototype would still apply. */
17536 char sched_yield();
17537
17538 int main() {
17539 sched_yield()
17540 ; return 0; }
17541 EOF
17542 if { (eval echo configure:17543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17543 rm -rf conftest*
17544 eval "ac_cv_lib_$ac_lib_var=yes"
17545 else
17546 echo "configure: failed program was:" >&5
17547 cat conftest.$ac_ext >&5
17548 rm -rf conftest*
17549 eval "ac_cv_lib_$ac_lib_var=no"
17550 fi
17551 rm -f conftest*
17552 LIBS="$ac_save_LIBS"
17553
17554 fi
17555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17556 echo "$ac_t""yes" 1>&6
17557 cat >> confdefs.h <<\EOF
17558 #define HAVE_SCHED_YIELD 1
17559 EOF
17560 POSIX4_LINK=" -lposix4"
17561 else
17562 echo "$ac_t""no" 1>&6
17563 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
17564
17565 fi
17566
17567
17568
17569 fi
17570
17571 fi
17572
17573 HAVE_PRIOR_FUNCS=0
17574 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
17575 echo "configure:17576: checking for pthread_attr_getschedpolicy" >&5
17576 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
17577 echo $ac_n "(cached) $ac_c" 1>&6
17578 else
17579 cat > conftest.$ac_ext <<EOF
17580 #line 17581 "configure"
17581 #include "confdefs.h"
17582 /* System header to define __stub macros and hopefully few prototypes,
17583 which can conflict with char pthread_attr_getschedpolicy(); below. */
17584 #include <assert.h>
17585 /* Override any gcc2 internal prototype to avoid an error. */
17586 /* We use char because int might match the return type of a gcc2
17587 builtin and then its argument prototype would still apply. */
17588 char pthread_attr_getschedpolicy();
17589
17590 int main() {
17591
17592 /* The GNU C library defines this for functions which it implements
17593 to always fail with ENOSYS. Some functions are actually named
17594 something starting with __ and the normal name is an alias. */
17595 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
17596 choke me
17597 #else
17598 pthread_attr_getschedpolicy();
17599 #endif
17600
17601 ; return 0; }
17602 EOF
17603 if { (eval echo configure:17604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17604 rm -rf conftest*
17605 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
17606 else
17607 echo "configure: failed program was:" >&5
17608 cat conftest.$ac_ext >&5
17609 rm -rf conftest*
17610 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
17611 fi
17612 rm -f conftest*
17613 fi
17614
17615 if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
17616 echo "$ac_t""yes" 1>&6
17617 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
17618 echo "configure:17619: checking for pthread_attr_setschedparam" >&5
17619 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
17620 echo $ac_n "(cached) $ac_c" 1>&6
17621 else
17622 cat > conftest.$ac_ext <<EOF
17623 #line 17624 "configure"
17624 #include "confdefs.h"
17625 /* System header to define __stub macros and hopefully few prototypes,
17626 which can conflict with char pthread_attr_setschedparam(); below. */
17627 #include <assert.h>
17628 /* Override any gcc2 internal prototype to avoid an error. */
17629 /* We use char because int might match the return type of a gcc2
17630 builtin and then its argument prototype would still apply. */
17631 char pthread_attr_setschedparam();
17632
17633 int main() {
17634
17635 /* The GNU C library defines this for functions which it implements
17636 to always fail with ENOSYS. Some functions are actually named
17637 something starting with __ and the normal name is an alias. */
17638 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
17639 choke me
17640 #else
17641 pthread_attr_setschedparam();
17642 #endif
17643
17644 ; return 0; }
17645 EOF
17646 if { (eval echo configure:17647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17647 rm -rf conftest*
17648 eval "ac_cv_func_pthread_attr_setschedparam=yes"
17649 else
17650 echo "configure: failed program was:" >&5
17651 cat conftest.$ac_ext >&5
17652 rm -rf conftest*
17653 eval "ac_cv_func_pthread_attr_setschedparam=no"
17654 fi
17655 rm -f conftest*
17656 fi
17657
17658 if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
17659 echo "$ac_t""yes" 1>&6
17660 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
17661 echo "configure:17662: checking for sched_get_priority_max" >&5
17662 if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
17663 echo $ac_n "(cached) $ac_c" 1>&6
17664 else
17665 cat > conftest.$ac_ext <<EOF
17666 #line 17667 "configure"
17667 #include "confdefs.h"
17668 /* System header to define __stub macros and hopefully few prototypes
17669 else
17670 echo "$ac_t""no" 1>&6
17671 which can conflict with char sched_get_priority_max(); below. */
17672 #include <assert.h>
17673 /* Override any gcc2 internal prototype to avoid an error. */
17674 /* We use char because int might match the return type of a gcc2
17675 builtin and then its argument prototype would still apply. */
17676 char sched_get_priority_max();
17677
17678 int main() {
17679
17680 /* The GNU C library defines this for functions which it implements
17681 to always fail with ENOSYS. Some functions are actually named
17682 something starting with __ and the normal name is an alias. */
17683 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
17684 choke me
17685 #else
17686 sched_get_priority_max();
17687 #endif
17688
17689 ; return 0; }
17690 EOF
17691 if { (eval echo configure:17692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17692 rm -rf conftest*
17693 eval "ac_cv_func_sched_get_priority_max=yes"
17694 else
17695 echo "configure: failed program was:" >&5
17696 cat conftest.$ac_ext >&5
17697 rm -rf conftest*
17698 eval "ac_cv_func_sched_get_priority_max=no"
17699 fi
17700 rm -f conftest*
17701 fi
17702
17703 if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
17704 echo "$ac_t""yes" 1>&6
17705 HAVE_PRIOR_FUNCS=1
17706 else
17707 echo "$ac_t""no" 1>&6
17708 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
17709 echo "configure:17710: checking for sched_get_priority_max in -lposix4" >&5
17710 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
17711 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17712 echo $ac_n "(cached) $ac_c" 1>&6
17713 else
17714 ac_save_LIBS="$LIBS"
17715 LIBS="-lposix4 $LIBS"
17716 cat > conftest.$ac_ext <<EOF
17717 #line 17718 "configure"
17718 #include "confdefs.h"
17719 /* Override any gcc2 internal prototype to avoid an error. */
17720 /* We use char because int might match the return type of a gcc2
17721 builtin and then its argument prototype would still apply. */
17722 char sched_get_priority_max();
17723
17724 int main() {
17725 sched_get_priority_max()
17726 ; return 0; }
17727 EOF
17728 if { (eval echo configure:17729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17729 rm -rf conftest*
17730 eval "ac_cv_lib_$ac_lib_var=yes"
17731 else
17732 echo "configure: failed program was:" >&5
17733 cat conftest.$ac_ext >&5
17734 rm -rf conftest*
17735 eval "ac_cv_lib_$ac_lib_var=no"
17736 fi
17737 rm -f conftest*
17738 LIBS="$ac_save_LIBS"
17739
17740 fi
17741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17742 echo "$ac_t""yes" 1>&6
17743
17744 HAVE_PRIOR_FUNCS=1
17745 POSIX4_LINK=" -lposix4"
17746
17747 else
17748 echo "$ac_t""no" 1>&6
17749 fi
17750
17751
17752 fi
17753
17754
17755 else
17756 echo "$ac_t""no" 1>&6
17757 fi
17758
17759
17760 fi
17761
17762
17763 if test "$HAVE_PRIOR_FUNCS" = 1; then
17764 cat >> confdefs.h <<\EOF
17765 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
17766 EOF
17767
17768 else
17769 echo "configure: warning: Setting thread priority will not work" 1>&2
17770 fi
17771
17772 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
17773 echo "configure:17774: checking for pthread_cancel" >&5
17774 if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
17775 echo $ac_n "(cached) $ac_c" 1>&6
17776 else
17777 cat > conftest.$ac_ext <<EOF
17778 #line 17779 "configure"
17779 #include "confdefs.h"
17780 /* System header to define __stub macros and hopefully few prototypes,
17781 which can conflict with char pthread_cancel(); below. */
17782 #include <assert.h>
17783 /* Override any gcc2 internal prototype to avoid an error. */
17784 /* We use char because int might match the return type of a gcc2
17785 builtin and then its argument prototype would still apply. */
17786 char pthread_cancel();
17787
17788 int main() {
17789
17790 /* The GNU C library defines this for functions which it implements
17791 to always fail with ENOSYS. Some functions are actually named
17792 something starting with __ and the normal name is an alias. */
17793 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
17794 choke me
17795 #else
17796 pthread_cancel();
17797 #endif
17798
17799 ; return 0; }
17800 EOF
17801 if { (eval echo configure:17802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17802 rm -rf conftest*
17803 eval "ac_cv_func_pthread_cancel=yes"
17804 else
17805 echo "configure: failed program was:" >&5
17806 cat conftest.$ac_ext >&5
17807 rm -rf conftest*
17808 eval "ac_cv_func_pthread_cancel=no"
17809 fi
17810 rm -f conftest*
17811 fi
17812
17813 if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
17814 echo "$ac_t""yes" 1>&6
17815 cat >> confdefs.h <<\EOF
17816 #define HAVE_PTHREAD_CANCEL 1
17817 EOF
17818
17819 else
17820 echo "$ac_t""no" 1>&6
17821 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
17822 fi
17823
17824
17825 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
17826 echo "configure:17827: checking for pthread_cleanup_push/pop" >&5
17827 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
17828 echo $ac_n "(cached) $ac_c" 1>&6
17829 else
17830
17831 cat > conftest.$ac_ext <<EOF
17832 #line 17833 "configure"
17833 #include "confdefs.h"
17834 #include <pthread.h>
17835 int main() {
17836
17837 pthread_cleanup_push(NULL, NULL);
17838 pthread_cleanup_pop(0);
17839
17840 ; return 0; }
17841 EOF
17842 if { (eval echo configure:17843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17843 rm -rf conftest*
17844
17845 wx_cv_func_pthread_cleanup_push=yes
17846
17847 else
17848 echo "configure: failed program was:" >&5
17849 cat conftest.$ac_ext >&5
17850 rm -rf conftest*
17851
17852 wx_cv_func_pthread_cleanup_push=no
17853
17854 fi
17855 rm -f conftest*
17856
17857 fi
17858
17859 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
17860
17861 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
17862 cat >> confdefs.h <<\EOF
17863 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
17864 EOF
17865
17866 fi
17867
17868
17869 if test "x$wx_cv_lib_glibc21" = "xyes"; then
17870 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
17871 fi
17872
17873 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
17874 echo "configure:17875: checking for pthread_mutexattr_t" >&5
17875 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
17876 echo $ac_n "(cached) $ac_c" 1>&6
17877 else
17878
17879 cat > conftest.$ac_ext <<EOF
17880 #line 17881 "configure"
17881 #include "confdefs.h"
17882 #include <pthread.h>
17883 int main() {
17884
17885 pthread_mutexattr_t attr;
17886 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
17887
17888 ; return 0; }
17889 EOF
17890 if { (eval echo configure:17891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17891 rm -rf conftest*
17892
17893 wx_cv_type_pthread_mutexattr_t=yes
17894
17895 else
17896 echo "configure: failed program was:" >&5
17897 cat conftest.$ac_ext >&5
17898 rm -rf conftest*
17899
17900 wx_cv_type_pthread_mutexattr_t=no
17901
17902
17903 fi
17904 rm -f conftest*
17905
17906 fi
17907
17908 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
17909
17910 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
17911 cat >> confdefs.h <<\EOF
17912 #define HAVE_PTHREAD_MUTEXATTR_T 1
17913 EOF
17914
17915 else
17916 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
17917 echo "configure:17918: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
17918 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
17919 echo $ac_n "(cached) $ac_c" 1>&6
17920 else
17921
17922 cat > conftest.$ac_ext <<EOF
17923 #line 17924 "configure"
17924 #include "confdefs.h"
17925 #include <pthread.h>
17926 int main() {
17927
17928 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
17929
17930 ; return 0; }
17931 EOF
17932 if { (eval echo configure:17933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17933 rm -rf conftest*
17934
17935 wx_cv_type_pthread_rec_mutex_init=yes
17936
17937 else
17938 echo "configure: failed program was:" >&5
17939 cat conftest.$ac_ext >&5
17940 rm -rf conftest*
17941
17942 wx_cv_type_pthread_rec_mutex_init=no
17943
17944
17945 fi
17946 rm -f conftest*
17947
17948 fi
17949
17950 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
17951 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
17952 cat >> confdefs.h <<\EOF
17953 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
17954 EOF
17955
17956 else
17957 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
17958 fi
17959 fi
17960 fi
17961
17962 fi
17963
17964 if test "$wxUSE_THREADS" = "yes"; then
17965 cat >> confdefs.h <<\EOF
17966 #define wxUSE_THREADS 1
17967 EOF
17968
17969
17970 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
17971 else
17972 if test "$ac_cv_func_strtok_r" = "yes"; then
17973 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
17974 echo "configure:17975: checking if -D_REENTRANT is needed" >&5
17975 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
17976 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
17977 echo "$ac_t""yes" 1>&6
17978 else
17979 echo "$ac_t""no" 1>&6
17980 fi
17981 fi
17982 fi
17983
17984 if test "$WXGTK20" = 1 ; then
17985 cat >> confdefs.h <<EOF
17986 #define __WXGTK20__ $WXGTK20
17987 EOF
17988
17989 WXGTK12=1
17990 fi
17991
17992 if test "$WXGTK12" = 1 ; then
17993 cat >> confdefs.h <<EOF
17994 #define __WXGTK12__ $WXGTK12
17995 EOF
17996
17997 fi
17998
17999 if test "$WXGTK127" = 1 ; then
18000 cat >> confdefs.h <<EOF
18001 #define __WXGTK127__ $WXGTK127
18002 EOF
18003
18004 fi
18005
18006 WXDEBUG=
18007
18008 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
18009 WXDEBUG="-g"
18010 wxUSE_OPTIMISE=no
18011 fi
18012
18013 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
18014 wxUSE_DEBUG_INFO=yes
18015 WXDEBUG="-ggdb"
18016 fi
18017
18018 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
18019 cat >> confdefs.h <<\EOF
18020 #define WXDEBUG 1
18021 EOF
18022
18023 WXDEBUG_DEFINE="-D__WXDEBUG__"
18024 else
18025 if test "$wxUSE_GTK" = 1 ; then
18026 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
18027 fi
18028 fi
18029
18030 if test "$wxUSE_MEM_TRACING" = "yes" ; then
18031 cat >> confdefs.h <<\EOF
18032 #define wxUSE_MEMORY_TRACING 1
18033 EOF
18034
18035 cat >> confdefs.h <<\EOF
18036 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
18037 EOF
18038
18039 cat >> confdefs.h <<\EOF
18040 #define wxUSE_DEBUG_NEW_ALWAYS 1
18041 EOF
18042
18043 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
18044 fi
18045
18046 if test "$wxUSE_DMALLOC" = "yes" ; then
18047 DMALLOC_LIBS="-ldmalloc"
18048 fi
18049
18050 PROFILE=
18051 if test "$wxUSE_PROFILE" = "yes" ; then
18052 PROFILE=" -pg"
18053 fi
18054
18055 CODE_GEN_FLAGS=
18056 CODE_GEN_FLAGS_CXX=
18057 if test "$GCC" = "yes" ; then
18058 if test "$wxUSE_NO_RTTI" = "yes" ; then
18059 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
18060 fi
18061 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
18062 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
18063 fi
18064 if test "$wxUSE_PERMISSIVE" = "yes" ; then
18065 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
18066 fi
18067 if test "$USE_WIN32" = 1 ; then
18068 # I'm not even really sure what this was ever added to solve,
18069 # but someone added it for mingw native builds, so I guess
18070 # they had a reason, right??
18071 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
18072 fi
18073 fi
18074
18075 if test "$wxUSE_OPTIMISE" = "no" ; then
18076 OPTIMISE=
18077 else
18078 if test "$GCC" = yes ; then
18079 OPTIMISE="-O2"
18080 case "${host}" in
18081 i586-*-*|i686-*-* )
18082 OPTIMISE="${OPTIMISE} "
18083 ;;
18084 esac
18085 else
18086 OPTIMISE="-O"
18087 fi
18088 fi
18089
18090 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
18091 cat >> confdefs.h <<\EOF
18092 #define WXWIN_COMPATIBILITY_2 1
18093 EOF
18094
18095
18096 WXWIN_COMPATIBILITY_2_2="yes"
18097 fi
18098
18099 if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
18100 cat >> confdefs.h <<\EOF
18101 #define WXWIN_COMPATIBILITY_2_2 1
18102 EOF
18103
18104 fi
18105
18106
18107 if test "$wxUSE_GUI" = "yes"; then
18108 cat >> confdefs.h <<\EOF
18109 #define wxUSE_GUI 1
18110 EOF
18111
18112
18113 else
18114 cat >> confdefs.h <<\EOF
18115 #define wxUSE_NOGUI 1
18116 EOF
18117
18118 fi
18119
18120
18121 if test "$wxUSE_UNIX" = "yes"; then
18122 cat >> confdefs.h <<\EOF
18123 #define wxUSE_UNIX 1
18124 EOF
18125
18126 fi
18127
18128
18129 if test "$wxUSE_APPLE_IEEE" = "yes"; then
18130 cat >> confdefs.h <<\EOF
18131 #define wxUSE_APPLE_IEEE 1
18132 EOF
18133
18134 fi
18135
18136 if test "$wxUSE_TIMER" = "yes"; then
18137 cat >> confdefs.h <<\EOF
18138 #define wxUSE_TIMER 1
18139 EOF
18140
18141 fi
18142
18143 if test "$wxUSE_WAVE" = "yes"; then
18144 cat >> confdefs.h <<\EOF
18145 #define wxUSE_WAVE 1
18146 EOF
18147
18148 fi
18149
18150 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
18151 cat >> confdefs.h <<\EOF
18152 #define wxUSE_CMDLINE_PARSER 1
18153 EOF
18154
18155 fi
18156
18157 if test "$wxUSE_STOPWATCH" = "yes"; then
18158 cat >> confdefs.h <<\EOF
18159 #define wxUSE_STOPWATCH 1
18160 EOF
18161
18162 fi
18163
18164 if test "$wxUSE_DATETIME" = "yes"; then
18165 cat >> confdefs.h <<\EOF
18166 #define wxUSE_DATETIME 1
18167 EOF
18168
18169 fi
18170
18171 if test "$wxUSE_TIMEDATE" = "yes"; then
18172 cat >> confdefs.h <<\EOF
18173 #define wxUSE_TIMEDATE 1
18174 EOF
18175
18176 fi
18177
18178 if test "$wxUSE_FILE" = "yes"; then
18179 cat >> confdefs.h <<\EOF
18180 #define wxUSE_FILE 1
18181 EOF
18182
18183 fi
18184
18185 if test "$wxUSE_FFILE" = "yes"; then
18186 cat >> confdefs.h <<\EOF
18187 #define wxUSE_FFILE 1
18188 EOF
18189
18190 fi
18191
18192 if test "$wxUSE_FILESYSTEM" = "yes"; then
18193 cat >> confdefs.h <<\EOF
18194 #define wxUSE_FILESYSTEM 1
18195 EOF
18196
18197 fi
18198
18199 if test "$wxUSE_FS_INET" = "yes"; then
18200 cat >> confdefs.h <<\EOF
18201 #define wxUSE_FS_INET 1
18202 EOF
18203
18204 fi
18205
18206 if test "$wxUSE_FS_ZIP" = "yes"; then
18207 cat >> confdefs.h <<\EOF
18208 #define wxUSE_FS_ZIP 1
18209 EOF
18210
18211 fi
18212
18213 if test "$wxUSE_ZIPSTREAM" = "yes"; then
18214 cat >> confdefs.h <<\EOF
18215 #define wxUSE_ZIPSTREAM 1
18216 EOF
18217
18218 fi
18219
18220 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18221 cat >> confdefs.h <<\EOF
18222 #define wxUSE_ON_FATAL_EXCEPTION 1
18223 EOF
18224
18225 fi
18226
18227 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
18228 cat >> confdefs.h <<\EOF
18229 #define wxUSE_SNGLINST_CHECKER 1
18230 EOF
18231
18232 fi
18233
18234 if test "$wxUSE_BUSYINFO" = "yes"; then
18235 cat >> confdefs.h <<\EOF
18236 #define wxUSE_BUSYINFO 1
18237 EOF
18238
18239 fi
18240
18241 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
18242 cat >> confdefs.h <<\EOF
18243 #define wxUSE_STD_IOSTREAM 1
18244 EOF
18245
18246 fi
18247
18248 if test "$wxUSE_TEXTBUFFER" = "yes"; then
18249 cat >> confdefs.h <<\EOF
18250 #define wxUSE_TEXTBUFFER 1
18251 EOF
18252
18253 fi
18254
18255 if test "$wxUSE_TEXTFILE" = "yes"; then
18256 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
18257 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
18258 else
18259 cat >> confdefs.h <<\EOF
18260 #define wxUSE_TEXTFILE 1
18261 EOF
18262
18263 fi
18264 fi
18265
18266 if test "$wxUSE_CONFIG" = "yes" ; then
18267 if test "$wxUSE_TEXTFILE" != "yes"; then
18268 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
18269 else
18270 cat >> confdefs.h <<\EOF
18271 #define wxUSE_CONFIG 1
18272 EOF
18273
18274 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18275 fi
18276 fi
18277
18278 if test "$wxUSE_INTL" = "yes" ; then
18279 if test "$wxUSE_FILE" != "yes"; then
18280 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
18281 else
18282 cat >> confdefs.h <<\EOF
18283 #define wxUSE_INTL 1
18284 EOF
18285
18286 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
18287 GUIDIST="$GUIDIST INTL_DIST"
18288 fi
18289 fi
18290
18291 if test "$wxUSE_LOG" = "yes"; then
18292 cat >> confdefs.h <<\EOF
18293 #define wxUSE_LOG 1
18294 EOF
18295
18296
18297 if test "$wxUSE_LOGGUI" = "yes"; then
18298 cat >> confdefs.h <<\EOF
18299 #define wxUSE_LOGGUI 1
18300 EOF
18301
18302 fi
18303
18304 if test "$wxUSE_LOGWINDOW" = "yes"; then
18305 cat >> confdefs.h <<\EOF
18306 #define wxUSE_LOGWINDOW 1
18307 EOF
18308
18309 fi
18310
18311 if test "$wxUSE_LOGDIALOG" = "yes"; then
18312 cat >> confdefs.h <<\EOF
18313 #define wxUSE_LOG_DIALOG 1
18314 EOF
18315
18316 fi
18317 fi
18318
18319 if test "$wxUSE_LONGLONG" = "yes"; then
18320 cat >> confdefs.h <<\EOF
18321 #define wxUSE_LONGLONG 1
18322 EOF
18323
18324 fi
18325
18326 if test "$wxUSE_GEOMETRY" = "yes"; then
18327 cat >> confdefs.h <<\EOF
18328 #define wxUSE_GEOMETRY 1
18329 EOF
18330
18331 fi
18332
18333 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
18334 cat >> confdefs.h <<\EOF
18335 #define wxUSE_DIALUP_MANAGER 1
18336 EOF
18337
18338 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
18339 fi
18340
18341 if test "$wxUSE_STREAMS" = "yes" ; then
18342 cat >> confdefs.h <<\EOF
18343 #define wxUSE_STREAMS 1
18344 EOF
18345
18346 fi
18347
18348
18349 if test "$wxUSE_DATETIME" = "yes"; then
18350 for ac_func in strptime
18351 do
18352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18353 echo "configure:18354: checking for $ac_func" >&5
18354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18355 echo $ac_n "(cached) $ac_c" 1>&6
18356 else
18357 cat > conftest.$ac_ext <<EOF
18358 #line 18359 "configure"
18359 #include "confdefs.h"
18360 /* System header to define __stub macros and hopefully few prototypes,
18361 which can conflict with char $ac_func(); below. */
18362 #include <assert.h>
18363 /* Override any gcc2 internal prototype to avoid an error. */
18364 /* We use char because int might match the return type of a gcc2
18365 builtin and then its argument prototype would still apply. */
18366 char $ac_func();
18367
18368 int main() {
18369
18370 /* The GNU C library defines this for functions which it implements
18371 to always fail with ENOSYS. Some functions are actually named
18372 something starting with __ and the normal name is an alias. */
18373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18374 choke me
18375 #else
18376 $ac_func();
18377 #endif
18378
18379 ; return 0; }
18380 EOF
18381 if { (eval echo configure:18382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18382 rm -rf conftest*
18383 eval "ac_cv_func_$ac_func=yes"
18384 else
18385 echo "configure: failed program was:" >&5
18386 cat conftest.$ac_ext >&5
18387 rm -rf conftest*
18388 eval "ac_cv_func_$ac_func=no"
18389 fi
18390 rm -f conftest*
18391 fi
18392
18393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18394 echo "$ac_t""yes" 1>&6
18395 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18396 cat >> confdefs.h <<EOF
18397 #define $ac_tr_func 1
18398 EOF
18399
18400 else
18401 echo "$ac_t""no" 1>&6
18402 fi
18403 done
18404
18405
18406 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
18407 echo "configure:18408: checking for timezone variable in <time.h>" >&5
18408 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18409 echo $ac_n "(cached) $ac_c" 1>&6
18410 else
18411
18412 cat > conftest.$ac_ext <<EOF
18413 #line 18414 "configure"
18414 #include "confdefs.h"
18415
18416 #include <time.h>
18417
18418 int main() {
18419
18420 int tz;
18421 tz = timezone;
18422
18423 ; return 0; }
18424 EOF
18425 if { (eval echo configure:18426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18426 rm -rf conftest*
18427
18428 wx_cv_var_timezone=timezone
18429
18430 else
18431 echo "configure: failed program was:" >&5
18432 cat conftest.$ac_ext >&5
18433 rm -rf conftest*
18434
18435 cat > conftest.$ac_ext <<EOF
18436 #line 18437 "configure"
18437 #include "confdefs.h"
18438
18439 #include <time.h>
18440
18441 int main() {
18442
18443 int tz;
18444 tz = _timezone;
18445
18446 ; return 0; }
18447 EOF
18448 if { (eval echo configure:18449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18449 rm -rf conftest*
18450
18451 wx_cv_var_timezone=_timezone
18452
18453 else
18454 echo "configure: failed program was:" >&5
18455 cat conftest.$ac_ext >&5
18456 rm -rf conftest*
18457
18458 cat > conftest.$ac_ext <<EOF
18459 #line 18460 "configure"
18460 #include "confdefs.h"
18461
18462 #include <time.h>
18463
18464 int main() {
18465
18466 int tz;
18467 tz = __timezone;
18468
18469 ; return 0; }
18470 EOF
18471 if { (eval echo configure:18472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18472 rm -rf conftest*
18473
18474 wx_cv_var_timezone=__timezone
18475
18476 else
18477 echo "configure: failed program was:" >&5
18478 cat conftest.$ac_ext >&5
18479 rm -rf conftest*
18480
18481 if test "$USE_DOS" = 0 ; then
18482 echo "configure: warning: no timezone variable" 1>&2
18483 fi
18484
18485
18486 fi
18487 rm -f conftest*
18488
18489
18490 fi
18491 rm -f conftest*
18492
18493
18494 fi
18495 rm -f conftest*
18496
18497
18498 fi
18499
18500 echo "$ac_t""$wx_cv_var_timezone" 1>&6
18501
18502 if test "x$wx_cv_var_timezone" != x ; then
18503 cat >> confdefs.h <<EOF
18504 #define WX_TIMEZONE $wx_cv_var_timezone
18505 EOF
18506
18507 fi
18508
18509 for ac_func in localtime
18510 do
18511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18512 echo "configure:18513: checking for $ac_func" >&5
18513 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18514 echo $ac_n "(cached) $ac_c" 1>&6
18515 else
18516 cat > conftest.$ac_ext <<EOF
18517 #line 18518 "configure"
18518 #include "confdefs.h"
18519 /* System header to define __stub macros and hopefully few prototypes,
18520 which can conflict with char $ac_func(); below. */
18521 #include <assert.h>
18522 /* Override any gcc2 internal prototype to avoid an error. */
18523 /* We use char because int might match the return type of a gcc2
18524 builtin and then its argument prototype would still apply. */
18525 char $ac_func();
18526
18527 int main() {
18528
18529 /* The GNU C library defines this for functions which it implements
18530 to always fail with ENOSYS. Some functions are actually named
18531 something starting with __ and the normal name is an alias. */
18532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18533 choke me
18534 #else
18535 $ac_func();
18536 #endif
18537
18538 ; return 0; }
18539 EOF
18540 if { (eval echo configure:18541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18541 rm -rf conftest*
18542 eval "ac_cv_func_$ac_func=yes"
18543 else
18544 echo "configure: failed program was:" >&5
18545 cat conftest.$ac_ext >&5
18546 rm -rf conftest*
18547 eval "ac_cv_func_$ac_func=no"
18548 fi
18549 rm -f conftest*
18550 fi
18551
18552 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18553 echo "$ac_t""yes" 1>&6
18554 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18555 cat >> confdefs.h <<EOF
18556 #define $ac_tr_func 1
18557 EOF
18558
18559 else
18560 echo "$ac_t""no" 1>&6
18561 fi
18562 done
18563
18564
18565 if test "$ac_cv_func_localtime" = "yes"; then
18566 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
18567 echo "configure:18568: checking for tm_gmtoff in struct tm" >&5
18568 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18569 echo $ac_n "(cached) $ac_c" 1>&6
18570 else
18571
18572 cat > conftest.$ac_ext <<EOF
18573 #line 18574 "configure"
18574 #include "confdefs.h"
18575
18576 #include <time.h>
18577
18578 int main() {
18579
18580 struct tm tm;
18581 tm.tm_gmtoff++;
18582
18583 ; return 0; }
18584 EOF
18585 if { (eval echo configure:18586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18586 rm -rf conftest*
18587
18588 wx_cv_struct_tm_has_gmtoff=yes
18589
18590 else
18591 echo "configure: failed program was:" >&5
18592 cat conftest.$ac_ext >&5
18593 rm -rf conftest*
18594 wx_cv_struct_tm_has_gmtoff=no
18595
18596 fi
18597 rm -f conftest*
18598
18599 fi
18600
18601 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
18602 fi
18603
18604 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
18605 cat >> confdefs.h <<\EOF
18606 #define WX_GMTOFF_IN_TM 1
18607 EOF
18608
18609 fi
18610
18611 for ac_func in gettimeofday ftime
18612 do
18613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18614 echo "configure:18615: checking for $ac_func" >&5
18615 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18616 echo $ac_n "(cached) $ac_c" 1>&6
18617 else
18618 cat > conftest.$ac_ext <<EOF
18619 #line 18620 "configure"
18620 #include "confdefs.h"
18621 /* System header to define __stub macros and hopefully few prototypes,
18622 which can conflict with char $ac_func(); below. */
18623 #include <assert.h>
18624 /* Override any gcc2 internal prototype to avoid an error. */
18625 /* We use char because int might match the return type of a gcc2
18626 builtin and then its argument prototype would still apply. */
18627 char $ac_func();
18628
18629 int main() {
18630
18631 /* The GNU C library defines this for functions which it implements
18632 to always fail with ENOSYS. Some functions are actually named
18633 something starting with __ and the normal name is an alias. */
18634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18635 choke me
18636 #else
18637 $ac_func();
18638 #endif
18639
18640 ; return 0; }
18641 EOF
18642 if { (eval echo configure:18643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18643 rm -rf conftest*
18644 eval "ac_cv_func_$ac_func=yes"
18645 else
18646 echo "configure: failed program was:" >&5
18647 cat conftest.$ac_ext >&5
18648 rm -rf conftest*
18649 eval "ac_cv_func_$ac_func=no"
18650 fi
18651 rm -f conftest*
18652 fi
18653
18654 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18655 echo "$ac_t""yes" 1>&6
18656 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18657 cat >> confdefs.h <<EOF
18658 #define $ac_tr_func 1
18659 EOF
18660 break
18661 else
18662 echo "$ac_t""no" 1>&6
18663 fi
18664 done
18665
18666
18667 if test "$ac_cv_func_gettimeofday" = "yes"; then
18668 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
18669 echo "configure:18670: checking whether gettimeofday takes two arguments" >&5
18670 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
18671 echo $ac_n "(cached) $ac_c" 1>&6
18672 else
18673
18674
18675 ac_ext=C
18676 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18677 ac_cpp='$CXXCPP $CPPFLAGS'
18678 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18679 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18680 cross_compiling=$ac_cv_prog_cxx_cross
18681
18682
18683 cat > conftest.$ac_ext <<EOF
18684 #line 18685 "configure"
18685 #include "confdefs.h"
18686
18687 #include <sys/time.h>
18688 #include <unistd.h>
18689
18690 int main() {
18691
18692 struct timeval tv;
18693 gettimeofday(&tv, NULL);
18694
18695 ; return 0; }
18696 EOF
18697 if { (eval echo configure:18698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18698 rm -rf conftest*
18699 wx_cv_func_gettimeofday_has_2_args=yes
18700 else
18701 echo "configure: failed program was:" >&5
18702 cat conftest.$ac_ext >&5
18703 rm -rf conftest*
18704 cat > conftest.$ac_ext <<EOF
18705 #line 18706 "configure"
18706 #include "confdefs.h"
18707
18708 #include <sys/time.h>
18709 #include <unistd.h>
18710
18711 int main() {
18712
18713 struct timeval tv;
18714 gettimeofday(&tv);
18715
18716 ; return 0; }
18717 EOF
18718 if { (eval echo configure:18719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18719 rm -rf conftest*
18720 wx_cv_func_gettimeofday_has_2_args=no
18721 else
18722 echo "configure: failed program was:" >&5
18723 cat conftest.$ac_ext >&5
18724 rm -rf conftest*
18725
18726 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
18727 wx_cv_func_gettimeofday_has_2_args=unknown
18728
18729
18730 fi
18731 rm -f conftest*
18732
18733 fi
18734 rm -f conftest*
18735 ac_ext=c
18736 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18737 ac_cpp='$CPP $CPPFLAGS'
18738 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18739 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18740 cross_compiling=$ac_cv_prog_cc_cross
18741
18742
18743 fi
18744
18745 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
18746
18747 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
18748 cat >> confdefs.h <<\EOF
18749 #define WX_GETTIMEOFDAY_NO_TZ 1
18750 EOF
18751
18752 fi
18753 fi
18754
18755 cat >> confdefs.h <<\EOF
18756 #define wxUSE_TIMEDATE 1
18757 EOF
18758
18759 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
18760 fi
18761
18762
18763 if test "$wxUSE_SOCKETS" = "yes"; then
18764 if test "$TOOLKIT" = "X11"; then
18765 echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2
18766 wxUSE_SOCKETS="no"
18767 fi
18768 fi
18769
18770 if test "$wxUSE_SOCKETS" = "yes"; then
18771 if test "$TOOLKIT" != "MSW"; then
18772 echo $ac_n "checking for socket""... $ac_c" 1>&6
18773 echo "configure:18774: checking for socket" >&5
18774 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
18775 echo $ac_n "(cached) $ac_c" 1>&6
18776 else
18777 cat > conftest.$ac_ext <<EOF
18778 #line 18779 "configure"
18779 #include "confdefs.h"
18780 /* System header to define __stub macros and hopefully few prototypes,
18781 which can conflict with char socket(); below. */
18782 #include <assert.h>
18783 /* Override any gcc2 internal prototype to avoid an error. */
18784 /* We use char because int might match the return type of a gcc2
18785 builtin and then its argument prototype would still apply. */
18786 char socket();
18787
18788 int main() {
18789
18790 /* The GNU C library defines this for functions which it implements
18791 to always fail with ENOSYS. Some functions are actually named
18792 something starting with __ and the normal name is an alias. */
18793 #if defined (__stub_socket) || defined (__stub___socket)
18794 choke me
18795 #else
18796 socket();
18797 #endif
18798
18799 ; return 0; }
18800 EOF
18801 if { (eval echo configure:18802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18802 rm -rf conftest*
18803 eval "ac_cv_func_socket=yes"
18804 else
18805 echo "configure: failed program was:" >&5
18806 cat conftest.$ac_ext >&5
18807 rm -rf conftest*
18808 eval "ac_cv_func_socket=no"
18809 fi
18810 rm -f conftest*
18811 fi
18812
18813 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
18814 echo "$ac_t""yes" 1>&6
18815 :
18816 else
18817 echo "$ac_t""no" 1>&6
18818 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
18819 echo "configure:18820: checking for socket in -lsocket" >&5
18820 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
18821 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18822 echo $ac_n "(cached) $ac_c" 1>&6
18823 else
18824 ac_save_LIBS="$LIBS"
18825 LIBS="-lsocket $LIBS"
18826 cat > conftest.$ac_ext <<EOF
18827 #line 18828 "configure"
18828 #include "confdefs.h"
18829 /* Override any gcc2 internal prototype to avoid an error. */
18830 /* We use char because int might match the return type of a gcc2
18831 builtin and then its argument prototype would still apply. */
18832 char socket();
18833
18834 int main() {
18835 socket()
18836 ; return 0; }
18837 EOF
18838 if { (eval echo configure:18839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18839 rm -rf conftest*
18840 eval "ac_cv_lib_$ac_lib_var=yes"
18841 else
18842 echo "configure: failed program was:" >&5
18843 cat conftest.$ac_ext >&5
18844 rm -rf conftest*
18845 eval "ac_cv_lib_$ac_lib_var=no"
18846 fi
18847 rm -f conftest*
18848 LIBS="$ac_save_LIBS"
18849
18850 fi
18851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18852 echo "$ac_t""yes" 1>&6
18853 if test "$INET_LINK" != " -lsocket"; then
18854 INET_LINK="$INET_LINK -lsocket"
18855 fi
18856 else
18857 echo "$ac_t""no" 1>&6
18858
18859 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
18860 wxUSE_SOCKETS=no
18861
18862
18863 fi
18864
18865
18866 fi
18867
18868 fi
18869 fi
18870
18871 if test "$wxUSE_SOCKETS" = "yes" ; then
18872 if test "$TOOLKIT" != "MSW"; then
18873 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
18874 echo "configure:18875: checking what is the type of the third argument of getsockname" >&5
18875 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
18876 echo $ac_n "(cached) $ac_c" 1>&6
18877 else
18878
18879
18880 ac_ext=C
18881 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18882 ac_cpp='$CXXCPP $CPPFLAGS'
18883 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18884 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18885 cross_compiling=$ac_cv_prog_cxx_cross
18886
18887
18888 cat > conftest.$ac_ext <<EOF
18889 #line 18890 "configure"
18890 #include "confdefs.h"
18891
18892 #include <sys/types.h>
18893 #include <sys/socket.h>
18894
18895 int main() {
18896
18897 socklen_t len;
18898 getsockname(0, 0, &len);
18899
18900 ; return 0; }
18901 EOF
18902 if { (eval echo configure:18903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18903 rm -rf conftest*
18904 wx_cv_type_getsockname3=socklen_t
18905 else
18906 echo "configure: failed program was:" >&5
18907 cat conftest.$ac_ext >&5
18908 rm -rf conftest*
18909 cat > conftest.$ac_ext <<EOF
18910 #line 18911 "configure"
18911 #include "confdefs.h"
18912
18913 #include <sys/types.h>
18914 #include <sys/socket.h>
18915
18916 int main() {
18917
18918 size_t len;
18919 getsockname(0, 0, &len);
18920
18921 ; return 0; }
18922 EOF
18923 if { (eval echo configure:18924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18924 rm -rf conftest*
18925 wx_cv_type_getsockname3=size_t
18926 else
18927 echo "configure: failed program was:" >&5
18928 cat conftest.$ac_ext >&5
18929 rm -rf conftest*
18930 cat > conftest.$ac_ext <<EOF
18931 #line 18932 "configure"
18932 #include "confdefs.h"
18933
18934 #include <sys/types.h>
18935 #include <sys/socket.h>
18936
18937 int main() {
18938
18939 int len;
18940 getsockname(0, 0, &len);
18941
18942 ; return 0; }
18943 EOF
18944 if { (eval echo configure:18945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18945 rm -rf conftest*
18946 wx_cv_type_getsockname3=int
18947 else
18948 echo "configure: failed program was:" >&5
18949 cat conftest.$ac_ext >&5
18950 rm -rf conftest*
18951 wx_cv_type_getsockname3=unknown
18952
18953 fi
18954 rm -f conftest*
18955
18956 fi
18957 rm -f conftest*
18958
18959 fi
18960 rm -f conftest*
18961
18962 ac_ext=c
18963 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18964 ac_cpp='$CPP $CPPFLAGS'
18965 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18966 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18967 cross_compiling=$ac_cv_prog_cc_cross
18968
18969
18970 fi
18971
18972 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
18973
18974 if test "$wx_cv_type_getsockname3" = "unknown"; then
18975 wxUSE_SOCKETS=no
18976 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
18977 else
18978 cat >> confdefs.h <<EOF
18979 #define SOCKLEN_T $wx_cv_type_getsockname3
18980 EOF
18981
18982 fi
18983 fi
18984 fi
18985
18986 if test "$wxUSE_SOCKETS" = "yes" ; then
18987 cat >> confdefs.h <<\EOF
18988 #define wxUSE_SOCKETS 1
18989 EOF
18990
18991 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
18992 fi
18993
18994
18995 if test "$wxUSE_GUI" = "yes"; then
18996
18997 if test "$TOOLKIT" = "MAC"; then
18998 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
18999 wxUSE_JOYSTICK=no
19000 fi
19001 if test "$TOOLKIT" = "MOTIF"; then
19002 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
19003 wxUSE_JOYSTICK=no
19004 fi
19005 if test "$TOOLKIT" = "X11"; then
19006 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
19007 wxUSE_JOYSTICK=no
19008 fi
19009
19010 if test "$TOOLKIT" != "MSW"; then
19011 if test "$wxUSE_JOYSTICK" = "yes"; then
19012 for ac_hdr in linux/joystick.h
19013 do
19014 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19015 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19016 echo "configure:19017: checking for $ac_hdr" >&5
19017 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19018 echo $ac_n "(cached) $ac_c" 1>&6
19019 else
19020 cat > conftest.$ac_ext <<EOF
19021 #line 19022 "configure"
19022 #include "confdefs.h"
19023 #include <$ac_hdr>
19024 EOF
19025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19026 { (eval echo configure:19027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19028 if test -z "$ac_err"; then
19029 rm -rf conftest*
19030 eval "ac_cv_header_$ac_safe=yes"
19031 else
19032 echo "$ac_err" >&5
19033 echo "configure: failed program was:" >&5
19034 cat conftest.$ac_ext >&5
19035 rm -rf conftest*
19036 eval "ac_cv_header_$ac_safe=no"
19037 fi
19038 rm -f conftest*
19039 fi
19040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19041 echo "$ac_t""yes" 1>&6
19042 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19043 cat >> confdefs.h <<EOF
19044 #define $ac_tr_hdr 1
19045 EOF
19046
19047 else
19048 echo "$ac_t""no" 1>&6
19049 fi
19050 done
19051
19052 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
19053 wxUSE_JOYSTICK=no
19054 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
19055 fi
19056 fi
19057 fi
19058
19059 if test "$wxUSE_JOYSTICK" = "yes"; then
19060 cat >> confdefs.h <<\EOF
19061 #define wxUSE_JOYSTICK 1
19062 EOF
19063
19064 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
19065 fi
19066 fi
19067
19068
19069 if test "$TOOLKIT" != "MSW"; then
19070
19071 HAVE_DL_FUNCS=0
19072 HAVE_SHL_FUNCS=0
19073 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19074 if test "$USE_DARWIN" = 1; then
19075 HAVE_DL_FUNCS=1
19076 else
19077 for ac_func in dlopen
19078 do
19079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19080 echo "configure:19081: checking for $ac_func" >&5
19081 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19082 echo $ac_n "(cached) $ac_c" 1>&6
19083 else
19084 cat > conftest.$ac_ext <<EOF
19085 #line 19086 "configure"
19086 #include "confdefs.h"
19087 /* System header to define __stub macros and hopefully few prototypes,
19088 which can conflict with char $ac_func(); below. */
19089 #include <assert.h>
19090 /* Override any gcc2 internal prototype to avoid an error. */
19091 /* We use char because int might match the return type of a gcc2
19092 builtin and then its argument prototype would still apply. */
19093 char $ac_func();
19094
19095 int main() {
19096
19097 /* The GNU C library defines this for functions which it implements
19098 to always fail with ENOSYS. Some functions are actually named
19099 something starting with __ and the normal name is an alias. */
19100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19101 choke me
19102 #else
19103 $ac_func();
19104 #endif
19105
19106 ; return 0; }
19107 EOF
19108 if { (eval echo configure:19109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19109 rm -rf conftest*
19110 eval "ac_cv_func_$ac_func=yes"
19111 else
19112 echo "configure: failed program was:" >&5
19113 cat conftest.$ac_ext >&5
19114 rm -rf conftest*
19115 eval "ac_cv_func_$ac_func=no"
19116 fi
19117 rm -f conftest*
19118 fi
19119
19120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19121 echo "$ac_t""yes" 1>&6
19122 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19123 cat >> confdefs.h <<EOF
19124 #define $ac_tr_func 1
19125 EOF
19126
19127 cat >> confdefs.h <<\EOF
19128 #define HAVE_DLOPEN 1
19129 EOF
19130
19131 HAVE_DL_FUNCS=1
19132
19133 else
19134 echo "$ac_t""no" 1>&6
19135 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
19136 echo "configure:19137: checking for dlopen in -ldl" >&5
19137 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
19138 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19139 echo $ac_n "(cached) $ac_c" 1>&6
19140 else
19141 ac_save_LIBS="$LIBS"
19142 LIBS="-ldl $LIBS"
19143 cat > conftest.$ac_ext <<EOF
19144 #line 19145 "configure"
19145 #include "confdefs.h"
19146 /* Override any gcc2 internal prototype to avoid an error. */
19147 /* We use char because int might match the return type of a gcc2
19148 builtin and then its argument prototype would still apply. */
19149 char dlopen();
19150
19151 int main() {
19152 dlopen()
19153 ; return 0; }
19154 EOF
19155 if { (eval echo configure:19156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19156 rm -rf conftest*
19157 eval "ac_cv_lib_$ac_lib_var=yes"
19158 else
19159 echo "configure: failed program was:" >&5
19160 cat conftest.$ac_ext >&5
19161 rm -rf conftest*
19162 eval "ac_cv_lib_$ac_lib_var=no"
19163 fi
19164 rm -f conftest*
19165 LIBS="$ac_save_LIBS"
19166
19167 fi
19168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19169 echo "$ac_t""yes" 1>&6
19170
19171 cat >> confdefs.h <<\EOF
19172 #define HAVE_DLOPEN 1
19173 EOF
19174
19175 HAVE_DL_FUNCS=1
19176 DL_LINK=" -ldl$DL_LINK"
19177
19178 else
19179 echo "$ac_t""no" 1>&6
19180
19181 for ac_func in shl_load
19182 do
19183 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19184 echo "configure:19185: checking for $ac_func" >&5
19185 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19186 echo $ac_n "(cached) $ac_c" 1>&6
19187 else
19188 cat > conftest.$ac_ext <<EOF
19189 #line 19190 "configure"
19190 #include "confdefs.h"
19191 /* System header to define __stub macros and hopefully few prototypes,
19192 which can conflict with char $ac_func(); below. */
19193 #include <assert.h>
19194 /* Override any gcc2 internal prototype to avoid an error. */
19195 /* We use char because int might match the return type of a gcc2
19196 builtin and then its argument prototype would still apply. */
19197 char $ac_func();
19198
19199 int main() {
19200
19201 /* The GNU C library defines this for functions which it implements
19202 to always fail with ENOSYS. Some functions are actually named
19203 something starting with __ and the normal name is an alias. */
19204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19205 choke me
19206 #else
19207 $ac_func();
19208 #endif
19209
19210 ; return 0; }
19211 EOF
19212 if { (eval echo configure:19213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19213 rm -rf conftest*
19214 eval "ac_cv_func_$ac_func=yes"
19215 else
19216 echo "configure: failed program was:" >&5
19217 cat conftest.$ac_ext >&5
19218 rm -rf conftest*
19219 eval "ac_cv_func_$ac_func=no"
19220 fi
19221 rm -f conftest*
19222 fi
19223
19224 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19225 echo "$ac_t""yes" 1>&6
19226 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19227 cat >> confdefs.h <<EOF
19228 #define $ac_tr_func 1
19229 EOF
19230
19231 cat >> confdefs.h <<\EOF
19232 #define HAVE_SHL_LOAD 1
19233 EOF
19234
19235 HAVE_SHL_FUNCS=1
19236
19237 else
19238 echo "$ac_t""no" 1>&6
19239 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
19240 echo "configure:19241: checking for dld in -lshl_load" >&5
19241 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19243 echo $ac_n "(cached) $ac_c" 1>&6
19244 else
19245 ac_save_LIBS="$LIBS"
19246 LIBS="-lshl_load $LIBS"
19247 cat > conftest.$ac_ext <<EOF
19248 #line 19249 "configure"
19249 #include "confdefs.h"
19250 /* Override any gcc2 internal prototype to avoid an error. */
19251 /* We use char because int might match the return type of a gcc2
19252 builtin and then its argument prototype would still apply. */
19253 char dld();
19254
19255 int main() {
19256 dld()
19257 ; return 0; }
19258 EOF
19259 if { (eval echo configure:19260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19260 rm -rf conftest*
19261 eval "ac_cv_lib_$ac_lib_var=yes"
19262 else
19263 echo "configure: failed program was:" >&5
19264 cat conftest.$ac_ext >&5
19265 rm -rf conftest*
19266 eval "ac_cv_lib_$ac_lib_var=no"
19267 fi
19268 rm -f conftest*
19269 LIBS="$ac_save_LIBS"
19270
19271 fi
19272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19273 echo "$ac_t""yes" 1>&6
19274
19275 HAVE_SHL_FUNCS=1
19276 DL_LINK=" -ldld$DL_LINK"
19277
19278 else
19279 echo "$ac_t""no" 1>&6
19280 fi
19281
19282
19283 fi
19284 done
19285
19286
19287 fi
19288
19289
19290 fi
19291 done
19292
19293
19294 if test "$HAVE_DL_FUNCS" = 1; then
19295 for ac_func in dlerror
19296 do
19297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19298 echo "configure:19299: checking for $ac_func" >&5
19299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19300 echo $ac_n "(cached) $ac_c" 1>&6
19301 else
19302 cat > conftest.$ac_ext <<EOF
19303 #line 19304 "configure"
19304 #include "confdefs.h"
19305 /* System header to define __stub macros and hopefully few prototypes,
19306 which can conflict with char $ac_func(); below. */
19307 #include <assert.h>
19308 /* Override any gcc2 internal prototype to avoid an error. */
19309 /* We use char because int might match the return type of a gcc2
19310 builtin and then its argument prototype would still apply. */
19311 char $ac_func();
19312
19313 int main() {
19314
19315 /* The GNU C library defines this for functions which it implements
19316 to always fail with ENOSYS. Some functions are actually named
19317 something starting with __ and the normal name is an alias. */
19318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19319 choke me
19320 #else
19321 $ac_func();
19322 #endif
19323
19324 ; return 0; }
19325 EOF
19326 if { (eval echo configure:19327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19327 rm -rf conftest*
19328 eval "ac_cv_func_$ac_func=yes"
19329 else
19330 echo "configure: failed program was:" >&5
19331 cat conftest.$ac_ext >&5
19332 rm -rf conftest*
19333 eval "ac_cv_func_$ac_func=no"
19334 fi
19335 rm -f conftest*
19336 fi
19337
19338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19339 echo "$ac_t""yes" 1>&6
19340 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19341 cat >> confdefs.h <<EOF
19342 #define $ac_tr_func 1
19343 EOF
19344 cat >> confdefs.h <<\EOF
19345 #define HAVE_DLERROR 1
19346 EOF
19347
19348 else
19349 echo "$ac_t""no" 1>&6
19350 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
19351 echo "configure:19352: checking for dlerror in -ldl" >&5
19352 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19354 echo $ac_n "(cached) $ac_c" 1>&6
19355 else
19356 ac_save_LIBS="$LIBS"
19357 LIBS="-ldl $LIBS"
19358 cat > conftest.$ac_ext <<EOF
19359 #line 19360 "configure"
19360 #include "confdefs.h"
19361 /* Override any gcc2 internal prototype to avoid an error. */
19362 /* We use char because int might match the return type of a gcc2
19363 builtin and then its argument prototype would still apply. */
19364 char dlerror();
19365
19366 int main() {
19367 dlerror()
19368 ; return 0; }
19369 EOF
19370 if { (eval echo configure:19371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19371 rm -rf conftest*
19372 eval "ac_cv_lib_$ac_lib_var=yes"
19373 else
19374 echo "configure: failed program was:" >&5
19375 cat conftest.$ac_ext >&5
19376 rm -rf conftest*
19377 eval "ac_cv_lib_$ac_lib_var=no"
19378 fi
19379 rm -f conftest*
19380 LIBS="$ac_save_LIBS"
19381
19382 fi
19383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19384 echo "$ac_t""yes" 1>&6
19385 cat >> confdefs.h <<\EOF
19386 #define HAVE_DLERROR 1
19387 EOF
19388
19389 else
19390 echo "$ac_t""no" 1>&6
19391 fi
19392
19393 fi
19394 done
19395
19396 fi
19397 fi
19398
19399 if test "$HAVE_DL_FUNCS" = 0; then
19400 if test "$HAVE_SHL_FUNCS" = 0; then
19401 if test "$USE_UNIX" = 1; then
19402 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
19403 wxUSE_DYNAMIC_LOADER=no
19404 wxUSE_DYNLIB_CLASS=no
19405 else
19406 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19407 fi
19408 fi
19409 fi
19410 fi
19411 fi
19412
19413 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19414 cat >> confdefs.h <<\EOF
19415 #define wxUSE_DYNAMIC_LOADER 1
19416 EOF
19417
19418 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19419 cat >> confdefs.h <<\EOF
19420 #define wxUSE_DYNLIB_CLASS 1
19421 EOF
19422
19423 fi
19424
19425
19426 if test "$wxUSE_FONTMAP" = "yes" ; then
19427 cat >> confdefs.h <<\EOF
19428 #define wxUSE_FONTMAP 1
19429 EOF
19430
19431 fi
19432
19433 if test "$wxUSE_UNICODE" = "yes" ; then
19434 cat >> confdefs.h <<\EOF
19435 #define wxUSE_UNICODE 1
19436 EOF
19437
19438
19439 if test "$wxUSE_MSW" != 1; then
19440 wxUSE_UNICODE_MSLU=no
19441 fi
19442
19443 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19444 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
19445 echo "configure:19446: checking for main in -lunicows" >&5
19446 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19448 echo $ac_n "(cached) $ac_c" 1>&6
19449 else
19450 ac_save_LIBS="$LIBS"
19451 LIBS="-lunicows $LIBS"
19452 cat > conftest.$ac_ext <<EOF
19453 #line 19454 "configure"
19454 #include "confdefs.h"
19455
19456 int main() {
19457 main()
19458 ; return 0; }
19459 EOF
19460 if { (eval echo configure:19461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19461 rm -rf conftest*
19462 eval "ac_cv_lib_$ac_lib_var=yes"
19463 else
19464 echo "configure: failed program was:" >&5
19465 cat conftest.$ac_ext >&5
19466 rm -rf conftest*
19467 eval "ac_cv_lib_$ac_lib_var=no"
19468 fi
19469 rm -f conftest*
19470 LIBS="$ac_save_LIBS"
19471
19472 fi
19473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19474 echo "$ac_t""yes" 1>&6
19475
19476 cat >> confdefs.h <<\EOF
19477 #define wxUSE_UNICODE_MSLU 1
19478 EOF
19479
19480
19481 else
19482 echo "$ac_t""no" 1>&6
19483
19484 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19485 Applications will only run on Windows NT/2000/XP!" 1>&2
19486 wxUSE_UNICODE_MSLU=no
19487
19488 fi
19489
19490 fi
19491 fi
19492
19493 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
19494 cat >> confdefs.h <<\EOF
19495 #define wxUSE_EXPERIMENTAL_PRINTF 1
19496 EOF
19497
19498 fi
19499
19500
19501
19502 IODBC_C_SRC=""
19503 if test "$wxUSE_ODBC" = "yes" ; then
19504 cat >> confdefs.h <<\EOF
19505 #define wxUSE_ODBC 1
19506 EOF
19507
19508 WXODBCFLAG="-D_IODBC_"
19509 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
19510 fi
19511
19512
19513 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
19514 cat >> confdefs.h <<\EOF
19515 #define wxUSE_POSTSCRIPT 1
19516 EOF
19517
19518 fi
19519
19520 cat >> confdefs.h <<\EOF
19521 #define wxUSE_AFM_FOR_POSTSCRIPT 1
19522 EOF
19523
19524
19525 cat >> confdefs.h <<\EOF
19526 #define wxUSE_NORMALIZED_PS_FONTS 1
19527 EOF
19528
19529
19530
19531 if test "$wxUSE_CONSTRAINTS" = "yes"; then
19532 cat >> confdefs.h <<\EOF
19533 #define wxUSE_CONSTRAINTS 1
19534 EOF
19535
19536 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19537 fi
19538
19539 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19540 if test "$wxUSE_UNIVERSAL" = "yes"; then
19541 echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2
19542 wxUSE_MDI_ARCHITECTURE=no
19543 fi
19544
19545 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19546 cat >> confdefs.h <<\EOF
19547 #define wxUSE_MDI_ARCHITECTURE 1
19548 EOF
19549
19550 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19551 fi
19552 fi
19553
19554 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
19555 cat >> confdefs.h <<\EOF
19556 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
19557 EOF
19558
19559 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19560 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19561 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19562 fi
19563 fi
19564
19565 if test "$wxUSE_HELP" = "yes"; then
19566 cat >> confdefs.h <<\EOF
19567 #define wxUSE_HELP 1
19568 EOF
19569
19570 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
19571
19572 if test "$wxUSE_MSW" = 1; then
19573 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
19574 cat >> confdefs.h <<\EOF
19575 #define wxUSE_MS_HTML_HELP 1
19576 EOF
19577
19578 fi
19579 fi
19580
19581 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19582 if test "$wxUSE_HTML" = "yes"; then
19583 cat >> confdefs.h <<\EOF
19584 #define wxUSE_WXHTML_HELP 1
19585 EOF
19586
19587 else
19588 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19589 wxUSE_WXHTML_HELP=no
19590 fi
19591 fi
19592 fi
19593
19594 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19595 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19596 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
19597 else
19598 cat >> confdefs.h <<\EOF
19599 #define wxUSE_PRINTING_ARCHITECTURE 1
19600 EOF
19601
19602 fi
19603 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19604 fi
19605
19606 if test "$wxUSE_PROLOGIO" = "yes" ; then
19607 cat >> confdefs.h <<\EOF
19608 #define wxUSE_PROLOGIO 1
19609 EOF
19610
19611 fi
19612
19613 if test "$wxUSE_RESOURCES" = "yes" ; then
19614 if test "$wxUSE_NANOX" = "yes"; then
19615 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
19616 else
19617 cat >> confdefs.h <<\EOF
19618 #define wxUSE_RESOURCES 1
19619 EOF
19620
19621 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19622 fi
19623 fi
19624
19625 if test "$wxUSE_X_RESOURCES" = "yes"; then
19626 cat >> confdefs.h <<\EOF
19627 #define wxUSE_X_RESOURCES 1
19628 EOF
19629
19630 fi
19631
19632
19633 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19634 -o "$wxUSE_CLIPBOARD" = "yes" \
19635 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
19636 for ac_hdr in ole2.h
19637 do
19638 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19639 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19640 echo "configure:19641: checking for $ac_hdr" >&5
19641 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19642 echo $ac_n "(cached) $ac_c" 1>&6
19643 else
19644 cat > conftest.$ac_ext <<EOF
19645 #line 19646 "configure"
19646 #include "confdefs.h"
19647 #include <$ac_hdr>
19648 EOF
19649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19650 { (eval echo configure:19651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19652 if test -z "$ac_err"; then
19653 rm -rf conftest*
19654 eval "ac_cv_header_$ac_safe=yes"
19655 else
19656 echo "$ac_err" >&5
19657 echo "configure: failed program was:" >&5
19658 cat conftest.$ac_ext >&5
19659 rm -rf conftest*
19660 eval "ac_cv_header_$ac_safe=no"
19661 fi
19662 rm -f conftest*
19663 fi
19664 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19665 echo "$ac_t""yes" 1>&6
19666 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19667 cat >> confdefs.h <<EOF
19668 #define $ac_tr_hdr 1
19669 EOF
19670
19671 else
19672 echo "$ac_t""no" 1>&6
19673 fi
19674 done
19675
19676
19677 if test "$ac_cv_header_ole2_h" = "yes" ; then
19678 if test "$GCC" = yes ; then
19679 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
19680 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
19681 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
19682 cat >> confdefs.h <<\EOF
19683 #define wxUSE_OLE 1
19684 EOF
19685
19686
19687 fi
19688
19689 cat >> confdefs.h <<\EOF
19690 #define wxUSE_DATAOBJ 1
19691 EOF
19692
19693 else
19694 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
19695
19696 wxUSE_CLIPBOARD=no
19697 wxUSE_DRAG_AND_DROP=no
19698 wxUSE_DATAOBJ=no
19699 fi
19700
19701 if test "$wxUSE_METAFILE" = "yes"; then
19702 cat >> confdefs.h <<\EOF
19703 #define wxUSE_METAFILE 1
19704 EOF
19705
19706
19707 cat >> confdefs.h <<\EOF
19708 #define wxUSE_ENH_METAFILE 1
19709 EOF
19710
19711 fi
19712 fi
19713
19714 if test "$wxUSE_IPC" = "yes"; then
19715 if test "$wxUSE_SOCKETS" != "yes"; then
19716 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
19717 fi
19718
19719 cat >> confdefs.h <<\EOF
19720 #define wxUSE_IPC 1
19721 EOF
19722
19723 fi
19724
19725 if test "$wxUSE_CLIPBOARD" = "yes"; then
19726 cat >> confdefs.h <<\EOF
19727 #define wxUSE_CLIPBOARD 1
19728 EOF
19729
19730
19731 cat >> confdefs.h <<\EOF
19732 #define wxUSE_DATAOBJ 1
19733 EOF
19734
19735 fi
19736
19737 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
19738 if test "$wxUSE_GTK" = 1; then
19739 if test "$WXGTK12" != 1; then
19740 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
19741 wxUSE_DRAG_AND_DROP=no
19742 fi
19743 fi
19744
19745 if test "$wxUSE_MOTIF" = 1; then
19746 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
19747 wxUSE_DRAG_AND_DROP=no
19748 fi
19749
19750 if test "$wxUSE_X11" = 1; then
19751 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
19752 wxUSE_DRAG_AND_DROP=no
19753 fi
19754
19755 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
19756 cat >> confdefs.h <<\EOF
19757 #define wxUSE_DRAG_AND_DROP 1
19758 EOF
19759
19760 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
19761 fi
19762
19763 fi
19764
19765 if test "$wxUSE_SPLINES" = "yes" ; then
19766 cat >> confdefs.h <<\EOF
19767 #define wxUSE_SPLINES 1
19768 EOF
19769
19770 fi
19771
19772
19773 USES_CONTROLS=0
19774 if test "$wxUSE_CONTROLS" = "yes"; then
19775 USES_CONTROLS=1
19776 fi
19777
19778 if test "$wxUSE_ACCEL" = "yes"; then
19779 cat >> confdefs.h <<\EOF
19780 #define wxUSE_ACCEL 1
19781 EOF
19782
19783 USES_CONTROLS=1
19784 fi
19785
19786 if test "$wxUSE_BUTTON" = "yes"; then
19787 cat >> confdefs.h <<\EOF
19788 #define wxUSE_BUTTON 1
19789 EOF
19790
19791 USES_CONTROLS=1
19792 fi
19793
19794 if test "$wxUSE_BMPBUTTON" = "yes"; then
19795 cat >> confdefs.h <<\EOF
19796 #define wxUSE_BMPBUTTON 1
19797 EOF
19798
19799 USES_CONTROLS=1
19800 fi
19801
19802 if test "$wxUSE_CALCTRL" = "yes"; then
19803 cat >> confdefs.h <<\EOF
19804 #define wxUSE_CALENDARCTRL 1
19805 EOF
19806
19807 USES_CONTROLS=1
19808 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
19809 fi
19810
19811 if test "$wxUSE_CARET" = "yes"; then
19812 cat >> confdefs.h <<\EOF
19813 #define wxUSE_CARET 1
19814 EOF
19815
19816 USES_CONTROLS=1
19817 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
19818 fi
19819
19820 if test "$wxUSE_COMBOBOX" = "yes"; then
19821 cat >> confdefs.h <<\EOF
19822 #define wxUSE_COMBOBOX 1
19823 EOF
19824
19825 USES_CONTROLS=1
19826 fi
19827
19828 if test "$wxUSE_CHOICE" = "yes"; then
19829 cat >> confdefs.h <<\EOF
19830 #define wxUSE_CHOICE 1
19831 EOF
19832
19833 USES_CONTROLS=1
19834 fi
19835
19836 if test "$wxUSE_CHECKBOX" = "yes"; then
19837 cat >> confdefs.h <<\EOF
19838 #define wxUSE_CHECKBOX 1
19839 EOF
19840
19841 USES_CONTROLS=1
19842 fi
19843
19844 if test "$wxUSE_CHECKLST" = "yes"; then
19845 cat >> confdefs.h <<\EOF
19846 #define wxUSE_CHECKLISTBOX 1
19847 EOF
19848
19849 USES_CONTROLS=1
19850 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
19851 fi
19852
19853 if test "$wxUSE_GAUGE" = "yes"; then
19854 cat >> confdefs.h <<\EOF
19855 #define wxUSE_GAUGE 1
19856 EOF
19857
19858 USES_CONTROLS=1
19859 fi
19860
19861 if test "$wxUSE_NEW_GRID" = "yes"; then
19862 wxUSE_GRID="yes"
19863 cat >> confdefs.h <<\EOF
19864 #define wxUSE_NEW_GRID 1
19865 EOF
19866
19867 USES_CONTROLS=1
19868 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
19869 fi
19870
19871 if test "$wxUSE_GRID" = "yes"; then
19872 cat >> confdefs.h <<\EOF
19873 #define wxUSE_GRID 1
19874 EOF
19875
19876 USES_CONTROLS=1
19877 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
19878 fi
19879
19880 if test "$wxUSE_IMAGLIST" = "yes"; then
19881 cat >> confdefs.h <<\EOF
19882 #define wxUSE_IMAGLIST 1
19883 EOF
19884
19885 fi
19886
19887 if test "$wxUSE_LISTBOX" = "yes"; then
19888 cat >> confdefs.h <<\EOF
19889 #define wxUSE_LISTBOX 1
19890 EOF
19891
19892 USES_CONTROLS=1
19893 fi
19894
19895 if test "$wxUSE_LISTCTRL" = "yes"; then
19896 if test "$wxUSE_IMAGLIST" = "yes"; then
19897 cat >> confdefs.h <<\EOF
19898 #define wxUSE_LISTCTRL 1
19899 EOF
19900
19901 USES_CONTROLS=1
19902 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
19903 else
19904 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
19905 fi
19906 fi
19907
19908 if test "$wxUSE_NOTEBOOK" = "yes"; then
19909 cat >> confdefs.h <<\EOF
19910 #define wxUSE_NOTEBOOK 1
19911 EOF
19912
19913 USES_CONTROLS=1
19914 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
19915 fi
19916
19917 if test "$wxUSE_PROPSHEET" = "yes"; then
19918 cat >> confdefs.h <<\EOF
19919 #define wxUSE_PROPSHEET 1
19920 EOF
19921
19922 USES_CONTROLS=1
19923 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
19924 fi
19925
19926 if test "$wxUSE_RADIOBOX" = "yes"; then
19927 cat >> confdefs.h <<\EOF
19928 #define wxUSE_RADIOBOX 1
19929 EOF
19930
19931 USES_CONTROLS=1
19932 fi
19933
19934 if test "$wxUSE_RADIOBTN" = "yes"; then
19935 cat >> confdefs.h <<\EOF
19936 #define wxUSE_RADIOBTN 1
19937 EOF
19938
19939 USES_CONTROLS=1
19940 fi
19941
19942 if test "$wxUSE_SASH" = "yes"; then
19943 cat >> confdefs.h <<\EOF
19944 #define wxUSE_SASH 1
19945 EOF
19946
19947 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
19948 fi
19949
19950 if test "$wxUSE_SCROLLBAR" = "yes"; then
19951 cat >> confdefs.h <<\EOF
19952 #define wxUSE_SCROLLBAR 1
19953 EOF
19954
19955 USES_CONTROLS=1
19956 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
19957 fi
19958
19959 if test "$wxUSE_SLIDER" = "yes"; then
19960 cat >> confdefs.h <<\EOF
19961 #define wxUSE_SLIDER 1
19962 EOF
19963
19964 USES_CONTROLS=1
19965 fi
19966
19967 if test "$wxUSE_SPINBTN" = "yes"; then
19968 cat >> confdefs.h <<\EOF
19969 #define wxUSE_SPINBTN 1
19970 EOF
19971
19972 USES_CONTROLS=1
19973 fi
19974
19975 if test "$wxUSE_SPINCTRL" = "yes"; then
19976 cat >> confdefs.h <<\EOF
19977 #define wxUSE_SPINCTRL 1
19978 EOF
19979
19980 USES_CONTROLS=1
19981 fi
19982
19983 if test "$wxUSE_SPLITTER" = "yes"; then
19984 cat >> confdefs.h <<\EOF
19985 #define wxUSE_SPLITTER 1
19986 EOF
19987
19988 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
19989 fi
19990
19991 if test "$wxUSE_STATBMP" = "yes"; then
19992 cat >> confdefs.h <<\EOF
19993 #define wxUSE_STATBMP 1
19994 EOF
19995
19996 USES_CONTROLS=1
19997 fi
19998
19999 if test "$wxUSE_STATBOX" = "yes"; then
20000 cat >> confdefs.h <<\EOF
20001 #define wxUSE_STATBOX 1
20002 EOF
20003
20004 USES_CONTROLS=1
20005 fi
20006
20007 if test "$wxUSE_STATTEXT" = "yes"; then
20008 cat >> confdefs.h <<\EOF
20009 #define wxUSE_STATTEXT 1
20010 EOF
20011
20012 USES_CONTROLS=1
20013 fi
20014
20015 if test "$wxUSE_STATLINE" = "yes"; then
20016 if test "$wxUSE_WINE" = 1 ; then
20017 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
20018 else
20019 cat >> confdefs.h <<\EOF
20020 #define wxUSE_STATLINE 1
20021 EOF
20022
20023 USES_CONTROLS=1
20024 fi
20025 fi
20026
20027 if test "$wxUSE_STATUSBAR" = "yes"; then
20028 cat >> confdefs.h <<\EOF
20029 #define wxUSE_STATUSBAR 1
20030 EOF
20031
20032 USES_CONTROLS=1
20033
20034 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
20035 fi
20036
20037 if test "$wxUSE_TABDIALOG" = "yes"; then
20038 cat >> confdefs.h <<\EOF
20039 #define wxUSE_TAB_DIALOG 1
20040 EOF
20041
20042 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
20043 fi
20044
20045 if test "$wxUSE_TEXTCTRL" = "yes"; then
20046 cat >> confdefs.h <<\EOF
20047 #define wxUSE_TEXTCTRL 1
20048 EOF
20049
20050 USES_CONTROLS=1
20051 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
20052 fi
20053
20054 if test "$wxUSE_TOGGLEBTN" = "yes"; then
20055 if test "$wxUSE_MAC" = 1; then
20056 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
20057 wxUSE_TOGGLEBTN=no
20058 fi
20059 if test "$wxUSE_UNIVERSAL" = "yes"; then
20060 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
20061 wxUSE_TOGGLEBTN=no
20062 fi
20063
20064 if test "$wxUSE_TOGGLEBTN" = "yes"; then
20065 cat >> confdefs.h <<\EOF
20066 #define wxUSE_TOGGLEBTN 1
20067 EOF
20068
20069 USES_CONTROLS=1
20070 fi
20071 fi
20072
20073 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
20074 cat >> confdefs.h <<\EOF
20075 #define wxUSE_TOOLBAR_SIMPLE 1
20076 EOF
20077
20078 wxUSE_TOOLBAR="yes"
20079 USES_CONTROLS=1
20080 fi
20081
20082 if test "$wxUSE_TOOLBAR" = "yes"; then
20083 cat >> confdefs.h <<\EOF
20084 #define wxUSE_TOOLBAR 1
20085 EOF
20086
20087 USES_CONTROLS=1
20088
20089 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
20090 wxUSE_TOOLBAR_NATIVE="yes"
20091 fi
20092
20093 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
20094 cat >> confdefs.h <<\EOF
20095 #define wxUSE_TOOLBAR_NATIVE 1
20096 EOF
20097
20098 USES_CONTROLS=1
20099 fi
20100
20101 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
20102 fi
20103
20104 if test "$wxUSE_TOOLTIPS" = "yes"; then
20105 if test "$wxUSE_MOTIF" = 1; then
20106 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
20107 else
20108 if test "$wxUSE_WINE" = 1; then
20109 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
20110 else
20111 if test "$wxUSE_UNIVERSAL" = "yes"; then
20112 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
20113 else
20114 cat >> confdefs.h <<\EOF
20115 #define wxUSE_TOOLTIPS 1
20116 EOF
20117
20118 fi
20119 fi
20120 fi
20121 fi
20122
20123 if test "$wxUSE_TREECTRL" = "yes"; then
20124 if test "$wxUSE_IMAGLIST" = "yes"; then
20125 cat >> confdefs.h <<\EOF
20126 #define wxUSE_TREECTRL 1
20127 EOF
20128
20129 USES_CONTROLS=1
20130 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20131 else
20132 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
20133 fi
20134 fi
20135
20136 if test "$wxUSE_POPUPWIN" = "yes"; then
20137 if test "$wxUSE_MAC" = 1; then
20138 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
20139 else
20140 if test "$wxUSE_MOTIF" = 1; then
20141 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
20142 else
20143 if test "$wxUSE_PM" = 1; then
20144 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
20145 else
20146 cat >> confdefs.h <<\EOF
20147 #define wxUSE_POPUPWIN 1
20148 EOF
20149
20150
20151 USES_CONTROLS=1
20152 fi
20153 fi
20154 fi
20155 fi
20156
20157 if test "$wxUSE_TIPWINDOW" = "yes"; then
20158 if test "$wxUSE_PM" = 1; then
20159 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
20160 else
20161 cat >> confdefs.h <<\EOF
20162 #define wxUSE_TIPWINDOW 1
20163 EOF
20164
20165 fi
20166 fi
20167
20168 if test "$USES_CONTROLS" = 1; then
20169 cat >> confdefs.h <<\EOF
20170 #define wxUSE_CONTROLS 1
20171 EOF
20172
20173 fi
20174
20175
20176 if test "$wxUSE_TREELAYOUT" = "yes"; then
20177 cat >> confdefs.h <<\EOF
20178 #define wxUSE_TREELAYOUT 1
20179 EOF
20180
20181 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20182 fi
20183
20184 if test "$wxUSE_DRAGIMAGE" = "yes"; then
20185 cat >> confdefs.h <<\EOF
20186 #define wxUSE_DRAGIMAGE 1
20187 EOF
20188
20189 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20190 fi
20191
20192 if test "$wxUSE_MENUS" = "yes"; then
20193 cat >> confdefs.h <<\EOF
20194 #define wxUSE_MENUS 1
20195 EOF
20196
20197 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
20198 fi
20199
20200 if test "$wxUSE_METAFILE" = "yes"; then
20201 cat >> confdefs.h <<\EOF
20202 #define wxUSE_METAFILE 1
20203 EOF
20204
20205 fi
20206
20207 if test "$wxUSE_MIMETYPE" = "yes"; then
20208 cat >> confdefs.h <<\EOF
20209 #define wxUSE_MIMETYPE 1
20210 EOF
20211
20212 fi
20213
20214 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
20215 cat >> confdefs.h <<\EOF
20216 #define wxUSE_SYSTEM_OPTIONS 1
20217 EOF
20218
20219 fi
20220
20221 if test "$wxUSE_PROTOCOL" = "yes"; then
20222 if test "$wxUSE_SOCKETS" != "yes"; then
20223 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
20224 wxUSE_PROTOCOL=no
20225 fi
20226
20227 if test "$wxUSE_PROTOCOL" = "yes"; then
20228 cat >> confdefs.h <<\EOF
20229 #define wxUSE_PROTOCOL 1
20230 EOF
20231
20232
20233 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
20234 cat >> confdefs.h <<\EOF
20235 #define wxUSE_PROTOCOL_HTTP 1
20236 EOF
20237
20238 fi
20239 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
20240 cat >> confdefs.h <<\EOF
20241 #define wxUSE_PROTOCOL_FTP 1
20242 EOF
20243
20244 fi
20245 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
20246 cat >> confdefs.h <<\EOF
20247 #define wxUSE_PROTOCOL_FILE 1
20248 EOF
20249
20250 fi
20251 fi
20252 fi
20253
20254 if test "$wxUSE_URL" = "yes"; then
20255 if test "$wxUSE_PROTOCOL" != "yes"; then
20256 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20257 wxUSE_URL=no
20258 fi
20259 if test "$wxUSE_URL" = "yes"; then
20260 cat >> confdefs.h <<\EOF
20261 #define wxUSE_URL 1
20262 EOF
20263
20264 fi
20265 fi
20266
20267 if test "$wxUSE_MINIFRAME" = "yes"; then
20268 cat >> confdefs.h <<\EOF
20269 #define wxUSE_MINIFRAME 1
20270 EOF
20271
20272 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20273 fi
20274
20275 if test "$wxUSE_HTML" = "yes"; then
20276 cat >> confdefs.h <<\EOF
20277 #define wxUSE_HTML 1
20278 EOF
20279
20280 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
20281 fi
20282
20283 if test "$wxUSE_VALIDATORS" = "yes"; then
20284 cat >> confdefs.h <<\EOF
20285 #define wxUSE_VALIDATORS 1
20286 EOF
20287
20288 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20289 fi
20290
20291 if test "$wxUSE_PALETTE" = "yes" ; then
20292 cat >> confdefs.h <<\EOF
20293 #define wxUSE_PALETTE 1
20294 EOF
20295
20296 fi
20297
20298 if test "$wxUSE_IMAGE" = "yes" ; then
20299 cat >> confdefs.h <<\EOF
20300 #define wxUSE_IMAGE 1
20301 EOF
20302
20303 fi
20304
20305 if test "$wxUSE_GIF" = "yes" ; then
20306 cat >> confdefs.h <<\EOF
20307 #define wxUSE_GIF 1
20308 EOF
20309
20310 fi
20311
20312 if test "$wxUSE_PCX" = "yes" ; then
20313 cat >> confdefs.h <<\EOF
20314 #define wxUSE_PCX 1
20315 EOF
20316
20317 fi
20318
20319 if test "$wxUSE_IFF" = "yes" ; then
20320 cat >> confdefs.h <<\EOF
20321 #define wxUSE_IFF 1
20322 EOF
20323
20324 fi
20325
20326 if test "$wxUSE_PNM" = "yes" ; then
20327 cat >> confdefs.h <<\EOF
20328 #define wxUSE_PNM 1
20329 EOF
20330
20331 fi
20332
20333 if test "$wxUSE_XPM" = "yes" ; then
20334 cat >> confdefs.h <<\EOF
20335 #define wxUSE_XPM 1
20336 EOF
20337
20338 fi
20339
20340 if test "$wxUSE_ICO_CUR" = "yes" ; then
20341 cat >> confdefs.h <<\EOF
20342 #define wxUSE_ICO_CUR 1
20343 EOF
20344
20345 fi
20346
20347 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20348 LIBS=" -lunicows $LIBS"
20349 fi
20350
20351
20352 if test "$wxUSE_CHOICEDLG" = "yes"; then
20353 cat >> confdefs.h <<\EOF
20354 #define wxUSE_CHOICEDLG 1
20355 EOF
20356
20357 fi
20358
20359 if test "$wxUSE_COLOURDLG" = "yes"; then
20360 cat >> confdefs.h <<\EOF
20361 #define wxUSE_COLOURDLG 1
20362 EOF
20363
20364 fi
20365
20366 if test "$wxUSE_FILEDLG" = "yes"; then
20367 cat >> confdefs.h <<\EOF
20368 #define wxUSE_FILEDLG 1
20369 EOF
20370
20371 fi
20372
20373 if test "$wxUSE_FINDREPLDLG" = "yes"; then
20374 cat >> confdefs.h <<\EOF
20375 #define wxUSE_FINDREPLDLG 1
20376 EOF
20377
20378 fi
20379
20380 if test "$wxUSE_FONTDLG" = "yes"; then
20381 cat >> confdefs.h <<\EOF
20382 #define wxUSE_FONTDLG 1
20383 EOF
20384
20385 fi
20386
20387 if test "$wxUSE_DIRDLG" = "yes"; then
20388 if test "$wxUSE_TREECTRL" != "yes"; then
20389 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
20390 else
20391 cat >> confdefs.h <<\EOF
20392 #define wxUSE_DIRDLG 1
20393 EOF
20394
20395 fi
20396 fi
20397
20398 if test "$wxUSE_MSGDLG" = "yes"; then
20399 cat >> confdefs.h <<\EOF
20400 #define wxUSE_MSGDLG 1
20401 EOF
20402
20403 fi
20404
20405 if test "$wxUSE_NUMBERDLG" = "yes"; then
20406 cat >> confdefs.h <<\EOF
20407 #define wxUSE_NUMBERDLG 1
20408 EOF
20409
20410 fi
20411
20412 if test "$wxUSE_PROGRESSDLG" = "yes"; then
20413 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20414 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20415 else
20416 cat >> confdefs.h <<\EOF
20417 #define wxUSE_PROGRESSDLG 1
20418 EOF
20419
20420 fi
20421 fi
20422
20423 if test "$wxUSE_SPLASH" = "yes"; then
20424 cat >> confdefs.h <<\EOF
20425 #define wxUSE_SPLASH 1
20426 EOF
20427
20428 fi
20429
20430 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20431 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20432 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20433 else
20434 cat >> confdefs.h <<\EOF
20435 #define wxUSE_STARTUP_TIPS 1
20436 EOF
20437
20438 fi
20439 fi
20440
20441 if test "$wxUSE_TEXTDLG" = "yes"; then
20442 cat >> confdefs.h <<\EOF
20443 #define wxUSE_TEXTDLG 1
20444 EOF
20445
20446 fi
20447
20448 if test "$wxUSE_WIZARDDLG" = "yes"; then
20449 cat >> confdefs.h <<\EOF
20450 #define wxUSE_WIZARDDLG 1
20451 EOF
20452
20453 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20454 fi
20455
20456
20457 if test "$cross_compiling" = "yes"; then
20458 OSINFO="\"$host\""
20459 else
20460 OSINFO=`uname -s -r -m`
20461 OSINFO="\"$OSINFO\""
20462 fi
20463
20464 cat >> confdefs.h <<EOF
20465 #define WXWIN_OS_DESCRIPTION $OSINFO
20466 EOF
20467
20468
20469
20470 if test "x$prefix" != "xNONE"; then
20471 wxPREFIX=$prefix
20472 else
20473 wxPREFIX=$ac_default_prefix
20474 fi
20475
20476 cat >> confdefs.h <<EOF
20477 #define wxINSTALL_PREFIX "$wxPREFIX"
20478 EOF
20479
20480
20481
20482
20483
20484 if test "$wxUSE_MAC" = 1 ; then
20485 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
20486 fi
20487
20488
20489 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
20490
20491 if test "$wxUSE_GUI" = "yes"; then
20492
20493 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
20494
20495
20496 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
20497 drawing dynamic erase event exec font image \
20498 minimal richedit rotate widgets"
20499
20500 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20501 else
20502 SAMPLES_SUBDIRS="console"
20503 fi
20504
20505
20506 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
20507 -I\${top_srcdir}/include \
20508 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
20509 $TOOLKIT_INCLUDE"
20510
20511 if test "$wxUSE_GTK" = 1; then
20512 WXCONFIG_INCLUDE=
20513 else
20514 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20515 fi
20516
20517 if test "$GXX" = yes ; then
20518 CXXWARNINGS="-Wall"
20519
20520 if test "$wxUSE_NO_DEPS" = "no" ; then
20521 CFLAGS="-MMD $CFLAGS"
20522 CXXFLAGS="-MMD $CXXFLAGS"
20523 fi
20524 fi
20525
20526 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
20527
20528 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20529 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
20530 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
20531
20532 LDFLAGS="$LDFLAGS $PROFILE"
20533
20534 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
20625 echo "configure:20626: checking whether ${MAKE-make} sets \${MAKE}" >&5
20626 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20627 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20628 echo $ac_n "(cached) $ac_c" 1>&6
20629 else
20630 cat > conftestmake <<\EOF
20631 all:
20632 @echo 'ac_maketemp="${MAKE}"'
20633 EOF
20634 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20635 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
20636 if test -n "$ac_maketemp"; then
20637 eval ac_cv_prog_make_${ac_make}_set=yes
20638 else
20639 eval ac_cv_prog_make_${ac_make}_set=no
20640 fi
20641 rm -f conftestmake
20642 fi
20643 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20644 echo "$ac_t""yes" 1>&6
20645 SET_MAKE=
20646 else
20647 echo "$ac_t""no" 1>&6
20648 SET_MAKE="MAKE=${MAKE-make}"
20649 fi
20650
20651
20652 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
20653 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
20654 fi
20655
20656
20657
20658 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
20659 wx_cv_if_gnu_make=$IF_GNU_MAKE
20660 wx_cv_path_ifs=$PATH_IFS
20661 wx_cv_program_ext=$PROGRAM_EXT
20662 wx_cv_target_library=$WX_TARGET_LIBRARY
20663 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
20664 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
20665 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
20666 wx_cv_path_ifs wx_cv_program_ext \
20667 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
20668
20669 subdirs="demos samples utils contrib"
20670
20671
20672 trap '' 1 2 15
20673 cat > confcache <<\EOF
20674 # This file is a shell script that caches the results of configure
20675 # tests run on this system so they can be shared between configure
20676 # scripts and configure runs. It is not useful on other systems.
20677 # If it contains results you don't want to keep, you may remove or edit it.
20678 #
20679 # By default, configure uses ./config.cache as the cache file,
20680 # creating it if it does not exist already. You can give configure
20681 # the --cache-file=FILE option to use a different cache file; that is
20682 # what configure does when it calls configure scripts in
20683 # subdirectories, so they share the cache.
20684 # Giving --cache-file=/dev/null disables caching, for debugging configure.
20685 # config.status only pays attention to the cache file if you give it the
20686 # --recheck option to rerun configure.
20687 #
20688 EOF
20689 # The following way of writing the cache mishandles newlines in values,
20690 # but we know of no workaround that is simple, portable, and efficient.
20691 # So, don't put newlines in cache variables' values.
20692 # Ultrix sh set writes to stderr and can't be redirected directly,
20693 # and sets the high bit in the cache file unless we assign to the vars.
20694 (set) 2>&1 |
20695 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20696 *ac_space=\ *)
20697 # `set' does not quote correctly, so add quotes (double-quote substitution
20698 # turns \\\\ into \\, and sed turns \\ into \).
20699 sed -n \
20700 -e "s/'/'\\\\''/g" \
20701 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20702 ;;
20703 *)
20704 # `set' quotes correctly as required by POSIX, so do not add quotes.
20705 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20706 ;;
20707 esac >> confcache
20708 if cmp -s $cache_file confcache; then
20709 :
20710 else
20711 if test -w $cache_file; then
20712 echo "updating cache $cache_file"
20713 cat confcache > $cache_file
20714 else
20715 echo "not updating unwritable cache $cache_file"
20716 fi
20717 fi
20718 rm -f confcache
20719
20720 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20721
20722 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20723 # Let make expand exec_prefix.
20724 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20725
20726 # Any assignment to VPATH causes Sun make to only execute
20727 # the first set of double-colon rules, so remove it if not needed.
20728 # If there is a colon in the path, we need to keep it.
20729 if test "x$srcdir" = x.; then
20730 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
20731 fi
20732
20733 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20734
20735 DEFS=-DHAVE_CONFIG_H
20736
20737 # Without the "./", some shells look in PATH for config.status.
20738 : ${CONFIG_STATUS=./config.status}
20739
20740 echo creating $CONFIG_STATUS
20741 rm -f $CONFIG_STATUS
20742 cat > $CONFIG_STATUS <<EOF
20743 #! /bin/sh
20744 # Generated automatically by configure.
20745 # Run this file to recreate the current configuration.
20746 # This directory was configured as follows,
20747 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20748 #
20749 # $0 $ac_configure_args
20750 #
20751 # Compiler output produced by configure, useful for debugging
20752 # configure, is in ./config.log if it exists.
20753
20754 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20755 for ac_option
20756 do
20757 case "\$ac_option" in
20758 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20759 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
20760 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
20761 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
20762 echo "$CONFIG_STATUS generated by autoconf version 2.13"
20763 exit 0 ;;
20764 -help | --help | --hel | --he | --h)
20765 echo "\$ac_cs_usage"; exit 0 ;;
20766 *) echo "\$ac_cs_usage"; exit 1 ;;
20767 esac
20768 done
20769
20770 ac_given_srcdir=$srcdir
20771 ac_given_INSTALL="$INSTALL"
20772
20773 trap 'rm -fr `echo "
20774 wx-config
20775 src/make.env
20776 src/makeprog.env
20777 src/makelib.env
20778 Makefile
20779 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
20780 EOF
20781 cat >> $CONFIG_STATUS <<EOF
20782
20783 # Protect against being on the right side of a sed subst in config.status.
20784 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
20785 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
20786 $ac_vpsub
20787 $extrasub
20788 s%@SHELL@%$SHELL%g
20789 s%@CFLAGS@%$CFLAGS%g
20790 s%@CPPFLAGS@%$CPPFLAGS%g
20791 s%@CXXFLAGS@%$CXXFLAGS%g
20792 s%@FFLAGS@%$FFLAGS%g
20793 s%@DEFS@%$DEFS%g
20794 s%@LDFLAGS@%$LDFLAGS%g
20795 s%@LIBS@%$LIBS%g
20796 s%@exec_prefix@%$exec_prefix%g
20797 s%@prefix@%$prefix%g
20798 s%@program_transform_name@%$program_transform_name%g
20799 s%@bindir@%$bindir%g
20800 s%@sbindir@%$sbindir%g
20801 s%@libexecdir@%$libexecdir%g
20802 s%@datadir@%$datadir%g
20803 s%@sysconfdir@%$sysconfdir%g
20804 s%@sharedstatedir@%$sharedstatedir%g
20805 s%@localstatedir@%$localstatedir%g
20806 s%@libdir@%$libdir%g
20807 s%@includedir@%$includedir%g
20808 s%@oldincludedir@%$oldincludedir%g
20809 s%@infodir@%$infodir%g
20810 s%@mandir@%$mandir%g
20811 s%@host@%$host%g
20812 s%@host_alias@%$host_alias%g
20813 s%@host_cpu@%$host_cpu%g
20814 s%@host_vendor@%$host_vendor%g
20815 s%@host_os@%$host_os%g
20816 s%@target@%$target%g
20817 s%@target_alias@%$target_alias%g
20818 s%@target_cpu@%$target_cpu%g
20819 s%@target_vendor@%$target_vendor%g
20820 s%@target_os@%$target_os%g
20821 s%@build@%$build%g
20822 s%@build_alias@%$build_alias%g
20823 s%@build_cpu@%$build_cpu%g
20824 s%@build_vendor@%$build_vendor%g
20825 s%@build_os@%$build_os%g
20826 s%@CC@%$CC%g
20827 s%@CPP@%$CPP%g
20828 s%@CXX@%$CXX%g
20829 s%@RANLIB@%$RANLIB%g
20830 s%@AR@%$AR%g
20831 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
20832 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
20833 s%@INSTALL_DATA@%$INSTALL_DATA%g
20834 s%@STRIP@%$STRIP%g
20835 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
20836 s%@YACC@%$YACC%g
20837 s%@LEX@%$LEX%g
20838 s%@LEXLIB@%$LEXLIB%g
20839 s%@LN_S@%$LN_S%g
20840 s%@CXXCPP@%$CXXCPP%g
20841 s%@PKG_CONFIG@%$PKG_CONFIG%g
20842 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
20843 s%@GTK_LIBS@%$GTK_LIBS%g
20844 s%@GTK_CONFIG@%$GTK_CONFIG%g
20845 s%@X_CFLAGS@%$X_CFLAGS%g
20846 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
20847 s%@X_LIBS@%$X_LIBS%g
20848 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
20849 s%@RESCOMP@%$RESCOMP%g
20850 s%@DEREZ@%$DEREZ%g
20851 s%@LIBICONV@%$LIBICONV%g
20852 s%@LEX_STEM@%$LEX_STEM%g
20853 s%@PATH_IFS@%$PATH_IFS%g
20854 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
20855 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
20856 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
20857 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
20858 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
20859 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
20860 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
20861 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
20862 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
20863 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
20864 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
20865 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
20866 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
20867 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
20868 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
20869 s%@WX_ALL@%$WX_ALL%g
20870 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
20871 s%@SHARED_LD@%$SHARED_LD%g
20872 s%@PIC_FLAG@%$PIC_FLAG%g
20873 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
20874 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
20875 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
20876 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
20877 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
20878 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
20879 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
20880 s%@USE_GUI@%$USE_GUI%g
20881 s%@AFMINSTALL@%$AFMINSTALL%g
20882 s%@TOOLKIT@%$TOOLKIT%g
20883 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
20884 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
20885 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
20886 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
20887 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
20888 s%@cross_compiling@%$cross_compiling%g
20889 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
20890 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
20891 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
20892 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
20893 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
20894 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
20895 s%@ALL_HEADERS@%$ALL_HEADERS%g
20896 s%@ALL_SOURCES@%$ALL_SOURCES%g
20897 s%@GUIDIST@%$GUIDIST%g
20898 s%@PORT_FILES@%$PORT_FILES%g
20899 s%@DISTDIR@%$DISTDIR%g
20900 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
20901 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
20902 s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
20903 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
20904 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
20905 s%@EXTRADEFS@%$EXTRADEFS%g
20906 s%@RESFLAGS@%$RESFLAGS%g
20907 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
20908 s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
20909 s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
20910 s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
20911 s%@LIBWXMACRES@%$LIBWXMACRES%g
20912 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
20913 s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
20914 s%@DLLTOOL@%$DLLTOOL%g
20915 s%@AS@%$AS%g
20916 s%@NM@%$NM%g
20917 s%@LD@%$LD%g
20918 s%@MAKEINFO@%$MAKEINFO%g
20919 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
20920 s%@SET_MAKE@%$SET_MAKE%g
20921 s%@subdirs@%$subdirs%g
20922
20923 CEOF
20924 EOF
20925
20926 cat >> $CONFIG_STATUS <<\EOF
20927
20928 # Split the substitutions into bite-sized pieces for seds with
20929 # small command number limits, like on Digital OSF/1 and HP-UX.
20930 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
20931 ac_file=1 # Number of current file.
20932 ac_beg=1 # First line for current file.
20933 ac_end=$ac_max_sed_cmds # Line after last line for current file.
20934 ac_more_lines=:
20935 ac_sed_cmds=""
20936 while $ac_more_lines; do
20937 if test $ac_beg -gt 1; then
20938 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
20939 else
20940 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
20941 fi
20942 if test ! -s conftest.s$ac_file; then
20943 ac_more_lines=false
20944 rm -f conftest.s$ac_file
20945 else
20946 if test -z "$ac_sed_cmds"; then
20947 ac_sed_cmds="sed -f conftest.s$ac_file"
20948 else
20949 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
20950 fi
20951 ac_file=`expr $ac_file + 1`
20952 ac_beg=$ac_end
20953 ac_end=`expr $ac_end + $ac_max_sed_cmds`
20954 fi
20955 done
20956 if test -z "$ac_sed_cmds"; then
20957 ac_sed_cmds=cat
20958 fi
20959 EOF
20960
20961 cat >> $CONFIG_STATUS <<EOF
20962
20963 CONFIG_FILES=\${CONFIG_FILES-"wx-config
20964 src/make.env
20965 src/makeprog.env
20966 src/makelib.env
20967 Makefile
20968 "}
20969 EOF
20970 cat >> $CONFIG_STATUS <<\EOF
20971 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
20972 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20973 case "$ac_file" in
20974 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20975 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20976 *) ac_file_in="${ac_file}.in" ;;
20977 esac
20978
20979 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
20980
20981 # Remove last slash and all that follows it. Not all systems have dirname.
20982 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20983 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20984 # The file is in a subdirectory.
20985 test ! -d "$ac_dir" && mkdir "$ac_dir"
20986 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
20987 # A "../" for each directory in $ac_dir_suffix.
20988 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
20989 else
20990 ac_dir_suffix= ac_dots=
20991 fi
20992
20993 case "$ac_given_srcdir" in
20994 .) srcdir=.
20995 if test -z "$ac_dots"; then top_srcdir=.
20996 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
20997 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
20998 *) # Relative path.
20999 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21000 top_srcdir="$ac_dots$ac_given_srcdir" ;;
21001 esac
21002
21003 case "$ac_given_INSTALL" in
21004 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21005 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21006 esac
21007
21008 echo creating "$ac_file"
21009 rm -f "$ac_file"
21010 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21011 case "$ac_file" in
21012 *Makefile*) ac_comsub="1i\\
21013 # $configure_input" ;;
21014 *) ac_comsub= ;;
21015 esac
21016
21017 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21018 sed -e "$ac_comsub
21019 s%@configure_input@%$configure_input%g
21020 s%@srcdir@%$srcdir%g
21021 s%@top_srcdir@%$top_srcdir%g
21022 s%@INSTALL@%$INSTALL%g
21023 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21024 fi; done
21025 rm -f conftest.s*
21026
21027 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21028 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21029 #
21030 # ac_d sets the value in "#define NAME VALUE" lines.
21031 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21032 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
21033 ac_dC='\3'
21034 ac_dD='%g'
21035 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21036 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21037 ac_uB='\([ ]\)%\1#\2define\3'
21038 ac_uC=' '
21039 ac_uD='\4%g'
21040 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21041 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21042 ac_eB='$%\1#\2define\3'
21043 ac_eC=' '
21044 ac_eD='%g'
21045
21046 if test "${CONFIG_HEADERS+set}" != set; then
21047 EOF
21048 cat >> $CONFIG_STATUS <<EOF
21049 CONFIG_HEADERS="setup.h:setup.h.in"
21050 EOF
21051 cat >> $CONFIG_STATUS <<\EOF
21052 fi
21053 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
21054 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21055 case "$ac_file" in
21056 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21057 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21058 *) ac_file_in="${ac_file}.in" ;;
21059 esac
21060
21061 echo creating $ac_file
21062
21063 rm -f conftest.frag conftest.in conftest.out
21064 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21065 cat $ac_file_inputs > conftest.in
21066
21067 EOF
21068
21069 # Transform confdefs.h into a sed script conftest.vals that substitutes
21070 # the proper values into config.h.in to produce config.h. And first:
21071 # Protect against being on the right side of a sed subst in config.status.
21072 # Protect against being in an unquoted here document in config.status.
21073 rm -f conftest.vals
21074 cat > conftest.hdr <<\EOF
21075 s/[\\&%]/\\&/g
21076 s%[\\$`]%\\&%g
21077 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21078 s%ac_d%ac_u%gp
21079 s%ac_u%ac_e%gp
21080 EOF
21081 sed -n -f conftest.hdr confdefs.h > conftest.vals
21082 rm -f conftest.hdr
21083
21084 # This sed command replaces #undef with comments. This is necessary, for
21085 # example, in the case of _POSIX_SOURCE, which is predefined and required
21086 # on some systems where configure will not decide to define it.
21087 cat >> conftest.vals <<\EOF
21088 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
21089 EOF
21090
21091 # Break up conftest.vals because some shells have a limit on
21092 # the size of here documents, and old seds have small limits too.
21093
21094 rm -f conftest.tail
21095 while :
21096 do
21097 ac_lines=`grep -c . conftest.vals`
21098 # grep -c gives empty output for an empty file on some AIX systems.
21099 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21100 # Write a limited-size here document to conftest.frag.
21101 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21102 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
21103 echo 'CEOF
21104 sed -f conftest.frag conftest.in > conftest.out
21105 rm -f conftest.in
21106 mv conftest.out conftest.in
21107 ' >> $CONFIG_STATUS
21108 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21109 rm -f conftest.vals
21110 mv conftest.tail conftest.vals
21111 done
21112 rm -f conftest.vals
21113
21114 cat >> $CONFIG_STATUS <<\EOF
21115 rm -f conftest.frag conftest.h
21116 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
21117 cat conftest.in >> conftest.h
21118 rm -f conftest.in
21119 if cmp -s $ac_file conftest.h 2>/dev/null; then
21120 echo "$ac_file is unchanged"
21121 rm -f conftest.h
21122 else
21123 # Remove last slash and all that follows it. Not all systems have dirname.
21124 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21125 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21126 # The file is in a subdirectory.
21127 test ! -d "$ac_dir" && mkdir "$ac_dir"
21128 fi
21129 rm -f $ac_file
21130 mv conftest.h $ac_file
21131 fi
21132 fi; done
21133
21134 EOF
21135 cat >> $CONFIG_STATUS <<EOF
21136
21137 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
21138 LN_S="${LN_S}"
21139
21140
21141 EOF
21142 cat >> $CONFIG_STATUS <<\EOF
21143
21144 if test ! -h wx-config; then
21145 chmod +x wx-config
21146 mv wx-config wx${TOOLCHAIN_NAME}-config
21147 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
21148 fi
21149
21150 if test ! -d lib; then
21151 mkdir lib
21152 fi
21153 if test ! -d lib/wx; then
21154 mkdir lib/wx
21155 fi
21156 if test ! -d lib/wx/include; then
21157 mkdir lib/wx/include
21158 fi
21159 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21160 mkdir lib/wx/include/${TOOLCHAIN_NAME}
21161 fi
21162 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21163 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
21164 fi
21165 if test -f setup.h; then
21166 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
21167 fi
21168
21169 exit 0
21170 EOF
21171 chmod +x $CONFIG_STATUS
21172 rm -fr confdefs* $ac_clean_files
21173 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
21174
21175 if test "$no_recursion" != yes; then
21176
21177 # Remove --cache-file and --srcdir arguments so they do not pile up.
21178 ac_sub_configure_args=
21179 ac_prev=
21180 for ac_arg in $ac_configure_args; do
21181 if test -n "$ac_prev"; then
21182 ac_prev=
21183 continue
21184 fi
21185 case "$ac_arg" in
21186 -cache-file | --cache-file | --cache-fil | --cache-fi \
21187 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21188 ac_prev=cache_file ;;
21189 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21190 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
21191 ;;
21192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21193 ac_prev=srcdir ;;
21194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21195 ;;
21196 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21197 esac
21198 done
21199
21200 for ac_config_dir in demos samples utils contrib; do
21201
21202 # Do not complain, so a configure script can configure whichever
21203 # parts of a large source tree are present.
21204 if test ! -d $srcdir/$ac_config_dir; then
21205 continue
21206 fi
21207
21208 echo configuring in $ac_config_dir
21209
21210 case "$srcdir" in
21211 .) ;;
21212 *)
21213 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21214 else
21215 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21216 fi
21217 ;;
21218 esac
21219
21220 ac_popdir=`pwd`
21221 cd $ac_config_dir
21222
21223 # A "../" for each directory in /$ac_config_dir.
21224 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
21225
21226 case "$srcdir" in
21227 .) # No --srcdir option. We are building in place.
21228 ac_sub_srcdir=$srcdir ;;
21229 /*) # Absolute path.
21230 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
21231 *) # Relative path.
21232 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
21233 esac
21234
21235 # Check for guested configure; otherwise get Cygnus style configure.
21236 if test -f $ac_sub_srcdir/configure; then
21237 ac_sub_configure=$ac_sub_srcdir/configure
21238 elif test -f $ac_sub_srcdir/configure.in; then
21239 ac_sub_configure=$ac_configure
21240 else
21241 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
21242 ac_sub_configure=
21243 fi
21244
21245 # The recursion is here.
21246 if test -n "$ac_sub_configure"; then
21247
21248 # Make the cache file name correct relative to the subdirectory.
21249 case "$cache_file" in
21250 /*) ac_sub_cache_file=$cache_file ;;
21251 *) # Relative path.
21252 ac_sub_cache_file="$ac_dots$cache_file" ;;
21253 esac
21254 case "$ac_given_INSTALL" in
21255 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21256 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21257 esac
21258
21259 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
21260 # The eval makes quoting arguments work.
21261 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21262 then :
21263 else
21264 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21265 fi
21266 fi
21267
21268 cd $ac_popdir
21269 done
21270 fi
21271
21272