]> git.saurik.com Git - wxWidgets.git/blob - configure
tmake update.
[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 # Configure paths for GTK+
53 # Owen Taylor 97-11-3
54
55
56
57 # Guess values for system-dependent variables and create Makefiles.
58 # Generated automatically using autoconf version 2.13
59 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
60 #
61 # This configure script is free software; the Free Software Foundation
62 # gives unlimited permission to copy, distribute and modify it.
63
64 # Defaults:
65 ac_help=
66 ac_default_prefix=/usr/local
67 # Any additions from configure.in:
68 ac_help="$ac_help
69 --enable-gui use GUI classes"
70 ac_help="$ac_help
71 --enable-universal use wxWindows GUI controls instead of native ones"
72 ac_help="$ac_help
73 --with-gtk use GTK+"
74 ac_help="$ac_help
75 --with-motif use Motif/Lesstif"
76 ac_help="$ac_help
77 --with-mac use Mac OS X"
78 ac_help="$ac_help
79 --with-wine use WINE"
80 ac_help="$ac_help
81 --with-msw use MS-Windows"
82 ac_help="$ac_help
83 --with-pm use OS/2 Presentation Manager"
84 ac_help="$ac_help
85 --with-mgl use SciTech MGL"
86 ac_help="$ac_help
87 --with-microwin use MicroWindows"
88 ac_help="$ac_help
89 --with-x11 use X11"
90 ac_help="$ac_help
91 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
92 ac_help="$ac_help
93 --with-libpng use libpng (PNG image format)"
94 ac_help="$ac_help
95 --with-libjpeg use libjpeg (JPEG file format)"
96 ac_help="$ac_help
97 --with-libtiff use libtiff (TIFF file format)"
98 ac_help="$ac_help
99 --with-freetype use freetype (font rasterizer)"
100 ac_help="$ac_help
101 --with-opengl use OpenGL (or Mesa)"
102 ac_help="$ac_help
103 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
104 ac_help="$ac_help
105 --with-regex enable support for wxRegEx class"
106 ac_help="$ac_help
107 --with-zlib use zlib for LZW compression"
108 ac_help="$ac_help
109 --with-odbc use the IODBC and wxODBC classes"
110 ac_help="$ac_help
111 --enable-shared create shared library code"
112 ac_help="$ac_help
113 --enable-soname set the DT_SONAME field in ELF shared libraries"
114 ac_help="$ac_help
115 --enable-optimise create optimised code"
116 ac_help="$ac_help
117 --enable-debug same as debug_flag and debug_info"
118 ac_help="$ac_help
119 --enable-precomp enable use of precompiled headers (Mac OS X)"
120 ac_help="$ac_help
121 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
122 ac_help="$ac_help
123 --enable-debug_info create code with debugging information"
124 ac_help="$ac_help
125 --enable-debug_gdb create code with extra GDB debugging information"
126 ac_help="$ac_help
127 --enable-debug_cntxt use wxDebugContext"
128 ac_help="$ac_help
129 --enable-mem_tracing create code with memory tracing"
130 ac_help="$ac_help
131 --enable-profile create code with profiling information"
132 ac_help="$ac_help
133 --enable-no_rtti create code without RTTI information"
134 ac_help="$ac_help
135 --enable-no_exceptions create code without C++ exceptions handling"
136 ac_help="$ac_help
137 --enable-permissive compile code disregarding strict ANSI"
138 ac_help="$ac_help
139 --enable-no_deps create code without dependency information"
140 ac_help="$ac_help
141 --enable-compat20 enable wxWindows 2.0 compatibility"
142 ac_help="$ac_help
143 --enable-compat22 enable wxWindows 2.2 compatibility"
144 ac_help="$ac_help
145 --enable-intl use internationalization system"
146 ac_help="$ac_help
147 --enable-config use wxConfig (and derived) classes"
148 ac_help="$ac_help
149 --enable-protocols use wxProtocol and derived classes"
150 ac_help="$ac_help
151 --enable-ftp use wxFTP (requires wxProtocol"
152 ac_help="$ac_help
153 --enable-http use wxHTTP (requires wxProtocol"
154 ac_help="$ac_help
155 --enable-fileproto use wxFileProto class (requires wxProtocol"
156 ac_help="$ac_help
157 --enable-sockets use socket/network classes"
158 ac_help="$ac_help
159 --enable-ipc use interprocess communication (wxSocket etc.)"
160 ac_help="$ac_help
161 --enable-cmdline use wxCmdLineParser class"
162 ac_help="$ac_help
163 --enable-datetime use wxDateTime class"
164 ac_help="$ac_help
165 --enable-timedate use obsolete wxDate/wxTime classes"
166 ac_help="$ac_help
167 --enable-stopwatch use wxStopWatch class"
168 ac_help="$ac_help
169 --enable-dialupman use dialup network classes"
170 ac_help="$ac_help
171 --enable-apple_ieee use the Apple IEEE codec"
172 ac_help="$ac_help
173 --enable-timer use wxTimer class"
174 ac_help="$ac_help
175 --enable-wave use wxWave class"
176 ac_help="$ac_help
177 --enable-fraction use wxFraction class"
178 ac_help="$ac_help
179 --enable-dynlib use wxLibrary class for DLL loading"
180 ac_help="$ac_help
181 --enable-dynamicloader use (new) wxDynamicLibrary class"
182 ac_help="$ac_help
183 --enable-longlong use wxLongLong class"
184 ac_help="$ac_help
185 --enable-geometry use geometry class"
186 ac_help="$ac_help
187 --enable-log use logging system"
188 ac_help="$ac_help
189 --enable-streams use wxStream etc classes"
190 ac_help="$ac_help
191 --enable-file use wxFile classes"
192 ac_help="$ac_help
193 --enable-ffile use wxFFile classes"
194 ac_help="$ac_help
195 --enable-textbuf use wxTextBuffer class"
196 ac_help="$ac_help
197 --enable-textfile use wxTextFile class"
198 ac_help="$ac_help
199 --enable-fontmap use font encodings conversion classes"
200 ac_help="$ac_help
201 --enable-unicode compile wxString with Unicode support"
202 ac_help="$ac_help
203 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
204 ac_help="$ac_help
205 --enable-wxprintfv use wxWindows implementation of vprintf()"
206 ac_help="$ac_help
207 --enable-std_iostreams use standard C++ stream classes"
208 ac_help="$ac_help
209 --enable-filesystem use virtual file systems classes"
210 ac_help="$ac_help
211 --enable-fs_inet use virtual HTTP/FTP filesystems"
212 ac_help="$ac_help
213 --enable-fs_zip use virtual ZIP filesystems"
214 ac_help="$ac_help
215 --enable-zipstream use wxZipInputStream"
216 ac_help="$ac_help
217 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
218 ac_help="$ac_help
219 --enable-snglinst use wxSingleInstanceChecker class"
220 ac_help="$ac_help
221 --enable-mimetype use wxMimeTypesManager"
222 ac_help="$ac_help
223 --enable-sysoptions use wxSystemOptions"
224 ac_help="$ac_help
225 --enable-url use wxURL class"
226 ac_help="$ac_help
227 --enable-protocol use wxProtocol class"
228 ac_help="$ac_help
229 --enable-protocol-http HTTP support in wxProtocol"
230 ac_help="$ac_help
231 --enable-protocol-ftp FTP support in wxProtocol"
232 ac_help="$ac_help
233 --enable-protocol-file FILE support in wxProtocol"
234 ac_help="$ac_help
235 --enable-threads use threads"
236 ac_help="$ac_help
237 --enable-docview use document view architecture"
238 ac_help="$ac_help
239 --enable-help use help subsystem"
240 ac_help="$ac_help
241 --enable-mshtmlhelp use MS HTML Help (win32)"
242 ac_help="$ac_help
243 --enable-html use wxHTML sub-library"
244 ac_help="$ac_help
245 --enable-htmlhelp use wxHTML-based help"
246 ac_help="$ac_help
247 --enable-constraints use layout-constraints system"
248 ac_help="$ac_help
249 --enable-printarch use printing architecture"
250 ac_help="$ac_help
251 --enable-mdi use multiple document interface architecture"
252 ac_help="$ac_help
253 --enable-loggui use standard GUI logger"
254 ac_help="$ac_help
255 --enable-logwin use wxLogWindow"
256 ac_help="$ac_help
257 --enable-logdialog use wxLogDialog"
258 ac_help="$ac_help
259 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
260 ac_help="$ac_help
261 --enable-prologio use Prolog IO library"
262 ac_help="$ac_help
263 --enable-resources use wxWindows resources"
264 ac_help="$ac_help
265 --enable-xresources use X resources for save (default for gtk+)"
266 ac_help="$ac_help
267 --enable-clipboard use wxClipboard classes"
268 ac_help="$ac_help
269 --enable-dnd use Drag'n'Drop classes"
270 ac_help="$ac_help
271 --enable-metafile use win32 metafiles"
272 ac_help="$ac_help
273 --enable-treelayout use wxTreeLayout classes"
274 ac_help="$ac_help
275 --enable-controls use all usual controls"
276 ac_help="$ac_help
277 --enable-accel use accelerators"
278 ac_help="$ac_help
279 --enable-button use wxButton class"
280 ac_help="$ac_help
281 --enable-bmpbutton use wxBitmapButton class"
282 ac_help="$ac_help
283 --enable-calendar use wxCalendarCtrl class"
284 ac_help="$ac_help
285 --enable-caret use wxCaret class"
286 ac_help="$ac_help
287 --enable-checkbox use wxCheckBox class"
288 ac_help="$ac_help
289 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
290 ac_help="$ac_help
291 --enable-choice use wxChoice class"
292 ac_help="$ac_help
293 --enable-combobox use wxComboBox classes"
294 ac_help="$ac_help
295 --enable-gauge use wxGauge class"
296 ac_help="$ac_help
297 --enable-grid use wxGrid class"
298 ac_help="$ac_help
299 --enable-newgrid use new wxGrid class"
300 ac_help="$ac_help
301 --enable-imaglist use wxImageList class"
302 ac_help="$ac_help
303 --enable-listbox use wxListBox class"
304 ac_help="$ac_help
305 --enable-listctrl use wxListCtrl class"
306 ac_help="$ac_help
307 --enable-notebook use wxNotebook class"
308 ac_help="$ac_help
309 --enable-propsheet use wxPropertySheet class"
310 ac_help="$ac_help
311 --enable-radiobox use wxRadioBox class"
312 ac_help="$ac_help
313 --enable-radiobtn use wxRadioButton class"
314 ac_help="$ac_help
315 --enable-sash use wxSashWindow class"
316 ac_help="$ac_help
317 --enable-scrollbar use wxScrollBar class and scrollable windows"
318 ac_help="$ac_help
319 --enable-slider use wxSlider class"
320 ac_help="$ac_help
321 --enable-spinbtn use wxSpinButton class"
322 ac_help="$ac_help
323 --enable-spinctrl use wxSpinCtrl class"
324 ac_help="$ac_help
325 --enable-splitter use wxSplitterWindow class"
326 ac_help="$ac_help
327 --enable-statbmp use wxStaticBitmap class"
328 ac_help="$ac_help
329 --enable-statbox use wxStaticBox class"
330 ac_help="$ac_help
331 --enable-statline use wxStaticLine class"
332 ac_help="$ac_help
333 --enable-stattext use wxStaticText class"
334 ac_help="$ac_help
335 --enable-statusbar use wxStatusBar class"
336 ac_help="$ac_help
337 --enable-tabdialog use wxTabControl class"
338 ac_help="$ac_help
339 --enable-textctrl use wxTextCtrl class"
340 ac_help="$ac_help
341 --enable-togglebtn use wxToggleButton class"
342 ac_help="$ac_help
343 --enable-toolbar use wxToolBar class"
344 ac_help="$ac_help
345 --enable-tbarnative use native wxToolBar class"
346 ac_help="$ac_help
347 --enable-tbarsmpl use wxToolBarSimple class"
348 ac_help="$ac_help
349 --enable-treectrl use wxTreeCtrl class"
350 ac_help="$ac_help
351 --enable-tipwindow use wxTipWindow class"
352 ac_help="$ac_help
353 --enable-popupwin use wxPopUpWindow class"
354 ac_help="$ac_help
355 --enable-commondlg use all common dialogs"
356 ac_help="$ac_help
357 --enable-choicedlg use wxChoiceDialog"
358 ac_help="$ac_help
359 --enable-coldlg use wxColourDialog"
360 ac_help="$ac_help
361 --enable-filedlg use wxFileDialog"
362 ac_help="$ac_help
363 --enable-finddlg use wxFindReplaceDialog"
364 ac_help="$ac_help
365 --enable-fontdlg use wxFontDialog"
366 ac_help="$ac_help
367 --enable-dirdlg use wxDirDialog"
368 ac_help="$ac_help
369 --enable-msgdlg use wxMessageDialog"
370 ac_help="$ac_help
371 --enable-numberdlg use wxNumberEntryDialog"
372 ac_help="$ac_help
373 --enable-splash use wxSplashScreen"
374 ac_help="$ac_help
375 --enable-textdlg use wxTextDialog"
376 ac_help="$ac_help
377 --enable-tipdlg use startup tips"
378 ac_help="$ac_help
379 --enable-progressdlg use wxProgressDialog"
380 ac_help="$ac_help
381 --enable-wizarddlg use wxWizard"
382 ac_help="$ac_help
383 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
384 ac_help="$ac_help
385 --enable-miniframe use wxMiniFrame class"
386 ac_help="$ac_help
387 --enable-tooltips use wxToolTip class"
388 ac_help="$ac_help
389 --enable-splines use spline drawing code"
390 ac_help="$ac_help
391 --enable-validators use wxValidator and derived classes"
392 ac_help="$ac_help
393 --enable-busyinfo use wxBusyInfo"
394 ac_help="$ac_help
395 --enable-joystick use wxJoystick (Linux only)"
396 ac_help="$ac_help
397 --enable-metafiles use wxMetaFile (Windows only)"
398 ac_help="$ac_help
399 --enable-dragimage use wxDragImage"
400 ac_help="$ac_help
401 --enable-palette use wxPalette class"
402 ac_help="$ac_help
403 --enable-image use wxImage class"
404 ac_help="$ac_help
405 --enable-gif use gif images (GIF file format)"
406 ac_help="$ac_help
407 --enable-pcx use pcx images (PCX file format)"
408 ac_help="$ac_help
409 --enable-iff use iff images (IFF file format)"
410 ac_help="$ac_help
411 --enable-pnm use pnm images (PNM file format)"
412 ac_help="$ac_help
413 --enable-xpm use xpm images (XPM file format)"
414 ac_help="$ac_help
415 --enable-icocur use Windows ICO and CUR formats"
416 ac_help="$ac_help
417 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
418 ac_help="$ac_help
419 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
420 ac_help="$ac_help
421 --disable-gtktest Do not try to compile and run a test GTK program"
422 ac_help="$ac_help
423 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
424 ac_help="$ac_help
425 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
426 ac_help="$ac_help
427 --disable-gtktest Do not try to compile and run a test GTK program"
428 ac_help="$ac_help
429 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
430 ac_help="$ac_help
431 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
432 ac_help="$ac_help
433 --disable-gtktest Do not try to compile and run a test GTK program"
434 ac_help="$ac_help
435 --with-x use the X Window System"
436 ac_help="$ac_help
437 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
438
439 # Initialize some variables set by options.
440 # The variables have the same names as the options, with
441 # dashes changed to underlines.
442 build=NONE
443 cache_file=./config.cache
444 exec_prefix=NONE
445 host=NONE
446 no_create=
447 nonopt=NONE
448 no_recursion=
449 prefix=NONE
450 program_prefix=NONE
451 program_suffix=NONE
452 program_transform_name=s,x,x,
453 silent=
454 site=
455 srcdir=
456 target=NONE
457 verbose=
458 x_includes=NONE
459 x_libraries=NONE
460 bindir='${exec_prefix}/bin'
461 sbindir='${exec_prefix}/sbin'
462 libexecdir='${exec_prefix}/libexec'
463 datadir='${prefix}/share'
464 sysconfdir='${prefix}/etc'
465 sharedstatedir='${prefix}/com'
466 localstatedir='${prefix}/var'
467 libdir='${exec_prefix}/lib'
468 includedir='${prefix}/include'
469 oldincludedir='/usr/include'
470 infodir='${prefix}/info'
471 mandir='${prefix}/man'
472
473 # Initialize some other variables.
474 subdirs=
475 MFLAGS= MAKEFLAGS=
476 SHELL=${CONFIG_SHELL-/bin/sh}
477 # Maximum number of lines to put in a shell here document.
478 ac_max_here_lines=12
479
480 ac_prev=
481 for ac_option
482 do
483
484 # If the previous option needs an argument, assign it.
485 if test -n "$ac_prev"; then
486 eval "$ac_prev=\$ac_option"
487 ac_prev=
488 continue
489 fi
490
491 case "$ac_option" in
492 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
493 *) ac_optarg= ;;
494 esac
495
496 # Accept the important Cygnus configure options, so we can diagnose typos.
497
498 case "$ac_option" in
499
500 -bindir | --bindir | --bindi | --bind | --bin | --bi)
501 ac_prev=bindir ;;
502 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
503 bindir="$ac_optarg" ;;
504
505 -build | --build | --buil | --bui | --bu)
506 ac_prev=build ;;
507 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
508 build="$ac_optarg" ;;
509
510 -cache-file | --cache-file | --cache-fil | --cache-fi \
511 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
512 ac_prev=cache_file ;;
513 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
514 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
515 cache_file="$ac_optarg" ;;
516
517 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
518 ac_prev=datadir ;;
519 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
520 | --da=*)
521 datadir="$ac_optarg" ;;
522
523 -disable-* | --disable-*)
524 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
525 # Reject names that are not valid shell variable names.
526 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
527 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
528 fi
529 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
530 eval "enable_${ac_feature}=no" ;;
531
532 -enable-* | --enable-*)
533 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
534 # Reject names that are not valid shell variable names.
535 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
536 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
537 fi
538 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
539 case "$ac_option" in
540 *=*) ;;
541 *) ac_optarg=yes ;;
542 esac
543 eval "enable_${ac_feature}='$ac_optarg'" ;;
544
545 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
546 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
547 | --exec | --exe | --ex)
548 ac_prev=exec_prefix ;;
549 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
550 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
551 | --exec=* | --exe=* | --ex=*)
552 exec_prefix="$ac_optarg" ;;
553
554 -gas | --gas | --ga | --g)
555 # Obsolete; use --with-gas.
556 with_gas=yes ;;
557
558 -help | --help | --hel | --he)
559 # Omit some internal or obsolete options to make the list less imposing.
560 # This message is too long to be a string in the A/UX 3.1 sh.
561 cat << EOF
562 Usage: configure [options] [host]
563 Options: [defaults in brackets after descriptions]
564 Configuration:
565 --cache-file=FILE cache test results in FILE
566 --help print this message
567 --no-create do not create output files
568 --quiet, --silent do not print \`checking...' messages
569 --version print the version of autoconf that created configure
570 Directory and file names:
571 --prefix=PREFIX install architecture-independent files in PREFIX
572 [$ac_default_prefix]
573 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
574 [same as prefix]
575 --bindir=DIR user executables in DIR [EPREFIX/bin]
576 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
577 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
578 --datadir=DIR read-only architecture-independent data in DIR
579 [PREFIX/share]
580 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
581 --sharedstatedir=DIR modifiable architecture-independent data in DIR
582 [PREFIX/com]
583 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
584 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
585 --includedir=DIR C header files in DIR [PREFIX/include]
586 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
587 --infodir=DIR info documentation in DIR [PREFIX/info]
588 --mandir=DIR man documentation in DIR [PREFIX/man]
589 --srcdir=DIR find the sources in DIR [configure dir or ..]
590 --program-prefix=PREFIX prepend PREFIX to installed program names
591 --program-suffix=SUFFIX append SUFFIX to installed program names
592 --program-transform-name=PROGRAM
593 run sed PROGRAM on installed program names
594 EOF
595 cat << EOF
596 Host type:
597 --build=BUILD configure for building on BUILD [BUILD=HOST]
598 --host=HOST configure for HOST [guessed]
599 --target=TARGET configure for TARGET [TARGET=HOST]
600 Features and packages:
601 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
602 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
603 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
604 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
605 --x-includes=DIR X include files are in DIR
606 --x-libraries=DIR X library files are in DIR
607 EOF
608 if test -n "$ac_help"; then
609 echo "--enable and --with options recognized:$ac_help"
610 fi
611 exit 0 ;;
612
613 -host | --host | --hos | --ho)
614 ac_prev=host ;;
615 -host=* | --host=* | --hos=* | --ho=*)
616 host="$ac_optarg" ;;
617
618 -includedir | --includedir | --includedi | --included | --include \
619 | --includ | --inclu | --incl | --inc)
620 ac_prev=includedir ;;
621 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
622 | --includ=* | --inclu=* | --incl=* | --inc=*)
623 includedir="$ac_optarg" ;;
624
625 -infodir | --infodir | --infodi | --infod | --info | --inf)
626 ac_prev=infodir ;;
627 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
628 infodir="$ac_optarg" ;;
629
630 -libdir | --libdir | --libdi | --libd)
631 ac_prev=libdir ;;
632 -libdir=* | --libdir=* | --libdi=* | --libd=*)
633 libdir="$ac_optarg" ;;
634
635 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
636 | --libexe | --libex | --libe)
637 ac_prev=libexecdir ;;
638 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
639 | --libexe=* | --libex=* | --libe=*)
640 libexecdir="$ac_optarg" ;;
641
642 -localstatedir | --localstatedir | --localstatedi | --localstated \
643 | --localstate | --localstat | --localsta | --localst \
644 | --locals | --local | --loca | --loc | --lo)
645 ac_prev=localstatedir ;;
646 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
647 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
648 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
649 localstatedir="$ac_optarg" ;;
650
651 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
652 ac_prev=mandir ;;
653 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
654 mandir="$ac_optarg" ;;
655
656 -nfp | --nfp | --nf)
657 # Obsolete; use --without-fp.
658 with_fp=no ;;
659
660 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
661 | --no-cr | --no-c)
662 no_create=yes ;;
663
664 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
665 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
666 no_recursion=yes ;;
667
668 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
669 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
670 | --oldin | --oldi | --old | --ol | --o)
671 ac_prev=oldincludedir ;;
672 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
673 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
674 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
675 oldincludedir="$ac_optarg" ;;
676
677 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
678 ac_prev=prefix ;;
679 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
680 prefix="$ac_optarg" ;;
681
682 -program-prefix | --program-prefix | --program-prefi | --program-pref \
683 | --program-pre | --program-pr | --program-p)
684 ac_prev=program_prefix ;;
685 -program-prefix=* | --program-prefix=* | --program-prefi=* \
686 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
687 program_prefix="$ac_optarg" ;;
688
689 -program-suffix | --program-suffix | --program-suffi | --program-suff \
690 | --program-suf | --program-su | --program-s)
691 ac_prev=program_suffix ;;
692 -program-suffix=* | --program-suffix=* | --program-suffi=* \
693 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
694 program_suffix="$ac_optarg" ;;
695
696 -program-transform-name | --program-transform-name \
697 | --program-transform-nam | --program-transform-na \
698 | --program-transform-n | --program-transform- \
699 | --program-transform | --program-transfor \
700 | --program-transfo | --program-transf \
701 | --program-trans | --program-tran \
702 | --progr-tra | --program-tr | --program-t)
703 ac_prev=program_transform_name ;;
704 -program-transform-name=* | --program-transform-name=* \
705 | --program-transform-nam=* | --program-transform-na=* \
706 | --program-transform-n=* | --program-transform-=* \
707 | --program-transform=* | --program-transfor=* \
708 | --program-transfo=* | --program-transf=* \
709 | --program-trans=* | --program-tran=* \
710 | --progr-tra=* | --program-tr=* | --program-t=*)
711 program_transform_name="$ac_optarg" ;;
712
713 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
714 | -silent | --silent | --silen | --sile | --sil)
715 silent=yes ;;
716
717 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
718 ac_prev=sbindir ;;
719 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
720 | --sbi=* | --sb=*)
721 sbindir="$ac_optarg" ;;
722
723 -sharedstatedir | --sharedstatedir | --sharedstatedi \
724 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
725 | --sharedst | --shareds | --shared | --share | --shar \
726 | --sha | --sh)
727 ac_prev=sharedstatedir ;;
728 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
729 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
730 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
731 | --sha=* | --sh=*)
732 sharedstatedir="$ac_optarg" ;;
733
734 -site | --site | --sit)
735 ac_prev=site ;;
736 -site=* | --site=* | --sit=*)
737 site="$ac_optarg" ;;
738
739 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
740 ac_prev=srcdir ;;
741 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
742 srcdir="$ac_optarg" ;;
743
744 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
745 | --syscon | --sysco | --sysc | --sys | --sy)
746 ac_prev=sysconfdir ;;
747 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
748 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
749 sysconfdir="$ac_optarg" ;;
750
751 -target | --target | --targe | --targ | --tar | --ta | --t)
752 ac_prev=target ;;
753 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
754 target="$ac_optarg" ;;
755
756 -v | -verbose | --verbose | --verbos | --verbo | --verb)
757 verbose=yes ;;
758
759 -version | --version | --versio | --versi | --vers)
760 echo "configure generated by autoconf version 2.13"
761 exit 0 ;;
762
763 -with-* | --with-*)
764 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
765 # Reject names that are not valid shell variable names.
766 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
767 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
768 fi
769 ac_package=`echo $ac_package| sed 's/-/_/g'`
770 case "$ac_option" in
771 *=*) ;;
772 *) ac_optarg=yes ;;
773 esac
774 eval "with_${ac_package}='$ac_optarg'" ;;
775
776 -without-* | --without-*)
777 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
778 # Reject names that are not valid shell variable names.
779 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
780 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
781 fi
782 ac_package=`echo $ac_package| sed 's/-/_/g'`
783 eval "with_${ac_package}=no" ;;
784
785 --x)
786 # Obsolete; use --with-x.
787 with_x=yes ;;
788
789 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
790 | --x-incl | --x-inc | --x-in | --x-i)
791 ac_prev=x_includes ;;
792 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
793 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
794 x_includes="$ac_optarg" ;;
795
796 -x-libraries | --x-libraries | --x-librarie | --x-librari \
797 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
798 ac_prev=x_libraries ;;
799 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
800 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
801 x_libraries="$ac_optarg" ;;
802
803 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
804 ;;
805
806 *)
807 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
808 echo "configure: warning: $ac_option: invalid host type" 1>&2
809 fi
810 if test "x$nonopt" != xNONE; then
811 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
812 fi
813 nonopt="$ac_option"
814 ;;
815
816 esac
817 done
818
819 if test -n "$ac_prev"; then
820 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
821 fi
822
823 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
824
825 # File descriptor usage:
826 # 0 standard input
827 # 1 file creation
828 # 2 errors and warnings
829 # 3 some systems may open it to /dev/tty
830 # 4 used on the Kubota Titan
831 # 6 checking for... messages and results
832 # 5 compiler messages saved in config.log
833 if test "$silent" = yes; then
834 exec 6>/dev/null
835 else
836 exec 6>&1
837 fi
838 exec 5>./config.log
839
840 echo "\
841 This file contains any messages produced by compilers while
842 running configure, to aid debugging if configure makes a mistake.
843 " 1>&5
844
845 # Strip out --no-create and --no-recursion so they do not pile up.
846 # Also quote any args containing shell metacharacters.
847 ac_configure_args=
848 for ac_arg
849 do
850 case "$ac_arg" in
851 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
852 | --no-cr | --no-c) ;;
853 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
854 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
855 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
856 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
857 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
858 esac
859 done
860
861 # NLS nuisances.
862 # Only set these to C if already set. These must not be set unconditionally
863 # because not all systems understand e.g. LANG=C (notably SCO).
864 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
865 # Non-C LC_CTYPE values break the ctype check.
866 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
867 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
868 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
869 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
870
871 # confdefs.h avoids OS command line length limits that DEFS can exceed.
872 rm -rf conftest* confdefs.h
873 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
874 echo > confdefs.h
875
876 # A filename unique to this package, relative to the directory that
877 # configure is in, which we can look for to find out if srcdir is correct.
878 ac_unique_file=wx-config.in
879
880 # Find the source files, if location was not specified.
881 if test -z "$srcdir"; then
882 ac_srcdir_defaulted=yes
883 # Try the directory containing this script, then its parent.
884 ac_prog=$0
885 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
886 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
887 srcdir=$ac_confdir
888 if test ! -r $srcdir/$ac_unique_file; then
889 srcdir=..
890 fi
891 else
892 ac_srcdir_defaulted=no
893 fi
894 if test ! -r $srcdir/$ac_unique_file; then
895 if test "$ac_srcdir_defaulted" = yes; then
896 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
897 else
898 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
899 fi
900 fi
901 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
902
903 # Prefer explicitly selected file to automatically selected ones.
904 if test -z "$CONFIG_SITE"; then
905 if test "x$prefix" != xNONE; then
906 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
907 else
908 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
909 fi
910 fi
911 for ac_site_file in $CONFIG_SITE; do
912 if test -r "$ac_site_file"; then
913 echo "loading site script $ac_site_file"
914 . "$ac_site_file"
915 fi
916 done
917
918 if test -r "$cache_file"; then
919 echo "loading cache $cache_file"
920 . $cache_file
921 else
922 echo "creating cache $cache_file"
923 > $cache_file
924 fi
925
926 ac_ext=c
927 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
928 ac_cpp='$CPP $CPPFLAGS'
929 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
930 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
931 cross_compiling=$ac_cv_prog_cc_cross
932
933 ac_exeext=
934 ac_objext=o
935 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
936 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
937 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
938 ac_n= ac_c='
939 ' ac_t=' '
940 else
941 ac_n=-n ac_c= ac_t=
942 fi
943 else
944 ac_n= ac_c='\c' ac_t=
945 fi
946
947
948
949 ac_aux_dir=
950 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
951 if test -f $ac_dir/install-sh; then
952 ac_aux_dir=$ac_dir
953 ac_install_sh="$ac_aux_dir/install-sh -c"
954 break
955 elif test -f $ac_dir/install.sh; then
956 ac_aux_dir=$ac_dir
957 ac_install_sh="$ac_aux_dir/install.sh -c"
958 break
959 fi
960 done
961 if test -z "$ac_aux_dir"; then
962 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
963 fi
964 ac_config_guess=$ac_aux_dir/config.guess
965 ac_config_sub=$ac_aux_dir/config.sub
966 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
967
968
969 # Do some error checking and defaulting for the host and target type.
970 # The inputs are:
971 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
972 #
973 # The rules are:
974 # 1. You are not allowed to specify --host, --target, and nonopt at the
975 # same time.
976 # 2. Host defaults to nonopt.
977 # 3. If nonopt is not specified, then host defaults to the current host,
978 # as determined by config.guess.
979 # 4. Target and build default to nonopt.
980 # 5. If nonopt is not specified, then target and build default to host.
981
982 # The aliases save the names the user supplied, while $host etc.
983 # will get canonicalized.
984 case $host---$target---$nonopt in
985 NONE---*---* | *---NONE---* | *---*---NONE) ;;
986 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
987 esac
988
989
990 # Make sure we can run config.sub.
991 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
992 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
993 fi
994
995 echo $ac_n "checking host system type""... $ac_c" 1>&6
996 echo "configure:997: checking host system type" >&5
997
998 host_alias=$host
999 case "$host_alias" in
1000 NONE)
1001 case $nonopt in
1002 NONE)
1003 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1004 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1005 fi ;;
1006 *) host_alias=$nonopt ;;
1007 esac ;;
1008 esac
1009
1010 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1011 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1012 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1013 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1014 echo "$ac_t""$host" 1>&6
1015
1016 echo $ac_n "checking target system type""... $ac_c" 1>&6
1017 echo "configure:1018: checking target system type" >&5
1018
1019 target_alias=$target
1020 case "$target_alias" in
1021 NONE)
1022 case $nonopt in
1023 NONE) target_alias=$host_alias ;;
1024 *) target_alias=$nonopt ;;
1025 esac ;;
1026 esac
1027
1028 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1029 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1030 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1031 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1032 echo "$ac_t""$target" 1>&6
1033
1034 echo $ac_n "checking build system type""... $ac_c" 1>&6
1035 echo "configure:1036: checking build system type" >&5
1036
1037 build_alias=$build
1038 case "$build_alias" in
1039 NONE)
1040 case $nonopt in
1041 NONE) build_alias=$host_alias ;;
1042 *) build_alias=$nonopt ;;
1043 esac ;;
1044 esac
1045
1046 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1047 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1048 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1049 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1050 echo "$ac_t""$build" 1>&6
1051
1052 test "$host_alias" != "$target_alias" &&
1053 test "$program_prefix$program_suffix$program_transform_name" = \
1054 NONENONEs,x,x, &&
1055 program_prefix=${target_alias}-
1056
1057
1058
1059 WX_MAJOR_VERSION_NUMBER=2
1060 WX_MINOR_VERSION_NUMBER=3
1061 WX_RELEASE_NUMBER=3
1062
1063 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1064 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1065
1066 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1067
1068 WX_CURRENT=2
1069 WX_REVISION=0
1070 WX_AGE=0
1071
1072
1073
1074 USE_UNIX=1
1075 USE_WIN32=0
1076 USE_DOS=0
1077 USE_BEOS=0
1078 USE_MAC=0
1079
1080 USE_LINUX=
1081 USE_SGI=
1082 USE_HPUX=
1083 USE_SYSV=
1084 USE_SVR4=
1085 USE_AIX=
1086 USE_SUN=
1087 USE_SOLARIS=
1088 USE_SUNOS=
1089 USE_ALPHA=
1090 USE_OSF=
1091 USE_BSD=
1092 USE_DARWIN=
1093 USE_FREEBSD=
1094 USE_OPENBSD=
1095 USE_NETBSD=
1096 USE_VMS=
1097 USE_ULTRIX=
1098 USE_DATA_GENERAL=
1099
1100 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1101
1102 CPP_MT_FLAG=-D_REENTRANT
1103
1104 ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
1105
1106 DEFAULT_wxUSE_GTK=0
1107 DEFAULT_wxUSE_MAC=0
1108 DEFAULT_wxUSE_MGL=0
1109 DEFAULT_wxUSE_MICROWIN=0
1110 DEFAULT_wxUSE_MOTIF=0
1111 DEFAULT_wxUSE_MSW=0
1112 DEFAULT_wxUSE_PM=0
1113 DEFAULT_wxUSE_WINE=0
1114 DEFAULT_wxUSE_X11=0
1115
1116 DEFAULT_DEFAULT_wxUSE_GTK=0
1117 DEFAULT_DEFAULT_wxUSE_MAC=0
1118 DEFAULT_DEFAULT_wxUSE_MGL=0
1119 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1120 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1121 DEFAULT_DEFAULT_wxUSE_MSW=0
1122 DEFAULT_DEFAULT_wxUSE_PM=0
1123 DEFAULT_DEFAULT_wxUSE_WINE=0
1124 DEFAULT_DEFAULT_wxUSE_X11=0
1125
1126 PROGRAM_EXT=
1127 SO_SUFFIX=so
1128
1129 case "${host}" in
1130 *-hp-hpux* )
1131 USE_HPUX=1
1132 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1133 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1134 SO_SUFFIX=sl
1135 cat >> confdefs.h <<\EOF
1136 #define __HPUX__ 1
1137 EOF
1138
1139 ;;
1140 *-*-linux* )
1141 USE_LINUX=1
1142 cat >> confdefs.h <<\EOF
1143 #define __LINUX__ 1
1144 EOF
1145
1146 TMP=`uname -m`
1147 if test "x$TMP" = "xalpha"; then
1148 USE_ALPHA=1
1149 cat >> confdefs.h <<\EOF
1150 #define __ALPHA__ 1
1151 EOF
1152
1153 fi
1154 DEFAULT_DEFAULT_wxUSE_GTK=1
1155 ;;
1156 *-*-irix5* | *-*-irix6* )
1157 USE_SGI=1
1158 USE_SVR4=1
1159 cat >> confdefs.h <<\EOF
1160 #define __SGI__ 1
1161 EOF
1162
1163 cat >> confdefs.h <<\EOF
1164 #define __SVR4__ 1
1165 EOF
1166
1167 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1168 ;;
1169 *-*-solaris2* )
1170 USE_SUN=1
1171 USE_SOLARIS=1
1172 USE_SVR4=1
1173 cat >> confdefs.h <<\EOF
1174 #define __SUN__ 1
1175 EOF
1176
1177 cat >> confdefs.h <<\EOF
1178 #define __SOLARIS__ 1
1179 EOF
1180
1181 cat >> confdefs.h <<\EOF
1182 #define __SVR4__ 1
1183 EOF
1184
1185 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1186 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1187 ;;
1188 *-*-sunos4* )
1189 USE_SUN=1
1190 USE_SUNOS=1
1191 USE_BSD=1
1192 cat >> confdefs.h <<\EOF
1193 #define __SUN__ 1
1194 EOF
1195
1196 cat >> confdefs.h <<\EOF
1197 #define __SUNOS__ 1
1198 EOF
1199
1200 cat >> confdefs.h <<\EOF
1201 #define __BSD__ 1
1202 EOF
1203
1204 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1205 ;;
1206 *-*-freebsd*)
1207 USE_BSD=1
1208 USE_FREEBSD=1
1209 CPP_MT_FLAG=-D_THREAD_SAFE
1210 cat >> confdefs.h <<\EOF
1211 #define __FREEBSD__ 1
1212 EOF
1213
1214 cat >> confdefs.h <<\EOF
1215 #define __BSD__ 1
1216 EOF
1217
1218 DEFAULT_DEFAULT_wxUSE_GTK=1
1219 ;;
1220 *-*-openbsd*)
1221 USE_BSD=1
1222 USE_OPENBSD=1
1223 cat >> confdefs.h <<\EOF
1224 #define __FREEBSD__ 1
1225 EOF
1226
1227 cat >> confdefs.h <<\EOF
1228 #define __OPENBSD__ 1
1229 EOF
1230
1231 DEFAULT_DEFAULT_wxUSE_GTK=1
1232 ;;
1233 *-*-netbsd*)
1234 USE_BSD=1
1235 USE_NETBSD=1
1236 cat >> confdefs.h <<\EOF
1237 #define __FREEBSD__ 1
1238 EOF
1239
1240 cat >> confdefs.h <<\EOF
1241 #define __NETBSD__ 1
1242 EOF
1243
1244 DEFAULT_DEFAULT_wxUSE_GTK=1
1245 ;;
1246 *-*-osf* )
1247 USE_ALPHA=1
1248 USE_OSF=1
1249 cat >> confdefs.h <<\EOF
1250 #define __ALPHA__ 1
1251 EOF
1252
1253 cat >> confdefs.h <<\EOF
1254 #define __OSF__ 1
1255 EOF
1256
1257 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1258 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1259 ;;
1260 *-*-dgux5* )
1261 USE_ALPHA=1
1262 USE_SVR4=1
1263 cat >> confdefs.h <<\EOF
1264 #define __ALPHA__ 1
1265 EOF
1266
1267 cat >> confdefs.h <<\EOF
1268 #define __SVR4__ 1
1269 EOF
1270
1271 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1272 ;;
1273 *-*-sysv5* )
1274 USE_SYSV=1
1275 USE_SVR4=1
1276 cat >> confdefs.h <<\EOF
1277 #define __SYSV__ 1
1278 EOF
1279
1280 cat >> confdefs.h <<\EOF
1281 #define __SVR4__ 1
1282 EOF
1283
1284 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1285 ;;
1286 *-*-aix* )
1287 USE_AIX=1
1288 USE_SYSV=1
1289 USE_SVR4=1
1290 cat >> confdefs.h <<\EOF
1291 #define __AIX__ 1
1292 EOF
1293
1294 cat >> confdefs.h <<\EOF
1295 #define __SYSV__ 1
1296 EOF
1297
1298 cat >> confdefs.h <<\EOF
1299 #define __SVR4__ 1
1300 EOF
1301
1302 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1303 ;;
1304
1305 *-*-cygwin* | *-*-mingw32* )
1306 USE_UNIX=0
1307 USE_WIN32=1
1308 SO_SUFFIX=dll
1309 cat >> confdefs.h <<\EOF
1310 #define __WIN32__ 1
1311 EOF
1312
1313 cat >> confdefs.h <<\EOF
1314 #define __WIN95__ 1
1315 EOF
1316
1317 cat >> confdefs.h <<\EOF
1318 #define __WINDOWS__ 1
1319 EOF
1320
1321 cat >> confdefs.h <<\EOF
1322 #define __GNUWIN32__ 1
1323 EOF
1324
1325 cat >> confdefs.h <<\EOF
1326 #define STRICT 1
1327 EOF
1328
1329 cat >> confdefs.h <<\EOF
1330 #define WINVER 0x0400
1331 EOF
1332
1333 PROGRAM_EXT=".exe"
1334 RESCOMP=windres
1335 DEFAULT_DEFAULT_wxUSE_MSW=1
1336 ;;
1337
1338 *-pc-msdosdjgpp )
1339 USE_UNIX=0
1340 USE_DOS=1
1341 cat >> confdefs.h <<\EOF
1342 #define __DOS__ 1
1343 EOF
1344
1345 PROGRAM_EXT=".exe"
1346 DEFAULT_DEFAULT_wxUSE_MGL=1
1347 DEFAULT_DEFAULT_wxUSE_SHARED=0
1348 ;;
1349
1350 *-pc-os2_emx | *-pc-os2-emx )
1351 cat >> confdefs.h <<\EOF
1352 #define __EMX__ 1
1353 EOF
1354
1355 PROGRAM_EXT=".exe"
1356 DEFAULT_DEFAULT_wxUSE_PM=1
1357 ;;
1358
1359 powerpc-*-darwin* )
1360 USE_BSD=1
1361 USE_DARWIN=1
1362 CPP_MT_FLAG=
1363 SO_SUFFIX=dylib
1364 cat >> confdefs.h <<\EOF
1365 #define __BSD__ 1
1366 EOF
1367
1368 cat >> confdefs.h <<\EOF
1369 #define __DARWIN__ 1
1370 EOF
1371
1372 cat >> confdefs.h <<\EOF
1373 #define __POWERPC__ 1
1374 EOF
1375
1376 DEFAULT_DEFAULT_wxUSE_MAC=1
1377 ;;
1378
1379 *-*-beos* )
1380 USE_BEOS=1
1381 cat >> confdefs.h <<\EOF
1382 #define __BEOS__ 1
1383 EOF
1384
1385 ;;
1386
1387 *)
1388 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1389 esac
1390
1391 if test "$USE_UNIX" = 1 ; then
1392 wxUSE_UNIX=yes
1393 cat >> confdefs.h <<\EOF
1394 #define __UNIX__ 1
1395 EOF
1396
1397 fi
1398
1399 if test "$USE_LINUX" = 1; then
1400 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1401 echo "configure:1402: checking for glibc 2.1 or later" >&5
1402 if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1403 echo $ac_n "(cached) $ac_c" 1>&6
1404 else
1405
1406 cat > conftest.$ac_ext <<EOF
1407 #line 1408 "configure"
1408 #include "confdefs.h"
1409 #include <features.h>
1410 int main() {
1411
1412 #if !__GLIBC_PREREQ(2, 1)
1413 #error not glibc2.1
1414 #endif
1415
1416 ; return 0; }
1417 EOF
1418 if { (eval echo configure:1419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1419 rm -rf conftest*
1420
1421 wx_lib_glibc21=yes
1422
1423 else
1424 echo "configure: failed program was:" >&5
1425 cat conftest.$ac_ext >&5
1426 rm -rf conftest*
1427
1428 wx_lib_glibc21=no
1429
1430
1431 fi
1432 rm -f conftest*
1433
1434 fi
1435
1436 echo "$ac_t""$wx_lib_glibc21" 1>&6
1437 if test "$wx_lib_glibc21" = "yes"; then
1438 cat >> confdefs.h <<\EOF
1439 #define wxHAVE_GLIBC2 1
1440 EOF
1441
1442 fi
1443 fi
1444
1445
1446
1447
1448 wx_arg_cache_file="configarg.cache"
1449 echo "loading argument cache $wx_arg_cache_file"
1450 rm -f ${wx_arg_cache_file}.tmp
1451 touch ${wx_arg_cache_file}.tmp
1452 touch ${wx_arg_cache_file}
1453
1454
1455 DEBUG_CONFIGURE=0
1456 if test $DEBUG_CONFIGURE = 1; then
1457 DEFAULT_wxUSE_UNIVERSAL=no
1458
1459 DEFAULT_wxUSE_THREADS=yes
1460
1461 DEFAULT_wxUSE_SHARED=yes
1462 DEFAULT_wxUSE_SONAME=no
1463 DEFAULT_wxUSE_OPTIMISE=no
1464 DEFAULT_wxUSE_PROFILE=no
1465 DEFAULT_wxUSE_NO_DEPS=no
1466 DEFAULT_wxUSE_NO_RTTI=yes
1467 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1468 DEFAULT_wxUSE_PERMISSIVE=no
1469 DEFAULT_wxUSE_DEBUG_FLAG=yes
1470 DEFAULT_wxUSE_DEBUG_INFO=yes
1471 DEFAULT_wxUSE_DEBUG_GDB=yes
1472 DEFAULT_wxUSE_MEM_TRACING=no
1473 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1474 DEFAULT_wxUSE_DMALLOC=no
1475 DEFAULT_wxUSE_PRECOMP=no
1476 DEFAULT_wxUSE_APPLE_IEEE=no
1477
1478 DEFAULT_wxUSE_LOG=yes
1479 DEFAULT_wxUSE_LOGWINDOW=no
1480 DEFAULT_wxUSE_LOGGUI=no
1481 DEFAULT_wxUSE_LOGDIALOG=no
1482
1483 DEFAULT_wxUSE_GUI=yes
1484 DEFAULT_wxUSE_CONTROLS=no
1485
1486 DEFAULT_wxUSE_REGEX=no
1487 DEFAULT_wxUSE_ZLIB=no
1488 DEFAULT_wxUSE_LIBPNG=no
1489 DEFAULT_wxUSE_LIBJPEG=no
1490 DEFAULT_wxUSE_LIBTIFF=no
1491 DEFAULT_wxUSE_ODBC=no
1492 DEFAULT_wxUSE_FREETYPE=no
1493 DEFAULT_wxUSE_OPENGL=no
1494
1495 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1496 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1497 DEFAULT_wxUSE_STD_IOSTREAM=no
1498 DEFAULT_wxUSE_CMDLINE_PARSER=no
1499 DEFAULT_wxUSE_DATETIME=no
1500 DEFAULT_wxUSE_TIMEDATE=no
1501 DEFAULT_wxUSE_TIMER=no
1502 DEFAULT_wxUSE_STOPWATCH=no
1503 DEFAULT_wxUSE_FILE=no
1504 DEFAULT_wxUSE_FFILE=no
1505 DEFAULT_wxUSE_TEXTBUFFER=no
1506 DEFAULT_wxUSE_TEXTFILE=no
1507 DEFAULT_wxUSE_WAVE=no
1508 DEFAULT_wxUSE_INTL=no
1509 DEFAULT_wxUSE_CONFIG=no
1510 DEFAULT_wxUSE_FONTMAP=no
1511 DEFAULT_wxUSE_STREAMS=no
1512 DEFAULT_wxUSE_SOCKETS=no
1513 DEFAULT_wxUSE_DIALUP_MANAGER=no
1514 DEFAULT_wxUSE_JOYSTICK=no
1515 DEFAULT_wxUSE_DYNLIB_CLASS=no
1516 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1517 DEFAULT_wxUSE_LONGLONG=no
1518 DEFAULT_wxUSE_GEOMETRY=no
1519
1520 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1521 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1522 DEFAULT_wxUSE_POSTSCRIPT=no
1523
1524 DEFAULT_wxUSE_X_RESOURCES=no
1525 DEFAULT_wxUSE_CLIPBOARD=no
1526 DEFAULT_wxUSE_TOOLTIPS=no
1527 DEFAULT_wxUSE_DRAG_AND_DROP=no
1528 DEFAULT_wxUSE_DRAGIMAGE=no
1529 DEFAULT_wxUSE_SPLINES=no
1530
1531 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1532 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1533 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1534
1535 DEFAULT_wxUSE_PROLOGIO=no
1536 DEFAULT_wxUSE_RESOURCES=no
1537 DEFAULT_wxUSE_CONSTRAINTS=no
1538 DEFAULT_wxUSE_IPC=no
1539 DEFAULT_wxUSE_HELP=no
1540 DEFAULT_wxUSE_MS_HTML_HELP=no
1541 DEFAULT_wxUSE_WXHTML_HELP=no
1542 DEFAULT_wxUSE_TREELAYOUT=no
1543 DEFAULT_wxUSE_METAFILE=no
1544 DEFAULT_wxUSE_MIMETYPE=no
1545 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1546 DEFAULT_wxUSE_PROTOCOL=no
1547 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1548 DEFAULT_wxUSE_PROTOCOL_FTP=no
1549 DEFAULT_wxUSE_PROTOCOL_FILE=no
1550 DEFAULT_wxUSE_URL=no
1551
1552 DEFAULT_wxUSE_COMMONDLGS=no
1553 DEFAULT_wxUSE_CHOICEDLG=no
1554 DEFAULT_wxUSE_COLOURDLG=no
1555 DEFAULT_wxUSE_DIRDLG=no
1556 DEFAULT_wxUSE_FILEDLG=no
1557 DEFAULT_wxUSE_FINDREPLDLG=no
1558 DEFAULT_wxUSE_FONTDLG=no
1559 DEFAULT_wxUSE_MSGDLG=no
1560 DEFAULT_wxUSE_NUMBERDLG=no
1561 DEFAULT_wxUSE_TEXTDLG=no
1562 DEFAULT_wxUSE_SPLASH=no
1563 DEFAULT_wxUSE_STARTUP_TIPS=no
1564 DEFAULT_wxUSE_PROGRESSDLG=no
1565 DEFAULT_wxUSE_WIZARDDLG=no
1566
1567 DEFAULT_wxUSE_MENUS=no
1568 DEFAULT_wxUSE_MINIFRAME=no
1569 DEFAULT_wxUSE_HTML=no
1570 DEFAULT_wxUSE_FILESYSTEM=no
1571 DEFAULT_wxUSE_FS_INET=no
1572 DEFAULT_wxUSE_FS_ZIP=no
1573 DEFAULT_wxUSE_BUSYINFO=no
1574 DEFAULT_wxUSE_ZIPSTREAM=no
1575 DEFAULT_wxUSE_VALIDATORS=no
1576
1577 DEFAULT_wxUSE_ACCEL=no
1578 DEFAULT_wxUSE_BUTTON=no
1579 DEFAULT_wxUSE_BMPBUTTON=no
1580 DEFAULT_wxUSE_CALCTRL=no
1581 DEFAULT_wxUSE_CARET=no
1582 DEFAULT_wxUSE_CHECKBOX=no
1583 DEFAULT_wxUSE_CHECKLST=no
1584 DEFAULT_wxUSE_CHOICE=no
1585 DEFAULT_wxUSE_COMBOBOX=no
1586 DEFAULT_wxUSE_GAUGE=no
1587 DEFAULT_wxUSE_GRID=no
1588 DEFAULT_wxUSE_NEW_GRID=no
1589 DEFAULT_wxUSE_IMAGLIST=no
1590 DEFAULT_wxUSE_LISTBOX=no
1591 DEFAULT_wxUSE_LISTCTRL=no
1592 DEFAULT_wxUSE_NOTEBOOK=no
1593 DEFAULT_wxUSE_PROPSHEET=no
1594 DEFAULT_wxUSE_RADIOBOX=no
1595 DEFAULT_wxUSE_RADIOBTN=no
1596 DEFAULT_wxUSE_SASH=no
1597 DEFAULT_wxUSE_SCROLLBAR=no
1598 DEFAULT_wxUSE_SLIDER=no
1599 DEFAULT_wxUSE_SPINBTN=no
1600 DEFAULT_wxUSE_SPINCTRL=no
1601 DEFAULT_wxUSE_SPLITTER=no
1602 DEFAULT_wxUSE_STATBMP=no
1603 DEFAULT_wxUSE_STATBOX=no
1604 DEFAULT_wxUSE_STATLINE=no
1605 DEFAULT_wxUSE_STATTEXT=no
1606 DEFAULT_wxUSE_STATUSBAR=yes
1607 DEFAULT_wxUSE_TABDIALOG=no
1608 DEFAULT_wxUSE_TEXTCTRL=no
1609 DEFAULT_wxUSE_TOGGLEBTN=no
1610 DEFAULT_wxUSE_TOOLBAR=no
1611 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1612 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1613 DEFAULT_wxUSE_TREECTRL=no
1614 DEFAULT_wxUSE_POPUPWIN=no
1615 DEFAULT_wxUSE_TIPWINDOW=no
1616
1617 DEFAULT_wxUSE_UNICODE=no
1618 DEFAULT_wxUSE_UNICODE_MSLU=no
1619 DEFAULT_wxUSE_WCSRTOMBS=no
1620
1621 DEFAULT_wxUSE_PALETTE=no
1622 DEFAULT_wxUSE_IMAGE=no
1623 DEFAULT_wxUSE_GIF=no
1624 DEFAULT_wxUSE_PCX=no
1625 DEFAULT_wxUSE_PNM=no
1626 DEFAULT_wxUSE_IFF=no
1627 DEFAULT_wxUSE_XPM=no
1628 DEFAULT_wxUSE_ICO_CUR=no
1629 else
1630 DEFAULT_wxUSE_UNIVERSAL=no
1631
1632 DEFAULT_wxUSE_THREADS=yes
1633
1634 DEFAULT_wxUSE_SHARED=yes
1635 DEFAULT_wxUSE_SONAME=no
1636 DEFAULT_wxUSE_OPTIMISE=yes
1637 DEFAULT_wxUSE_PROFILE=no
1638 DEFAULT_wxUSE_NO_DEPS=no
1639 DEFAULT_wxUSE_NO_RTTI=yes
1640 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1641 DEFAULT_wxUSE_PERMISSIVE=no
1642 DEFAULT_wxUSE_DEBUG_FLAG=no
1643 DEFAULT_wxUSE_DEBUG_INFO=no
1644 DEFAULT_wxUSE_DEBUG_GDB=no
1645 DEFAULT_wxUSE_MEM_TRACING=no
1646 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1647 DEFAULT_wxUSE_DMALLOC=no
1648 DEFAULT_wxUSE_PRECOMP=no
1649 DEFAULT_wxUSE_APPLE_IEEE=yes
1650
1651 DEFAULT_wxUSE_LOG=yes
1652 DEFAULT_wxUSE_LOGWINDOW=yes
1653 DEFAULT_wxUSE_LOGGUI=yes
1654 DEFAULT_wxUSE_LOGDIALOG=yes
1655
1656 DEFAULT_wxUSE_GUI=yes
1657
1658 DEFAULT_wxUSE_REGEX=yes
1659 DEFAULT_wxUSE_ZLIB=yes
1660 DEFAULT_wxUSE_LIBPNG=yes
1661 DEFAULT_wxUSE_LIBJPEG=yes
1662 DEFAULT_wxUSE_LIBTIFF=yes
1663 DEFAULT_wxUSE_ODBC=no
1664 DEFAULT_wxUSE_FREETYPE=no
1665 DEFAULT_wxUSE_OPENGL=no
1666
1667 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1668 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1669 DEFAULT_wxUSE_STD_IOSTREAM=no
1670 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1671 DEFAULT_wxUSE_DATETIME=yes
1672 DEFAULT_wxUSE_TIMEDATE=no
1673 DEFAULT_wxUSE_TIMER=yes
1674 DEFAULT_wxUSE_STOPWATCH=yes
1675 DEFAULT_wxUSE_FILE=yes
1676 DEFAULT_wxUSE_FFILE=yes
1677 DEFAULT_wxUSE_TEXTBUFFER=yes
1678 DEFAULT_wxUSE_TEXTFILE=yes
1679 DEFAULT_wxUSE_WAVE=no
1680 DEFAULT_wxUSE_INTL=yes
1681 DEFAULT_wxUSE_CONFIG=yes
1682 DEFAULT_wxUSE_FONTMAP=yes
1683 DEFAULT_wxUSE_STREAMS=yes
1684 DEFAULT_wxUSE_SOCKETS=yes
1685 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1686 DEFAULT_wxUSE_JOYSTICK=yes
1687 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1688 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1689 DEFAULT_wxUSE_LONGLONG=yes
1690 DEFAULT_wxUSE_GEOMETRY=yes
1691
1692 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1693 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1694 DEFAULT_wxUSE_POSTSCRIPT=yes
1695
1696 DEFAULT_wxUSE_X_RESOURCES=no
1697 DEFAULT_wxUSE_CLIPBOARD=yes
1698 DEFAULT_wxUSE_TOOLTIPS=yes
1699 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1700 DEFAULT_wxUSE_DRAGIMAGE=yes
1701 DEFAULT_wxUSE_SPLINES=yes
1702
1703 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1704 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1705 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1706
1707 DEFAULT_wxUSE_PROLOGIO=yes
1708 DEFAULT_wxUSE_RESOURCES=yes
1709 DEFAULT_wxUSE_CONSTRAINTS=yes
1710 DEFAULT_wxUSE_IPC=yes
1711 DEFAULT_wxUSE_HELP=yes
1712 DEFAULT_wxUSE_MS_HTML_HELP=yes
1713 DEFAULT_wxUSE_WXHTML_HELP=yes
1714 DEFAULT_wxUSE_TREELAYOUT=yes
1715 DEFAULT_wxUSE_METAFILE=yes
1716 DEFAULT_wxUSE_MIMETYPE=yes
1717 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1718 DEFAULT_wxUSE_PROTOCOL=yes
1719 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1720 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1721 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1722 DEFAULT_wxUSE_URL=yes
1723
1724 DEFAULT_wxUSE_COMMONDLGS=yes
1725 DEFAULT_wxUSE_CHOICEDLG=yes
1726 DEFAULT_wxUSE_COLOURDLG=yes
1727 DEFAULT_wxUSE_DIRDLG=yes
1728 DEFAULT_wxUSE_FILEDLG=yes
1729 DEFAULT_wxUSE_FINDREPLDLG=yes
1730 DEFAULT_wxUSE_FONTDLG=yes
1731 DEFAULT_wxUSE_MSGDLG=yes
1732 DEFAULT_wxUSE_NUMBERDLG=yes
1733 DEFAULT_wxUSE_TEXTDLG=yes
1734 DEFAULT_wxUSE_SPLASH=yes
1735 DEFAULT_wxUSE_STARTUP_TIPS=yes
1736 DEFAULT_wxUSE_PROGRESSDLG=yes
1737 DEFAULT_wxUSE_WIZARDDLG=yes
1738
1739 DEFAULT_wxUSE_MENUS=yes
1740 DEFAULT_wxUSE_MINIFRAME=yes
1741 DEFAULT_wxUSE_HTML=yes
1742 DEFAULT_wxUSE_FILESYSTEM=yes
1743 DEFAULT_wxUSE_FS_INET=yes
1744 DEFAULT_wxUSE_FS_ZIP=yes
1745 DEFAULT_wxUSE_BUSYINFO=yes
1746 DEFAULT_wxUSE_ZIPSTREAM=yes
1747 DEFAULT_wxUSE_VALIDATORS=yes
1748
1749 DEFAULT_wxUSE_ACCEL=yes
1750 DEFAULT_wxUSE_BUTTON=yes
1751 DEFAULT_wxUSE_BMPBUTTON=yes
1752 DEFAULT_wxUSE_CALCTRL=yes
1753 DEFAULT_wxUSE_CARET=yes
1754 DEFAULT_wxUSE_CHECKBOX=yes
1755 DEFAULT_wxUSE_CHECKLST=yes
1756 DEFAULT_wxUSE_CHOICE=yes
1757 DEFAULT_wxUSE_COMBOBOX=yes
1758 DEFAULT_wxUSE_GAUGE=yes
1759 DEFAULT_wxUSE_GRID=yes
1760 DEFAULT_wxUSE_NEW_GRID=yes
1761 DEFAULT_wxUSE_IMAGLIST=yes
1762 DEFAULT_wxUSE_LISTBOX=yes
1763 DEFAULT_wxUSE_LISTCTRL=yes
1764 DEFAULT_wxUSE_NOTEBOOK=yes
1765 DEFAULT_wxUSE_PROPSHEET=yes
1766 DEFAULT_wxUSE_RADIOBOX=yes
1767 DEFAULT_wxUSE_RADIOBTN=yes
1768 DEFAULT_wxUSE_SASH=yes
1769 DEFAULT_wxUSE_SCROLLBAR=yes
1770 DEFAULT_wxUSE_SLIDER=yes
1771 DEFAULT_wxUSE_SPINBTN=yes
1772 DEFAULT_wxUSE_SPINCTRL=yes
1773 DEFAULT_wxUSE_SPLITTER=yes
1774 DEFAULT_wxUSE_STATBMP=yes
1775 DEFAULT_wxUSE_STATBOX=yes
1776 DEFAULT_wxUSE_STATLINE=yes
1777 DEFAULT_wxUSE_STATTEXT=yes
1778 DEFAULT_wxUSE_STATUSBAR=yes
1779 DEFAULT_wxUSE_TABDIALOG=no
1780 DEFAULT_wxUSE_TEXTCTRL=yes
1781 DEFAULT_wxUSE_TOGGLEBTN=yes
1782 DEFAULT_wxUSE_TOOLBAR=yes
1783 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1784 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1785 DEFAULT_wxUSE_TREECTRL=yes
1786 DEFAULT_wxUSE_POPUPWIN=yes
1787 DEFAULT_wxUSE_TIPWINDOW=yes
1788
1789 DEFAULT_wxUSE_UNICODE=no
1790 DEFAULT_wxUSE_UNICODE_MSLU=yes
1791 DEFAULT_wxUSE_WCSRTOMBS=no
1792
1793 DEFAULT_wxUSE_PALETTE=yes
1794 DEFAULT_wxUSE_IMAGE=yes
1795 DEFAULT_wxUSE_GIF=yes
1796 DEFAULT_wxUSE_PCX=yes
1797 DEFAULT_wxUSE_IFF=no
1798 DEFAULT_wxUSE_PNM=yes
1799 DEFAULT_wxUSE_XPM=yes
1800 DEFAULT_wxUSE_ICO_CUR=yes
1801 fi
1802
1803
1804
1805 for toolkit in `echo $ALL_TOOLKITS`; do
1806 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1807 if test "x$LINE" != x ; then
1808 has_toolkit_in_cache=1
1809 eval "DEFAULT_$LINE"
1810 eval "CACHE_$toolkit=1"
1811 fi
1812 done
1813
1814
1815
1816 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1817 echo "configure:1818: checking for --enable-gui" >&5
1818 no_cache=0
1819 # Check whether --enable-gui or --disable-gui was given.
1820 if test "${enable_gui+set}" = set; then
1821 enableval="$enable_gui"
1822
1823 if test "$enableval" = yes; then
1824 ac_cv_use_gui='wxUSE_GUI=yes'
1825 else
1826 ac_cv_use_gui='wxUSE_GUI=no'
1827 fi
1828
1829 else
1830
1831 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1832 if test "x$LINE" != x ; then
1833 eval "DEFAULT_$LINE"
1834 else
1835 no_cache=1
1836 fi
1837
1838 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1839
1840 fi
1841
1842
1843 eval "$ac_cv_use_gui"
1844 if test "$no_cache" != 1; then
1845 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1846 fi
1847
1848 if test "$wxUSE_GUI" = yes; then
1849 echo "$ac_t""yes" 1>&6
1850 else
1851 echo "$ac_t""no" 1>&6
1852 fi
1853
1854
1855 if test "$wxUSE_GUI" = "yes"; then
1856
1857
1858 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1859 echo "configure:1860: checking for --enable-universal" >&5
1860 no_cache=0
1861 # Check whether --enable-universal or --disable-universal was given.
1862 if test "${enable_universal+set}" = set; then
1863 enableval="$enable_universal"
1864
1865 if test "$enableval" = yes; then
1866 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1867 else
1868 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1869 fi
1870
1871 else
1872
1873 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1874 if test "x$LINE" != x ; then
1875 eval "DEFAULT_$LINE"
1876 else
1877 no_cache=1
1878 fi
1879
1880 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1881
1882 fi
1883
1884
1885 eval "$ac_cv_use_universal"
1886 if test "$no_cache" != 1; then
1887 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1888 fi
1889
1890 if test "$wxUSE_UNIVERSAL" = yes; then
1891 echo "$ac_t""yes" 1>&6
1892 else
1893 echo "$ac_t""no" 1>&6
1894 fi
1895
1896 # Check whether --with-gtk or --without-gtk was given.
1897 if test "${with_gtk+set}" = set; then
1898 withval="$with_gtk"
1899 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1900 fi
1901
1902 # Check whether --with-motif or --without-motif was given.
1903 if test "${with_motif+set}" = set; then
1904 withval="$with_motif"
1905 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1906 fi
1907
1908 # Check whether --with-mac or --without-mac was given.
1909 if test "${with_mac+set}" = set; then
1910 withval="$with_mac"
1911 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1912 fi
1913
1914 # Check whether --with-wine or --without-wine was given.
1915 if test "${with_wine+set}" = set; then
1916 withval="$with_wine"
1917 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1918 fi
1919
1920 # Check whether --with-msw or --without-msw was given.
1921 if test "${with_msw+set}" = set; then
1922 withval="$with_msw"
1923 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
1924 fi
1925
1926 # Check whether --with-pm or --without-pm was given.
1927 if test "${with_pm+set}" = set; then
1928 withval="$with_pm"
1929 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1930 fi
1931
1932 # Check whether --with-mgl or --without-mgl was given.
1933 if test "${with_mgl+set}" = set; then
1934 withval="$with_mgl"
1935 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1936 fi
1937
1938 # Check whether --with-microwin or --without-microwin was given.
1939 if test "${with_microwin+set}" = set; then
1940 withval="$with_microwin"
1941 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1942 fi
1943
1944 # Check whether --with-x11 or --without-x11 was given.
1945 if test "${with_x11+set}" = set; then
1946 withval="$with_x11"
1947 wxUSE_X11="$withval" CACHE_X11=1 TOOLKIT_GIVEN=1
1948 fi
1949
1950
1951 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1952 if test "${enable_gtk2+set}" = set; then
1953 enableval="$enable_gtk2"
1954 wxUSE_GTK2=1
1955 else
1956 wxUSE_GTK2=0
1957 fi
1958
1959
1960
1961 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1962 echo "configure:1963: checking for --with-libpng" >&5
1963 no_cache=0
1964 # Check whether --with-libpng or --without-libpng was given.
1965 if test "${with_libpng+set}" = set; then
1966 withval="$with_libpng"
1967
1968 if test "$withval" = yes; then
1969 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1970 elif test "$withval" = no; then
1971 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1972 elif test "$withval" = sys; then
1973 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1974 elif test "$withval" = builtin; then
1975 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1976 else
1977 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1978 fi
1979
1980 else
1981
1982 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1983 if test "x$LINE" != x ; then
1984 eval "DEFAULT_$LINE"
1985 else
1986 no_cache=1
1987 fi
1988
1989 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1990
1991 fi
1992
1993
1994 eval "$ac_cv_use_libpng"
1995 if test "$no_cache" != 1; then
1996 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1997 fi
1998
1999 if test "$wxUSE_LIBPNG" = yes; then
2000 echo "$ac_t""yes" 1>&6
2001 elif test "$wxUSE_LIBPNG" = no; then
2002 echo "$ac_t""no" 1>&6
2003 elif test "$wxUSE_LIBPNG" = sys; then
2004 echo "$ac_t""system version" 1>&6
2005 elif test "$wxUSE_LIBPNG" = builtin; then
2006 echo "$ac_t""builtin version" 1>&6
2007 else
2008 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2009 fi
2010
2011
2012 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2013 echo "configure:2014: checking for --with-libjpeg" >&5
2014 no_cache=0
2015 # Check whether --with-libjpeg or --without-libjpeg was given.
2016 if test "${with_libjpeg+set}" = set; then
2017 withval="$with_libjpeg"
2018
2019 if test "$withval" = yes; then
2020 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2021 elif test "$withval" = no; then
2022 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2023 elif test "$withval" = sys; then
2024 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2025 elif test "$withval" = builtin; then
2026 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2027 else
2028 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2029 fi
2030
2031 else
2032
2033 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2034 if test "x$LINE" != x ; then
2035 eval "DEFAULT_$LINE"
2036 else
2037 no_cache=1
2038 fi
2039
2040 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2041
2042 fi
2043
2044
2045 eval "$ac_cv_use_libjpeg"
2046 if test "$no_cache" != 1; then
2047 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2048 fi
2049
2050 if test "$wxUSE_LIBJPEG" = yes; then
2051 echo "$ac_t""yes" 1>&6
2052 elif test "$wxUSE_LIBJPEG" = no; then
2053 echo "$ac_t""no" 1>&6
2054 elif test "$wxUSE_LIBJPEG" = sys; then
2055 echo "$ac_t""system version" 1>&6
2056 elif test "$wxUSE_LIBJPEG" = builtin; then
2057 echo "$ac_t""builtin version" 1>&6
2058 else
2059 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2060 fi
2061
2062
2063 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2064 echo "configure:2065: checking for --with-libtiff" >&5
2065 no_cache=0
2066 # Check whether --with-libtiff or --without-libtiff was given.
2067 if test "${with_libtiff+set}" = set; then
2068 withval="$with_libtiff"
2069
2070 if test "$withval" = yes; then
2071 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2072 elif test "$withval" = no; then
2073 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2074 elif test "$withval" = sys; then
2075 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2076 elif test "$withval" = builtin; then
2077 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2078 else
2079 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2080 fi
2081
2082 else
2083
2084 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2085 if test "x$LINE" != x ; then
2086 eval "DEFAULT_$LINE"
2087 else
2088 no_cache=1
2089 fi
2090
2091 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2092
2093 fi
2094
2095
2096 eval "$ac_cv_use_libtiff"
2097 if test "$no_cache" != 1; then
2098 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2099 fi
2100
2101 if test "$wxUSE_LIBTIFF" = yes; then
2102 echo "$ac_t""yes" 1>&6
2103 elif test "$wxUSE_LIBTIFF" = no; then
2104 echo "$ac_t""no" 1>&6
2105 elif test "$wxUSE_LIBTIFF" = sys; then
2106 echo "$ac_t""system version" 1>&6
2107 elif test "$wxUSE_LIBTIFF" = builtin; then
2108 echo "$ac_t""builtin version" 1>&6
2109 else
2110 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2111 fi
2112
2113
2114 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
2115 echo "configure:2116: checking for --with-freetype" >&5
2116 no_cache=0
2117 # Check whether --with-freetype or --without-freetype was given.
2118 if test "${with_freetype+set}" = set; then
2119 withval="$with_freetype"
2120
2121 if test "$withval" = yes; then
2122 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2123 elif test "$withval" = no; then
2124 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2125 elif test "$withval" = sys; then
2126 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
2127 elif test "$withval" = builtin; then
2128 ac_cv_use_freetype='wxUSE_FREETYPE=builtin'
2129 else
2130 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2131 fi
2132
2133 else
2134
2135 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2136 if test "x$LINE" != x ; then
2137 eval "DEFAULT_$LINE"
2138 else
2139 no_cache=1
2140 fi
2141
2142 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
2143
2144 fi
2145
2146
2147 eval "$ac_cv_use_freetype"
2148 if test "$no_cache" != 1; then
2149 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2150 fi
2151
2152 if test "$wxUSE_FREETYPE" = yes; then
2153 echo "$ac_t""yes" 1>&6
2154 elif test "$wxUSE_FREETYPE" = no; then
2155 echo "$ac_t""no" 1>&6
2156 elif test "$wxUSE_FREETYPE" = sys; then
2157 echo "$ac_t""system version" 1>&6
2158 elif test "$wxUSE_FREETYPE" = builtin; then
2159 echo "$ac_t""builtin version" 1>&6
2160 else
2161 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2162 fi
2163
2164
2165 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2166 echo "configure:2167: checking for --with-opengl" >&5
2167 no_cache=0
2168 # Check whether --with-opengl or --without-opengl was given.
2169 if test "${with_opengl+set}" = set; then
2170 withval="$with_opengl"
2171
2172 if test "$withval" = yes; then
2173 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2174 else
2175 ac_cv_use_opengl='wxUSE_OPENGL=no'
2176 fi
2177
2178 else
2179
2180 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2181 if test "x$LINE" != x ; then
2182 eval "DEFAULT_$LINE"
2183 else
2184 no_cache=1
2185 fi
2186
2187 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2188
2189 fi
2190
2191
2192 eval "$ac_cv_use_opengl"
2193 if test "$no_cache" != 1; then
2194 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2195 fi
2196
2197 if test "$wxUSE_OPENGL" = yes; then
2198 echo "$ac_t""yes" 1>&6
2199 else
2200 echo "$ac_t""no" 1>&6
2201 fi
2202
2203
2204 fi
2205
2206
2207 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2208 echo "configure:2209: checking for --with-dmalloc" >&5
2209 no_cache=0
2210 # Check whether --with-dmalloc or --without-dmalloc was given.
2211 if test "${with_dmalloc+set}" = set; then
2212 withval="$with_dmalloc"
2213
2214 if test "$withval" = yes; then
2215 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2216 else
2217 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2218 fi
2219
2220 else
2221
2222 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2223 if test "x$LINE" != x ; then
2224 eval "DEFAULT_$LINE"
2225 else
2226 no_cache=1
2227 fi
2228
2229 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2230
2231 fi
2232
2233
2234 eval "$ac_cv_use_dmalloc"
2235 if test "$no_cache" != 1; then
2236 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2237 fi
2238
2239 if test "$wxUSE_DMALLOC" = yes; then
2240 echo "$ac_t""yes" 1>&6
2241 else
2242 echo "$ac_t""no" 1>&6
2243 fi
2244
2245
2246 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2247 echo "configure:2248: checking for --with-regex" >&5
2248 no_cache=0
2249 # Check whether --with-regex or --without-regex was given.
2250 if test "${with_regex+set}" = set; then
2251 withval="$with_regex"
2252
2253 if test "$withval" = yes; then
2254 ac_cv_use_regex='wxUSE_REGEX=yes'
2255 elif test "$withval" = no; then
2256 ac_cv_use_regex='wxUSE_REGEX=no'
2257 elif test "$withval" = sys; then
2258 ac_cv_use_regex='wxUSE_REGEX=sys'
2259 elif test "$withval" = builtin; then
2260 ac_cv_use_regex='wxUSE_REGEX=builtin'
2261 else
2262 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2263 fi
2264
2265 else
2266
2267 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2268 if test "x$LINE" != x ; then
2269 eval "DEFAULT_$LINE"
2270 else
2271 no_cache=1
2272 fi
2273
2274 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2275
2276 fi
2277
2278
2279 eval "$ac_cv_use_regex"
2280 if test "$no_cache" != 1; then
2281 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2282 fi
2283
2284 if test "$wxUSE_REGEX" = yes; then
2285 echo "$ac_t""yes" 1>&6
2286 elif test "$wxUSE_REGEX" = no; then
2287 echo "$ac_t""no" 1>&6
2288 elif test "$wxUSE_REGEX" = sys; then
2289 echo "$ac_t""system version" 1>&6
2290 elif test "$wxUSE_REGEX" = builtin; then
2291 echo "$ac_t""builtin version" 1>&6
2292 else
2293 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2294 fi
2295
2296
2297 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2298 echo "configure:2299: checking for --with-zlib" >&5
2299 no_cache=0
2300 # Check whether --with-zlib or --without-zlib was given.
2301 if test "${with_zlib+set}" = set; then
2302 withval="$with_zlib"
2303
2304 if test "$withval" = yes; then
2305 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2306 elif test "$withval" = no; then
2307 ac_cv_use_zlib='wxUSE_ZLIB=no'
2308 elif test "$withval" = sys; then
2309 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2310 elif test "$withval" = builtin; then
2311 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2312 else
2313 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2314 fi
2315
2316 else
2317
2318 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2319 if test "x$LINE" != x ; then
2320 eval "DEFAULT_$LINE"
2321 else
2322 no_cache=1
2323 fi
2324
2325 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2326
2327 fi
2328
2329
2330 eval "$ac_cv_use_zlib"
2331 if test "$no_cache" != 1; then
2332 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2333 fi
2334
2335 if test "$wxUSE_ZLIB" = yes; then
2336 echo "$ac_t""yes" 1>&6
2337 elif test "$wxUSE_ZLIB" = no; then
2338 echo "$ac_t""no" 1>&6
2339 elif test "$wxUSE_ZLIB" = sys; then
2340 echo "$ac_t""system version" 1>&6
2341 elif test "$wxUSE_ZLIB" = builtin; then
2342 echo "$ac_t""builtin version" 1>&6
2343 else
2344 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2345 fi
2346
2347
2348 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2349 echo "configure:2350: checking for --with-odbc" >&5
2350 no_cache=0
2351 # Check whether --with-odbc or --without-odbc was given.
2352 if test "${with_odbc+set}" = set; then
2353 withval="$with_odbc"
2354
2355 if test "$withval" = yes; then
2356 ac_cv_use_odbc='wxUSE_ODBC=yes'
2357 else
2358 ac_cv_use_odbc='wxUSE_ODBC=no'
2359 fi
2360
2361 else
2362
2363 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2364 if test "x$LINE" != x ; then
2365 eval "DEFAULT_$LINE"
2366 else
2367 no_cache=1
2368 fi
2369
2370 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2371
2372 fi
2373
2374
2375 eval "$ac_cv_use_odbc"
2376 if test "$no_cache" != 1; then
2377 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2378 fi
2379
2380 if test "$wxUSE_ODBC" = yes; then
2381 echo "$ac_t""yes" 1>&6
2382 else
2383 echo "$ac_t""no" 1>&6
2384 fi
2385
2386
2387
2388
2389 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2390 echo "configure:2391: checking for --enable-shared" >&5
2391 no_cache=0
2392 # Check whether --enable-shared or --disable-shared was given.
2393 if test "${enable_shared+set}" = set; then
2394 enableval="$enable_shared"
2395
2396 if test "$enableval" = yes; then
2397 ac_cv_use_shared='wxUSE_SHARED=yes'
2398 else
2399 ac_cv_use_shared='wxUSE_SHARED=no'
2400 fi
2401
2402 else
2403
2404 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2405 if test "x$LINE" != x ; then
2406 eval "DEFAULT_$LINE"
2407 else
2408 no_cache=1
2409 fi
2410
2411 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2412
2413 fi
2414
2415
2416 eval "$ac_cv_use_shared"
2417 if test "$no_cache" != 1; then
2418 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2419 fi
2420
2421 if test "$wxUSE_SHARED" = yes; then
2422 echo "$ac_t""yes" 1>&6
2423 else
2424 echo "$ac_t""no" 1>&6
2425 fi
2426
2427
2428 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2429 echo "configure:2430: checking for --enable-soname" >&5
2430 no_cache=0
2431 # Check whether --enable-soname or --disable-soname was given.
2432 if test "${enable_soname+set}" = set; then
2433 enableval="$enable_soname"
2434
2435 if test "$enableval" = yes; then
2436 ac_cv_use_soname='wxUSE_SONAME=yes'
2437 else
2438 ac_cv_use_soname='wxUSE_SONAME=no'
2439 fi
2440
2441 else
2442
2443 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2444 if test "x$LINE" != x ; then
2445 eval "DEFAULT_$LINE"
2446 else
2447 no_cache=1
2448 fi
2449
2450 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2451
2452 fi
2453
2454
2455 eval "$ac_cv_use_soname"
2456 if test "$no_cache" != 1; then
2457 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2458 fi
2459
2460 if test "$wxUSE_SONAME" = yes; then
2461 echo "$ac_t""yes" 1>&6
2462 else
2463 echo "$ac_t""no" 1>&6
2464 fi
2465
2466
2467 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2468 echo "configure:2469: checking for --enable-optimise" >&5
2469 no_cache=0
2470 # Check whether --enable-optimise or --disable-optimise was given.
2471 if test "${enable_optimise+set}" = set; then
2472 enableval="$enable_optimise"
2473
2474 if test "$enableval" = yes; then
2475 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2476 else
2477 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2478 fi
2479
2480 else
2481
2482 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2483 if test "x$LINE" != x ; then
2484 eval "DEFAULT_$LINE"
2485 else
2486 no_cache=1
2487 fi
2488
2489 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2490
2491 fi
2492
2493
2494 eval "$ac_cv_use_optimise"
2495 if test "$no_cache" != 1; then
2496 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2497 fi
2498
2499 if test "$wxUSE_OPTIMISE" = yes; then
2500 echo "$ac_t""yes" 1>&6
2501 else
2502 echo "$ac_t""no" 1>&6
2503 fi
2504
2505
2506 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2507 echo "configure:2508: checking for --enable-debug" >&5
2508 no_cache=0
2509 # Check whether --enable-debug or --disable-debug was given.
2510 if test "${enable_debug+set}" = set; then
2511 enableval="$enable_debug"
2512
2513 if test "$enableval" = yes; then
2514 ac_cv_use_debug='wxUSE_DEBUG=yes'
2515 else
2516 ac_cv_use_debug='wxUSE_DEBUG=no'
2517 fi
2518
2519 else
2520
2521 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2522 if test "x$LINE" != x ; then
2523 eval "DEFAULT_$LINE"
2524 else
2525 no_cache=1
2526 fi
2527
2528 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2529
2530 fi
2531
2532
2533 eval "$ac_cv_use_debug"
2534 if test "$no_cache" != 1; then
2535 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2536 fi
2537
2538 if test "$wxUSE_DEBUG" = yes; then
2539 echo "$ac_t""yes" 1>&6
2540 else
2541 echo "$ac_t""no" 1>&6
2542 fi
2543
2544
2545
2546 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2547 echo "configure:2548: checking for --enable-precomp" >&5
2548 no_cache=0
2549 # Check whether --enable-precomp or --disable-precomp was given.
2550 if test "${enable_precomp+set}" = set; then
2551 enableval="$enable_precomp"
2552
2553 if test "$enableval" = yes; then
2554 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2555 else
2556 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2557 fi
2558
2559 else
2560
2561 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2562 if test "x$LINE" != x ; then
2563 eval "DEFAULT_$LINE"
2564 else
2565 no_cache=1
2566 fi
2567
2568 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2569
2570 fi
2571
2572
2573 eval "$ac_cv_use_precomp"
2574 if test "$no_cache" != 1; then
2575 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2576 fi
2577
2578 if test "$wxUSE_PRECOMP" = yes; then
2579 echo "$ac_t""yes" 1>&6
2580 else
2581 echo "$ac_t""no" 1>&6
2582 fi
2583
2584
2585 if test "$wxUSE_DEBUG" = "yes"; then
2586 DEFAULT_wxUSE_DEBUG_FLAG=yes
2587 DEFAULT_wxUSE_DEBUG_INFO=yes
2588 elif test "$wxUSE_DEBUG" = "no"; then
2589 DEFAULT_wxUSE_DEBUG_FLAG=no
2590 DEFAULT_wxUSE_DEBUG_INFO=no
2591 fi
2592
2593
2594 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2595 echo "configure:2596: checking for --enable-debug_flag" >&5
2596 no_cache=0
2597 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2598 if test "${enable_debug_flag+set}" = set; then
2599 enableval="$enable_debug_flag"
2600
2601 if test "$enableval" = yes; then
2602 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2603 else
2604 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2605 fi
2606
2607 else
2608
2609 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2610 if test "x$LINE" != x ; then
2611 eval "DEFAULT_$LINE"
2612 else
2613 no_cache=1
2614 fi
2615
2616 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2617
2618 fi
2619
2620
2621 eval "$ac_cv_use_debug_flag"
2622 if test "$no_cache" != 1; then
2623 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2624 fi
2625
2626 if test "$wxUSE_DEBUG_FLAG" = yes; then
2627 echo "$ac_t""yes" 1>&6
2628 else
2629 echo "$ac_t""no" 1>&6
2630 fi
2631
2632
2633 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2634 echo "configure:2635: checking for --enable-debug_info" >&5
2635 no_cache=0
2636 # Check whether --enable-debug_info or --disable-debug_info was given.
2637 if test "${enable_debug_info+set}" = set; then
2638 enableval="$enable_debug_info"
2639
2640 if test "$enableval" = yes; then
2641 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2642 else
2643 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2644 fi
2645
2646 else
2647
2648 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2649 if test "x$LINE" != x ; then
2650 eval "DEFAULT_$LINE"
2651 else
2652 no_cache=1
2653 fi
2654
2655 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2656
2657 fi
2658
2659
2660 eval "$ac_cv_use_debug_info"
2661 if test "$no_cache" != 1; then
2662 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2663 fi
2664
2665 if test "$wxUSE_DEBUG_INFO" = yes; then
2666 echo "$ac_t""yes" 1>&6
2667 else
2668 echo "$ac_t""no" 1>&6
2669 fi
2670
2671
2672 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2673 echo "configure:2674: checking for --enable-debug_gdb" >&5
2674 no_cache=0
2675 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2676 if test "${enable_debug_gdb+set}" = set; then
2677 enableval="$enable_debug_gdb"
2678
2679 if test "$enableval" = yes; then
2680 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2681 else
2682 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2683 fi
2684
2685 else
2686
2687 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2688 if test "x$LINE" != x ; then
2689 eval "DEFAULT_$LINE"
2690 else
2691 no_cache=1
2692 fi
2693
2694 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2695
2696 fi
2697
2698
2699 eval "$ac_cv_use_debug_gdb"
2700 if test "$no_cache" != 1; then
2701 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2702 fi
2703
2704 if test "$wxUSE_DEBUG_GDB" = yes; then
2705 echo "$ac_t""yes" 1>&6
2706 else
2707 echo "$ac_t""no" 1>&6
2708 fi
2709
2710
2711 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2712 echo "configure:2713: checking for --enable-debug_cntxt" >&5
2713 no_cache=0
2714 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2715 if test "${enable_debug_cntxt+set}" = set; then
2716 enableval="$enable_debug_cntxt"
2717
2718 if test "$enableval" = yes; then
2719 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2720 else
2721 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2722 fi
2723
2724 else
2725
2726 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2727 if test "x$LINE" != x ; then
2728 eval "DEFAULT_$LINE"
2729 else
2730 no_cache=1
2731 fi
2732
2733 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2734
2735 fi
2736
2737
2738 eval "$ac_cv_use_debug_cntxt"
2739 if test "$no_cache" != 1; then
2740 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2741 fi
2742
2743 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2744 echo "$ac_t""yes" 1>&6
2745 else
2746 echo "$ac_t""no" 1>&6
2747 fi
2748
2749
2750 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2751 echo "configure:2752: checking for --enable-mem_tracing" >&5
2752 no_cache=0
2753 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2754 if test "${enable_mem_tracing+set}" = set; then
2755 enableval="$enable_mem_tracing"
2756
2757 if test "$enableval" = yes; then
2758 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2759 else
2760 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2761 fi
2762
2763 else
2764
2765 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2766 if test "x$LINE" != x ; then
2767 eval "DEFAULT_$LINE"
2768 else
2769 no_cache=1
2770 fi
2771
2772 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2773
2774 fi
2775
2776
2777 eval "$ac_cv_use_mem_tracing"
2778 if test "$no_cache" != 1; then
2779 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2780 fi
2781
2782 if test "$wxUSE_MEM_TRACING" = yes; then
2783 echo "$ac_t""yes" 1>&6
2784 else
2785 echo "$ac_t""no" 1>&6
2786 fi
2787
2788
2789 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2790 echo "configure:2791: checking for --enable-profile" >&5
2791 no_cache=0
2792 # Check whether --enable-profile or --disable-profile was given.
2793 if test "${enable_profile+set}" = set; then
2794 enableval="$enable_profile"
2795
2796 if test "$enableval" = yes; then
2797 ac_cv_use_profile='wxUSE_PROFILE=yes'
2798 else
2799 ac_cv_use_profile='wxUSE_PROFILE=no'
2800 fi
2801
2802 else
2803
2804 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2805 if test "x$LINE" != x ; then
2806 eval "DEFAULT_$LINE"
2807 else
2808 no_cache=1
2809 fi
2810
2811 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2812
2813 fi
2814
2815
2816 eval "$ac_cv_use_profile"
2817 if test "$no_cache" != 1; then
2818 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2819 fi
2820
2821 if test "$wxUSE_PROFILE" = yes; then
2822 echo "$ac_t""yes" 1>&6
2823 else
2824 echo "$ac_t""no" 1>&6
2825 fi
2826
2827
2828 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2829 echo "configure:2830: checking for --enable-no_rtti" >&5
2830 no_cache=0
2831 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2832 if test "${enable_no_rtti+set}" = set; then
2833 enableval="$enable_no_rtti"
2834
2835 if test "$enableval" = yes; then
2836 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2837 else
2838 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2839 fi
2840
2841 else
2842
2843 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2844 if test "x$LINE" != x ; then
2845 eval "DEFAULT_$LINE"
2846 else
2847 no_cache=1
2848 fi
2849
2850 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2851
2852 fi
2853
2854
2855 eval "$ac_cv_use_no_rtti"
2856 if test "$no_cache" != 1; then
2857 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2858 fi
2859
2860 if test "$wxUSE_NO_RTTI" = yes; then
2861 echo "$ac_t""yes" 1>&6
2862 else
2863 echo "$ac_t""no" 1>&6
2864 fi
2865
2866
2867 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2868 echo "configure:2869: checking for --enable-no_exceptions" >&5
2869 no_cache=0
2870 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2871 if test "${enable_no_exceptions+set}" = set; then
2872 enableval="$enable_no_exceptions"
2873
2874 if test "$enableval" = yes; then
2875 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2876 else
2877 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2878 fi
2879
2880 else
2881
2882 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2883 if test "x$LINE" != x ; then
2884 eval "DEFAULT_$LINE"
2885 else
2886 no_cache=1
2887 fi
2888
2889 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2890
2891 fi
2892
2893
2894 eval "$ac_cv_use_no_exceptions"
2895 if test "$no_cache" != 1; then
2896 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2897 fi
2898
2899 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2900 echo "$ac_t""yes" 1>&6
2901 else
2902 echo "$ac_t""no" 1>&6
2903 fi
2904
2905
2906 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2907 echo "configure:2908: checking for --enable-permissive" >&5
2908 no_cache=0
2909 # Check whether --enable-permissive or --disable-permissive was given.
2910 if test "${enable_permissive+set}" = set; then
2911 enableval="$enable_permissive"
2912
2913 if test "$enableval" = yes; then
2914 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2915 else
2916 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2917 fi
2918
2919 else
2920
2921 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2922 if test "x$LINE" != x ; then
2923 eval "DEFAULT_$LINE"
2924 else
2925 no_cache=1
2926 fi
2927
2928 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2929
2930 fi
2931
2932
2933 eval "$ac_cv_use_permissive"
2934 if test "$no_cache" != 1; then
2935 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2936 fi
2937
2938 if test "$wxUSE_PERMISSIVE" = yes; then
2939 echo "$ac_t""yes" 1>&6
2940 else
2941 echo "$ac_t""no" 1>&6
2942 fi
2943
2944
2945 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2946 echo "configure:2947: checking for --enable-no_deps" >&5
2947 no_cache=0
2948 # Check whether --enable-no_deps or --disable-no_deps was given.
2949 if test "${enable_no_deps+set}" = set; then
2950 enableval="$enable_no_deps"
2951
2952 if test "$enableval" = yes; then
2953 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2954 else
2955 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2956 fi
2957
2958 else
2959
2960 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2961 if test "x$LINE" != x ; then
2962 eval "DEFAULT_$LINE"
2963 else
2964 no_cache=1
2965 fi
2966
2967 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2968
2969 fi
2970
2971
2972 eval "$ac_cv_use_no_deps"
2973 if test "$no_cache" != 1; then
2974 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2975 fi
2976
2977 if test "$wxUSE_NO_DEPS" = yes; then
2978 echo "$ac_t""yes" 1>&6
2979 else
2980 echo "$ac_t""no" 1>&6
2981 fi
2982
2983
2984
2985 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2986 echo "configure:2987: checking for --enable-compat20" >&5
2987 no_cache=0
2988 # Check whether --enable-compat20 or --disable-compat20 was given.
2989 if test "${enable_compat20+set}" = set; then
2990 enableval="$enable_compat20"
2991
2992 if test "$enableval" = yes; then
2993 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2994 else
2995 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2996 fi
2997
2998 else
2999
3000 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3001 if test "x$LINE" != x ; then
3002 eval "DEFAULT_$LINE"
3003 else
3004 no_cache=1
3005 fi
3006
3007 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
3008
3009 fi
3010
3011
3012 eval "$ac_cv_use_compat20"
3013 if test "$no_cache" != 1; then
3014 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3015 fi
3016
3017 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3018 echo "$ac_t""yes" 1>&6
3019 else
3020 echo "$ac_t""no" 1>&6
3021 fi
3022
3023
3024 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
3025 echo "configure:3026: checking for --enable-compat22" >&5
3026 no_cache=0
3027 # Check whether --enable-compat22 or --disable-compat22 was given.
3028 if test "${enable_compat22+set}" = set; then
3029 enableval="$enable_compat22"
3030
3031 if test "$enableval" = yes; then
3032 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3033 else
3034 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3035 fi
3036
3037 else
3038
3039 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3040 if test "x$LINE" != x ; then
3041 eval "DEFAULT_$LINE"
3042 else
3043 no_cache=1
3044 fi
3045
3046 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3047
3048 fi
3049
3050
3051 eval "$ac_cv_use_compat22"
3052 if test "$no_cache" != 1; then
3053 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3054 fi
3055
3056 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3057 echo "$ac_t""yes" 1>&6
3058 else
3059 echo "$ac_t""no" 1>&6
3060 fi
3061
3062
3063
3064
3065 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3066 echo "configure:3067: checking for --enable-intl" >&5
3067 no_cache=0
3068 # Check whether --enable-intl or --disable-intl was given.
3069 if test "${enable_intl+set}" = set; then
3070 enableval="$enable_intl"
3071
3072 if test "$enableval" = yes; then
3073 ac_cv_use_intl='wxUSE_INTL=yes'
3074 else
3075 ac_cv_use_intl='wxUSE_INTL=no'
3076 fi
3077
3078 else
3079
3080 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3081 if test "x$LINE" != x ; then
3082 eval "DEFAULT_$LINE"
3083 else
3084 no_cache=1
3085 fi
3086
3087 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3088
3089 fi
3090
3091
3092 eval "$ac_cv_use_intl"
3093 if test "$no_cache" != 1; then
3094 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3095 fi
3096
3097 if test "$wxUSE_INTL" = yes; then
3098 echo "$ac_t""yes" 1>&6
3099 else
3100 echo "$ac_t""no" 1>&6
3101 fi
3102
3103
3104 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3105 echo "configure:3106: checking for --enable-config" >&5
3106 no_cache=0
3107 # Check whether --enable-config or --disable-config was given.
3108 if test "${enable_config+set}" = set; then
3109 enableval="$enable_config"
3110
3111 if test "$enableval" = yes; then
3112 ac_cv_use_config='wxUSE_CONFIG=yes'
3113 else
3114 ac_cv_use_config='wxUSE_CONFIG=no'
3115 fi
3116
3117 else
3118
3119 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3120 if test "x$LINE" != x ; then
3121 eval "DEFAULT_$LINE"
3122 else
3123 no_cache=1
3124 fi
3125
3126 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3127
3128 fi
3129
3130
3131 eval "$ac_cv_use_config"
3132 if test "$no_cache" != 1; then
3133 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3134 fi
3135
3136 if test "$wxUSE_CONFIG" = yes; then
3137 echo "$ac_t""yes" 1>&6
3138 else
3139 echo "$ac_t""no" 1>&6
3140 fi
3141
3142
3143
3144 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3145 echo "configure:3146: checking for --enable-protocols" >&5
3146 no_cache=0
3147 # Check whether --enable-protocols or --disable-protocols was given.
3148 if test "${enable_protocols+set}" = set; then
3149 enableval="$enable_protocols"
3150
3151 if test "$enableval" = yes; then
3152 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3153 else
3154 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3155 fi
3156
3157 else
3158
3159 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3160 if test "x$LINE" != x ; then
3161 eval "DEFAULT_$LINE"
3162 else
3163 no_cache=1
3164 fi
3165
3166 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3167
3168 fi
3169
3170
3171 eval "$ac_cv_use_protocols"
3172 if test "$no_cache" != 1; then
3173 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3174 fi
3175
3176 if test "$wxUSE_PROTOCOL" = yes; then
3177 echo "$ac_t""yes" 1>&6
3178 else
3179 echo "$ac_t""no" 1>&6
3180 fi
3181
3182
3183 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3184 echo "configure:3185: checking for --enable-ftp" >&5
3185 no_cache=0
3186 # Check whether --enable-ftp or --disable-ftp was given.
3187 if test "${enable_ftp+set}" = set; then
3188 enableval="$enable_ftp"
3189
3190 if test "$enableval" = yes; then
3191 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3192 else
3193 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3194 fi
3195
3196 else
3197
3198 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3199 if test "x$LINE" != x ; then
3200 eval "DEFAULT_$LINE"
3201 else
3202 no_cache=1
3203 fi
3204
3205 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3206
3207 fi
3208
3209
3210 eval "$ac_cv_use_ftp"
3211 if test "$no_cache" != 1; then
3212 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3213 fi
3214
3215 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3216 echo "$ac_t""yes" 1>&6
3217 else
3218 echo "$ac_t""no" 1>&6
3219 fi
3220
3221
3222 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3223 echo "configure:3224: checking for --enable-http" >&5
3224 no_cache=0
3225 # Check whether --enable-http or --disable-http was given.
3226 if test "${enable_http+set}" = set; then
3227 enableval="$enable_http"
3228
3229 if test "$enableval" = yes; then
3230 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3231 else
3232 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3233 fi
3234
3235 else
3236
3237 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3238 if test "x$LINE" != x ; then
3239 eval "DEFAULT_$LINE"
3240 else
3241 no_cache=1
3242 fi
3243
3244 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3245
3246 fi
3247
3248
3249 eval "$ac_cv_use_http"
3250 if test "$no_cache" != 1; then
3251 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3252 fi
3253
3254 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3255 echo "$ac_t""yes" 1>&6
3256 else
3257 echo "$ac_t""no" 1>&6
3258 fi
3259
3260
3261 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3262 echo "configure:3263: checking for --enable-fileproto" >&5
3263 no_cache=0
3264 # Check whether --enable-fileproto or --disable-fileproto was given.
3265 if test "${enable_fileproto+set}" = set; then
3266 enableval="$enable_fileproto"
3267
3268 if test "$enableval" = yes; then
3269 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3270 else
3271 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3272 fi
3273
3274 else
3275
3276 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3277 if test "x$LINE" != x ; then
3278 eval "DEFAULT_$LINE"
3279 else
3280 no_cache=1
3281 fi
3282
3283 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3284
3285 fi
3286
3287
3288 eval "$ac_cv_use_fileproto"
3289 if test "$no_cache" != 1; then
3290 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3291 fi
3292
3293 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3294 echo "$ac_t""yes" 1>&6
3295 else
3296 echo "$ac_t""no" 1>&6
3297 fi
3298
3299
3300 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3301 echo "configure:3302: checking for --enable-sockets" >&5
3302 no_cache=0
3303 # Check whether --enable-sockets or --disable-sockets was given.
3304 if test "${enable_sockets+set}" = set; then
3305 enableval="$enable_sockets"
3306
3307 if test "$enableval" = yes; then
3308 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3309 else
3310 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3311 fi
3312
3313 else
3314
3315 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3316 if test "x$LINE" != x ; then
3317 eval "DEFAULT_$LINE"
3318 else
3319 no_cache=1
3320 fi
3321
3322 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3323
3324 fi
3325
3326
3327 eval "$ac_cv_use_sockets"
3328 if test "$no_cache" != 1; then
3329 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3330 fi
3331
3332 if test "$wxUSE_SOCKETS" = yes; then
3333 echo "$ac_t""yes" 1>&6
3334 else
3335 echo "$ac_t""no" 1>&6
3336 fi
3337
3338
3339
3340 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3341 echo "configure:3342: checking for --enable-ipc" >&5
3342 no_cache=0
3343 # Check whether --enable-ipc or --disable-ipc was given.
3344 if test "${enable_ipc+set}" = set; then
3345 enableval="$enable_ipc"
3346
3347 if test "$enableval" = yes; then
3348 ac_cv_use_ipc='wxUSE_IPC=yes'
3349 else
3350 ac_cv_use_ipc='wxUSE_IPC=no'
3351 fi
3352
3353 else
3354
3355 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3356 if test "x$LINE" != x ; then
3357 eval "DEFAULT_$LINE"
3358 else
3359 no_cache=1
3360 fi
3361
3362 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3363
3364 fi
3365
3366
3367 eval "$ac_cv_use_ipc"
3368 if test "$no_cache" != 1; then
3369 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3370 fi
3371
3372 if test "$wxUSE_IPC" = yes; then
3373 echo "$ac_t""yes" 1>&6
3374 else
3375 echo "$ac_t""no" 1>&6
3376 fi
3377
3378
3379
3380 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3381 echo "configure:3382: checking for --enable-cmdline" >&5
3382 no_cache=0
3383 # Check whether --enable-cmdline or --disable-cmdline was given.
3384 if test "${enable_cmdline+set}" = set; then
3385 enableval="$enable_cmdline"
3386
3387 if test "$enableval" = yes; then
3388 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3389 else
3390 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3391 fi
3392
3393 else
3394
3395 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3396 if test "x$LINE" != x ; then
3397 eval "DEFAULT_$LINE"
3398 else
3399 no_cache=1
3400 fi
3401
3402 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3403
3404 fi
3405
3406
3407 eval "$ac_cv_use_cmdline"
3408 if test "$no_cache" != 1; then
3409 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3410 fi
3411
3412 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3413 echo "$ac_t""yes" 1>&6
3414 else
3415 echo "$ac_t""no" 1>&6
3416 fi
3417
3418
3419 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3420 echo "configure:3421: checking for --enable-datetime" >&5
3421 no_cache=0
3422 # Check whether --enable-datetime or --disable-datetime was given.
3423 if test "${enable_datetime+set}" = set; then
3424 enableval="$enable_datetime"
3425
3426 if test "$enableval" = yes; then
3427 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3428 else
3429 ac_cv_use_datetime='wxUSE_DATETIME=no'
3430 fi
3431
3432 else
3433
3434 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3435 if test "x$LINE" != x ; then
3436 eval "DEFAULT_$LINE"
3437 else
3438 no_cache=1
3439 fi
3440
3441 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3442
3443 fi
3444
3445
3446 eval "$ac_cv_use_datetime"
3447 if test "$no_cache" != 1; then
3448 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3449 fi
3450
3451 if test "$wxUSE_DATETIME" = yes; then
3452 echo "$ac_t""yes" 1>&6
3453 else
3454 echo "$ac_t""no" 1>&6
3455 fi
3456
3457
3458 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3459 echo "configure:3460: checking for --enable-timedate" >&5
3460 no_cache=0
3461 # Check whether --enable-timedate or --disable-timedate was given.
3462 if test "${enable_timedate+set}" = set; then
3463 enableval="$enable_timedate"
3464
3465 if test "$enableval" = yes; then
3466 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3467 else
3468 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3469 fi
3470
3471 else
3472
3473 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3474 if test "x$LINE" != x ; then
3475 eval "DEFAULT_$LINE"
3476 else
3477 no_cache=1
3478 fi
3479
3480 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3481
3482 fi
3483
3484
3485 eval "$ac_cv_use_timedate"
3486 if test "$no_cache" != 1; then
3487 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3488 fi
3489
3490 if test "$wxUSE_TIMEDATE" = yes; then
3491 echo "$ac_t""yes" 1>&6
3492 else
3493 echo "$ac_t""no" 1>&6
3494 fi
3495
3496
3497 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3498 echo "configure:3499: checking for --enable-stopwatch" >&5
3499 no_cache=0
3500 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3501 if test "${enable_stopwatch+set}" = set; then
3502 enableval="$enable_stopwatch"
3503
3504 if test "$enableval" = yes; then
3505 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3506 else
3507 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3508 fi
3509
3510 else
3511
3512 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3513 if test "x$LINE" != x ; then
3514 eval "DEFAULT_$LINE"
3515 else
3516 no_cache=1
3517 fi
3518
3519 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3520
3521 fi
3522
3523
3524 eval "$ac_cv_use_stopwatch"
3525 if test "$no_cache" != 1; then
3526 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3527 fi
3528
3529 if test "$wxUSE_STOPWATCH" = yes; then
3530 echo "$ac_t""yes" 1>&6
3531 else
3532 echo "$ac_t""no" 1>&6
3533 fi
3534
3535
3536 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3537 echo "configure:3538: checking for --enable-dialupman" >&5
3538 no_cache=0
3539 # Check whether --enable-dialupman or --disable-dialupman was given.
3540 if test "${enable_dialupman+set}" = set; then
3541 enableval="$enable_dialupman"
3542
3543 if test "$enableval" = yes; then
3544 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3545 else
3546 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3547 fi
3548
3549 else
3550
3551 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3552 if test "x$LINE" != x ; then
3553 eval "DEFAULT_$LINE"
3554 else
3555 no_cache=1
3556 fi
3557
3558 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3559
3560 fi
3561
3562
3563 eval "$ac_cv_use_dialupman"
3564 if test "$no_cache" != 1; then
3565 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3566 fi
3567
3568 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3569 echo "$ac_t""yes" 1>&6
3570 else
3571 echo "$ac_t""no" 1>&6
3572 fi
3573
3574
3575 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3576 echo "configure:3577: checking for --enable-apple_ieee" >&5
3577 no_cache=0
3578 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3579 if test "${enable_apple_ieee+set}" = set; then
3580 enableval="$enable_apple_ieee"
3581
3582 if test "$enableval" = yes; then
3583 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3584 else
3585 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3586 fi
3587
3588 else
3589
3590 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3591 if test "x$LINE" != x ; then
3592 eval "DEFAULT_$LINE"
3593 else
3594 no_cache=1
3595 fi
3596
3597 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3598
3599 fi
3600
3601
3602 eval "$ac_cv_use_apple_ieee"
3603 if test "$no_cache" != 1; then
3604 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3605 fi
3606
3607 if test "$wxUSE_APPLE_IEEE" = yes; then
3608 echo "$ac_t""yes" 1>&6
3609 else
3610 echo "$ac_t""no" 1>&6
3611 fi
3612
3613
3614 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3615 echo "configure:3616: checking for --enable-timer" >&5
3616 no_cache=0
3617 # Check whether --enable-timer or --disable-timer was given.
3618 if test "${enable_timer+set}" = set; then
3619 enableval="$enable_timer"
3620
3621 if test "$enableval" = yes; then
3622 ac_cv_use_timer='wxUSE_TIMER=yes'
3623 else
3624 ac_cv_use_timer='wxUSE_TIMER=no'
3625 fi
3626
3627 else
3628
3629 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3630 if test "x$LINE" != x ; then
3631 eval "DEFAULT_$LINE"
3632 else
3633 no_cache=1
3634 fi
3635
3636 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3637
3638 fi
3639
3640
3641 eval "$ac_cv_use_timer"
3642 if test "$no_cache" != 1; then
3643 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3644 fi
3645
3646 if test "$wxUSE_TIMER" = yes; then
3647 echo "$ac_t""yes" 1>&6
3648 else
3649 echo "$ac_t""no" 1>&6
3650 fi
3651
3652
3653 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3654 echo "configure:3655: checking for --enable-wave" >&5
3655 no_cache=0
3656 # Check whether --enable-wave or --disable-wave was given.
3657 if test "${enable_wave+set}" = set; then
3658 enableval="$enable_wave"
3659
3660 if test "$enableval" = yes; then
3661 ac_cv_use_wave='wxUSE_WAVE=yes'
3662 else
3663 ac_cv_use_wave='wxUSE_WAVE=no'
3664 fi
3665
3666 else
3667
3668 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3669 if test "x$LINE" != x ; then
3670 eval "DEFAULT_$LINE"
3671 else
3672 no_cache=1
3673 fi
3674
3675 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3676
3677 fi
3678
3679
3680 eval "$ac_cv_use_wave"
3681 if test "$no_cache" != 1; then
3682 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3683 fi
3684
3685 if test "$wxUSE_WAVE" = yes; then
3686 echo "$ac_t""yes" 1>&6
3687 else
3688 echo "$ac_t""no" 1>&6
3689 fi
3690
3691
3692 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3693 echo "configure:3694: checking for --enable-fraction" >&5
3694 no_cache=0
3695 # Check whether --enable-fraction or --disable-fraction was given.
3696 if test "${enable_fraction+set}" = set; then
3697 enableval="$enable_fraction"
3698
3699 if test "$enableval" = yes; then
3700 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3701 else
3702 ac_cv_use_fraction='wxUSE_FRACTION=no'
3703 fi
3704
3705 else
3706
3707 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3708 if test "x$LINE" != x ; then
3709 eval "DEFAULT_$LINE"
3710 else
3711 no_cache=1
3712 fi
3713
3714 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3715
3716 fi
3717
3718
3719 eval "$ac_cv_use_fraction"
3720 if test "$no_cache" != 1; then
3721 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3722 fi
3723
3724 if test "$wxUSE_FRACTION" = yes; then
3725 echo "$ac_t""yes" 1>&6
3726 else
3727 echo "$ac_t""no" 1>&6
3728 fi
3729
3730
3731 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3732 echo "configure:3733: checking for --enable-dynlib" >&5
3733 no_cache=0
3734 # Check whether --enable-dynlib or --disable-dynlib was given.
3735 if test "${enable_dynlib+set}" = set; then
3736 enableval="$enable_dynlib"
3737
3738 if test "$enableval" = yes; then
3739 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3740 else
3741 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3742 fi
3743
3744 else
3745
3746 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3747 if test "x$LINE" != x ; then
3748 eval "DEFAULT_$LINE"
3749 else
3750 no_cache=1
3751 fi
3752
3753 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3754
3755 fi
3756
3757
3758 eval "$ac_cv_use_dynlib"
3759 if test "$no_cache" != 1; then
3760 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3761 fi
3762
3763 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3764 echo "$ac_t""yes" 1>&6
3765 else
3766 echo "$ac_t""no" 1>&6
3767 fi
3768
3769
3770 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3771 echo "configure:3772: checking for --enable-dynamicloader" >&5
3772 no_cache=0
3773 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3774 if test "${enable_dynamicloader+set}" = set; then
3775 enableval="$enable_dynamicloader"
3776
3777 if test "$enableval" = yes; then
3778 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3779 else
3780 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3781 fi
3782
3783 else
3784
3785 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3786 if test "x$LINE" != x ; then
3787 eval "DEFAULT_$LINE"
3788 else
3789 no_cache=1
3790 fi
3791
3792 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3793
3794 fi
3795
3796
3797 eval "$ac_cv_use_dynamicloader"
3798 if test "$no_cache" != 1; then
3799 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3800 fi
3801
3802 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3803 echo "$ac_t""yes" 1>&6
3804 else
3805 echo "$ac_t""no" 1>&6
3806 fi
3807
3808
3809 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3810 echo "configure:3811: checking for --enable-longlong" >&5
3811 no_cache=0
3812 # Check whether --enable-longlong or --disable-longlong was given.
3813 if test "${enable_longlong+set}" = set; then
3814 enableval="$enable_longlong"
3815
3816 if test "$enableval" = yes; then
3817 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3818 else
3819 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3820 fi
3821
3822 else
3823
3824 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3825 if test "x$LINE" != x ; then
3826 eval "DEFAULT_$LINE"
3827 else
3828 no_cache=1
3829 fi
3830
3831 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3832
3833 fi
3834
3835
3836 eval "$ac_cv_use_longlong"
3837 if test "$no_cache" != 1; then
3838 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3839 fi
3840
3841 if test "$wxUSE_LONGLONG" = yes; then
3842 echo "$ac_t""yes" 1>&6
3843 else
3844 echo "$ac_t""no" 1>&6
3845 fi
3846
3847
3848 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3849 echo "configure:3850: checking for --enable-geometry" >&5
3850 no_cache=0
3851 # Check whether --enable-geometry or --disable-geometry was given.
3852 if test "${enable_geometry+set}" = set; then
3853 enableval="$enable_geometry"
3854
3855 if test "$enableval" = yes; then
3856 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3857 else
3858 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3859 fi
3860
3861 else
3862
3863 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3864 if test "x$LINE" != x ; then
3865 eval "DEFAULT_$LINE"
3866 else
3867 no_cache=1
3868 fi
3869
3870 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3871
3872 fi
3873
3874
3875 eval "$ac_cv_use_geometry"
3876 if test "$no_cache" != 1; then
3877 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3878 fi
3879
3880 if test "$wxUSE_GEOMETRY" = yes; then
3881 echo "$ac_t""yes" 1>&6
3882 else
3883 echo "$ac_t""no" 1>&6
3884 fi
3885
3886
3887 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3888 echo "configure:3889: checking for --enable-log" >&5
3889 no_cache=0
3890 # Check whether --enable-log or --disable-log was given.
3891 if test "${enable_log+set}" = set; then
3892 enableval="$enable_log"
3893
3894 if test "$enableval" = yes; then
3895 ac_cv_use_log='wxUSE_LOG=yes'
3896 else
3897 ac_cv_use_log='wxUSE_LOG=no'
3898 fi
3899
3900 else
3901
3902 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3903 if test "x$LINE" != x ; then
3904 eval "DEFAULT_$LINE"
3905 else
3906 no_cache=1
3907 fi
3908
3909 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3910
3911 fi
3912
3913
3914 eval "$ac_cv_use_log"
3915 if test "$no_cache" != 1; then
3916 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3917 fi
3918
3919 if test "$wxUSE_LOG" = yes; then
3920 echo "$ac_t""yes" 1>&6
3921 else
3922 echo "$ac_t""no" 1>&6
3923 fi
3924
3925
3926 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3927 echo "configure:3928: checking for --enable-streams" >&5
3928 no_cache=0
3929 # Check whether --enable-streams or --disable-streams was given.
3930 if test "${enable_streams+set}" = set; then
3931 enableval="$enable_streams"
3932
3933 if test "$enableval" = yes; then
3934 ac_cv_use_streams='wxUSE_STREAMS=yes'
3935 else
3936 ac_cv_use_streams='wxUSE_STREAMS=no'
3937 fi
3938
3939 else
3940
3941 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3942 if test "x$LINE" != x ; then
3943 eval "DEFAULT_$LINE"
3944 else
3945 no_cache=1
3946 fi
3947
3948 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3949
3950 fi
3951
3952
3953 eval "$ac_cv_use_streams"
3954 if test "$no_cache" != 1; then
3955 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3956 fi
3957
3958 if test "$wxUSE_STREAMS" = yes; then
3959 echo "$ac_t""yes" 1>&6
3960 else
3961 echo "$ac_t""no" 1>&6
3962 fi
3963
3964
3965 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3966 echo "configure:3967: checking for --enable-file" >&5
3967 no_cache=0
3968 # Check whether --enable-file or --disable-file was given.
3969 if test "${enable_file+set}" = set; then
3970 enableval="$enable_file"
3971
3972 if test "$enableval" = yes; then
3973 ac_cv_use_file='wxUSE_FILE=yes'
3974 else
3975 ac_cv_use_file='wxUSE_FILE=no'
3976 fi
3977
3978 else
3979
3980 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3981 if test "x$LINE" != x ; then
3982 eval "DEFAULT_$LINE"
3983 else
3984 no_cache=1
3985 fi
3986
3987 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3988
3989 fi
3990
3991
3992 eval "$ac_cv_use_file"
3993 if test "$no_cache" != 1; then
3994 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3995 fi
3996
3997 if test "$wxUSE_FILE" = yes; then
3998 echo "$ac_t""yes" 1>&6
3999 else
4000 echo "$ac_t""no" 1>&6
4001 fi
4002
4003
4004 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
4005 echo "configure:4006: checking for --enable-ffile" >&5
4006 no_cache=0
4007 # Check whether --enable-ffile or --disable-ffile was given.
4008 if test "${enable_ffile+set}" = set; then
4009 enableval="$enable_ffile"
4010
4011 if test "$enableval" = yes; then
4012 ac_cv_use_ffile='wxUSE_FFILE=yes'
4013 else
4014 ac_cv_use_ffile='wxUSE_FFILE=no'
4015 fi
4016
4017 else
4018
4019 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4020 if test "x$LINE" != x ; then
4021 eval "DEFAULT_$LINE"
4022 else
4023 no_cache=1
4024 fi
4025
4026 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4027
4028 fi
4029
4030
4031 eval "$ac_cv_use_ffile"
4032 if test "$no_cache" != 1; then
4033 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4034 fi
4035
4036 if test "$wxUSE_FFILE" = yes; then
4037 echo "$ac_t""yes" 1>&6
4038 else
4039 echo "$ac_t""no" 1>&6
4040 fi
4041
4042
4043 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
4044 echo "configure:4045: checking for --enable-textbuf" >&5
4045 no_cache=0
4046 # Check whether --enable-textbuf or --disable-textbuf was given.
4047 if test "${enable_textbuf+set}" = set; then
4048 enableval="$enable_textbuf"
4049
4050 if test "$enableval" = yes; then
4051 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4052 else
4053 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4054 fi
4055
4056 else
4057
4058 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4059 if test "x$LINE" != x ; then
4060 eval "DEFAULT_$LINE"
4061 else
4062 no_cache=1
4063 fi
4064
4065 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4066
4067 fi
4068
4069
4070 eval "$ac_cv_use_textbuf"
4071 if test "$no_cache" != 1; then
4072 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4073 fi
4074
4075 if test "$wxUSE_TEXTBUFFER" = yes; then
4076 echo "$ac_t""yes" 1>&6
4077 else
4078 echo "$ac_t""no" 1>&6
4079 fi
4080
4081
4082 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
4083 echo "configure:4084: checking for --enable-textfile" >&5
4084 no_cache=0
4085 # Check whether --enable-textfile or --disable-textfile was given.
4086 if test "${enable_textfile+set}" = set; then
4087 enableval="$enable_textfile"
4088
4089 if test "$enableval" = yes; then
4090 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4091 else
4092 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4093 fi
4094
4095 else
4096
4097 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4098 if test "x$LINE" != x ; then
4099 eval "DEFAULT_$LINE"
4100 else
4101 no_cache=1
4102 fi
4103
4104 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4105
4106 fi
4107
4108
4109 eval "$ac_cv_use_textfile"
4110 if test "$no_cache" != 1; then
4111 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4112 fi
4113
4114 if test "$wxUSE_TEXTFILE" = yes; then
4115 echo "$ac_t""yes" 1>&6
4116 else
4117 echo "$ac_t""no" 1>&6
4118 fi
4119
4120
4121 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
4122 echo "configure:4123: checking for --enable-fontmap" >&5
4123 no_cache=0
4124 # Check whether --enable-fontmap or --disable-fontmap was given.
4125 if test "${enable_fontmap+set}" = set; then
4126 enableval="$enable_fontmap"
4127
4128 if test "$enableval" = yes; then
4129 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4130 else
4131 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4132 fi
4133
4134 else
4135
4136 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4137 if test "x$LINE" != x ; then
4138 eval "DEFAULT_$LINE"
4139 else
4140 no_cache=1
4141 fi
4142
4143 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4144
4145 fi
4146
4147
4148 eval "$ac_cv_use_fontmap"
4149 if test "$no_cache" != 1; then
4150 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4151 fi
4152
4153 if test "$wxUSE_FONTMAP" = yes; then
4154 echo "$ac_t""yes" 1>&6
4155 else
4156 echo "$ac_t""no" 1>&6
4157 fi
4158
4159
4160 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
4161 echo "configure:4162: checking for --enable-unicode" >&5
4162 no_cache=0
4163 # Check whether --enable-unicode or --disable-unicode was given.
4164 if test "${enable_unicode+set}" = set; then
4165 enableval="$enable_unicode"
4166
4167 if test "$enableval" = yes; then
4168 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4169 else
4170 ac_cv_use_unicode='wxUSE_UNICODE=no'
4171 fi
4172
4173 else
4174
4175 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4176 if test "x$LINE" != x ; then
4177 eval "DEFAULT_$LINE"
4178 else
4179 no_cache=1
4180 fi
4181
4182 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4183
4184 fi
4185
4186
4187 eval "$ac_cv_use_unicode"
4188 if test "$no_cache" != 1; then
4189 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4190 fi
4191
4192 if test "$wxUSE_UNICODE" = yes; then
4193 echo "$ac_t""yes" 1>&6
4194 else
4195 echo "$ac_t""no" 1>&6
4196 fi
4197
4198
4199 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
4200 echo "configure:4201: checking for --enable-mslu" >&5
4201 no_cache=0
4202 # Check whether --enable-mslu or --disable-mslu was given.
4203 if test "${enable_mslu+set}" = set; then
4204 enableval="$enable_mslu"
4205
4206 if test "$enableval" = yes; then
4207 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4208 else
4209 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4210 fi
4211
4212 else
4213
4214 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4215 if test "x$LINE" != x ; then
4216 eval "DEFAULT_$LINE"
4217 else
4218 no_cache=1
4219 fi
4220
4221 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4222
4223 fi
4224
4225
4226 eval "$ac_cv_use_mslu"
4227 if test "$no_cache" != 1; then
4228 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4229 fi
4230
4231 if test "$wxUSE_UNICODE_MSLU" = yes; then
4232 echo "$ac_t""yes" 1>&6
4233 else
4234 echo "$ac_t""no" 1>&6
4235 fi
4236
4237
4238 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
4239 echo "configure:4240: checking for --enable-wxprintfv" >&5
4240 no_cache=0
4241 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4242 if test "${enable_wxprintfv+set}" = set; then
4243 enableval="$enable_wxprintfv"
4244
4245 if test "$enableval" = yes; then
4246 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4247 else
4248 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4249 fi
4250
4251 else
4252
4253 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4254 if test "x$LINE" != x ; then
4255 eval "DEFAULT_$LINE"
4256 else
4257 no_cache=1
4258 fi
4259
4260 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4261
4262 fi
4263
4264
4265 eval "$ac_cv_use_wxprintfv"
4266 if test "$no_cache" != 1; then
4267 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4268 fi
4269
4270 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4271 echo "$ac_t""yes" 1>&6
4272 else
4273 echo "$ac_t""no" 1>&6
4274 fi
4275
4276
4277 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4278 echo "configure:4279: checking for --enable-std_iostreams" >&5
4279 no_cache=0
4280 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4281 if test "${enable_std_iostreams+set}" = set; then
4282 enableval="$enable_std_iostreams"
4283
4284 if test "$enableval" = yes; then
4285 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4286 else
4287 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4288 fi
4289
4290 else
4291
4292 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4293 if test "x$LINE" != x ; then
4294 eval "DEFAULT_$LINE"
4295 else
4296 no_cache=1
4297 fi
4298
4299 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4300
4301 fi
4302
4303
4304 eval "$ac_cv_use_std_iostreams"
4305 if test "$no_cache" != 1; then
4306 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4307 fi
4308
4309 if test "$wxUSE_STD_IOSTREAM" = yes; then
4310 echo "$ac_t""yes" 1>&6
4311 else
4312 echo "$ac_t""no" 1>&6
4313 fi
4314
4315
4316 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4317 echo "configure:4318: checking for --enable-filesystem" >&5
4318 no_cache=0
4319 # Check whether --enable-filesystem or --disable-filesystem was given.
4320 if test "${enable_filesystem+set}" = set; then
4321 enableval="$enable_filesystem"
4322
4323 if test "$enableval" = yes; then
4324 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4325 else
4326 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4327 fi
4328
4329 else
4330
4331 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4332 if test "x$LINE" != x ; then
4333 eval "DEFAULT_$LINE"
4334 else
4335 no_cache=1
4336 fi
4337
4338 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4339
4340 fi
4341
4342
4343 eval "$ac_cv_use_filesystem"
4344 if test "$no_cache" != 1; then
4345 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4346 fi
4347
4348 if test "$wxUSE_FILESYSTEM" = yes; then
4349 echo "$ac_t""yes" 1>&6
4350 else
4351 echo "$ac_t""no" 1>&6
4352 fi
4353
4354
4355 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4356 echo "configure:4357: checking for --enable-fs_inet" >&5
4357 no_cache=0
4358 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4359 if test "${enable_fs_inet+set}" = set; then
4360 enableval="$enable_fs_inet"
4361
4362 if test "$enableval" = yes; then
4363 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4364 else
4365 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4366 fi
4367
4368 else
4369
4370 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4371 if test "x$LINE" != x ; then
4372 eval "DEFAULT_$LINE"
4373 else
4374 no_cache=1
4375 fi
4376
4377 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4378
4379 fi
4380
4381
4382 eval "$ac_cv_use_fs_inet"
4383 if test "$no_cache" != 1; then
4384 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4385 fi
4386
4387 if test "$wxUSE_FS_INET" = yes; then
4388 echo "$ac_t""yes" 1>&6
4389 else
4390 echo "$ac_t""no" 1>&6
4391 fi
4392
4393
4394 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4395 echo "configure:4396: checking for --enable-fs_zip" >&5
4396 no_cache=0
4397 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4398 if test "${enable_fs_zip+set}" = set; then
4399 enableval="$enable_fs_zip"
4400
4401 if test "$enableval" = yes; then
4402 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4403 else
4404 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4405 fi
4406
4407 else
4408
4409 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4410 if test "x$LINE" != x ; then
4411 eval "DEFAULT_$LINE"
4412 else
4413 no_cache=1
4414 fi
4415
4416 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4417
4418 fi
4419
4420
4421 eval "$ac_cv_use_fs_zip"
4422 if test "$no_cache" != 1; then
4423 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4424 fi
4425
4426 if test "$wxUSE_FS_ZIP" = yes; then
4427 echo "$ac_t""yes" 1>&6
4428 else
4429 echo "$ac_t""no" 1>&6
4430 fi
4431
4432
4433 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4434 echo "configure:4435: checking for --enable-zipstream" >&5
4435 no_cache=0
4436 # Check whether --enable-zipstream or --disable-zipstream was given.
4437 if test "${enable_zipstream+set}" = set; then
4438 enableval="$enable_zipstream"
4439
4440 if test "$enableval" = yes; then
4441 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4442 else
4443 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4444 fi
4445
4446 else
4447
4448 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4449 if test "x$LINE" != x ; then
4450 eval "DEFAULT_$LINE"
4451 else
4452 no_cache=1
4453 fi
4454
4455 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4456
4457 fi
4458
4459
4460 eval "$ac_cv_use_zipstream"
4461 if test "$no_cache" != 1; then
4462 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4463 fi
4464
4465 if test "$wxUSE_ZIPSTREAM" = yes; then
4466 echo "$ac_t""yes" 1>&6
4467 else
4468 echo "$ac_t""no" 1>&6
4469 fi
4470
4471
4472
4473 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4474 echo "configure:4475: checking for --enable-catch_segvs" >&5
4475 no_cache=0
4476 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4477 if test "${enable_catch_segvs+set}" = set; then
4478 enableval="$enable_catch_segvs"
4479
4480 if test "$enableval" = yes; then
4481 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4482 else
4483 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4484 fi
4485
4486 else
4487
4488 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4489 if test "x$LINE" != x ; then
4490 eval "DEFAULT_$LINE"
4491 else
4492 no_cache=1
4493 fi
4494
4495 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4496
4497 fi
4498
4499
4500 eval "$ac_cv_use_catch_segvs"
4501 if test "$no_cache" != 1; then
4502 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4503 fi
4504
4505 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4506 echo "$ac_t""yes" 1>&6
4507 else
4508 echo "$ac_t""no" 1>&6
4509 fi
4510
4511
4512 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4513 echo "configure:4514: checking for --enable-snglinst" >&5
4514 no_cache=0
4515 # Check whether --enable-snglinst or --disable-snglinst was given.
4516 if test "${enable_snglinst+set}" = set; then
4517 enableval="$enable_snglinst"
4518
4519 if test "$enableval" = yes; then
4520 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4521 else
4522 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4523 fi
4524
4525 else
4526
4527 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4528 if test "x$LINE" != x ; then
4529 eval "DEFAULT_$LINE"
4530 else
4531 no_cache=1
4532 fi
4533
4534 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4535
4536 fi
4537
4538
4539 eval "$ac_cv_use_snglinst"
4540 if test "$no_cache" != 1; then
4541 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4542 fi
4543
4544 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4545 echo "$ac_t""yes" 1>&6
4546 else
4547 echo "$ac_t""no" 1>&6
4548 fi
4549
4550
4551
4552 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4553 echo "configure:4554: checking for --enable-mimetype" >&5
4554 no_cache=0
4555 # Check whether --enable-mimetype or --disable-mimetype was given.
4556 if test "${enable_mimetype+set}" = set; then
4557 enableval="$enable_mimetype"
4558
4559 if test "$enableval" = yes; then
4560 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4561 else
4562 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4563 fi
4564
4565 else
4566
4567 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4568 if test "x$LINE" != x ; then
4569 eval "DEFAULT_$LINE"
4570 else
4571 no_cache=1
4572 fi
4573
4574 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4575
4576 fi
4577
4578
4579 eval "$ac_cv_use_mimetype"
4580 if test "$no_cache" != 1; then
4581 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4582 fi
4583
4584 if test "$wxUSE_MIMETYPE" = yes; then
4585 echo "$ac_t""yes" 1>&6
4586 else
4587 echo "$ac_t""no" 1>&6
4588 fi
4589
4590
4591 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4592 echo "configure:4593: checking for --enable-system_options" >&5
4593 no_cache=0
4594 # Check whether --enable-system_options or --disable-system_options was given.
4595 if test "${enable_system_options+set}" = set; then
4596 enableval="$enable_system_options"
4597
4598 if test "$enableval" = yes; then
4599 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4600 else
4601 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4602 fi
4603
4604 else
4605
4606 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4607 if test "x$LINE" != x ; then
4608 eval "DEFAULT_$LINE"
4609 else
4610 no_cache=1
4611 fi
4612
4613 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4614
4615 fi
4616
4617
4618 eval "$ac_cv_use_system_options"
4619 if test "$no_cache" != 1; then
4620 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4621 fi
4622
4623 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4624 echo "$ac_t""yes" 1>&6
4625 else
4626 echo "$ac_t""no" 1>&6
4627 fi
4628
4629
4630
4631 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
4632 echo "configure:4633: checking for --enable-url" >&5
4633 no_cache=0
4634 # Check whether --enable-url or --disable-url was given.
4635 if test "${enable_url+set}" = set; then
4636 enableval="$enable_url"
4637
4638 if test "$enableval" = yes; then
4639 ac_cv_use_url='wxUSE_URL=yes'
4640 else
4641 ac_cv_use_url='wxUSE_URL=no'
4642 fi
4643
4644 else
4645
4646 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4647 if test "x$LINE" != x ; then
4648 eval "DEFAULT_$LINE"
4649 else
4650 no_cache=1
4651 fi
4652
4653 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4654
4655 fi
4656
4657
4658 eval "$ac_cv_use_url"
4659 if test "$no_cache" != 1; then
4660 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4661 fi
4662
4663 if test "$wxUSE_URL" = yes; then
4664 echo "$ac_t""yes" 1>&6
4665 else
4666 echo "$ac_t""no" 1>&6
4667 fi
4668
4669
4670 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
4671 echo "configure:4672: checking for --enable-protocol" >&5
4672 no_cache=0
4673 # Check whether --enable-protocol or --disable-protocol was given.
4674 if test "${enable_protocol+set}" = set; then
4675 enableval="$enable_protocol"
4676
4677 if test "$enableval" = yes; then
4678 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4679 else
4680 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4681 fi
4682
4683 else
4684
4685 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4686 if test "x$LINE" != x ; then
4687 eval "DEFAULT_$LINE"
4688 else
4689 no_cache=1
4690 fi
4691
4692 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4693
4694 fi
4695
4696
4697 eval "$ac_cv_use_protocol"
4698 if test "$no_cache" != 1; then
4699 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4700 fi
4701
4702 if test "$wxUSE_PROTOCOL" = yes; then
4703 echo "$ac_t""yes" 1>&6
4704 else
4705 echo "$ac_t""no" 1>&6
4706 fi
4707
4708
4709 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
4710 echo "configure:4711: checking for --enable-protocol_http" >&5
4711 no_cache=0
4712 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4713 if test "${enable_protocol_http+set}" = set; then
4714 enableval="$enable_protocol_http"
4715
4716 if test "$enableval" = yes; then
4717 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4718 else
4719 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4720 fi
4721
4722 else
4723
4724 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4725 if test "x$LINE" != x ; then
4726 eval "DEFAULT_$LINE"
4727 else
4728 no_cache=1
4729 fi
4730
4731 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4732
4733 fi
4734
4735
4736 eval "$ac_cv_use_protocol_http"
4737 if test "$no_cache" != 1; then
4738 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4739 fi
4740
4741 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4742 echo "$ac_t""yes" 1>&6
4743 else
4744 echo "$ac_t""no" 1>&6
4745 fi
4746
4747
4748 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
4749 echo "configure:4750: checking for --enable-protocol_ftp" >&5
4750 no_cache=0
4751 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4752 if test "${enable_protocol_ftp+set}" = set; then
4753 enableval="$enable_protocol_ftp"
4754
4755 if test "$enableval" = yes; then
4756 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4757 else
4758 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4759 fi
4760
4761 else
4762
4763 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4764 if test "x$LINE" != x ; then
4765 eval "DEFAULT_$LINE"
4766 else
4767 no_cache=1
4768 fi
4769
4770 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4771
4772 fi
4773
4774
4775 eval "$ac_cv_use_protocol_ftp"
4776 if test "$no_cache" != 1; then
4777 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4778 fi
4779
4780 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4781 echo "$ac_t""yes" 1>&6
4782 else
4783 echo "$ac_t""no" 1>&6
4784 fi
4785
4786
4787 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
4788 echo "configure:4789: checking for --enable-protocol_file" >&5
4789 no_cache=0
4790 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4791 if test "${enable_protocol_file+set}" = set; then
4792 enableval="$enable_protocol_file"
4793
4794 if test "$enableval" = yes; then
4795 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4796 else
4797 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4798 fi
4799
4800 else
4801
4802 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4803 if test "x$LINE" != x ; then
4804 eval "DEFAULT_$LINE"
4805 else
4806 no_cache=1
4807 fi
4808
4809 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4810
4811 fi
4812
4813
4814 eval "$ac_cv_use_protocol_file"
4815 if test "$no_cache" != 1; then
4816 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4817 fi
4818
4819 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4820 echo "$ac_t""yes" 1>&6
4821 else
4822 echo "$ac_t""no" 1>&6
4823 fi
4824
4825
4826
4827
4828
4829 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4830 echo "configure:4831: checking for --enable-threads" >&5
4831 no_cache=0
4832 # Check whether --enable-threads or --disable-threads was given.
4833 if test "${enable_threads+set}" = set; then
4834 enableval="$enable_threads"
4835
4836 if test "$enableval" = yes; then
4837 ac_cv_use_threads='wxUSE_THREADS=yes'
4838 else
4839 ac_cv_use_threads='wxUSE_THREADS=no'
4840 fi
4841
4842 else
4843
4844 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4845 if test "x$LINE" != x ; then
4846 eval "DEFAULT_$LINE"
4847 else
4848 no_cache=1
4849 fi
4850
4851 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4852
4853 fi
4854
4855
4856 eval "$ac_cv_use_threads"
4857 if test "$no_cache" != 1; then
4858 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4859 fi
4860
4861 if test "$wxUSE_THREADS" = yes; then
4862 echo "$ac_t""yes" 1>&6
4863 else
4864 echo "$ac_t""no" 1>&6
4865 fi
4866
4867
4868 if test "$wxUSE_GUI" = "yes"; then
4869
4870
4871
4872 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4873 echo "configure:4874: checking for --enable-docview" >&5
4874 no_cache=0
4875 # Check whether --enable-docview or --disable-docview was given.
4876 if test "${enable_docview+set}" = set; then
4877 enableval="$enable_docview"
4878
4879 if test "$enableval" = yes; then
4880 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4881 else
4882 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4883 fi
4884
4885 else
4886
4887 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4888 if test "x$LINE" != x ; then
4889 eval "DEFAULT_$LINE"
4890 else
4891 no_cache=1
4892 fi
4893
4894 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4895
4896 fi
4897
4898
4899 eval "$ac_cv_use_docview"
4900 if test "$no_cache" != 1; then
4901 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4902 fi
4903
4904 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4905 echo "$ac_t""yes" 1>&6
4906 else
4907 echo "$ac_t""no" 1>&6
4908 fi
4909
4910
4911 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4912 echo "configure:4913: checking for --enable-help" >&5
4913 no_cache=0
4914 # Check whether --enable-help or --disable-help was given.
4915 if test "${enable_help+set}" = set; then
4916 enableval="$enable_help"
4917
4918 if test "$enableval" = yes; then
4919 ac_cv_use_help='wxUSE_HELP=yes'
4920 else
4921 ac_cv_use_help='wxUSE_HELP=no'
4922 fi
4923
4924 else
4925
4926 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4927 if test "x$LINE" != x ; then
4928 eval "DEFAULT_$LINE"
4929 else
4930 no_cache=1
4931 fi
4932
4933 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4934
4935 fi
4936
4937
4938 eval "$ac_cv_use_help"
4939 if test "$no_cache" != 1; then
4940 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4941 fi
4942
4943 if test "$wxUSE_HELP" = yes; then
4944 echo "$ac_t""yes" 1>&6
4945 else
4946 echo "$ac_t""no" 1>&6
4947 fi
4948
4949
4950 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4951 echo "configure:4952: checking for --enable-mshtmlhelp" >&5
4952 no_cache=0
4953 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4954 if test "${enable_mshtmlhelp+set}" = set; then
4955 enableval="$enable_mshtmlhelp"
4956
4957 if test "$enableval" = yes; then
4958 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4959 else
4960 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4961 fi
4962
4963 else
4964
4965 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4966 if test "x$LINE" != x ; then
4967 eval "DEFAULT_$LINE"
4968 else
4969 no_cache=1
4970 fi
4971
4972 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4973
4974 fi
4975
4976
4977 eval "$ac_cv_use_mshtmlhelp"
4978 if test "$no_cache" != 1; then
4979 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4980 fi
4981
4982 if test "$wxUSE_MS_HTML_HELP" = yes; then
4983 echo "$ac_t""yes" 1>&6
4984 else
4985 echo "$ac_t""no" 1>&6
4986 fi
4987
4988
4989 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4990 echo "configure:4991: checking for --enable-html" >&5
4991 no_cache=0
4992 # Check whether --enable-html or --disable-html was given.
4993 if test "${enable_html+set}" = set; then
4994 enableval="$enable_html"
4995
4996 if test "$enableval" = yes; then
4997 ac_cv_use_html='wxUSE_HTML=yes'
4998 else
4999 ac_cv_use_html='wxUSE_HTML=no'
5000 fi
5001
5002 else
5003
5004 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5005 if test "x$LINE" != x ; then
5006 eval "DEFAULT_$LINE"
5007 else
5008 no_cache=1
5009 fi
5010
5011 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5012
5013 fi
5014
5015
5016 eval "$ac_cv_use_html"
5017 if test "$no_cache" != 1; then
5018 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5019 fi
5020
5021 if test "$wxUSE_HTML" = yes; then
5022 echo "$ac_t""yes" 1>&6
5023 else
5024 echo "$ac_t""no" 1>&6
5025 fi
5026
5027
5028 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
5029 echo "configure:5030: checking for --enable-htmlhelp" >&5
5030 no_cache=0
5031 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5032 if test "${enable_htmlhelp+set}" = set; then
5033 enableval="$enable_htmlhelp"
5034
5035 if test "$enableval" = yes; then
5036 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5037 else
5038 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5039 fi
5040
5041 else
5042
5043 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5044 if test "x$LINE" != x ; then
5045 eval "DEFAULT_$LINE"
5046 else
5047 no_cache=1
5048 fi
5049
5050 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5051
5052 fi
5053
5054
5055 eval "$ac_cv_use_htmlhelp"
5056 if test "$no_cache" != 1; then
5057 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5058 fi
5059
5060 if test "$wxUSE_WXHTML_HELP" = yes; then
5061 echo "$ac_t""yes" 1>&6
5062 else
5063 echo "$ac_t""no" 1>&6
5064 fi
5065
5066
5067 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
5068 echo "configure:5069: checking for --enable-constraints" >&5
5069 no_cache=0
5070 # Check whether --enable-constraints or --disable-constraints was given.
5071 if test "${enable_constraints+set}" = set; then
5072 enableval="$enable_constraints"
5073
5074 if test "$enableval" = yes; then
5075 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5076 else
5077 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5078 fi
5079
5080 else
5081
5082 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5083 if test "x$LINE" != x ; then
5084 eval "DEFAULT_$LINE"
5085 else
5086 no_cache=1
5087 fi
5088
5089 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5090
5091 fi
5092
5093
5094 eval "$ac_cv_use_constraints"
5095 if test "$no_cache" != 1; then
5096 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5097 fi
5098
5099 if test "$wxUSE_CONSTRAINTS" = yes; then
5100 echo "$ac_t""yes" 1>&6
5101 else
5102 echo "$ac_t""no" 1>&6
5103 fi
5104
5105
5106 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
5107 echo "configure:5108: checking for --enable-printarch" >&5
5108 no_cache=0
5109 # Check whether --enable-printarch or --disable-printarch was given.
5110 if test "${enable_printarch+set}" = set; then
5111 enableval="$enable_printarch"
5112
5113 if test "$enableval" = yes; then
5114 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5115 else
5116 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5117 fi
5118
5119 else
5120
5121 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5122 if test "x$LINE" != x ; then
5123 eval "DEFAULT_$LINE"
5124 else
5125 no_cache=1
5126 fi
5127
5128 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5129
5130 fi
5131
5132
5133 eval "$ac_cv_use_printarch"
5134 if test "$no_cache" != 1; then
5135 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5136 fi
5137
5138 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5139 echo "$ac_t""yes" 1>&6
5140 else
5141 echo "$ac_t""no" 1>&6
5142 fi
5143
5144
5145 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
5146 echo "configure:5147: checking for --enable-mdi" >&5
5147 no_cache=0
5148 # Check whether --enable-mdi or --disable-mdi was given.
5149 if test "${enable_mdi+set}" = set; then
5150 enableval="$enable_mdi"
5151
5152 if test "$enableval" = yes; then
5153 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5154 else
5155 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5156 fi
5157
5158 else
5159
5160 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5161 if test "x$LINE" != x ; then
5162 eval "DEFAULT_$LINE"
5163 else
5164 no_cache=1
5165 fi
5166
5167 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5168
5169 fi
5170
5171
5172 eval "$ac_cv_use_mdi"
5173 if test "$no_cache" != 1; then
5174 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5175 fi
5176
5177 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5178 echo "$ac_t""yes" 1>&6
5179 else
5180 echo "$ac_t""no" 1>&6
5181 fi
5182
5183
5184 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
5185 echo "configure:5186: checking for --enable-loggui" >&5
5186 no_cache=0
5187 # Check whether --enable-loggui or --disable-loggui was given.
5188 if test "${enable_loggui+set}" = set; then
5189 enableval="$enable_loggui"
5190
5191 if test "$enableval" = yes; then
5192 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5193 else
5194 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5195 fi
5196
5197 else
5198
5199 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5200 if test "x$LINE" != x ; then
5201 eval "DEFAULT_$LINE"
5202 else
5203 no_cache=1
5204 fi
5205
5206 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5207
5208 fi
5209
5210
5211 eval "$ac_cv_use_loggui"
5212 if test "$no_cache" != 1; then
5213 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5214 fi
5215
5216 if test "$wxUSE_LOGGUI" = yes; then
5217 echo "$ac_t""yes" 1>&6
5218 else
5219 echo "$ac_t""no" 1>&6
5220 fi
5221
5222
5223 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
5224 echo "configure:5225: checking for --enable-logwin" >&5
5225 no_cache=0
5226 # Check whether --enable-logwin or --disable-logwin was given.
5227 if test "${enable_logwin+set}" = set; then
5228 enableval="$enable_logwin"
5229
5230 if test "$enableval" = yes; then
5231 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5232 else
5233 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5234 fi
5235
5236 else
5237
5238 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5239 if test "x$LINE" != x ; then
5240 eval "DEFAULT_$LINE"
5241 else
5242 no_cache=1
5243 fi
5244
5245 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5246
5247 fi
5248
5249
5250 eval "$ac_cv_use_logwin"
5251 if test "$no_cache" != 1; then
5252 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5253 fi
5254
5255 if test "$wxUSE_LOGWINDOW" = yes; then
5256 echo "$ac_t""yes" 1>&6
5257 else
5258 echo "$ac_t""no" 1>&6
5259 fi
5260
5261
5262 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
5263 echo "configure:5264: checking for --enable-logdialog" >&5
5264 no_cache=0
5265 # Check whether --enable-logdialog or --disable-logdialog was given.
5266 if test "${enable_logdialog+set}" = set; then
5267 enableval="$enable_logdialog"
5268
5269 if test "$enableval" = yes; then
5270 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5271 else
5272 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5273 fi
5274
5275 else
5276
5277 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5278 if test "x$LINE" != x ; then
5279 eval "DEFAULT_$LINE"
5280 else
5281 no_cache=1
5282 fi
5283
5284 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5285
5286 fi
5287
5288
5289 eval "$ac_cv_use_logdialog"
5290 if test "$no_cache" != 1; then
5291 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5292 fi
5293
5294 if test "$wxUSE_LOGDIALOG" = yes; then
5295 echo "$ac_t""yes" 1>&6
5296 else
5297 echo "$ac_t""no" 1>&6
5298 fi
5299
5300
5301
5302 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
5303 echo "configure:5304: checking for --enable-postscript" >&5
5304 no_cache=0
5305 # Check whether --enable-postscript or --disable-postscript was given.
5306 if test "${enable_postscript+set}" = set; then
5307 enableval="$enable_postscript"
5308
5309 if test "$enableval" = yes; then
5310 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5311 else
5312 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5313 fi
5314
5315 else
5316
5317 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5318 if test "x$LINE" != x ; then
5319 eval "DEFAULT_$LINE"
5320 else
5321 no_cache=1
5322 fi
5323
5324 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5325
5326 fi
5327
5328
5329 eval "$ac_cv_use_postscript"
5330 if test "$no_cache" != 1; then
5331 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5332 fi
5333
5334 if test "$wxUSE_POSTSCRIPT" = yes; then
5335 echo "$ac_t""yes" 1>&6
5336 else
5337 echo "$ac_t""no" 1>&6
5338 fi
5339
5340
5341
5342
5343
5344 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
5345 echo "configure:5346: checking for --enable-prologio" >&5
5346 no_cache=0
5347 # Check whether --enable-prologio or --disable-prologio was given.
5348 if test "${enable_prologio+set}" = set; then
5349 enableval="$enable_prologio"
5350
5351 if test "$enableval" = yes; then
5352 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5353 else
5354 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5355 fi
5356
5357 else
5358
5359 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5360 if test "x$LINE" != x ; then
5361 eval "DEFAULT_$LINE"
5362 else
5363 no_cache=1
5364 fi
5365
5366 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5367
5368 fi
5369
5370
5371 eval "$ac_cv_use_prologio"
5372 if test "$no_cache" != 1; then
5373 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5374 fi
5375
5376 if test "$wxUSE_PROLOGIO" = yes; then
5377 echo "$ac_t""yes" 1>&6
5378 else
5379 echo "$ac_t""no" 1>&6
5380 fi
5381
5382
5383 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
5384 echo "configure:5385: checking for --enable-resources" >&5
5385 no_cache=0
5386 # Check whether --enable-resources or --disable-resources was given.
5387 if test "${enable_resources+set}" = set; then
5388 enableval="$enable_resources"
5389
5390 if test "$enableval" = yes; then
5391 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5392 else
5393 ac_cv_use_resources='wxUSE_RESOURCES=no'
5394 fi
5395
5396 else
5397
5398 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5399 if test "x$LINE" != x ; then
5400 eval "DEFAULT_$LINE"
5401 else
5402 no_cache=1
5403 fi
5404
5405 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5406
5407 fi
5408
5409
5410 eval "$ac_cv_use_resources"
5411 if test "$no_cache" != 1; then
5412 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5413 fi
5414
5415 if test "$wxUSE_RESOURCES" = yes; then
5416 echo "$ac_t""yes" 1>&6
5417 else
5418 echo "$ac_t""no" 1>&6
5419 fi
5420
5421
5422
5423 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
5424 echo "configure:5425: checking for --enable-xresources" >&5
5425 no_cache=0
5426 # Check whether --enable-xresources or --disable-xresources was given.
5427 if test "${enable_xresources+set}" = set; then
5428 enableval="$enable_xresources"
5429
5430 if test "$enableval" = yes; then
5431 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5432 else
5433 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5434 fi
5435
5436 else
5437
5438 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5439 if test "x$LINE" != x ; then
5440 eval "DEFAULT_$LINE"
5441 else
5442 no_cache=1
5443 fi
5444
5445 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5446
5447 fi
5448
5449
5450 eval "$ac_cv_use_xresources"
5451 if test "$no_cache" != 1; then
5452 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5453 fi
5454
5455 if test "$wxUSE_X_RESOURCES" = yes; then
5456 echo "$ac_t""yes" 1>&6
5457 else
5458 echo "$ac_t""no" 1>&6
5459 fi
5460
5461
5462
5463
5464 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
5465 echo "configure:5466: checking for --enable-clipboard" >&5
5466 no_cache=0
5467 # Check whether --enable-clipboard or --disable-clipboard was given.
5468 if test "${enable_clipboard+set}" = set; then
5469 enableval="$enable_clipboard"
5470
5471 if test "$enableval" = yes; then
5472 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5473 else
5474 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5475 fi
5476
5477 else
5478
5479 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5480 if test "x$LINE" != x ; then
5481 eval "DEFAULT_$LINE"
5482 else
5483 no_cache=1
5484 fi
5485
5486 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5487
5488 fi
5489
5490
5491 eval "$ac_cv_use_clipboard"
5492 if test "$no_cache" != 1; then
5493 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5494 fi
5495
5496 if test "$wxUSE_CLIPBOARD" = yes; then
5497 echo "$ac_t""yes" 1>&6
5498 else
5499 echo "$ac_t""no" 1>&6
5500 fi
5501
5502
5503 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5504 echo "configure:5505: checking for --enable-dnd" >&5
5505 no_cache=0
5506 # Check whether --enable-dnd or --disable-dnd was given.
5507 if test "${enable_dnd+set}" = set; then
5508 enableval="$enable_dnd"
5509
5510 if test "$enableval" = yes; then
5511 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5512 else
5513 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5514 fi
5515
5516 else
5517
5518 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5519 if test "x$LINE" != x ; then
5520 eval "DEFAULT_$LINE"
5521 else
5522 no_cache=1
5523 fi
5524
5525 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5526
5527 fi
5528
5529
5530 eval "$ac_cv_use_dnd"
5531 if test "$no_cache" != 1; then
5532 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5533 fi
5534
5535 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5536 echo "$ac_t""yes" 1>&6
5537 else
5538 echo "$ac_t""no" 1>&6
5539 fi
5540
5541
5542 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5543 echo "configure:5544: checking for --enable-metafile" >&5
5544 no_cache=0
5545 # Check whether --enable-metafile or --disable-metafile was given.
5546 if test "${enable_metafile+set}" = set; then
5547 enableval="$enable_metafile"
5548
5549 if test "$enableval" = yes; then
5550 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5551 else
5552 ac_cv_use_metafile='wxUSE_METAFILE=no'
5553 fi
5554
5555 else
5556
5557 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5558 if test "x$LINE" != x ; then
5559 eval "DEFAULT_$LINE"
5560 else
5561 no_cache=1
5562 fi
5563
5564 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5565
5566 fi
5567
5568
5569 eval "$ac_cv_use_metafile"
5570 if test "$no_cache" != 1; then
5571 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5572 fi
5573
5574 if test "$wxUSE_METAFILE" = yes; then
5575 echo "$ac_t""yes" 1>&6
5576 else
5577 echo "$ac_t""no" 1>&6
5578 fi
5579
5580
5581
5582 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5583 echo "configure:5584: checking for --enable-treelayout" >&5
5584 no_cache=0
5585 # Check whether --enable-treelayout or --disable-treelayout was given.
5586 if test "${enable_treelayout+set}" = set; then
5587 enableval="$enable_treelayout"
5588
5589 if test "$enableval" = yes; then
5590 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5591 else
5592 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5593 fi
5594
5595 else
5596
5597 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5598 if test "x$LINE" != x ; then
5599 eval "DEFAULT_$LINE"
5600 else
5601 no_cache=1
5602 fi
5603
5604 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5605
5606 fi
5607
5608
5609 eval "$ac_cv_use_treelayout"
5610 if test "$no_cache" != 1; then
5611 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5612 fi
5613
5614 if test "$wxUSE_TREELAYOUT" = yes; then
5615 echo "$ac_t""yes" 1>&6
5616 else
5617 echo "$ac_t""no" 1>&6
5618 fi
5619
5620
5621
5622
5623 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5624 echo "configure:5625: checking for --enable-controls" >&5
5625 no_cache=0
5626 # Check whether --enable-controls or --disable-controls was given.
5627 if test "${enable_controls+set}" = set; then
5628 enableval="$enable_controls"
5629
5630 if test "$enableval" = yes; then
5631 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5632 else
5633 ac_cv_use_controls='wxUSE_CONTROLS=no'
5634 fi
5635
5636 else
5637
5638 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5639 if test "x$LINE" != x ; then
5640 eval "DEFAULT_$LINE"
5641 else
5642 no_cache=1
5643 fi
5644
5645 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5646
5647 fi
5648
5649
5650 eval "$ac_cv_use_controls"
5651 if test "$no_cache" != 1; then
5652 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5653 fi
5654
5655 if test "$wxUSE_CONTROLS" = yes; then
5656 echo "$ac_t""yes" 1>&6
5657 else
5658 echo "$ac_t""no" 1>&6
5659 fi
5660
5661
5662 if test "$wxUSE_CONTROLS" = "yes"; then
5663 DEFAULT_wxUSE_ACCEL=yes
5664 DEFAULT_wxUSE_BMPBUTTON=yes
5665 DEFAULT_wxUSE_BUTTON=yes
5666 DEFAULT_wxUSE_CALCTRL=no
5667 DEFAULT_wxUSE_CARET=yes
5668 DEFAULT_wxUSE_COMBOBOX=yes
5669 DEFAULT_wxUSE_CHECKBOX=yes
5670 DEFAULT_wxUSE_CHECKLISTBOX=yes
5671 DEFAULT_wxUSE_CHOICE=yes
5672 DEFAULT_wxUSE_GAUGE=yes
5673 DEFAULT_wxUSE_GRID=yes
5674 DEFAULT_wxUSE_NEW_GRID=yes
5675 DEFAULT_wxUSE_IMAGLIST=yes
5676 DEFAULT_wxUSE_LISTBOX=yes
5677 DEFAULT_wxUSE_LISTCTRL=yes
5678 DEFAULT_wxUSE_NOTEBOOK=yes
5679 DEFAULT_wxUSE_PROPSHEET=yes
5680 DEFAULT_wxUSE_RADIOBOX=yes
5681 DEFAULT_wxUSE_RADIOBTN=yes
5682 DEFAULT_wxUSE_SASH=yes
5683 DEFAULT_wxUSE_SCROLLBAR=yes
5684 DEFAULT_wxUSE_SLIDER=yes
5685 DEFAULT_wxUSE_SPINBTN=yes
5686 DEFAULT_wxUSE_SPINCTRL=yes
5687 DEFAULT_wxUSE_SPLITTER=yes
5688 DEFAULT_wxUSE_STATBMP=yes
5689 DEFAULT_wxUSE_STATBOX=yes
5690 DEFAULT_wxUSE_STATLINE=yes
5691 DEFAULT_wxUSE_STATUSBAR=yes
5692 DEFAULT_wxUSE_TAB_DIALOG=yes
5693 DEFAULT_wxUSE_TOGGLEBTN=yes
5694 DEFAULT_wxUSE_TOOLBAR=yes
5695 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5696 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5697 DEFAULT_wxUSE_TOOLTIPS=yes
5698 DEFAULT_wxUSE_TREECTRL=yes
5699 DEFAULT_wxUSE_POPUPWIN=yes
5700 DEFAULT_wxUSE_TIPWINDOW=yes
5701 elif test "$wxUSE_CONTROLS" = "no"; then
5702 DEFAULT_wxUSE_ACCEL=no
5703 DEFAULT_wxUSE_BMPBUTTON=no
5704 DEFAULT_wxUSE_BUTTON=no
5705 DEFAULT_wxUSE_CALCTRL=no
5706 DEFAULT_wxUSE_CARET=no
5707 DEFAULT_wxUSE_COMBOBOX=no
5708 DEFAULT_wxUSE_CHECKBOX=no
5709 DEFAULT_wxUSE_CHECKLISTBOX=no
5710 DEFAULT_wxUSE_CHOICE=no
5711 DEFAULT_wxUSE_GAUGE=no
5712 DEFAULT_wxUSE_GRID=no
5713 DEFAULT_wxUSE_NEW_GRID=no
5714 DEFAULT_wxUSE_IMAGLIST=no
5715 DEFAULT_wxUSE_LISTBOX=no
5716 DEFAULT_wxUSE_LISTCTRL=no
5717 DEFAULT_wxUSE_NOTEBOOK=no
5718 DEFAULT_wxUSE_PROPSHEET=no
5719 DEFAULT_wxUSE_RADIOBOX=no
5720 DEFAULT_wxUSE_RADIOBTN=no
5721 DEFAULT_wxUSE_SASH=no
5722 DEFAULT_wxUSE_SCROLLBAR=no
5723 DEFAULT_wxUSE_SLIDER=no
5724 DEFAULT_wxUSE_SPINBTN=no
5725 DEFAULT_wxUSE_SPINCTRL=no
5726 DEFAULT_wxUSE_SPLITTER=no
5727 DEFAULT_wxUSE_STATBMP=no
5728 DEFAULT_wxUSE_STATBOX=no
5729 DEFAULT_wxUSE_STATLINE=no
5730 DEFAULT_wxUSE_STATUSBAR=no
5731 DEFAULT_wxUSE_TAB_DIALOG=no
5732 DEFAULT_wxUSE_TOGGLEBTN=no
5733 DEFAULT_wxUSE_TOOLBAR=no
5734 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5735 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5736 DEFAULT_wxUSE_TOOLTIPS=no
5737 DEFAULT_wxUSE_TREECTRL=no
5738 DEFAULT_wxUSE_POPUPWIN=no
5739 DEFAULT_wxUSE_TIPWINDOW=no
5740 fi
5741
5742
5743 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5744 echo "configure:5745: checking for --enable-accel" >&5
5745 no_cache=0
5746 # Check whether --enable-accel or --disable-accel was given.
5747 if test "${enable_accel+set}" = set; then
5748 enableval="$enable_accel"
5749
5750 if test "$enableval" = yes; then
5751 ac_cv_use_accel='wxUSE_ACCEL=yes'
5752 else
5753 ac_cv_use_accel='wxUSE_ACCEL=no'
5754 fi
5755
5756 else
5757
5758 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5759 if test "x$LINE" != x ; then
5760 eval "DEFAULT_$LINE"
5761 else
5762 no_cache=1
5763 fi
5764
5765 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5766
5767 fi
5768
5769
5770 eval "$ac_cv_use_accel"
5771 if test "$no_cache" != 1; then
5772 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5773 fi
5774
5775 if test "$wxUSE_ACCEL" = yes; then
5776 echo "$ac_t""yes" 1>&6
5777 else
5778 echo "$ac_t""no" 1>&6
5779 fi
5780
5781
5782 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5783 echo "configure:5784: checking for --enable-button" >&5
5784 no_cache=0
5785 # Check whether --enable-button or --disable-button was given.
5786 if test "${enable_button+set}" = set; then
5787 enableval="$enable_button"
5788
5789 if test "$enableval" = yes; then
5790 ac_cv_use_button='wxUSE_BUTTON=yes'
5791 else
5792 ac_cv_use_button='wxUSE_BUTTON=no'
5793 fi
5794
5795 else
5796
5797 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5798 if test "x$LINE" != x ; then
5799 eval "DEFAULT_$LINE"
5800 else
5801 no_cache=1
5802 fi
5803
5804 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5805
5806 fi
5807
5808
5809 eval "$ac_cv_use_button"
5810 if test "$no_cache" != 1; then
5811 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5812 fi
5813
5814 if test "$wxUSE_BUTTON" = yes; then
5815 echo "$ac_t""yes" 1>&6
5816 else
5817 echo "$ac_t""no" 1>&6
5818 fi
5819
5820
5821 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5822 echo "configure:5823: checking for --enable-bmpbutton" >&5
5823 no_cache=0
5824 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5825 if test "${enable_bmpbutton+set}" = set; then
5826 enableval="$enable_bmpbutton"
5827
5828 if test "$enableval" = yes; then
5829 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5830 else
5831 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5832 fi
5833
5834 else
5835
5836 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5837 if test "x$LINE" != x ; then
5838 eval "DEFAULT_$LINE"
5839 else
5840 no_cache=1
5841 fi
5842
5843 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5844
5845 fi
5846
5847
5848 eval "$ac_cv_use_bmpbutton"
5849 if test "$no_cache" != 1; then
5850 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5851 fi
5852
5853 if test "$wxUSE_BMPBUTTON" = yes; then
5854 echo "$ac_t""yes" 1>&6
5855 else
5856 echo "$ac_t""no" 1>&6
5857 fi
5858
5859
5860 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5861 echo "configure:5862: checking for --enable-calendar" >&5
5862 no_cache=0
5863 # Check whether --enable-calendar or --disable-calendar was given.
5864 if test "${enable_calendar+set}" = set; then
5865 enableval="$enable_calendar"
5866
5867 if test "$enableval" = yes; then
5868 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5869 else
5870 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5871 fi
5872
5873 else
5874
5875 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5876 if test "x$LINE" != x ; then
5877 eval "DEFAULT_$LINE"
5878 else
5879 no_cache=1
5880 fi
5881
5882 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5883
5884 fi
5885
5886
5887 eval "$ac_cv_use_calendar"
5888 if test "$no_cache" != 1; then
5889 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5890 fi
5891
5892 if test "$wxUSE_CALCTRL" = yes; then
5893 echo "$ac_t""yes" 1>&6
5894 else
5895 echo "$ac_t""no" 1>&6
5896 fi
5897
5898
5899 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5900 echo "configure:5901: checking for --enable-caret" >&5
5901 no_cache=0
5902 # Check whether --enable-caret or --disable-caret was given.
5903 if test "${enable_caret+set}" = set; then
5904 enableval="$enable_caret"
5905
5906 if test "$enableval" = yes; then
5907 ac_cv_use_caret='wxUSE_CARET=yes'
5908 else
5909 ac_cv_use_caret='wxUSE_CARET=no'
5910 fi
5911
5912 else
5913
5914 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5915 if test "x$LINE" != x ; then
5916 eval "DEFAULT_$LINE"
5917 else
5918 no_cache=1
5919 fi
5920
5921 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5922
5923 fi
5924
5925
5926 eval "$ac_cv_use_caret"
5927 if test "$no_cache" != 1; then
5928 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5929 fi
5930
5931 if test "$wxUSE_CARET" = yes; then
5932 echo "$ac_t""yes" 1>&6
5933 else
5934 echo "$ac_t""no" 1>&6
5935 fi
5936
5937
5938 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5939 echo "configure:5940: checking for --enable-checkbox" >&5
5940 no_cache=0
5941 # Check whether --enable-checkbox or --disable-checkbox was given.
5942 if test "${enable_checkbox+set}" = set; then
5943 enableval="$enable_checkbox"
5944
5945 if test "$enableval" = yes; then
5946 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5947 else
5948 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5949 fi
5950
5951 else
5952
5953 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5954 if test "x$LINE" != x ; then
5955 eval "DEFAULT_$LINE"
5956 else
5957 no_cache=1
5958 fi
5959
5960 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5961
5962 fi
5963
5964
5965 eval "$ac_cv_use_checkbox"
5966 if test "$no_cache" != 1; then
5967 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5968 fi
5969
5970 if test "$wxUSE_CHECKBOX" = yes; then
5971 echo "$ac_t""yes" 1>&6
5972 else
5973 echo "$ac_t""no" 1>&6
5974 fi
5975
5976
5977 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5978 echo "configure:5979: checking for --enable-checklst" >&5
5979 no_cache=0
5980 # Check whether --enable-checklst or --disable-checklst was given.
5981 if test "${enable_checklst+set}" = set; then
5982 enableval="$enable_checklst"
5983
5984 if test "$enableval" = yes; then
5985 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5986 else
5987 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5988 fi
5989
5990 else
5991
5992 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5993 if test "x$LINE" != x ; then
5994 eval "DEFAULT_$LINE"
5995 else
5996 no_cache=1
5997 fi
5998
5999 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6000
6001 fi
6002
6003
6004 eval "$ac_cv_use_checklst"
6005 if test "$no_cache" != 1; then
6006 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6007 fi
6008
6009 if test "$wxUSE_CHECKLST" = yes; then
6010 echo "$ac_t""yes" 1>&6
6011 else
6012 echo "$ac_t""no" 1>&6
6013 fi
6014
6015
6016 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
6017 echo "configure:6018: checking for --enable-choice" >&5
6018 no_cache=0
6019 # Check whether --enable-choice or --disable-choice was given.
6020 if test "${enable_choice+set}" = set; then
6021 enableval="$enable_choice"
6022
6023 if test "$enableval" = yes; then
6024 ac_cv_use_choice='wxUSE_CHOICE=yes'
6025 else
6026 ac_cv_use_choice='wxUSE_CHOICE=no'
6027 fi
6028
6029 else
6030
6031 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6032 if test "x$LINE" != x ; then
6033 eval "DEFAULT_$LINE"
6034 else
6035 no_cache=1
6036 fi
6037
6038 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6039
6040 fi
6041
6042
6043 eval "$ac_cv_use_choice"
6044 if test "$no_cache" != 1; then
6045 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6046 fi
6047
6048 if test "$wxUSE_CHOICE" = yes; then
6049 echo "$ac_t""yes" 1>&6
6050 else
6051 echo "$ac_t""no" 1>&6
6052 fi
6053
6054
6055 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
6056 echo "configure:6057: checking for --enable-combobox" >&5
6057 no_cache=0
6058 # Check whether --enable-combobox or --disable-combobox was given.
6059 if test "${enable_combobox+set}" = set; then
6060 enableval="$enable_combobox"
6061
6062 if test "$enableval" = yes; then
6063 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6064 else
6065 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6066 fi
6067
6068 else
6069
6070 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6071 if test "x$LINE" != x ; then
6072 eval "DEFAULT_$LINE"
6073 else
6074 no_cache=1
6075 fi
6076
6077 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6078
6079 fi
6080
6081
6082 eval "$ac_cv_use_combobox"
6083 if test "$no_cache" != 1; then
6084 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6085 fi
6086
6087 if test "$wxUSE_COMBOBOX" = yes; then
6088 echo "$ac_t""yes" 1>&6
6089 else
6090 echo "$ac_t""no" 1>&6
6091 fi
6092
6093
6094 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
6095 echo "configure:6096: checking for --enable-gauge" >&5
6096 no_cache=0
6097 # Check whether --enable-gauge or --disable-gauge was given.
6098 if test "${enable_gauge+set}" = set; then
6099 enableval="$enable_gauge"
6100
6101 if test "$enableval" = yes; then
6102 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6103 else
6104 ac_cv_use_gauge='wxUSE_GAUGE=no'
6105 fi
6106
6107 else
6108
6109 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6110 if test "x$LINE" != x ; then
6111 eval "DEFAULT_$LINE"
6112 else
6113 no_cache=1
6114 fi
6115
6116 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6117
6118 fi
6119
6120
6121 eval "$ac_cv_use_gauge"
6122 if test "$no_cache" != 1; then
6123 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6124 fi
6125
6126 if test "$wxUSE_GAUGE" = yes; then
6127 echo "$ac_t""yes" 1>&6
6128 else
6129 echo "$ac_t""no" 1>&6
6130 fi
6131
6132
6133 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
6134 echo "configure:6135: checking for --enable-grid" >&5
6135 no_cache=0
6136 # Check whether --enable-grid or --disable-grid was given.
6137 if test "${enable_grid+set}" = set; then
6138 enableval="$enable_grid"
6139
6140 if test "$enableval" = yes; then
6141 ac_cv_use_grid='wxUSE_GRID=yes'
6142 else
6143 ac_cv_use_grid='wxUSE_GRID=no'
6144 fi
6145
6146 else
6147
6148 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6149 if test "x$LINE" != x ; then
6150 eval "DEFAULT_$LINE"
6151 else
6152 no_cache=1
6153 fi
6154
6155 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6156
6157 fi
6158
6159
6160 eval "$ac_cv_use_grid"
6161 if test "$no_cache" != 1; then
6162 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6163 fi
6164
6165 if test "$wxUSE_GRID" = yes; then
6166 echo "$ac_t""yes" 1>&6
6167 else
6168 echo "$ac_t""no" 1>&6
6169 fi
6170
6171
6172 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
6173 echo "configure:6174: checking for --enable-newgrid" >&5
6174 no_cache=0
6175 # Check whether --enable-newgrid or --disable-newgrid was given.
6176 if test "${enable_newgrid+set}" = set; then
6177 enableval="$enable_newgrid"
6178
6179 if test "$enableval" = yes; then
6180 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6181 else
6182 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6183 fi
6184
6185 else
6186
6187 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6188 if test "x$LINE" != x ; then
6189 eval "DEFAULT_$LINE"
6190 else
6191 no_cache=1
6192 fi
6193
6194 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6195
6196 fi
6197
6198
6199 eval "$ac_cv_use_newgrid"
6200 if test "$no_cache" != 1; then
6201 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6202 fi
6203
6204 if test "$wxUSE_NEW_GRID" = yes; then
6205 echo "$ac_t""yes" 1>&6
6206 else
6207 echo "$ac_t""no" 1>&6
6208 fi
6209
6210
6211 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
6212 echo "configure:6213: checking for --enable-imaglist" >&5
6213 no_cache=0
6214 # Check whether --enable-imaglist or --disable-imaglist was given.
6215 if test "${enable_imaglist+set}" = set; then
6216 enableval="$enable_imaglist"
6217
6218 if test "$enableval" = yes; then
6219 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6220 else
6221 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6222 fi
6223
6224 else
6225
6226 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6227 if test "x$LINE" != x ; then
6228 eval "DEFAULT_$LINE"
6229 else
6230 no_cache=1
6231 fi
6232
6233 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6234
6235 fi
6236
6237
6238 eval "$ac_cv_use_imaglist"
6239 if test "$no_cache" != 1; then
6240 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6241 fi
6242
6243 if test "$wxUSE_IMAGLIST" = yes; then
6244 echo "$ac_t""yes" 1>&6
6245 else
6246 echo "$ac_t""no" 1>&6
6247 fi
6248
6249
6250 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
6251 echo "configure:6252: checking for --enable-listbox" >&5
6252 no_cache=0
6253 # Check whether --enable-listbox or --disable-listbox was given.
6254 if test "${enable_listbox+set}" = set; then
6255 enableval="$enable_listbox"
6256
6257 if test "$enableval" = yes; then
6258 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6259 else
6260 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6261 fi
6262
6263 else
6264
6265 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6266 if test "x$LINE" != x ; then
6267 eval "DEFAULT_$LINE"
6268 else
6269 no_cache=1
6270 fi
6271
6272 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6273
6274 fi
6275
6276
6277 eval "$ac_cv_use_listbox"
6278 if test "$no_cache" != 1; then
6279 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6280 fi
6281
6282 if test "$wxUSE_LISTBOX" = yes; then
6283 echo "$ac_t""yes" 1>&6
6284 else
6285 echo "$ac_t""no" 1>&6
6286 fi
6287
6288
6289 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
6290 echo "configure:6291: checking for --enable-listctrl" >&5
6291 no_cache=0
6292 # Check whether --enable-listctrl or --disable-listctrl was given.
6293 if test "${enable_listctrl+set}" = set; then
6294 enableval="$enable_listctrl"
6295
6296 if test "$enableval" = yes; then
6297 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6298 else
6299 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6300 fi
6301
6302 else
6303
6304 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6305 if test "x$LINE" != x ; then
6306 eval "DEFAULT_$LINE"
6307 else
6308 no_cache=1
6309 fi
6310
6311 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6312
6313 fi
6314
6315
6316 eval "$ac_cv_use_listctrl"
6317 if test "$no_cache" != 1; then
6318 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6319 fi
6320
6321 if test "$wxUSE_LISTCTRL" = yes; then
6322 echo "$ac_t""yes" 1>&6
6323 else
6324 echo "$ac_t""no" 1>&6
6325 fi
6326
6327
6328 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
6329 echo "configure:6330: checking for --enable-notebook" >&5
6330 no_cache=0
6331 # Check whether --enable-notebook or --disable-notebook was given.
6332 if test "${enable_notebook+set}" = set; then
6333 enableval="$enable_notebook"
6334
6335 if test "$enableval" = yes; then
6336 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6337 else
6338 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6339 fi
6340
6341 else
6342
6343 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6344 if test "x$LINE" != x ; then
6345 eval "DEFAULT_$LINE"
6346 else
6347 no_cache=1
6348 fi
6349
6350 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6351
6352 fi
6353
6354
6355 eval "$ac_cv_use_notebook"
6356 if test "$no_cache" != 1; then
6357 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6358 fi
6359
6360 if test "$wxUSE_NOTEBOOK" = yes; then
6361 echo "$ac_t""yes" 1>&6
6362 else
6363 echo "$ac_t""no" 1>&6
6364 fi
6365
6366
6367 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
6368 echo "configure:6369: checking for --enable-propsheet" >&5
6369 no_cache=0
6370 # Check whether --enable-propsheet or --disable-propsheet was given.
6371 if test "${enable_propsheet+set}" = set; then
6372 enableval="$enable_propsheet"
6373
6374 if test "$enableval" = yes; then
6375 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6376 else
6377 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6378 fi
6379
6380 else
6381
6382 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6383 if test "x$LINE" != x ; then
6384 eval "DEFAULT_$LINE"
6385 else
6386 no_cache=1
6387 fi
6388
6389 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6390
6391 fi
6392
6393
6394 eval "$ac_cv_use_propsheet"
6395 if test "$no_cache" != 1; then
6396 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6397 fi
6398
6399 if test "$wxUSE_PROPSHEET" = yes; then
6400 echo "$ac_t""yes" 1>&6
6401 else
6402 echo "$ac_t""no" 1>&6
6403 fi
6404
6405
6406 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
6407 echo "configure:6408: checking for --enable-radiobox" >&5
6408 no_cache=0
6409 # Check whether --enable-radiobox or --disable-radiobox was given.
6410 if test "${enable_radiobox+set}" = set; then
6411 enableval="$enable_radiobox"
6412
6413 if test "$enableval" = yes; then
6414 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6415 else
6416 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6417 fi
6418
6419 else
6420
6421 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6422 if test "x$LINE" != x ; then
6423 eval "DEFAULT_$LINE"
6424 else
6425 no_cache=1
6426 fi
6427
6428 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6429
6430 fi
6431
6432
6433 eval "$ac_cv_use_radiobox"
6434 if test "$no_cache" != 1; then
6435 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6436 fi
6437
6438 if test "$wxUSE_RADIOBOX" = yes; then
6439 echo "$ac_t""yes" 1>&6
6440 else
6441 echo "$ac_t""no" 1>&6
6442 fi
6443
6444
6445 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
6446 echo "configure:6447: checking for --enable-radiobtn" >&5
6447 no_cache=0
6448 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6449 if test "${enable_radiobtn+set}" = set; then
6450 enableval="$enable_radiobtn"
6451
6452 if test "$enableval" = yes; then
6453 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6454 else
6455 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6456 fi
6457
6458 else
6459
6460 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6461 if test "x$LINE" != x ; then
6462 eval "DEFAULT_$LINE"
6463 else
6464 no_cache=1
6465 fi
6466
6467 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6468
6469 fi
6470
6471
6472 eval "$ac_cv_use_radiobtn"
6473 if test "$no_cache" != 1; then
6474 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6475 fi
6476
6477 if test "$wxUSE_RADIOBTN" = yes; then
6478 echo "$ac_t""yes" 1>&6
6479 else
6480 echo "$ac_t""no" 1>&6
6481 fi
6482
6483
6484 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
6485 echo "configure:6486: checking for --enable-sash" >&5
6486 no_cache=0
6487 # Check whether --enable-sash or --disable-sash was given.
6488 if test "${enable_sash+set}" = set; then
6489 enableval="$enable_sash"
6490
6491 if test "$enableval" = yes; then
6492 ac_cv_use_sash='wxUSE_SASH=yes'
6493 else
6494 ac_cv_use_sash='wxUSE_SASH=no'
6495 fi
6496
6497 else
6498
6499 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6500 if test "x$LINE" != x ; then
6501 eval "DEFAULT_$LINE"
6502 else
6503 no_cache=1
6504 fi
6505
6506 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6507
6508 fi
6509
6510
6511 eval "$ac_cv_use_sash"
6512 if test "$no_cache" != 1; then
6513 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6514 fi
6515
6516 if test "$wxUSE_SASH" = yes; then
6517 echo "$ac_t""yes" 1>&6
6518 else
6519 echo "$ac_t""no" 1>&6
6520 fi
6521
6522
6523 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
6524 echo "configure:6525: checking for --enable-scrollbar" >&5
6525 no_cache=0
6526 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6527 if test "${enable_scrollbar+set}" = set; then
6528 enableval="$enable_scrollbar"
6529
6530 if test "$enableval" = yes; then
6531 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6532 else
6533 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6534 fi
6535
6536 else
6537
6538 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6539 if test "x$LINE" != x ; then
6540 eval "DEFAULT_$LINE"
6541 else
6542 no_cache=1
6543 fi
6544
6545 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6546
6547 fi
6548
6549
6550 eval "$ac_cv_use_scrollbar"
6551 if test "$no_cache" != 1; then
6552 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6553 fi
6554
6555 if test "$wxUSE_SCROLLBAR" = yes; then
6556 echo "$ac_t""yes" 1>&6
6557 else
6558 echo "$ac_t""no" 1>&6
6559 fi
6560
6561
6562 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6563 echo "configure:6564: checking for --enable-slider" >&5
6564 no_cache=0
6565 # Check whether --enable-slider or --disable-slider was given.
6566 if test "${enable_slider+set}" = set; then
6567 enableval="$enable_slider"
6568
6569 if test "$enableval" = yes; then
6570 ac_cv_use_slider='wxUSE_SLIDER=yes'
6571 else
6572 ac_cv_use_slider='wxUSE_SLIDER=no'
6573 fi
6574
6575 else
6576
6577 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6578 if test "x$LINE" != x ; then
6579 eval "DEFAULT_$LINE"
6580 else
6581 no_cache=1
6582 fi
6583
6584 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6585
6586 fi
6587
6588
6589 eval "$ac_cv_use_slider"
6590 if test "$no_cache" != 1; then
6591 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6592 fi
6593
6594 if test "$wxUSE_SLIDER" = yes; then
6595 echo "$ac_t""yes" 1>&6
6596 else
6597 echo "$ac_t""no" 1>&6
6598 fi
6599
6600
6601 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6602 echo "configure:6603: checking for --enable-spinbtn" >&5
6603 no_cache=0
6604 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6605 if test "${enable_spinbtn+set}" = set; then
6606 enableval="$enable_spinbtn"
6607
6608 if test "$enableval" = yes; then
6609 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6610 else
6611 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6612 fi
6613
6614 else
6615
6616 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6617 if test "x$LINE" != x ; then
6618 eval "DEFAULT_$LINE"
6619 else
6620 no_cache=1
6621 fi
6622
6623 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6624
6625 fi
6626
6627
6628 eval "$ac_cv_use_spinbtn"
6629 if test "$no_cache" != 1; then
6630 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6631 fi
6632
6633 if test "$wxUSE_SPINBTN" = yes; then
6634 echo "$ac_t""yes" 1>&6
6635 else
6636 echo "$ac_t""no" 1>&6
6637 fi
6638
6639
6640 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6641 echo "configure:6642: checking for --enable-spinctrl" >&5
6642 no_cache=0
6643 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6644 if test "${enable_spinctrl+set}" = set; then
6645 enableval="$enable_spinctrl"
6646
6647 if test "$enableval" = yes; then
6648 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6649 else
6650 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6651 fi
6652
6653 else
6654
6655 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6656 if test "x$LINE" != x ; then
6657 eval "DEFAULT_$LINE"
6658 else
6659 no_cache=1
6660 fi
6661
6662 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6663
6664 fi
6665
6666
6667 eval "$ac_cv_use_spinctrl"
6668 if test "$no_cache" != 1; then
6669 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6670 fi
6671
6672 if test "$wxUSE_SPINCTRL" = yes; then
6673 echo "$ac_t""yes" 1>&6
6674 else
6675 echo "$ac_t""no" 1>&6
6676 fi
6677
6678
6679 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6680 echo "configure:6681: checking for --enable-splitter" >&5
6681 no_cache=0
6682 # Check whether --enable-splitter or --disable-splitter was given.
6683 if test "${enable_splitter+set}" = set; then
6684 enableval="$enable_splitter"
6685
6686 if test "$enableval" = yes; then
6687 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6688 else
6689 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6690 fi
6691
6692 else
6693
6694 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6695 if test "x$LINE" != x ; then
6696 eval "DEFAULT_$LINE"
6697 else
6698 no_cache=1
6699 fi
6700
6701 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6702
6703 fi
6704
6705
6706 eval "$ac_cv_use_splitter"
6707 if test "$no_cache" != 1; then
6708 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6709 fi
6710
6711 if test "$wxUSE_SPLITTER" = yes; then
6712 echo "$ac_t""yes" 1>&6
6713 else
6714 echo "$ac_t""no" 1>&6
6715 fi
6716
6717
6718 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6719 echo "configure:6720: checking for --enable-statbmp" >&5
6720 no_cache=0
6721 # Check whether --enable-statbmp or --disable-statbmp was given.
6722 if test "${enable_statbmp+set}" = set; then
6723 enableval="$enable_statbmp"
6724
6725 if test "$enableval" = yes; then
6726 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6727 else
6728 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6729 fi
6730
6731 else
6732
6733 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6734 if test "x$LINE" != x ; then
6735 eval "DEFAULT_$LINE"
6736 else
6737 no_cache=1
6738 fi
6739
6740 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6741
6742 fi
6743
6744
6745 eval "$ac_cv_use_statbmp"
6746 if test "$no_cache" != 1; then
6747 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6748 fi
6749
6750 if test "$wxUSE_STATBMP" = yes; then
6751 echo "$ac_t""yes" 1>&6
6752 else
6753 echo "$ac_t""no" 1>&6
6754 fi
6755
6756
6757 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6758 echo "configure:6759: checking for --enable-statbox" >&5
6759 no_cache=0
6760 # Check whether --enable-statbox or --disable-statbox was given.
6761 if test "${enable_statbox+set}" = set; then
6762 enableval="$enable_statbox"
6763
6764 if test "$enableval" = yes; then
6765 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6766 else
6767 ac_cv_use_statbox='wxUSE_STATBOX=no'
6768 fi
6769
6770 else
6771
6772 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6773 if test "x$LINE" != x ; then
6774 eval "DEFAULT_$LINE"
6775 else
6776 no_cache=1
6777 fi
6778
6779 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6780
6781 fi
6782
6783
6784 eval "$ac_cv_use_statbox"
6785 if test "$no_cache" != 1; then
6786 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6787 fi
6788
6789 if test "$wxUSE_STATBOX" = yes; then
6790 echo "$ac_t""yes" 1>&6
6791 else
6792 echo "$ac_t""no" 1>&6
6793 fi
6794
6795
6796 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6797 echo "configure:6798: checking for --enable-statline" >&5
6798 no_cache=0
6799 # Check whether --enable-statline or --disable-statline was given.
6800 if test "${enable_statline+set}" = set; then
6801 enableval="$enable_statline"
6802
6803 if test "$enableval" = yes; then
6804 ac_cv_use_statline='wxUSE_STATLINE=yes'
6805 else
6806 ac_cv_use_statline='wxUSE_STATLINE=no'
6807 fi
6808
6809 else
6810
6811 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6812 if test "x$LINE" != x ; then
6813 eval "DEFAULT_$LINE"
6814 else
6815 no_cache=1
6816 fi
6817
6818 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6819
6820 fi
6821
6822
6823 eval "$ac_cv_use_statline"
6824 if test "$no_cache" != 1; then
6825 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6826 fi
6827
6828 if test "$wxUSE_STATLINE" = yes; then
6829 echo "$ac_t""yes" 1>&6
6830 else
6831 echo "$ac_t""no" 1>&6
6832 fi
6833
6834
6835 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6836 echo "configure:6837: checking for --enable-stattext" >&5
6837 no_cache=0
6838 # Check whether --enable-stattext or --disable-stattext was given.
6839 if test "${enable_stattext+set}" = set; then
6840 enableval="$enable_stattext"
6841
6842 if test "$enableval" = yes; then
6843 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6844 else
6845 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6846 fi
6847
6848 else
6849
6850 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6851 if test "x$LINE" != x ; then
6852 eval "DEFAULT_$LINE"
6853 else
6854 no_cache=1
6855 fi
6856
6857 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6858
6859 fi
6860
6861
6862 eval "$ac_cv_use_stattext"
6863 if test "$no_cache" != 1; then
6864 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6865 fi
6866
6867 if test "$wxUSE_STATTEXT" = yes; then
6868 echo "$ac_t""yes" 1>&6
6869 else
6870 echo "$ac_t""no" 1>&6
6871 fi
6872
6873
6874 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6875 echo "configure:6876: checking for --enable-statusbar" >&5
6876 no_cache=0
6877 # Check whether --enable-statusbar or --disable-statusbar was given.
6878 if test "${enable_statusbar+set}" = set; then
6879 enableval="$enable_statusbar"
6880
6881 if test "$enableval" = yes; then
6882 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6883 else
6884 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6885 fi
6886
6887 else
6888
6889 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6890 if test "x$LINE" != x ; then
6891 eval "DEFAULT_$LINE"
6892 else
6893 no_cache=1
6894 fi
6895
6896 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6897
6898 fi
6899
6900
6901 eval "$ac_cv_use_statusbar"
6902 if test "$no_cache" != 1; then
6903 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6904 fi
6905
6906 if test "$wxUSE_STATUSBAR" = yes; then
6907 echo "$ac_t""yes" 1>&6
6908 else
6909 echo "$ac_t""no" 1>&6
6910 fi
6911
6912
6913 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6914 echo "configure:6915: checking for --enable-tabdialog" >&5
6915 no_cache=0
6916 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6917 if test "${enable_tabdialog+set}" = set; then
6918 enableval="$enable_tabdialog"
6919
6920 if test "$enableval" = yes; then
6921 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6922 else
6923 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6924 fi
6925
6926 else
6927
6928 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6929 if test "x$LINE" != x ; then
6930 eval "DEFAULT_$LINE"
6931 else
6932 no_cache=1
6933 fi
6934
6935 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6936
6937 fi
6938
6939
6940 eval "$ac_cv_use_tabdialog"
6941 if test "$no_cache" != 1; then
6942 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6943 fi
6944
6945 if test "$wxUSE_TABDIALOG" = yes; then
6946 echo "$ac_t""yes" 1>&6
6947 else
6948 echo "$ac_t""no" 1>&6
6949 fi
6950
6951
6952 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6953 echo "configure:6954: checking for --enable-textctrl" >&5
6954 no_cache=0
6955 # Check whether --enable-textctrl or --disable-textctrl was given.
6956 if test "${enable_textctrl+set}" = set; then
6957 enableval="$enable_textctrl"
6958
6959 if test "$enableval" = yes; then
6960 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6961 else
6962 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6963 fi
6964
6965 else
6966
6967 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6968 if test "x$LINE" != x ; then
6969 eval "DEFAULT_$LINE"
6970 else
6971 no_cache=1
6972 fi
6973
6974 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6975
6976 fi
6977
6978
6979 eval "$ac_cv_use_textctrl"
6980 if test "$no_cache" != 1; then
6981 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6982 fi
6983
6984 if test "$wxUSE_TEXTCTRL" = yes; then
6985 echo "$ac_t""yes" 1>&6
6986 else
6987 echo "$ac_t""no" 1>&6
6988 fi
6989
6990
6991 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6992 echo "configure:6993: checking for --enable-togglebtn" >&5
6993 no_cache=0
6994 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6995 if test "${enable_togglebtn+set}" = set; then
6996 enableval="$enable_togglebtn"
6997
6998 if test "$enableval" = yes; then
6999 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7000 else
7001 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7002 fi
7003
7004 else
7005
7006 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7007 if test "x$LINE" != x ; then
7008 eval "DEFAULT_$LINE"
7009 else
7010 no_cache=1
7011 fi
7012
7013 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7014
7015 fi
7016
7017
7018 eval "$ac_cv_use_togglebtn"
7019 if test "$no_cache" != 1; then
7020 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7021 fi
7022
7023 if test "$wxUSE_TOGGLEBTN" = yes; then
7024 echo "$ac_t""yes" 1>&6
7025 else
7026 echo "$ac_t""no" 1>&6
7027 fi
7028
7029
7030 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
7031 echo "configure:7032: checking for --enable-toolbar" >&5
7032 no_cache=0
7033 # Check whether --enable-toolbar or --disable-toolbar was given.
7034 if test "${enable_toolbar+set}" = set; then
7035 enableval="$enable_toolbar"
7036
7037 if test "$enableval" = yes; then
7038 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7039 else
7040 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7041 fi
7042
7043 else
7044
7045 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7046 if test "x$LINE" != x ; then
7047 eval "DEFAULT_$LINE"
7048 else
7049 no_cache=1
7050 fi
7051
7052 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7053
7054 fi
7055
7056
7057 eval "$ac_cv_use_toolbar"
7058 if test "$no_cache" != 1; then
7059 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7060 fi
7061
7062 if test "$wxUSE_TOOLBAR" = yes; then
7063 echo "$ac_t""yes" 1>&6
7064 else
7065 echo "$ac_t""no" 1>&6
7066 fi
7067
7068
7069 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
7070 echo "configure:7071: checking for --enable-tbarnative" >&5
7071 no_cache=0
7072 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7073 if test "${enable_tbarnative+set}" = set; then
7074 enableval="$enable_tbarnative"
7075
7076 if test "$enableval" = yes; then
7077 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7078 else
7079 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7080 fi
7081
7082 else
7083
7084 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7085 if test "x$LINE" != x ; then
7086 eval "DEFAULT_$LINE"
7087 else
7088 no_cache=1
7089 fi
7090
7091 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7092
7093 fi
7094
7095
7096 eval "$ac_cv_use_tbarnative"
7097 if test "$no_cache" != 1; then
7098 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7099 fi
7100
7101 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7102 echo "$ac_t""yes" 1>&6
7103 else
7104 echo "$ac_t""no" 1>&6
7105 fi
7106
7107
7108 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
7109 echo "configure:7110: checking for --enable-tbarsmpl" >&5
7110 no_cache=0
7111 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7112 if test "${enable_tbarsmpl+set}" = set; then
7113 enableval="$enable_tbarsmpl"
7114
7115 if test "$enableval" = yes; then
7116 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7117 else
7118 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7119 fi
7120
7121 else
7122
7123 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7124 if test "x$LINE" != x ; then
7125 eval "DEFAULT_$LINE"
7126 else
7127 no_cache=1
7128 fi
7129
7130 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7131
7132 fi
7133
7134
7135 eval "$ac_cv_use_tbarsmpl"
7136 if test "$no_cache" != 1; then
7137 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7138 fi
7139
7140 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7141 echo "$ac_t""yes" 1>&6
7142 else
7143 echo "$ac_t""no" 1>&6
7144 fi
7145
7146
7147 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
7148 echo "configure:7149: checking for --enable-treectrl" >&5
7149 no_cache=0
7150 # Check whether --enable-treectrl or --disable-treectrl was given.
7151 if test "${enable_treectrl+set}" = set; then
7152 enableval="$enable_treectrl"
7153
7154 if test "$enableval" = yes; then
7155 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7156 else
7157 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7158 fi
7159
7160 else
7161
7162 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7163 if test "x$LINE" != x ; then
7164 eval "DEFAULT_$LINE"
7165 else
7166 no_cache=1
7167 fi
7168
7169 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7170
7171 fi
7172
7173
7174 eval "$ac_cv_use_treectrl"
7175 if test "$no_cache" != 1; then
7176 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7177 fi
7178
7179 if test "$wxUSE_TREECTRL" = yes; then
7180 echo "$ac_t""yes" 1>&6
7181 else
7182 echo "$ac_t""no" 1>&6
7183 fi
7184
7185
7186 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
7187 echo "configure:7188: checking for --enable-tipwindow" >&5
7188 no_cache=0
7189 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7190 if test "${enable_tipwindow+set}" = set; then
7191 enableval="$enable_tipwindow"
7192
7193 if test "$enableval" = yes; then
7194 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7195 else
7196 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7197 fi
7198
7199 else
7200
7201 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7202 if test "x$LINE" != x ; then
7203 eval "DEFAULT_$LINE"
7204 else
7205 no_cache=1
7206 fi
7207
7208 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7209
7210 fi
7211
7212
7213 eval "$ac_cv_use_tipwindow"
7214 if test "$no_cache" != 1; then
7215 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7216 fi
7217
7218 if test "$wxUSE_TIPWINDOW" = yes; then
7219 echo "$ac_t""yes" 1>&6
7220 else
7221 echo "$ac_t""no" 1>&6
7222 fi
7223
7224
7225 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
7226 echo "configure:7227: checking for --enable-popupwin" >&5
7227 no_cache=0
7228 # Check whether --enable-popupwin or --disable-popupwin was given.
7229 if test "${enable_popupwin+set}" = set; then
7230 enableval="$enable_popupwin"
7231
7232 if test "$enableval" = yes; then
7233 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7234 else
7235 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7236 fi
7237
7238 else
7239
7240 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7241 if test "x$LINE" != x ; then
7242 eval "DEFAULT_$LINE"
7243 else
7244 no_cache=1
7245 fi
7246
7247 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7248
7249 fi
7250
7251
7252 eval "$ac_cv_use_popupwin"
7253 if test "$no_cache" != 1; then
7254 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7255 fi
7256
7257 if test "$wxUSE_POPUPWIN" = yes; then
7258 echo "$ac_t""yes" 1>&6
7259 else
7260 echo "$ac_t""no" 1>&6
7261 fi
7262
7263
7264
7265
7266 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
7267 echo "configure:7268: checking for --enable-commondlg" >&5
7268 no_cache=0
7269 # Check whether --enable-commondlg or --disable-commondlg was given.
7270 if test "${enable_commondlg+set}" = set; then
7271 enableval="$enable_commondlg"
7272
7273 if test "$enableval" = yes; then
7274 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7275 else
7276 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7277 fi
7278
7279 else
7280
7281 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7282 if test "x$LINE" != x ; then
7283 eval "DEFAULT_$LINE"
7284 else
7285 no_cache=1
7286 fi
7287
7288 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7289
7290 fi
7291
7292
7293 eval "$ac_cv_use_commondlg"
7294 if test "$no_cache" != 1; then
7295 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7296 fi
7297
7298 if test "$wxUSE_COMMONDLGS" = yes; then
7299 echo "$ac_t""yes" 1>&6
7300 else
7301 echo "$ac_t""no" 1>&6
7302 fi
7303
7304
7305 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
7306 echo "configure:7307: checking for --enable-choicedlg" >&5
7307 no_cache=0
7308 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7309 if test "${enable_choicedlg+set}" = set; then
7310 enableval="$enable_choicedlg"
7311
7312 if test "$enableval" = yes; then
7313 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7314 else
7315 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7316 fi
7317
7318 else
7319
7320 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7321 if test "x$LINE" != x ; then
7322 eval "DEFAULT_$LINE"
7323 else
7324 no_cache=1
7325 fi
7326
7327 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7328
7329 fi
7330
7331
7332 eval "$ac_cv_use_choicedlg"
7333 if test "$no_cache" != 1; then
7334 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7335 fi
7336
7337 if test "$wxUSE_CHOICEDLG" = yes; then
7338 echo "$ac_t""yes" 1>&6
7339 else
7340 echo "$ac_t""no" 1>&6
7341 fi
7342
7343
7344 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
7345 echo "configure:7346: checking for --enable-coldlg" >&5
7346 no_cache=0
7347 # Check whether --enable-coldlg or --disable-coldlg was given.
7348 if test "${enable_coldlg+set}" = set; then
7349 enableval="$enable_coldlg"
7350
7351 if test "$enableval" = yes; then
7352 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7353 else
7354 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7355 fi
7356
7357 else
7358
7359 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7360 if test "x$LINE" != x ; then
7361 eval "DEFAULT_$LINE"
7362 else
7363 no_cache=1
7364 fi
7365
7366 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7367
7368 fi
7369
7370
7371 eval "$ac_cv_use_coldlg"
7372 if test "$no_cache" != 1; then
7373 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7374 fi
7375
7376 if test "$wxUSE_COLOURDLG" = yes; then
7377 echo "$ac_t""yes" 1>&6
7378 else
7379 echo "$ac_t""no" 1>&6
7380 fi
7381
7382
7383 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7384 echo "configure:7385: checking for --enable-filedlg" >&5
7385 no_cache=0
7386 # Check whether --enable-filedlg or --disable-filedlg was given.
7387 if test "${enable_filedlg+set}" = set; then
7388 enableval="$enable_filedlg"
7389
7390 if test "$enableval" = yes; then
7391 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7392 else
7393 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7394 fi
7395
7396 else
7397
7398 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7399 if test "x$LINE" != x ; then
7400 eval "DEFAULT_$LINE"
7401 else
7402 no_cache=1
7403 fi
7404
7405 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7406
7407 fi
7408
7409
7410 eval "$ac_cv_use_filedlg"
7411 if test "$no_cache" != 1; then
7412 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7413 fi
7414
7415 if test "$wxUSE_FILEDLG" = yes; then
7416 echo "$ac_t""yes" 1>&6
7417 else
7418 echo "$ac_t""no" 1>&6
7419 fi
7420
7421
7422 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
7423 echo "configure:7424: checking for --enable-finddlg" >&5
7424 no_cache=0
7425 # Check whether --enable-finddlg or --disable-finddlg was given.
7426 if test "${enable_finddlg+set}" = set; then
7427 enableval="$enable_finddlg"
7428
7429 if test "$enableval" = yes; then
7430 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7431 else
7432 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7433 fi
7434
7435 else
7436
7437 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7438 if test "x$LINE" != x ; then
7439 eval "DEFAULT_$LINE"
7440 else
7441 no_cache=1
7442 fi
7443
7444 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7445
7446 fi
7447
7448
7449 eval "$ac_cv_use_finddlg"
7450 if test "$no_cache" != 1; then
7451 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7452 fi
7453
7454 if test "$wxUSE_FINDREPLDLG" = yes; then
7455 echo "$ac_t""yes" 1>&6
7456 else
7457 echo "$ac_t""no" 1>&6
7458 fi
7459
7460
7461 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7462 echo "configure:7463: checking for --enable-fontdlg" >&5
7463 no_cache=0
7464 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7465 if test "${enable_fontdlg+set}" = set; then
7466 enableval="$enable_fontdlg"
7467
7468 if test "$enableval" = yes; then
7469 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7470 else
7471 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7472 fi
7473
7474 else
7475
7476 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7477 if test "x$LINE" != x ; then
7478 eval "DEFAULT_$LINE"
7479 else
7480 no_cache=1
7481 fi
7482
7483 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7484
7485 fi
7486
7487
7488 eval "$ac_cv_use_fontdlg"
7489 if test "$no_cache" != 1; then
7490 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7491 fi
7492
7493 if test "$wxUSE_FONTDLG" = yes; then
7494 echo "$ac_t""yes" 1>&6
7495 else
7496 echo "$ac_t""no" 1>&6
7497 fi
7498
7499
7500 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7501 echo "configure:7502: checking for --enable-dirdlg" >&5
7502 no_cache=0
7503 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7504 if test "${enable_dirdlg+set}" = set; then
7505 enableval="$enable_dirdlg"
7506
7507 if test "$enableval" = yes; then
7508 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7509 else
7510 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7511 fi
7512
7513 else
7514
7515 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7516 if test "x$LINE" != x ; then
7517 eval "DEFAULT_$LINE"
7518 else
7519 no_cache=1
7520 fi
7521
7522 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7523
7524 fi
7525
7526
7527 eval "$ac_cv_use_dirdlg"
7528 if test "$no_cache" != 1; then
7529 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7530 fi
7531
7532 if test "$wxUSE_DIRDLG" = yes; then
7533 echo "$ac_t""yes" 1>&6
7534 else
7535 echo "$ac_t""no" 1>&6
7536 fi
7537
7538
7539 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7540 echo "configure:7541: checking for --enable-msgdlg" >&5
7541 no_cache=0
7542 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7543 if test "${enable_msgdlg+set}" = set; then
7544 enableval="$enable_msgdlg"
7545
7546 if test "$enableval" = yes; then
7547 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7548 else
7549 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7550 fi
7551
7552 else
7553
7554 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7555 if test "x$LINE" != x ; then
7556 eval "DEFAULT_$LINE"
7557 else
7558 no_cache=1
7559 fi
7560
7561 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7562
7563 fi
7564
7565
7566 eval "$ac_cv_use_msgdlg"
7567 if test "$no_cache" != 1; then
7568 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7569 fi
7570
7571 if test "$wxUSE_MSGDLG" = yes; then
7572 echo "$ac_t""yes" 1>&6
7573 else
7574 echo "$ac_t""no" 1>&6
7575 fi
7576
7577
7578 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7579 echo "configure:7580: checking for --enable-numberdlg" >&5
7580 no_cache=0
7581 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7582 if test "${enable_numberdlg+set}" = set; then
7583 enableval="$enable_numberdlg"
7584
7585 if test "$enableval" = yes; then
7586 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7587 else
7588 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7589 fi
7590
7591 else
7592
7593 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7594 if test "x$LINE" != x ; then
7595 eval "DEFAULT_$LINE"
7596 else
7597 no_cache=1
7598 fi
7599
7600 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7601
7602 fi
7603
7604
7605 eval "$ac_cv_use_numberdlg"
7606 if test "$no_cache" != 1; then
7607 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7608 fi
7609
7610 if test "$wxUSE_NUMBERDLG" = yes; then
7611 echo "$ac_t""yes" 1>&6
7612 else
7613 echo "$ac_t""no" 1>&6
7614 fi
7615
7616
7617 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7618 echo "configure:7619: checking for --enable-splash" >&5
7619 no_cache=0
7620 # Check whether --enable-splash or --disable-splash was given.
7621 if test "${enable_splash+set}" = set; then
7622 enableval="$enable_splash"
7623
7624 if test "$enableval" = yes; then
7625 ac_cv_use_splash='wxUSE_SPLASH=yes'
7626 else
7627 ac_cv_use_splash='wxUSE_SPLASH=no'
7628 fi
7629
7630 else
7631
7632 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7633 if test "x$LINE" != x ; then
7634 eval "DEFAULT_$LINE"
7635 else
7636 no_cache=1
7637 fi
7638
7639 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7640
7641 fi
7642
7643
7644 eval "$ac_cv_use_splash"
7645 if test "$no_cache" != 1; then
7646 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7647 fi
7648
7649 if test "$wxUSE_SPLASH" = yes; then
7650 echo "$ac_t""yes" 1>&6
7651 else
7652 echo "$ac_t""no" 1>&6
7653 fi
7654
7655
7656 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7657 echo "configure:7658: checking for --enable-textdlg" >&5
7658 no_cache=0
7659 # Check whether --enable-textdlg or --disable-textdlg was given.
7660 if test "${enable_textdlg+set}" = set; then
7661 enableval="$enable_textdlg"
7662
7663 if test "$enableval" = yes; then
7664 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7665 else
7666 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7667 fi
7668
7669 else
7670
7671 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7672 if test "x$LINE" != x ; then
7673 eval "DEFAULT_$LINE"
7674 else
7675 no_cache=1
7676 fi
7677
7678 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7679
7680 fi
7681
7682
7683 eval "$ac_cv_use_textdlg"
7684 if test "$no_cache" != 1; then
7685 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7686 fi
7687
7688 if test "$wxUSE_TEXTDLG" = yes; then
7689 echo "$ac_t""yes" 1>&6
7690 else
7691 echo "$ac_t""no" 1>&6
7692 fi
7693
7694
7695 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7696 echo "configure:7697: checking for --enable-tipdlg" >&5
7697 no_cache=0
7698 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7699 if test "${enable_tipdlg+set}" = set; then
7700 enableval="$enable_tipdlg"
7701
7702 if test "$enableval" = yes; then
7703 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7704 else
7705 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7706 fi
7707
7708 else
7709
7710 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7711 if test "x$LINE" != x ; then
7712 eval "DEFAULT_$LINE"
7713 else
7714 no_cache=1
7715 fi
7716
7717 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7718
7719 fi
7720
7721
7722 eval "$ac_cv_use_tipdlg"
7723 if test "$no_cache" != 1; then
7724 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7725 fi
7726
7727 if test "$wxUSE_STARTUP_TIPS" = yes; then
7728 echo "$ac_t""yes" 1>&6
7729 else
7730 echo "$ac_t""no" 1>&6
7731 fi
7732
7733
7734 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7735 echo "configure:7736: checking for --enable-progressdlg" >&5
7736 no_cache=0
7737 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7738 if test "${enable_progressdlg+set}" = set; then
7739 enableval="$enable_progressdlg"
7740
7741 if test "$enableval" = yes; then
7742 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7743 else
7744 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7745 fi
7746
7747 else
7748
7749 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7750 if test "x$LINE" != x ; then
7751 eval "DEFAULT_$LINE"
7752 else
7753 no_cache=1
7754 fi
7755
7756 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7757
7758 fi
7759
7760
7761 eval "$ac_cv_use_progressdlg"
7762 if test "$no_cache" != 1; then
7763 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7764 fi
7765
7766 if test "$wxUSE_PROGRESSDLG" = yes; then
7767 echo "$ac_t""yes" 1>&6
7768 else
7769 echo "$ac_t""no" 1>&6
7770 fi
7771
7772
7773 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7774 echo "configure:7775: checking for --enable-wizarddlg" >&5
7775 no_cache=0
7776 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7777 if test "${enable_wizarddlg+set}" = set; then
7778 enableval="$enable_wizarddlg"
7779
7780 if test "$enableval" = yes; then
7781 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7782 else
7783 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7784 fi
7785
7786 else
7787
7788 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7789 if test "x$LINE" != x ; then
7790 eval "DEFAULT_$LINE"
7791 else
7792 no_cache=1
7793 fi
7794
7795 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7796
7797 fi
7798
7799
7800 eval "$ac_cv_use_wizarddlg"
7801 if test "$no_cache" != 1; then
7802 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7803 fi
7804
7805 if test "$wxUSE_WIZARDDLG" = yes; then
7806 echo "$ac_t""yes" 1>&6
7807 else
7808 echo "$ac_t""no" 1>&6
7809 fi
7810
7811
7812
7813
7814 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7815 echo "configure:7816: checking for --enable-menus" >&5
7816 no_cache=0
7817 # Check whether --enable-menus or --disable-menus was given.
7818 if test "${enable_menus+set}" = set; then
7819 enableval="$enable_menus"
7820
7821 if test "$enableval" = yes; then
7822 ac_cv_use_menus='wxUSE_MENUS=yes'
7823 else
7824 ac_cv_use_menus='wxUSE_MENUS=no'
7825 fi
7826
7827 else
7828
7829 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7830 if test "x$LINE" != x ; then
7831 eval "DEFAULT_$LINE"
7832 else
7833 no_cache=1
7834 fi
7835
7836 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7837
7838 fi
7839
7840
7841 eval "$ac_cv_use_menus"
7842 if test "$no_cache" != 1; then
7843 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7844 fi
7845
7846 if test "$wxUSE_MENUS" = yes; then
7847 echo "$ac_t""yes" 1>&6
7848 else
7849 echo "$ac_t""no" 1>&6
7850 fi
7851
7852
7853 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7854 echo "configure:7855: checking for --enable-miniframe" >&5
7855 no_cache=0
7856 # Check whether --enable-miniframe or --disable-miniframe was given.
7857 if test "${enable_miniframe+set}" = set; then
7858 enableval="$enable_miniframe"
7859
7860 if test "$enableval" = yes; then
7861 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7862 else
7863 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7864 fi
7865
7866 else
7867
7868 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7869 if test "x$LINE" != x ; then
7870 eval "DEFAULT_$LINE"
7871 else
7872 no_cache=1
7873 fi
7874
7875 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7876
7877 fi
7878
7879
7880 eval "$ac_cv_use_miniframe"
7881 if test "$no_cache" != 1; then
7882 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7883 fi
7884
7885 if test "$wxUSE_MINIFRAME" = yes; then
7886 echo "$ac_t""yes" 1>&6
7887 else
7888 echo "$ac_t""no" 1>&6
7889 fi
7890
7891
7892 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7893 echo "configure:7894: checking for --enable-tooltips" >&5
7894 no_cache=0
7895 # Check whether --enable-tooltips or --disable-tooltips was given.
7896 if test "${enable_tooltips+set}" = set; then
7897 enableval="$enable_tooltips"
7898
7899 if test "$enableval" = yes; then
7900 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7901 else
7902 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7903 fi
7904
7905 else
7906
7907 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7908 if test "x$LINE" != x ; then
7909 eval "DEFAULT_$LINE"
7910 else
7911 no_cache=1
7912 fi
7913
7914 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7915
7916 fi
7917
7918
7919 eval "$ac_cv_use_tooltips"
7920 if test "$no_cache" != 1; then
7921 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7922 fi
7923
7924 if test "$wxUSE_TOOLTIPS" = yes; then
7925 echo "$ac_t""yes" 1>&6
7926 else
7927 echo "$ac_t""no" 1>&6
7928 fi
7929
7930
7931 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7932 echo "configure:7933: checking for --enable-splines" >&5
7933 no_cache=0
7934 # Check whether --enable-splines or --disable-splines was given.
7935 if test "${enable_splines+set}" = set; then
7936 enableval="$enable_splines"
7937
7938 if test "$enableval" = yes; then
7939 ac_cv_use_splines='wxUSE_SPLINES=yes'
7940 else
7941 ac_cv_use_splines='wxUSE_SPLINES=no'
7942 fi
7943
7944 else
7945
7946 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7947 if test "x$LINE" != x ; then
7948 eval "DEFAULT_$LINE"
7949 else
7950 no_cache=1
7951 fi
7952
7953 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7954
7955 fi
7956
7957
7958 eval "$ac_cv_use_splines"
7959 if test "$no_cache" != 1; then
7960 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7961 fi
7962
7963 if test "$wxUSE_SPLINES" = yes; then
7964 echo "$ac_t""yes" 1>&6
7965 else
7966 echo "$ac_t""no" 1>&6
7967 fi
7968
7969
7970 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7971 echo "configure:7972: checking for --enable-validators" >&5
7972 no_cache=0
7973 # Check whether --enable-validators or --disable-validators was given.
7974 if test "${enable_validators+set}" = set; then
7975 enableval="$enable_validators"
7976
7977 if test "$enableval" = yes; then
7978 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7979 else
7980 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7981 fi
7982
7983 else
7984
7985 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7986 if test "x$LINE" != x ; then
7987 eval "DEFAULT_$LINE"
7988 else
7989 no_cache=1
7990 fi
7991
7992 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7993
7994 fi
7995
7996
7997 eval "$ac_cv_use_validators"
7998 if test "$no_cache" != 1; then
7999 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8000 fi
8001
8002 if test "$wxUSE_VALIDATORS" = yes; then
8003 echo "$ac_t""yes" 1>&6
8004 else
8005 echo "$ac_t""no" 1>&6
8006 fi
8007
8008
8009 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
8010 echo "configure:8011: checking for --enable-busyinfo" >&5
8011 no_cache=0
8012 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8013 if test "${enable_busyinfo+set}" = set; then
8014 enableval="$enable_busyinfo"
8015
8016 if test "$enableval" = yes; then
8017 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8018 else
8019 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8020 fi
8021
8022 else
8023
8024 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8025 if test "x$LINE" != x ; then
8026 eval "DEFAULT_$LINE"
8027 else
8028 no_cache=1
8029 fi
8030
8031 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8032
8033 fi
8034
8035
8036 eval "$ac_cv_use_busyinfo"
8037 if test "$no_cache" != 1; then
8038 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8039 fi
8040
8041 if test "$wxUSE_BUSYINFO" = yes; then
8042 echo "$ac_t""yes" 1>&6
8043 else
8044 echo "$ac_t""no" 1>&6
8045 fi
8046
8047
8048 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
8049 echo "configure:8050: checking for --enable-joystick" >&5
8050 no_cache=0
8051 # Check whether --enable-joystick or --disable-joystick was given.
8052 if test "${enable_joystick+set}" = set; then
8053 enableval="$enable_joystick"
8054
8055 if test "$enableval" = yes; then
8056 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8057 else
8058 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8059 fi
8060
8061 else
8062
8063 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8064 if test "x$LINE" != x ; then
8065 eval "DEFAULT_$LINE"
8066 else
8067 no_cache=1
8068 fi
8069
8070 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8071
8072 fi
8073
8074
8075 eval "$ac_cv_use_joystick"
8076 if test "$no_cache" != 1; then
8077 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8078 fi
8079
8080 if test "$wxUSE_JOYSTICK" = yes; then
8081 echo "$ac_t""yes" 1>&6
8082 else
8083 echo "$ac_t""no" 1>&6
8084 fi
8085
8086
8087 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
8088 echo "configure:8089: checking for --enable-metafile" >&5
8089 no_cache=0
8090 # Check whether --enable-metafile or --disable-metafile was given.
8091 if test "${enable_metafile+set}" = set; then
8092 enableval="$enable_metafile"
8093
8094 if test "$enableval" = yes; then
8095 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8096 else
8097 ac_cv_use_metafile='wxUSE_METAFILE=no'
8098 fi
8099
8100 else
8101
8102 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8103 if test "x$LINE" != x ; then
8104 eval "DEFAULT_$LINE"
8105 else
8106 no_cache=1
8107 fi
8108
8109 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8110
8111 fi
8112
8113
8114 eval "$ac_cv_use_metafile"
8115 if test "$no_cache" != 1; then
8116 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8117 fi
8118
8119 if test "$wxUSE_METAFILE" = yes; then
8120 echo "$ac_t""yes" 1>&6
8121 else
8122 echo "$ac_t""no" 1>&6
8123 fi
8124
8125
8126 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
8127 echo "configure:8128: checking for --enable-dragimage" >&5
8128 no_cache=0
8129 # Check whether --enable-dragimage or --disable-dragimage was given.
8130 if test "${enable_dragimage+set}" = set; then
8131 enableval="$enable_dragimage"
8132
8133 if test "$enableval" = yes; then
8134 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8135 else
8136 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8137 fi
8138
8139 else
8140
8141 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8142 if test "x$LINE" != x ; then
8143 eval "DEFAULT_$LINE"
8144 else
8145 no_cache=1
8146 fi
8147
8148 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8149
8150 fi
8151
8152
8153 eval "$ac_cv_use_dragimage"
8154 if test "$no_cache" != 1; then
8155 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8156 fi
8157
8158 if test "$wxUSE_DRAGIMAGE" = yes; then
8159 echo "$ac_t""yes" 1>&6
8160 else
8161 echo "$ac_t""no" 1>&6
8162 fi
8163
8164
8165
8166
8167 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
8168 echo "configure:8169: checking for --enable-palette" >&5
8169 no_cache=0
8170 # Check whether --enable-palette or --disable-palette was given.
8171 if test "${enable_palette+set}" = set; then
8172 enableval="$enable_palette"
8173
8174 if test "$enableval" = yes; then
8175 ac_cv_use_palette='wxUSE_PALETTE=yes'
8176 else
8177 ac_cv_use_palette='wxUSE_PALETTE=no'
8178 fi
8179
8180 else
8181
8182 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8183 if test "x$LINE" != x ; then
8184 eval "DEFAULT_$LINE"
8185 else
8186 no_cache=1
8187 fi
8188
8189 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8190
8191 fi
8192
8193
8194 eval "$ac_cv_use_palette"
8195 if test "$no_cache" != 1; then
8196 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8197 fi
8198
8199 if test "$wxUSE_PALETTE" = yes; then
8200 echo "$ac_t""yes" 1>&6
8201 else
8202 echo "$ac_t""no" 1>&6
8203 fi
8204
8205
8206 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
8207 echo "configure:8208: checking for --enable-image" >&5
8208 no_cache=0
8209 # Check whether --enable-image or --disable-image was given.
8210 if test "${enable_image+set}" = set; then
8211 enableval="$enable_image"
8212
8213 if test "$enableval" = yes; then
8214 ac_cv_use_image='wxUSE_IMAGE=yes'
8215 else
8216 ac_cv_use_image='wxUSE_IMAGE=no'
8217 fi
8218
8219 else
8220
8221 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8222 if test "x$LINE" != x ; then
8223 eval "DEFAULT_$LINE"
8224 else
8225 no_cache=1
8226 fi
8227
8228 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8229
8230 fi
8231
8232
8233 eval "$ac_cv_use_image"
8234 if test "$no_cache" != 1; then
8235 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8236 fi
8237
8238 if test "$wxUSE_IMAGE" = yes; then
8239 echo "$ac_t""yes" 1>&6
8240 else
8241 echo "$ac_t""no" 1>&6
8242 fi
8243
8244
8245 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
8246 echo "configure:8247: checking for --enable-gif" >&5
8247 no_cache=0
8248 # Check whether --enable-gif or --disable-gif was given.
8249 if test "${enable_gif+set}" = set; then
8250 enableval="$enable_gif"
8251
8252 if test "$enableval" = yes; then
8253 ac_cv_use_gif='wxUSE_GIF=yes'
8254 else
8255 ac_cv_use_gif='wxUSE_GIF=no'
8256 fi
8257
8258 else
8259
8260 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8261 if test "x$LINE" != x ; then
8262 eval "DEFAULT_$LINE"
8263 else
8264 no_cache=1
8265 fi
8266
8267 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8268
8269 fi
8270
8271
8272 eval "$ac_cv_use_gif"
8273 if test "$no_cache" != 1; then
8274 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8275 fi
8276
8277 if test "$wxUSE_GIF" = yes; then
8278 echo "$ac_t""yes" 1>&6
8279 else
8280 echo "$ac_t""no" 1>&6
8281 fi
8282
8283
8284 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
8285 echo "configure:8286: checking for --enable-pcx" >&5
8286 no_cache=0
8287 # Check whether --enable-pcx or --disable-pcx was given.
8288 if test "${enable_pcx+set}" = set; then
8289 enableval="$enable_pcx"
8290
8291 if test "$enableval" = yes; then
8292 ac_cv_use_pcx='wxUSE_PCX=yes'
8293 else
8294 ac_cv_use_pcx='wxUSE_PCX=no'
8295 fi
8296
8297 else
8298
8299 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8300 if test "x$LINE" != x ; then
8301 eval "DEFAULT_$LINE"
8302 else
8303 no_cache=1
8304 fi
8305
8306 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8307
8308 fi
8309
8310
8311 eval "$ac_cv_use_pcx"
8312 if test "$no_cache" != 1; then
8313 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8314 fi
8315
8316 if test "$wxUSE_PCX" = yes; then
8317 echo "$ac_t""yes" 1>&6
8318 else
8319 echo "$ac_t""no" 1>&6
8320 fi
8321
8322
8323 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
8324 echo "configure:8325: checking for --enable-iff" >&5
8325 no_cache=0
8326 # Check whether --enable-iff or --disable-iff was given.
8327 if test "${enable_iff+set}" = set; then
8328 enableval="$enable_iff"
8329
8330 if test "$enableval" = yes; then
8331 ac_cv_use_iff='wxUSE_IFF=yes'
8332 else
8333 ac_cv_use_iff='wxUSE_IFF=no'
8334 fi
8335
8336 else
8337
8338 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8339 if test "x$LINE" != x ; then
8340 eval "DEFAULT_$LINE"
8341 else
8342 no_cache=1
8343 fi
8344
8345 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8346
8347 fi
8348
8349
8350 eval "$ac_cv_use_iff"
8351 if test "$no_cache" != 1; then
8352 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8353 fi
8354
8355 if test "$wxUSE_IFF" = yes; then
8356 echo "$ac_t""yes" 1>&6
8357 else
8358 echo "$ac_t""no" 1>&6
8359 fi
8360
8361
8362 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8363 echo "configure:8364: checking for --enable-pnm" >&5
8364 no_cache=0
8365 # Check whether --enable-pnm or --disable-pnm was given.
8366 if test "${enable_pnm+set}" = set; then
8367 enableval="$enable_pnm"
8368
8369 if test "$enableval" = yes; then
8370 ac_cv_use_pnm='wxUSE_PNM=yes'
8371 else
8372 ac_cv_use_pnm='wxUSE_PNM=no'
8373 fi
8374
8375 else
8376
8377 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8378 if test "x$LINE" != x ; then
8379 eval "DEFAULT_$LINE"
8380 else
8381 no_cache=1
8382 fi
8383
8384 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8385
8386 fi
8387
8388
8389 eval "$ac_cv_use_pnm"
8390 if test "$no_cache" != 1; then
8391 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8392 fi
8393
8394 if test "$wxUSE_PNM" = yes; then
8395 echo "$ac_t""yes" 1>&6
8396 else
8397 echo "$ac_t""no" 1>&6
8398 fi
8399
8400
8401 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
8402 echo "configure:8403: checking for --enable-xpm" >&5
8403 no_cache=0
8404 # Check whether --enable-xpm or --disable-xpm was given.
8405 if test "${enable_xpm+set}" = set; then
8406 enableval="$enable_xpm"
8407
8408 if test "$enableval" = yes; then
8409 ac_cv_use_xpm='wxUSE_XPM=yes'
8410 else
8411 ac_cv_use_xpm='wxUSE_XPM=no'
8412 fi
8413
8414 else
8415
8416 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8417 if test "x$LINE" != x ; then
8418 eval "DEFAULT_$LINE"
8419 else
8420 no_cache=1
8421 fi
8422
8423 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8424
8425 fi
8426
8427
8428 eval "$ac_cv_use_xpm"
8429 if test "$no_cache" != 1; then
8430 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8431 fi
8432
8433 if test "$wxUSE_XPM" = yes; then
8434 echo "$ac_t""yes" 1>&6
8435 else
8436 echo "$ac_t""no" 1>&6
8437 fi
8438
8439
8440 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
8441 echo "configure:8442: checking for --enable-ico_cur" >&5
8442 no_cache=0
8443 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8444 if test "${enable_ico_cur+set}" = set; then
8445 enableval="$enable_ico_cur"
8446
8447 if test "$enableval" = yes; then
8448 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8449 else
8450 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8451 fi
8452
8453 else
8454
8455 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8456 if test "x$LINE" != x ; then
8457 eval "DEFAULT_$LINE"
8458 else
8459 no_cache=1
8460 fi
8461
8462 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8463
8464 fi
8465
8466
8467 eval "$ac_cv_use_ico_cur"
8468 if test "$no_cache" != 1; then
8469 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8470 fi
8471
8472 if test "$wxUSE_ICO_CUR" = yes; then
8473 echo "$ac_t""yes" 1>&6
8474 else
8475 echo "$ac_t""no" 1>&6
8476 fi
8477
8478
8479 fi
8480
8481
8482 echo "saving argument cache $wx_arg_cache_file"
8483 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8484
8485
8486
8487 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8488 echo "configure:8489: checking for toolkit" >&5
8489
8490 if test "$wxUSE_GUI" = "yes"; then
8491
8492 if test "$USE_BEOS" = 1; then
8493 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8494 fi
8495
8496 if test "$TOOLKIT_GIVEN" = 1; then
8497 for toolkit in `echo $ALL_TOOLKITS`; do
8498 var=wxUSE_$toolkit
8499 eval "value=\$${var}"
8500 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8501 done
8502 else
8503 for toolkit in `echo $ALL_TOOLKITS`; do
8504 if test "$has_toolkit_in_cache" != 1; then
8505 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8506 else
8507 var=DEFAULT_wxUSE_$toolkit
8508 fi
8509 eval "wxUSE_$toolkit=\$${var}"
8510 done
8511 fi
8512
8513 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8514 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8515
8516 case "${host}" in
8517 *-pc-os2_emx | *-pc-os2-emx )
8518 # PATH_IFS is autodetected by OS/2's configure (usually ';')
8519 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8520 LEX_STEM="lexyy"
8521 ;;
8522 *)
8523 PATH_IFS=':'
8524 LEX_STEM="lex.yy"
8525 ;;
8526 esac
8527
8528 case "$NUM_TOOLKITS" in
8529 1)
8530 ;;
8531 0)
8532 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8533 ;;
8534 *)
8535 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8536 esac
8537
8538 for toolkit in `echo $ALL_TOOLKITS`; do
8539 var=wxUSE_$toolkit
8540 eval "value=\$${var}"
8541 if test "x$value" != x; then
8542 cache_var=CACHE_$toolkit
8543 eval "cache=\$${cache_var}"
8544 if test "$cache" = 1; then
8545 echo "$var=$value" >> ${wx_arg_cache_file}
8546 fi
8547 if test "$value" = 1; then
8548 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8549 echo "$ac_t""$toolkit_echo" 1>&6
8550 fi
8551 fi
8552 done
8553 else
8554 PATH_IFS=':'
8555 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8556 fi
8557
8558
8559 cat > confcache <<\EOF
8560 # This file is a shell script that caches the results of configure
8561 # tests run on this system so they can be shared between configure
8562 # scripts and configure runs. It is not useful on other systems.
8563 # If it contains results you don't want to keep, you may remove or edit it.
8564 #
8565 # By default, configure uses ./config.cache as the cache file,
8566 # creating it if it does not exist already. You can give configure
8567 # the --cache-file=FILE option to use a different cache file; that is
8568 # what configure does when it calls configure scripts in
8569 # subdirectories, so they share the cache.
8570 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8571 # config.status only pays attention to the cache file if you give it the
8572 # --recheck option to rerun configure.
8573 #
8574 EOF
8575 # The following way of writing the cache mishandles newlines in values,
8576 # but we know of no workaround that is simple, portable, and efficient.
8577 # So, don't put newlines in cache variables' values.
8578 # Ultrix sh set writes to stderr and can't be redirected directly,
8579 # and sets the high bit in the cache file unless we assign to the vars.
8580 (set) 2>&1 |
8581 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8582 *ac_space=\ *)
8583 # `set' does not quote correctly, so add quotes (double-quote substitution
8584 # turns \\\\ into \\, and sed turns \\ into \).
8585 sed -n \
8586 -e "s/'/'\\\\''/g" \
8587 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8588 ;;
8589 *)
8590 # `set' quotes correctly as required by POSIX, so do not add quotes.
8591 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8592 ;;
8593 esac >> confcache
8594 if cmp -s $cache_file confcache; then
8595 :
8596 else
8597 if test -w $cache_file; then
8598 echo "updating cache $cache_file"
8599 cat confcache > $cache_file
8600 else
8601 echo "not updating unwritable cache $cache_file"
8602 fi
8603 fi
8604 rm -f confcache
8605
8606
8607 if test "$build" != "$host" ; then
8608 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then
8609 CC=$host_alias-gcc
8610 CXX=$host_alias-c++
8611 AR=$host_alias-ar
8612 RANLIB=$host_alias-ranlib
8613 DLLTOOL=$host_alias-dlltool
8614 RESCOMP=$host_alias-windres
8615 LD=$host_alias-ld
8616 NM=$host_alias-nm
8617 STRIP=$host_alias-strip
8618 else
8619 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8620 fi
8621 fi
8622
8623 # Extract the first word of "gcc", so it can be a program name with args.
8624 set dummy gcc; ac_word=$2
8625 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8626 echo "configure:8627: checking for $ac_word" >&5
8627 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8628 echo $ac_n "(cached) $ac_c" 1>&6
8629 else
8630 if test -n "$CC"; then
8631 ac_cv_prog_CC="$CC" # Let the user override the test.
8632 else
8633 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8634 ac_dummy="$PATH"
8635 for ac_dir in $ac_dummy; do
8636 test -z "$ac_dir" && ac_dir=.
8637 if test -f $ac_dir/$ac_word; then
8638 ac_cv_prog_CC="gcc"
8639 break
8640 fi
8641 done
8642 IFS="$ac_save_ifs"
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 # Extract the first word of "cc", so it can be a program name with args.
8654 set dummy cc; ac_word=$2
8655 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8656 echo "configure:8657: checking for $ac_word" >&5
8657 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8658 echo $ac_n "(cached) $ac_c" 1>&6
8659 else
8660 if test -n "$CC"; then
8661 ac_cv_prog_CC="$CC" # Let the user override the test.
8662 else
8663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8664 ac_prog_rejected=no
8665 ac_dummy="$PATH"
8666 for ac_dir in $ac_dummy; do
8667 test -z "$ac_dir" && ac_dir=.
8668 if test -f $ac_dir/$ac_word; then
8669 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8670 ac_prog_rejected=yes
8671 continue
8672 fi
8673 ac_cv_prog_CC="cc"
8674 break
8675 fi
8676 done
8677 IFS="$ac_save_ifs"
8678 if test $ac_prog_rejected = yes; then
8679 # We found a bogon in the path, so make sure we never use it.
8680 set dummy $ac_cv_prog_CC
8681 shift
8682 if test $# -gt 0; then
8683 # We chose a different compiler from the bogus one.
8684 # However, it has the same basename, so the bogon will be chosen
8685 # first if we set CC to just the basename; use the full file name.
8686 shift
8687 set dummy "$ac_dir/$ac_word" "$@"
8688 shift
8689 ac_cv_prog_CC="$@"
8690 fi
8691 fi
8692 fi
8693 fi
8694 CC="$ac_cv_prog_CC"
8695 if test -n "$CC"; then
8696 echo "$ac_t""$CC" 1>&6
8697 else
8698 echo "$ac_t""no" 1>&6
8699 fi
8700
8701 if test -z "$CC"; then
8702 case "`uname -s`" in
8703 *win32* | *WIN32*)
8704 # Extract the first word of "cl", so it can be a program name with args.
8705 set dummy cl; ac_word=$2
8706 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8707 echo "configure:8708: checking for $ac_word" >&5
8708 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8709 echo $ac_n "(cached) $ac_c" 1>&6
8710 else
8711 if test -n "$CC"; then
8712 ac_cv_prog_CC="$CC" # Let the user override the test.
8713 else
8714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8715 ac_dummy="$PATH"
8716 for ac_dir in $ac_dummy; do
8717 test -z "$ac_dir" && ac_dir=.
8718 if test -f $ac_dir/$ac_word; then
8719 ac_cv_prog_CC="cl"
8720 break
8721 fi
8722 done
8723 IFS="$ac_save_ifs"
8724 fi
8725 fi
8726 CC="$ac_cv_prog_CC"
8727 if test -n "$CC"; then
8728 echo "$ac_t""$CC" 1>&6
8729 else
8730 echo "$ac_t""no" 1>&6
8731 fi
8732 ;;
8733 esac
8734 fi
8735 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8736 fi
8737
8738 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8739 echo "configure:8740: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8740
8741 ac_ext=c
8742 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8743 ac_cpp='$CPP $CPPFLAGS'
8744 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8745 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8746 cross_compiling=$ac_cv_prog_cc_cross
8747
8748 cat > conftest.$ac_ext << EOF
8749
8750 #line 8751 "configure"
8751 #include "confdefs.h"
8752
8753 main(){return(0);}
8754 EOF
8755 if { (eval echo configure:8756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8756 ac_cv_prog_cc_works=yes
8757 # If we can't run a trivial program, we are probably using a cross compiler.
8758 if (./conftest; exit) 2>/dev/null; then
8759 ac_cv_prog_cc_cross=no
8760 else
8761 ac_cv_prog_cc_cross=yes
8762 fi
8763 else
8764 echo "configure: failed program was:" >&5
8765 cat conftest.$ac_ext >&5
8766 ac_cv_prog_cc_works=no
8767 fi
8768 rm -fr conftest*
8769 ac_ext=c
8770 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8771 ac_cpp='$CPP $CPPFLAGS'
8772 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8773 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8774 cross_compiling=$ac_cv_prog_cc_cross
8775
8776 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8777 if test $ac_cv_prog_cc_works = no; then
8778 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8779 fi
8780 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8781 echo "configure:8782: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8782 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8783 cross_compiling=$ac_cv_prog_cc_cross
8784
8785 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8786 echo "configure:8787: checking whether we are using GNU C" >&5
8787 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8788 echo $ac_n "(cached) $ac_c" 1>&6
8789 else
8790 cat > conftest.c <<EOF
8791 #ifdef __GNUC__
8792 yes;
8793 #endif
8794 EOF
8795 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8796 ac_cv_prog_gcc=yes
8797 else
8798 ac_cv_prog_gcc=no
8799 fi
8800 fi
8801
8802 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8803
8804 if test $ac_cv_prog_gcc = yes; then
8805 GCC=yes
8806 else
8807 GCC=
8808 fi
8809
8810 ac_test_CFLAGS="${CFLAGS+set}"
8811 ac_save_CFLAGS="$CFLAGS"
8812 CFLAGS=
8813 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8814 echo "configure:8815: checking whether ${CC-cc} accepts -g" >&5
8815 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8816 echo $ac_n "(cached) $ac_c" 1>&6
8817 else
8818 echo 'void f(){}' > conftest.c
8819 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8820 ac_cv_prog_cc_g=yes
8821 else
8822 ac_cv_prog_cc_g=no
8823 fi
8824 rm -f conftest*
8825
8826 fi
8827
8828 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8829 if test "$ac_test_CFLAGS" = set; then
8830 CFLAGS="$ac_save_CFLAGS"
8831 elif test $ac_cv_prog_cc_g = yes; then
8832 if test "$GCC" = yes; then
8833 CFLAGS="-g -O2"
8834 else
8835 CFLAGS="-g"
8836 fi
8837 else
8838 if test "$GCC" = yes; then
8839 CFLAGS="-O2"
8840 else
8841 CFLAGS=
8842 fi
8843 fi
8844
8845
8846 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8847
8848 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8849 echo "configure:8850: checking how to run the C preprocessor" >&5
8850 # On Suns, sometimes $CPP names a directory.
8851 if test -n "$CPP" && test -d "$CPP"; then
8852 CPP=
8853 fi
8854 if test -z "$CPP"; then
8855 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8856 echo $ac_n "(cached) $ac_c" 1>&6
8857 else
8858 # This must be in double quotes, not single quotes, because CPP may get
8859 # substituted into the Makefile and "${CC-cc}" will confuse make.
8860 CPP="${CC-cc} -E"
8861 # On the NeXT, cc -E runs the code through the compiler's parser,
8862 # not just through cpp.
8863 cat > conftest.$ac_ext <<EOF
8864 #line 8865 "configure"
8865 #include "confdefs.h"
8866 #include <assert.h>
8867 Syntax Error
8868 EOF
8869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8870 { (eval echo configure:8871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8872 if test -z "$ac_err"; then
8873 :
8874 else
8875 echo "$ac_err" >&5
8876 echo "configure: failed program was:" >&5
8877 cat conftest.$ac_ext >&5
8878 rm -rf conftest*
8879 CPP="${CC-cc} -E -traditional-cpp"
8880 cat > conftest.$ac_ext <<EOF
8881 #line 8882 "configure"
8882 #include "confdefs.h"
8883 #include <assert.h>
8884 Syntax Error
8885 EOF
8886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8887 { (eval echo configure:8888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8889 if test -z "$ac_err"; then
8890 :
8891 else
8892 echo "$ac_err" >&5
8893 echo "configure: failed program was:" >&5
8894 cat conftest.$ac_ext >&5
8895 rm -rf conftest*
8896 CPP="${CC-cc} -nologo -E"
8897 cat > conftest.$ac_ext <<EOF
8898 #line 8899 "configure"
8899 #include "confdefs.h"
8900 #include <assert.h>
8901 Syntax Error
8902 EOF
8903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8904 { (eval echo configure:8905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8906 if test -z "$ac_err"; then
8907 :
8908 else
8909 echo "$ac_err" >&5
8910 echo "configure: failed program was:" >&5
8911 cat conftest.$ac_ext >&5
8912 rm -rf conftest*
8913 CPP=/lib/cpp
8914 fi
8915 rm -f conftest*
8916 fi
8917 rm -f conftest*
8918 fi
8919 rm -f conftest*
8920 ac_cv_prog_CPP="$CPP"
8921 fi
8922 CPP="$ac_cv_prog_CPP"
8923 else
8924 ac_cv_prog_CPP="$CPP"
8925 fi
8926 echo "$ac_t""$CPP" 1>&6
8927
8928 if test $ac_cv_prog_gcc = yes; then
8929 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8930 echo "configure:8931: checking whether ${CC-cc} needs -traditional" >&5
8931 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8932 echo $ac_n "(cached) $ac_c" 1>&6
8933 else
8934 ac_pattern="Autoconf.*'x'"
8935 cat > conftest.$ac_ext <<EOF
8936 #line 8937 "configure"
8937 #include "confdefs.h"
8938 #include <sgtty.h>
8939 Autoconf TIOCGETP
8940 EOF
8941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8942 egrep "$ac_pattern" >/dev/null 2>&1; then
8943 rm -rf conftest*
8944 ac_cv_prog_gcc_traditional=yes
8945 else
8946 rm -rf conftest*
8947 ac_cv_prog_gcc_traditional=no
8948 fi
8949 rm -f conftest*
8950
8951
8952 if test $ac_cv_prog_gcc_traditional = no; then
8953 cat > conftest.$ac_ext <<EOF
8954 #line 8955 "configure"
8955 #include "confdefs.h"
8956 #include <termio.h>
8957 Autoconf TCGETA
8958 EOF
8959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8960 egrep "$ac_pattern" >/dev/null 2>&1; then
8961 rm -rf conftest*
8962 ac_cv_prog_gcc_traditional=yes
8963 fi
8964 rm -f conftest*
8965
8966 fi
8967 fi
8968
8969 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8970 if test $ac_cv_prog_gcc_traditional = yes; then
8971 CC="$CC -traditional"
8972 fi
8973 fi
8974
8975
8976
8977 ac_ext=C
8978 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8979 ac_cpp='$CXXCPP $CPPFLAGS'
8980 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8981 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8982 cross_compiling=$ac_cv_prog_cxx_cross
8983
8984
8985 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8986 do
8987 # Extract the first word of "$ac_prog", so it can be a program name with args.
8988 set dummy $ac_prog; ac_word=$2
8989 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8990 echo "configure:8991: checking for $ac_word" >&5
8991 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8992 echo $ac_n "(cached) $ac_c" 1>&6
8993 else
8994 if test -n "$CXX"; then
8995 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8996 else
8997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8998 ac_dummy="$PATH"
8999 for ac_dir in $ac_dummy; do
9000 test -z "$ac_dir" && ac_dir=.
9001 if test -f $ac_dir/$ac_word; then
9002 ac_cv_prog_CXX="$ac_prog"
9003 break
9004 fi
9005 done
9006 IFS="$ac_save_ifs"
9007 fi
9008 fi
9009 CXX="$ac_cv_prog_CXX"
9010 if test -n "$CXX"; then
9011 echo "$ac_t""$CXX" 1>&6
9012 else
9013 echo "$ac_t""no" 1>&6
9014 fi
9015
9016 test -n "$CXX" && break
9017 done
9018 test -n "$CXX" || CXX="gcc"
9019
9020
9021 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9022 echo "configure:9023: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9023
9024 ac_ext=C
9025 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9026 ac_cpp='$CXXCPP $CPPFLAGS'
9027 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9028 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9029 cross_compiling=$ac_cv_prog_cxx_cross
9030
9031 cat > conftest.$ac_ext << EOF
9032
9033 #line 9034 "configure"
9034 #include "confdefs.h"
9035
9036 int main(){return(0);}
9037 EOF
9038 if { (eval echo configure:9039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9039 ac_cv_prog_cxx_works=yes
9040 # If we can't run a trivial program, we are probably using a cross compiler.
9041 if (./conftest; exit) 2>/dev/null; then
9042 ac_cv_prog_cxx_cross=no
9043 else
9044 ac_cv_prog_cxx_cross=yes
9045 fi
9046 else
9047 echo "configure: failed program was:" >&5
9048 cat conftest.$ac_ext >&5
9049 ac_cv_prog_cxx_works=no
9050 fi
9051 rm -fr conftest*
9052 ac_ext=C
9053 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9054 ac_cpp='$CXXCPP $CPPFLAGS'
9055 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9056 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9057 cross_compiling=$ac_cv_prog_cxx_cross
9058
9059 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9060 if test $ac_cv_prog_cxx_works = no; then
9061 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9062 fi
9063 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9064 echo "configure:9065: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9065 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9066 cross_compiling=$ac_cv_prog_cxx_cross
9067
9068 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9069 echo "configure:9070: checking whether we are using GNU C++" >&5
9070 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9071 echo $ac_n "(cached) $ac_c" 1>&6
9072 else
9073 cat > conftest.C <<EOF
9074 #ifdef __GNUC__
9075 yes;
9076 #endif
9077 EOF
9078 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9079 ac_cv_prog_gxx=yes
9080 else
9081 ac_cv_prog_gxx=no
9082 fi
9083 fi
9084
9085 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9086
9087 if test $ac_cv_prog_gxx = yes; then
9088 GXX=yes
9089 else
9090 GXX=
9091 fi
9092
9093 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9094 ac_save_CXXFLAGS="$CXXFLAGS"
9095 CXXFLAGS=
9096 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9097 echo "configure:9098: checking whether ${CXX-g++} accepts -g" >&5
9098 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9099 echo $ac_n "(cached) $ac_c" 1>&6
9100 else
9101 echo 'void f(){}' > conftest.cc
9102 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9103 ac_cv_prog_cxx_g=yes
9104 else
9105 ac_cv_prog_cxx_g=no
9106 fi
9107 rm -f conftest*
9108
9109 fi
9110
9111 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9112 if test "$ac_test_CXXFLAGS" = set; then
9113 CXXFLAGS="$ac_save_CXXFLAGS"
9114 elif test $ac_cv_prog_cxx_g = yes; then
9115 if test "$GXX" = yes; then
9116 CXXFLAGS="-g -O2"
9117 else
9118 CXXFLAGS="-g"
9119 fi
9120 else
9121 if test "$GXX" = yes; then
9122 CXXFLAGS="-O2"
9123 else
9124 CXXFLAGS=
9125 fi
9126 fi
9127
9128 for ac_declaration in \
9129 ''\
9130 '#include <stdlib.h>' \
9131 'extern "C" void std::exit (int) throw (); using std::exit;' \
9132 'extern "C" void std::exit (int); using std::exit;' \
9133 'extern "C" void exit (int) throw ();' \
9134 'extern "C" void exit (int);' \
9135 'void exit (int);'
9136 do
9137 cat > conftest.$ac_ext <<EOF
9138 #line 9139 "configure"
9139 #include "confdefs.h"
9140 #include <stdlib.h>
9141 $ac_declaration
9142 int main() {
9143 exit (42);
9144 ; return 0; }
9145 EOF
9146 if { (eval echo configure:9147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9147 :
9148 else
9149 echo "configure: failed program was:" >&5
9150 cat conftest.$ac_ext >&5
9151 rm -rf conftest*
9152 continue
9153 fi
9154 rm -f conftest*
9155 cat > conftest.$ac_ext <<EOF
9156 #line 9157 "configure"
9157 #include "confdefs.h"
9158 $ac_declaration
9159 int main() {
9160 exit (42);
9161 ; return 0; }
9162 EOF
9163 if { (eval echo configure:9164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9164 rm -rf conftest*
9165 break
9166 else
9167 echo "configure: failed program was:" >&5
9168 cat conftest.$ac_ext >&5
9169 fi
9170 rm -f conftest*
9171 done
9172 if test -n "$ac_declaration"; then
9173 echo '#ifdef __cplusplus' >>confdefs.h
9174 echo $ac_declaration >>confdefs.h
9175 echo '#endif' >>confdefs.h
9176 fi
9177
9178
9179
9180 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
9181
9182 ac_ext=c
9183 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9184 ac_cpp='$CPP $CPPFLAGS'
9185 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9186 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9187 cross_compiling=$ac_cv_prog_cc_cross
9188
9189
9190 # Extract the first word of "ranlib", so it can be a program name with args.
9191 set dummy ranlib; ac_word=$2
9192 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9193 echo "configure:9194: checking for $ac_word" >&5
9194 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9195 echo $ac_n "(cached) $ac_c" 1>&6
9196 else
9197 if test -n "$RANLIB"; then
9198 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9199 else
9200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9201 ac_dummy="$PATH"
9202 for ac_dir in $ac_dummy; do
9203 test -z "$ac_dir" && ac_dir=.
9204 if test -f $ac_dir/$ac_word; then
9205 ac_cv_prog_RANLIB="ranlib"
9206 break
9207 fi
9208 done
9209 IFS="$ac_save_ifs"
9210 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9211 fi
9212 fi
9213 RANLIB="$ac_cv_prog_RANLIB"
9214 if test -n "$RANLIB"; then
9215 echo "$ac_t""$RANLIB" 1>&6
9216 else
9217 echo "$ac_t""no" 1>&6
9218 fi
9219
9220
9221 # Extract the first word of "ar", so it can be a program name with args.
9222 set dummy ar; ac_word=$2
9223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9224 echo "configure:9225: checking for $ac_word" >&5
9225 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9226 echo $ac_n "(cached) $ac_c" 1>&6
9227 else
9228 if test -n "$AR"; then
9229 ac_cv_prog_AR="$AR" # Let the user override the test.
9230 else
9231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9232 ac_dummy="$PATH"
9233 for ac_dir in $ac_dummy; do
9234 test -z "$ac_dir" && ac_dir=.
9235 if test -f $ac_dir/$ac_word; then
9236 ac_cv_prog_AR="ar"
9237 break
9238 fi
9239 done
9240 IFS="$ac_save_ifs"
9241 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9242 fi
9243 fi
9244 AR="$ac_cv_prog_AR"
9245 if test -n "$AR"; then
9246 echo "$ac_t""$AR" 1>&6
9247 else
9248 echo "$ac_t""no" 1>&6
9249 fi
9250
9251
9252 # Find a good install program. We prefer a C program (faster),
9253 # so one script is as good as another. But avoid the broken or
9254 # incompatible versions:
9255 # SysV /etc/install, /usr/sbin/install
9256 # SunOS /usr/etc/install
9257 # IRIX /sbin/install
9258 # AIX /bin/install
9259 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9260 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9261 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9262 # ./install, which can be erroneously created by make from ./install.sh.
9263 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9264 echo "configure:9265: checking for a BSD compatible install" >&5
9265 if test -z "$INSTALL"; then
9266 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9267 echo $ac_n "(cached) $ac_c" 1>&6
9268 else
9269 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9270 for ac_dir in $PATH; do
9271 # Account for people who put trailing slashes in PATH elements.
9272 case "$ac_dir/" in
9273 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9274 *)
9275 # OSF1 and SCO ODT 3.0 have their own names for install.
9276 # Don't use installbsd from OSF since it installs stuff as root
9277 # by default.
9278 for ac_prog in ginstall scoinst install; do
9279 if test -f $ac_dir/$ac_prog; then
9280 if test $ac_prog = install &&
9281 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9282 # AIX install. It has an incompatible calling convention.
9283 :
9284 else
9285 ac_cv_path_install="$ac_dir/$ac_prog -c"
9286 break 2
9287 fi
9288 fi
9289 done
9290 ;;
9291 esac
9292 done
9293 IFS="$ac_save_IFS"
9294
9295 fi
9296 if test "${ac_cv_path_install+set}" = set; then
9297 INSTALL="$ac_cv_path_install"
9298 else
9299 # As a last resort, use the slow shell script. We don't cache a
9300 # path for INSTALL within a source directory, because that will
9301 # break other packages using the cache if that directory is
9302 # removed, or if the path is relative.
9303 INSTALL="$ac_install_sh"
9304 fi
9305 fi
9306 echo "$ac_t""$INSTALL" 1>&6
9307
9308 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9309 # It thinks the first close brace ends the variable substitution.
9310 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9311
9312 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9313
9314 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9315
9316 case "${host}" in
9317
9318 powerpc-*-darwin* )
9319 INSTALL_PROGRAM="cp -fp"
9320 INSTALL_DATA="cp -fp"
9321 ;;
9322 *)
9323 ;;
9324 esac
9325
9326 # Extract the first word of "strip", so it can be a program name with args.
9327 set dummy strip; ac_word=$2
9328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9329 echo "configure:9330: checking for $ac_word" >&5
9330 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9331 echo $ac_n "(cached) $ac_c" 1>&6
9332 else
9333 if test -n "$STRIP"; then
9334 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9335 else
9336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9337 ac_dummy="$PATH"
9338 for ac_dir in $ac_dummy; do
9339 test -z "$ac_dir" && ac_dir=.
9340 if test -f $ac_dir/$ac_word; then
9341 ac_cv_prog_STRIP="strip"
9342 break
9343 fi
9344 done
9345 IFS="$ac_save_ifs"
9346 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9347 fi
9348 fi
9349 STRIP="$ac_cv_prog_STRIP"
9350 if test -n "$STRIP"; then
9351 echo "$ac_t""$STRIP" 1>&6
9352 else
9353 echo "$ac_t""no" 1>&6
9354 fi
9355
9356
9357 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9358 echo "configure:9359: checking if make is GNU make" >&5
9359 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9360 echo $ac_n "(cached) $ac_c" 1>&6
9361 else
9362
9363 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9364 egrep -s GNU); then
9365 wx_cv_prog_makeisgnu="yes"
9366 else
9367 wx_cv_prog_makeisgnu="no"
9368 fi
9369
9370 fi
9371
9372 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9373
9374 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9375 IF_GNU_MAKE=""
9376 else
9377 IF_GNU_MAKE="#"
9378 fi
9379
9380
9381
9382 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9383 echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9384 echo "configure:9385: checking if make supports VPATH" >&5
9385 if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9386 echo $ac_n "(cached) $ac_c" 1>&6
9387 else
9388
9389 cat - << EOF > confMake
9390 check : file
9391 cp \$? \$@
9392 cp \$? final_file
9393 EOF
9394
9395 if test ! -d sub ; then
9396 mkdir sub
9397 fi
9398 echo dummy > sub/file
9399 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9400 RESULT=$?
9401 rm -f sub/file check final_file confMake
9402 rmdir sub
9403 if test "$RESULT" = 0; then
9404 wx_cv_prog_makevpath="yes"
9405 else
9406 wx_cv_prog_makevpath="no"
9407 fi
9408
9409 fi
9410
9411 echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9412
9413 if test "x$wx_cv_prog_makevpath" != "xyes"; then
9414 { echo "configure: error:
9415 You need a make-utility that is able to use the variable
9416 VPATH correctly.
9417 If your version of make does not support VPATH correctly,
9418 please install GNU-make (possibly as gmake), and start
9419 configure with the following command:
9420 export MAKE=gmake; ./configure for sh-type shells
9421 setenv MAKE gmake; ./configure for csh-type shells
9422 Also please do remember to use gmake in this case every time
9423 you are trying to compile.
9424 " 1>&2; exit 1; }
9425 fi fi
9426 for ac_prog in 'bison -y' byacc
9427 do
9428 # Extract the first word of "$ac_prog", so it can be a program name with args.
9429 set dummy $ac_prog; ac_word=$2
9430 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9431 echo "configure:9432: checking for $ac_word" >&5
9432 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9433 echo $ac_n "(cached) $ac_c" 1>&6
9434 else
9435 if test -n "$YACC"; then
9436 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9437 else
9438 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9439 ac_dummy="$PATH"
9440 for ac_dir in $ac_dummy; do
9441 test -z "$ac_dir" && ac_dir=.
9442 if test -f $ac_dir/$ac_word; then
9443 ac_cv_prog_YACC="$ac_prog"
9444 break
9445 fi
9446 done
9447 IFS="$ac_save_ifs"
9448 fi
9449 fi
9450 YACC="$ac_cv_prog_YACC"
9451 if test -n "$YACC"; then
9452 echo "$ac_t""$YACC" 1>&6
9453 else
9454 echo "$ac_t""no" 1>&6
9455 fi
9456
9457 test -n "$YACC" && break
9458 done
9459 test -n "$YACC" || YACC="yacc"
9460
9461
9462 # Extract the first word of "flex", so it can be a program name with args.
9463 set dummy flex; ac_word=$2
9464 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9465 echo "configure:9466: checking for $ac_word" >&5
9466 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9467 echo $ac_n "(cached) $ac_c" 1>&6
9468 else
9469 if test -n "$LEX"; then
9470 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9471 else
9472 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9473 ac_dummy="$PATH"
9474 for ac_dir in $ac_dummy; do
9475 test -z "$ac_dir" && ac_dir=.
9476 if test -f $ac_dir/$ac_word; then
9477 ac_cv_prog_LEX="flex"
9478 break
9479 fi
9480 done
9481 IFS="$ac_save_ifs"
9482 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9483 fi
9484 fi
9485 LEX="$ac_cv_prog_LEX"
9486 if test -n "$LEX"; then
9487 echo "$ac_t""$LEX" 1>&6
9488 else
9489 echo "$ac_t""no" 1>&6
9490 fi
9491
9492 if test -z "$LEXLIB"
9493 then
9494 case "$LEX" in
9495 flex*) ac_lib=fl ;;
9496 *) ac_lib=l ;;
9497 esac
9498 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9499 echo "configure:9500: checking for yywrap in -l$ac_lib" >&5
9500 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9501 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9502 echo $ac_n "(cached) $ac_c" 1>&6
9503 else
9504 ac_save_LIBS="$LIBS"
9505 LIBS="-l$ac_lib $LIBS"
9506 cat > conftest.$ac_ext <<EOF
9507 #line 9508 "configure"
9508 #include "confdefs.h"
9509 /* Override any gcc2 internal prototype to avoid an error. */
9510 /* We use char because int might match the return type of a gcc2
9511 builtin and then its argument prototype would still apply. */
9512 char yywrap();
9513
9514 int main() {
9515 yywrap()
9516 ; return 0; }
9517 EOF
9518 if { (eval echo configure:9519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9519 rm -rf conftest*
9520 eval "ac_cv_lib_$ac_lib_var=yes"
9521 else
9522 echo "configure: failed program was:" >&5
9523 cat conftest.$ac_ext >&5
9524 rm -rf conftest*
9525 eval "ac_cv_lib_$ac_lib_var=no"
9526 fi
9527 rm -f conftest*
9528 LIBS="$ac_save_LIBS"
9529
9530 fi
9531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9532 echo "$ac_t""yes" 1>&6
9533 LEXLIB="-l$ac_lib"
9534 else
9535 echo "$ac_t""no" 1>&6
9536 fi
9537
9538 fi
9539
9540
9541 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9542 echo "configure:9543: checking whether ln -s works" >&5
9543 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9544 echo $ac_n "(cached) $ac_c" 1>&6
9545 else
9546 rm -f conftestdata
9547 if ln -s X conftestdata 2>/dev/null
9548 then
9549 rm -f conftestdata
9550 ac_cv_prog_LN_S="ln -s"
9551 else
9552 ac_cv_prog_LN_S=ln
9553 fi
9554 fi
9555 LN_S="$ac_cv_prog_LN_S"
9556 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9557 echo "$ac_t""yes" 1>&6
9558 else
9559 echo "$ac_t""no" 1>&6
9560 fi
9561
9562
9563
9564 SEARCH_INCLUDE="\
9565 /usr/local/include \
9566 \
9567 /usr/Motif-1.2/include \
9568 /usr/Motif-2.1/include \
9569 \
9570 /usr/include/Motif1.2 \
9571 /opt/xpm/include/X11 \
9572 /opt/GBxpm/include/ \
9573 /opt/GBxpm/X11/include/ \
9574 \
9575 /usr/Motif1.2/include \
9576 /usr/dt/include \
9577 /usr/openwin/include \
9578 \
9579 /usr/include/Xm \
9580 \
9581 /usr/X11R6/include \
9582 /usr/X11R6.4/include \
9583 /usr/X11R5/include \
9584 /usr/X11R4/include \
9585 \
9586 /usr/include/X11R6 \
9587 /usr/include/X11R5 \
9588 /usr/include/X11R4 \
9589 \
9590 /usr/local/X11R6/include \
9591 /usr/local/X11R5/include \
9592 /usr/local/X11R4/include \
9593 \
9594 /usr/local/include/X11R6 \
9595 /usr/local/include/X11R5 \
9596 /usr/local/include/X11R4 \
9597 \
9598 /usr/X11/include \
9599 /usr/include/X11 \
9600 /usr/local/X11/include \
9601 /usr/local/include/X11 \
9602 \
9603 /usr/X386/include \
9604 /usr/x386/include \
9605 /usr/XFree86/include/X11 \
9606 \
9607 X:/XFree86/include \
9608 X:/XFree86/include/X11 \
9609 \
9610 /usr/include/gtk \
9611 /usr/local/include/gtk \
9612 /usr/include/glib \
9613 /usr/local/include/glib \
9614 \
9615 /usr/include/qt \
9616 /usr/local/include/qt \
9617 \
9618 /usr/include/windows \
9619 /usr/include/wine \
9620 /usr/local/include/wine \
9621 \
9622 /usr/unsupported/include \
9623 /usr/athena/include \
9624 /usr/local/x11r5/include \
9625 /usr/lpp/Xamples/include \
9626 \
9627 /usr/openwin/share/include \
9628 \
9629 /usr/include"
9630
9631 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
9632
9633
9634 cat > confcache <<\EOF
9635 # This file is a shell script that caches the results of configure
9636 # tests run on this system so they can be shared between configure
9637 # scripts and configure runs. It is not useful on other systems.
9638 # If it contains results you don't want to keep, you may remove or edit it.
9639 #
9640 # By default, configure uses ./config.cache as the cache file,
9641 # creating it if it does not exist already. You can give configure
9642 # the --cache-file=FILE option to use a different cache file; that is
9643 # what configure does when it calls configure scripts in
9644 # subdirectories, so they share the cache.
9645 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9646 # config.status only pays attention to the cache file if you give it the
9647 # --recheck option to rerun configure.
9648 #
9649 EOF
9650 # The following way of writing the cache mishandles newlines in values,
9651 # but we know of no workaround that is simple, portable, and efficient.
9652 # So, don't put newlines in cache variables' values.
9653 # Ultrix sh set writes to stderr and can't be redirected directly,
9654 # and sets the high bit in the cache file unless we assign to the vars.
9655 (set) 2>&1 |
9656 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9657 *ac_space=\ *)
9658 # `set' does not quote correctly, so add quotes (double-quote substitution
9659 # turns \\\\ into \\, and sed turns \\ into \).
9660 sed -n \
9661 -e "s/'/'\\\\''/g" \
9662 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9663 ;;
9664 *)
9665 # `set' quotes correctly as required by POSIX, so do not add quotes.
9666 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9667 ;;
9668 esac >> confcache
9669 if cmp -s $cache_file confcache; then
9670 :
9671 else
9672 if test -w $cache_file; then
9673 echo "updating cache $cache_file"
9674 cat confcache > $cache_file
9675 else
9676 echo "not updating unwritable cache $cache_file"
9677 fi
9678 fi
9679 rm -f confcache
9680
9681
9682
9683
9684 REGEX_INCLUDE=
9685 if test "$wxUSE_REGEX" != "no"; then
9686 cat >> confdefs.h <<\EOF
9687 #define wxUSE_REGEX 1
9688 EOF
9689
9690
9691 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
9692 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
9693 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
9694 echo "configure:9695: checking for regex.h" >&5
9695 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9696 echo $ac_n "(cached) $ac_c" 1>&6
9697 else
9698 cat > conftest.$ac_ext <<EOF
9699 #line 9700 "configure"
9700 #include "confdefs.h"
9701 #include <regex.h>
9702 EOF
9703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9704 { (eval echo configure:9705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9705 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9706 if test -z "$ac_err"; then
9707 rm -rf conftest*
9708 eval "ac_cv_header_$ac_safe=yes"
9709 else
9710 echo "$ac_err" >&5
9711 echo "configure: failed program was:" >&5
9712 cat conftest.$ac_ext >&5
9713 rm -rf conftest*
9714 eval "ac_cv_header_$ac_safe=no"
9715 fi
9716 rm -f conftest*
9717 fi
9718 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9719 echo "$ac_t""yes" 1>&6
9720 for ac_func in regcomp
9721 do
9722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9723 echo "configure:9724: checking for $ac_func" >&5
9724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9725 echo $ac_n "(cached) $ac_c" 1>&6
9726 else
9727 cat > conftest.$ac_ext <<EOF
9728 #line 9729 "configure"
9729 #include "confdefs.h"
9730 /* System header to define __stub macros and hopefully few prototypes,
9731 which can conflict with char $ac_func(); below. */
9732 #include <assert.h>
9733 /* Override any gcc2 internal prototype to avoid an error. */
9734 /* We use char because int might match the return type of a gcc2
9735 builtin and then its argument prototype would still apply. */
9736 char $ac_func();
9737
9738 int main() {
9739
9740 /* The GNU C library defines this for functions which it implements
9741 to always fail with ENOSYS. Some functions are actually named
9742 something starting with __ and the normal name is an alias. */
9743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9744 choke me
9745 #else
9746 $ac_func();
9747 #endif
9748
9749 ; return 0; }
9750 EOF
9751 if { (eval echo configure:9752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9752 rm -rf conftest*
9753 eval "ac_cv_func_$ac_func=yes"
9754 else
9755 echo "configure: failed program was:" >&5
9756 cat conftest.$ac_ext >&5
9757 rm -rf conftest*
9758 eval "ac_cv_func_$ac_func=no"
9759 fi
9760 rm -f conftest*
9761 fi
9762
9763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9764 echo "$ac_t""yes" 1>&6
9765 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9766 cat >> confdefs.h <<EOF
9767 #define $ac_tr_func 1
9768 EOF
9769
9770 else
9771 echo "$ac_t""no" 1>&6
9772 fi
9773 done
9774
9775 else
9776 echo "$ac_t""no" 1>&6
9777 fi
9778
9779
9780 if test "x$ac_cv_func_regcomp" != "xyes"; then
9781 if test "$wxUSE_REGEX" = "sys" ; then
9782 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9783 else
9784 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
9785 wxUSE_REGEX=builtin
9786 fi
9787 else
9788 wxUSE_REGEX=sys
9789 fi
9790 fi
9791
9792 if test "$wxUSE_REGEX" = "builtin" ; then
9793 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9794 fi
9795 fi
9796
9797
9798 ZLIB_INCLUDE=
9799 ZLIB_LINK=
9800 if test "$wxUSE_ZLIB" != "no" ; then
9801 cat >> confdefs.h <<\EOF
9802 #define wxUSE_ZLIB 1
9803 EOF
9804
9805
9806 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9807 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9808 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
9809 echo "configure:9810: checking for zlib.h" >&5
9810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9811 echo $ac_n "(cached) $ac_c" 1>&6
9812 else
9813 cat > conftest.$ac_ext <<EOF
9814 #line 9815 "configure"
9815 #include "confdefs.h"
9816 #include <zlib.h>
9817 EOF
9818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9819 { (eval echo configure:9820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9821 if test -z "$ac_err"; then
9822 rm -rf conftest*
9823 eval "ac_cv_header_$ac_safe=yes"
9824 else
9825 echo "$ac_err" >&5
9826 echo "configure: failed program was:" >&5
9827 cat conftest.$ac_ext >&5
9828 rm -rf conftest*
9829 eval "ac_cv_header_$ac_safe=no"
9830 fi
9831 rm -f conftest*
9832 fi
9833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9834 echo "$ac_t""yes" 1>&6
9835 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9836 echo "configure:9837: checking for deflate in -lz" >&5
9837 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9838 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9839 echo $ac_n "(cached) $ac_c" 1>&6
9840 else
9841 ac_save_LIBS="$LIBS"
9842 LIBS="-lz $LIBS"
9843 cat > conftest.$ac_ext <<EOF
9844 #line 9845 "configure"
9845 #include "confdefs.h"
9846 /* Override any gcc2 internal prototype to avoid an error. */
9847 /* We use char because int might match the return type of a gcc2
9848 builtin and then its argument prototype would still apply. */
9849 char deflate();
9850
9851 int main() {
9852 deflate()
9853 ; return 0; }
9854 EOF
9855 if { (eval echo configure:9856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9856 rm -rf conftest*
9857 eval "ac_cv_lib_$ac_lib_var=yes"
9858 else
9859 echo "configure: failed program was:" >&5
9860 cat conftest.$ac_ext >&5
9861 rm -rf conftest*
9862 eval "ac_cv_lib_$ac_lib_var=no"
9863 fi
9864 rm -f conftest*
9865 LIBS="$ac_save_LIBS"
9866
9867 fi
9868 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9869 echo "$ac_t""yes" 1>&6
9870 ZLIB_LINK=" -lz"
9871 else
9872 echo "$ac_t""no" 1>&6
9873 fi
9874
9875 else
9876 echo "$ac_t""no" 1>&6
9877 fi
9878
9879
9880 if test "x$ZLIB_LINK" = "x" ; then
9881 if test "$wxUSE_ZLIB" = "sys" ; then
9882 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9883 else
9884 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
9885 wxUSE_ZLIB=builtin
9886 fi
9887 else
9888 wxUSE_ZLIB=sys
9889 fi
9890 fi
9891
9892 if test "$wxUSE_ZLIB" = "builtin" ; then
9893 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9894 fi
9895 fi
9896
9897
9898 PNG_INCLUDE=
9899 PNG_LINK=
9900 if test "$wxUSE_LIBPNG" != "no" ; then
9901 cat >> confdefs.h <<\EOF
9902 #define wxUSE_LIBPNG 1
9903 EOF
9904
9905
9906 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
9907 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
9908 wxUSE_LIBPNG=sys
9909 fi
9910
9911 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
9912 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
9913 wxUSE_LIBPNG=builtin
9914 fi
9915
9916 if test "$wxUSE_MGL" != 1 ; then
9917 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9918 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9919 echo $ac_n "checking for png.h""... $ac_c" 1>&6
9920 echo "configure:9921: checking for png.h" >&5
9921 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9922 echo $ac_n "(cached) $ac_c" 1>&6
9923 else
9924 cat > conftest.$ac_ext <<EOF
9925 #line 9926 "configure"
9926 #include "confdefs.h"
9927 #include <png.h>
9928 EOF
9929 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9930 { (eval echo configure:9931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9931 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9932 if test -z "$ac_err"; then
9933 rm -rf conftest*
9934 eval "ac_cv_header_$ac_safe=yes"
9935 else
9936 echo "$ac_err" >&5
9937 echo "configure: failed program was:" >&5
9938 cat conftest.$ac_ext >&5
9939 rm -rf conftest*
9940 eval "ac_cv_header_$ac_safe=no"
9941 fi
9942 rm -f conftest*
9943 fi
9944 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9945 echo "$ac_t""yes" 1>&6
9946 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
9947 echo "configure:9948: checking for png_check_sig in -lpng" >&5
9948 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9949 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9950 echo $ac_n "(cached) $ac_c" 1>&6
9951 else
9952 ac_save_LIBS="$LIBS"
9953 LIBS="-lpng -lz -lm $LIBS"
9954 cat > conftest.$ac_ext <<EOF
9955 #line 9956 "configure"
9956 #include "confdefs.h"
9957 /* Override any gcc2 internal prototype to avoid an error. */
9958 /* We use char because int might match the return type of a gcc2
9959 builtin and then its argument prototype would still apply. */
9960 char png_check_sig();
9961
9962 int main() {
9963 png_check_sig()
9964 ; return 0; }
9965 EOF
9966 if { (eval echo configure:9967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9967 rm -rf conftest*
9968 eval "ac_cv_lib_$ac_lib_var=yes"
9969 else
9970 echo "configure: failed program was:" >&5
9971 cat conftest.$ac_ext >&5
9972 rm -rf conftest*
9973 eval "ac_cv_lib_$ac_lib_var=no"
9974 fi
9975 rm -f conftest*
9976 LIBS="$ac_save_LIBS"
9977
9978 fi
9979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9980 echo "$ac_t""yes" 1>&6
9981 PNG_LINK=" -lpng"
9982 else
9983 echo "$ac_t""no" 1>&6
9984 fi
9985
9986
9987 else
9988 echo "$ac_t""no" 1>&6
9989 fi
9990
9991
9992 if test "x$PNG_LINK" = "x" ; then
9993 if test "$wxUSE_LIBPNG" = "sys" ; then
9994 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9995 else
9996 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
9997 wxUSE_LIBPNG=builtin
9998 fi
9999 else
10000 wxUSE_LIBPNG=yes
10001 fi
10002 fi
10003 fi
10004
10005 if test "$wxUSE_LIBPNG" = "builtin" ; then
10006 PNG_INCLUDE="-I\${top_srcdir}/src/png"
10007 fi
10008
10009 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
10010 fi
10011
10012
10013 JPEG_INCLUDE=
10014 JPEG_LINK=
10015 if test "$wxUSE_LIBJPEG" != "no" ; then
10016 cat >> confdefs.h <<\EOF
10017 #define wxUSE_LIBJPEG 1
10018 EOF
10019
10020
10021 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
10022 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
10023 wxUSE_LIBJPEG=sys
10024 fi
10025
10026 if test "$wxUSE_MGL" != 1 ; then
10027 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
10028 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
10029 echo "configure:10030: checking for jpeglib.h" >&5
10030 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
10031 echo $ac_n "(cached) $ac_c" 1>&6
10032 else
10033 cat > conftest.$ac_ext <<EOF
10034 #line 10035 "configure"
10035 #include "confdefs.h"
10036
10037 #undef HAVE_STDLIB_H
10038 #include <stdio.h>
10039 #include <jpeglib.h>
10040
10041 int main() {
10042
10043
10044 ; return 0; }
10045 EOF
10046 if { (eval echo configure:10047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10047 rm -rf conftest*
10048 ac_cv_header_jpeglib_h=yes
10049 else
10050 echo "configure: failed program was:" >&5
10051 cat conftest.$ac_ext >&5
10052 rm -rf conftest*
10053 ac_cv_header_jpeglib_h=no
10054
10055 fi
10056 rm -f conftest*
10057
10058 fi
10059
10060 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
10061
10062 if test "$ac_cv_header_jpeglib_h" = "yes"; then
10063 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
10064 echo "configure:10065: checking for jpeg_read_header in -ljpeg" >&5
10065 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
10066 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10067 echo $ac_n "(cached) $ac_c" 1>&6
10068 else
10069 ac_save_LIBS="$LIBS"
10070 LIBS="-ljpeg $LIBS"
10071 cat > conftest.$ac_ext <<EOF
10072 #line 10073 "configure"
10073 #include "confdefs.h"
10074 /* Override any gcc2 internal prototype to avoid an error. */
10075 /* We use char because int might match the return type of a gcc2
10076 builtin and then its argument prototype would still apply. */
10077 char jpeg_read_header();
10078
10079 int main() {
10080 jpeg_read_header()
10081 ; return 0; }
10082 EOF
10083 if { (eval echo configure:10084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10084 rm -rf conftest*
10085 eval "ac_cv_lib_$ac_lib_var=yes"
10086 else
10087 echo "configure: failed program was:" >&5
10088 cat conftest.$ac_ext >&5
10089 rm -rf conftest*
10090 eval "ac_cv_lib_$ac_lib_var=no"
10091 fi
10092 rm -f conftest*
10093 LIBS="$ac_save_LIBS"
10094
10095 fi
10096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10097 echo "$ac_t""yes" 1>&6
10098 JPEG_LINK=" -ljpeg"
10099 else
10100 echo "$ac_t""no" 1>&6
10101 fi
10102
10103 fi
10104
10105 if test "x$JPEG_LINK" = "x" ; then
10106 if test "$wxUSE_LIBJPEG" = "sys" ; then
10107 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
10108 else
10109 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
10110 wxUSE_LIBJPEG=builtin
10111 fi
10112 else
10113 wxUSE_LIBJPEG=sys
10114 fi
10115 fi
10116 fi
10117
10118 if test "$wxUSE_LIBJPEG" = "builtin" ; then
10119 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
10120 fi
10121 fi
10122
10123
10124 TIFF_INCLUDE=
10125 TIFF_LINK=
10126 if test "$wxUSE_LIBTIFF" != "no" ; then
10127 cat >> confdefs.h <<\EOF
10128 #define wxUSE_LIBTIFF 1
10129 EOF
10130
10131
10132 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
10133 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
10134 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
10135 echo "configure:10136: checking for tiffio.h" >&5
10136 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10137 echo $ac_n "(cached) $ac_c" 1>&6
10138 else
10139 cat > conftest.$ac_ext <<EOF
10140 #line 10141 "configure"
10141 #include "confdefs.h"
10142 #include <tiffio.h>
10143 EOF
10144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10145 { (eval echo configure:10146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10147 if test -z "$ac_err"; then
10148 rm -rf conftest*
10149 eval "ac_cv_header_$ac_safe=yes"
10150 else
10151 echo "$ac_err" >&5
10152 echo "configure: failed program was:" >&5
10153 cat conftest.$ac_ext >&5
10154 rm -rf conftest*
10155 eval "ac_cv_header_$ac_safe=no"
10156 fi
10157 rm -f conftest*
10158 fi
10159 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10160 echo "$ac_t""yes" 1>&6
10161 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
10162 echo "configure:10163: checking for TIFFError in -ltiff" >&5
10163 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
10164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10165 echo $ac_n "(cached) $ac_c" 1>&6
10166 else
10167 ac_save_LIBS="$LIBS"
10168 LIBS="-ltiff -lm $LIBS"
10169 cat > conftest.$ac_ext <<EOF
10170 #line 10171 "configure"
10171 #include "confdefs.h"
10172 /* Override any gcc2 internal prototype to avoid an error. */
10173 /* We use char because int might match the return type of a gcc2
10174 builtin and then its argument prototype would still apply. */
10175 char TIFFError();
10176
10177 int main() {
10178 TIFFError()
10179 ; return 0; }
10180 EOF
10181 if { (eval echo configure:10182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10182 rm -rf conftest*
10183 eval "ac_cv_lib_$ac_lib_var=yes"
10184 else
10185 echo "configure: failed program was:" >&5
10186 cat conftest.$ac_ext >&5
10187 rm -rf conftest*
10188 eval "ac_cv_lib_$ac_lib_var=no"
10189 fi
10190 rm -f conftest*
10191 LIBS="$ac_save_LIBS"
10192
10193 fi
10194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10195 echo "$ac_t""yes" 1>&6
10196 TIFF_LINK=" -ltiff"
10197 else
10198 echo "$ac_t""no" 1>&6
10199 fi
10200
10201
10202 else
10203 echo "$ac_t""no" 1>&6
10204 fi
10205
10206
10207 if test "x$TIFF_LINK" = "x" ; then
10208 if test "$wxUSE_LIBTIFF" = "sys" ; then
10209 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
10210 else
10211 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
10212 wxUSE_LIBTIFF=builtin
10213 fi
10214 else
10215 wxUSE_LIBTIFF=sys
10216 fi
10217 fi
10218
10219 if test "$wxUSE_LIBTIFF" = "builtin" ; then
10220 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
10221 fi
10222 fi
10223
10224
10225 FREETYPE_INCLUDE=
10226 FREETYPE_LINK=
10227 if test "$wxUSE_FREETYPE" != "no" ; then
10228 cat >> confdefs.h <<\EOF
10229 #define wxUSE_FREETYPE 1
10230 EOF
10231
10232
10233 if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then
10234 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
10235 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
10236 echo "configure:10237: checking for freetype.h" >&5
10237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10238 echo $ac_n "(cached) $ac_c" 1>&6
10239 else
10240 cat > conftest.$ac_ext <<EOF
10241 #line 10242 "configure"
10242 #include "confdefs.h"
10243 #include <freetype.h>
10244 EOF
10245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10246 { (eval echo configure:10247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10248 if test -z "$ac_err"; then
10249 rm -rf conftest*
10250 eval "ac_cv_header_$ac_safe=yes"
10251 else
10252 echo "$ac_err" >&5
10253 echo "configure: failed program was:" >&5
10254 cat conftest.$ac_ext >&5
10255 rm -rf conftest*
10256 eval "ac_cv_header_$ac_safe=no"
10257 fi
10258 rm -f conftest*
10259 fi
10260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10261 echo "$ac_t""yes" 1>&6
10262 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
10263 echo "configure:10264: checking for FT_Render_Glyph in -lfreetype" >&5
10264 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
10265 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10266 echo $ac_n "(cached) $ac_c" 1>&6
10267 else
10268 ac_save_LIBS="$LIBS"
10269 LIBS="-lfreetype -lm $LIBS"
10270 cat > conftest.$ac_ext <<EOF
10271 #line 10272 "configure"
10272 #include "confdefs.h"
10273 /* Override any gcc2 internal prototype to avoid an error. */
10274 /* We use char because int might match the return type of a gcc2
10275 builtin and then its argument prototype would still apply. */
10276 char FT_Render_Glyph();
10277
10278 int main() {
10279 FT_Render_Glyph()
10280 ; return 0; }
10281 EOF
10282 if { (eval echo configure:10283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10283 rm -rf conftest*
10284 eval "ac_cv_lib_$ac_lib_var=yes"
10285 else
10286 echo "configure: failed program was:" >&5
10287 cat conftest.$ac_ext >&5
10288 rm -rf conftest*
10289 eval "ac_cv_lib_$ac_lib_var=no"
10290 fi
10291 rm -f conftest*
10292 LIBS="$ac_save_LIBS"
10293
10294 fi
10295 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10296 echo "$ac_t""yes" 1>&6
10297 FREETYPE_LINK=" -lfreetype"
10298 else
10299 echo "$ac_t""no" 1>&6
10300 fi
10301
10302
10303 else
10304 echo "$ac_t""no" 1>&6
10305 fi
10306
10307
10308 if test "x$FREETYPE_LINK" = "x" ; then
10309 if test "$wxUSE_FREETYPE" = "sys" ; then
10310 { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; }
10311 else
10312 echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2
10313 wxUSE_FREETYPE=builtin
10314 fi
10315 else
10316 wxUSE_FREETYPE=sys
10317 fi
10318 fi
10319
10320 if test "$wxUSE_FREETYPE" = "builtin" ; then
10321 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
10322 fi
10323 fi
10324
10325
10326 AFMINSTALL=
10327
10328 TOOLKIT=
10329 TOOLKIT_INCLUDE=
10330 WIDGET_SET=
10331
10332 if test "$USE_WIN32" = 1 ; then
10333 for ac_hdr in w32api.h
10334 do
10335 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10336 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10337 echo "configure:10338: checking for $ac_hdr" >&5
10338 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10339 echo $ac_n "(cached) $ac_c" 1>&6
10340 else
10341 cat > conftest.$ac_ext <<EOF
10342 #line 10343 "configure"
10343 #include "confdefs.h"
10344 #include <$ac_hdr>
10345 EOF
10346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10347 { (eval echo configure:10348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10348 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10349 if test -z "$ac_err"; then
10350 rm -rf conftest*
10351 eval "ac_cv_header_$ac_safe=yes"
10352 else
10353 echo "$ac_err" >&5
10354 echo "configure: failed program was:" >&5
10355 cat conftest.$ac_ext >&5
10356 rm -rf conftest*
10357 eval "ac_cv_header_$ac_safe=no"
10358 fi
10359 rm -f conftest*
10360 fi
10361 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10362 echo "$ac_t""yes" 1>&6
10363 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10364 cat >> confdefs.h <<EOF
10365 #define $ac_tr_hdr 1
10366 EOF
10367
10368 else
10369 echo "$ac_t""no" 1>&6
10370 fi
10371 done
10372
10373 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10374 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
10375 echo "configure:10376: checking for windows.h" >&5
10376 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10377 echo $ac_n "(cached) $ac_c" 1>&6
10378 else
10379 cat > conftest.$ac_ext <<EOF
10380 #line 10381 "configure"
10381 #include "confdefs.h"
10382 #include <windows.h>
10383 EOF
10384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10385 { (eval echo configure:10386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10386 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10387 if test -z "$ac_err"; then
10388 rm -rf conftest*
10389 eval "ac_cv_header_$ac_safe=yes"
10390 else
10391 echo "$ac_err" >&5
10392 echo "configure: failed program was:" >&5
10393 cat conftest.$ac_ext >&5
10394 rm -rf conftest*
10395 eval "ac_cv_header_$ac_safe=no"
10396 fi
10397 rm -f conftest*
10398 fi
10399 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10400 echo "$ac_t""yes" 1>&6
10401 :
10402 else
10403 echo "$ac_t""no" 1>&6
10404
10405 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10406
10407 fi
10408
10409
10410 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
10411 echo "configure:10412: checking if w32api has good enough MSIE support" >&5
10412 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
10413 echo $ac_n "(cached) $ac_c" 1>&6
10414 else
10415
10416 cat > conftest.$ac_ext <<EOF
10417 #line 10418 "configure"
10418 #include "confdefs.h"
10419 #include <w32api.h>
10420 int main() {
10421
10422 #define wxCHECK_W32API_VERSION( major, minor ) \
10423 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
10424 && ( ( __W32API_MAJOR_VERSION > (major) ) \
10425 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
10426
10427 #if !wxCHECK_W32API_VERSION(1,1)
10428 #error You need w32api 1.1 or newer
10429 #endif
10430
10431 ; return 0; }
10432 EOF
10433 if { (eval echo configure:10434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10434 rm -rf conftest*
10435
10436 wx_cv_w32api_win32_ie=yes
10437
10438 else
10439 echo "configure: failed program was:" >&5
10440 cat conftest.$ac_ext >&5
10441 rm -rf conftest*
10442
10443 wx_cv_w32api_win32_ie=no
10444
10445 fi
10446 rm -f conftest*
10447
10448 fi
10449
10450 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
10451 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
10452 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
10453 fi
10454
10455 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
10456
10457 case "${host}" in
10458 *-*-cygwin* )
10459 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
10460 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
10461 esac
10462
10463 if test "$wxUSE_ODBC" = "yes" ; then
10464 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
10465 fi
10466
10467 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
10468 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
10469 fi
10470
10471 if test "$wxUSE_GUI" = "yes"; then
10472 USE_GUI=1
10473
10474 GUI_TK_LIBRARY=
10475
10476 WXGTK12=
10477 WXGTK127=
10478 WXGTK20=
10479
10480 if test "$wxUSE_MSW" = 1 ; then
10481 TOOLKIT=MSW
10482 GUIDIST=MSW_DIST
10483
10484 case "${host}" in
10485 *-*-mingw32* )
10486 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
10487 esac
10488 fi
10489
10490 if test "$wxUSE_GTK" = 1; then
10491 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
10492 echo "configure:10493: checking for GTK+ version" >&5
10493
10494 gtk_version_cached=1
10495 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
10496 echo $ac_n "(cached) $ac_c" 1>&6
10497 else
10498
10499 gtk_version_cached=0
10500 echo "$ac_t""" 1>&6
10501
10502 GTK_MODULES=
10503 if test "$wxUSE_THREADS" = "yes"; then
10504 GTK_MODULES=gthread
10505 fi
10506
10507 wx_cv_lib_gtk=
10508 if test "x$wxUSE_GTK2" = "xyes"; then
10509 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10510 if test "${with_gtk_prefix+set}" = set; then
10511 withval="$with_gtk_prefix"
10512 gtk_config_prefix="$withval"
10513 else
10514 gtk_config_prefix=""
10515 fi
10516
10517 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10518 if test "${with_gtk_exec_prefix+set}" = set; then
10519 withval="$with_gtk_exec_prefix"
10520 gtk_config_exec_prefix="$withval"
10521 else
10522 gtk_config_exec_prefix=""
10523 fi
10524
10525 # Check whether --enable-gtktest or --disable-gtktest was given.
10526 if test "${enable_gtktest+set}" = set; then
10527 enableval="$enable_gtktest"
10528 :
10529 else
10530 enable_gtktest=yes
10531 fi
10532
10533
10534 for module in . $GTK_MODULES
10535 do
10536 case "$module" in
10537 gthread)
10538 gtk_config_args="$gtk_config_args gthread"
10539 ;;
10540 esac
10541 done
10542
10543 if test x$gtk_config_exec_prefix != x ; then
10544 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10545 if test x${GTK_CONFIG_2_0+set} != xset ; then
10546 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
10547 fi
10548 fi
10549 if test x$gtk_config_prefix != x ; then
10550 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10551 if test x${GTK_CONFIG_2_0+set} != xset ; then
10552 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
10553 fi
10554 fi
10555
10556 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
10557 set dummy gtk-config-2.0; ac_word=$2
10558 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10559 echo "configure:10560: checking for $ac_word" >&5
10560 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
10561 echo $ac_n "(cached) $ac_c" 1>&6
10562 else
10563 case "$GTK_CONFIG_2_0" in
10564 /*)
10565 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
10566 ;;
10567 ?:/*)
10568 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
10569 ;;
10570 *)
10571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10572 ac_dummy="$PATH"
10573 for ac_dir in $ac_dummy; do
10574 test -z "$ac_dir" && ac_dir=.
10575 if test -f $ac_dir/$ac_word; then
10576 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
10577 break
10578 fi
10579 done
10580 IFS="$ac_save_ifs"
10581 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
10582 ;;
10583 esac
10584 fi
10585 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
10586 if test -n "$GTK_CONFIG_2_0"; then
10587 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
10588 else
10589 echo "$ac_t""no" 1>&6
10590 fi
10591
10592 min_gtk_version=1.3.1
10593 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10594 echo "configure:10595: checking for GTK - version >= $min_gtk_version" >&5
10595 no_gtk=""
10596 if test "$GTK_CONFIG_2_0" = "no" ; then
10597 no_gtk=yes
10598 else
10599 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
10600 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
10601 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10602 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10603 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10604 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10605 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10606 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10607 if test "x$enable_gtktest" = "xyes" ; then
10608 ac_save_CFLAGS="$CFLAGS"
10609 ac_save_LIBS="$LIBS"
10610 CFLAGS="$CFLAGS $GTK_CFLAGS"
10611 LIBS="$GTK_LIBS $LIBS"
10612 rm -f conf.gtktest
10613 if test "$cross_compiling" = yes; then
10614 echo $ac_n "cross compiling; assumed OK... $ac_c"
10615 else
10616 cat > conftest.$ac_ext <<EOF
10617 #line 10618 "configure"
10618 #include "confdefs.h"
10619
10620 #include <gtk/gtk.h>
10621 #include <stdio.h>
10622 #include <stdlib.h>
10623
10624 int
10625 main ()
10626 {
10627 int major, minor, micro;
10628 char *tmp_version;
10629
10630 system ("touch conf.gtktest");
10631
10632 /* HP/UX 9 (%@#!) writes to sscanf strings */
10633 tmp_version = g_strdup("$min_gtk_version");
10634 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10635 printf("%s, bad version string\n", "$min_gtk_version");
10636 exit(1);
10637 }
10638
10639 if ((gtk_major_version != $gtk_config_major_version) ||
10640 (gtk_minor_version != $gtk_config_minor_version) ||
10641 (gtk_micro_version != $gtk_config_micro_version))
10642 {
10643 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10644 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10645 gtk_major_version, gtk_minor_version, gtk_micro_version);
10646 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
10647 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10648 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10649 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10650 printf("*** required on your system.\n");
10651 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
10652 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
10653 printf("*** before re-running configure\n");
10654 }
10655 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10656 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10657 (gtk_minor_version != GTK_MINOR_VERSION) ||
10658 (gtk_micro_version != GTK_MICRO_VERSION))
10659 {
10660 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10661 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10662 printf("*** library (version %d.%d.%d)\n",
10663 gtk_major_version, gtk_minor_version, gtk_micro_version);
10664 }
10665 #endif /* defined (GTK_MAJOR_VERSION) ... */
10666 else
10667 {
10668 if ((gtk_major_version > major) ||
10669 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10670 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10671 {
10672 return 0;
10673 }
10674 else
10675 {
10676 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10677 gtk_major_version, gtk_minor_version, gtk_micro_version);
10678 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10679 major, minor, micro);
10680 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10681 printf("***\n");
10682 printf("*** If you have already installed a sufficiently new version, this error\n");
10683 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
10684 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10685 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
10686 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
10687 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10688 printf("*** so that the correct libraries are found at run-time))\n");
10689 }
10690 }
10691 return 1;
10692 }
10693
10694 EOF
10695 if { (eval echo configure:10696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10696 then
10697 :
10698 else
10699 echo "configure: failed program was:" >&5
10700 cat conftest.$ac_ext >&5
10701 rm -fr conftest*
10702 no_gtk=yes
10703 fi
10704 rm -fr conftest*
10705 fi
10706
10707 CFLAGS="$ac_save_CFLAGS"
10708 LIBS="$ac_save_LIBS"
10709 fi
10710 fi
10711 if test "x$no_gtk" = x ; then
10712 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
10713 wx_cv_lib_gtk=2.0
10714 else
10715 echo "$ac_t""no" 1>&6
10716 if test "$GTK_CONFIG_2_0" = "no" ; then
10717 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
10718 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10719 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
10720 echo "*** full path to gtk-config-2.0."
10721 else
10722 if test -f conf.gtktest ; then
10723 :
10724 else
10725 echo "*** Could not run GTK test program, checking why..."
10726 CFLAGS="$CFLAGS $GTK_CFLAGS"
10727 LIBS="$LIBS $GTK_LIBS"
10728 cat > conftest.$ac_ext <<EOF
10729 #line 10730 "configure"
10730 #include "confdefs.h"
10731
10732 #include <gtk/gtk.h>
10733 #include <stdio.h>
10734
10735 int main() {
10736 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10737 ; return 0; }
10738 EOF
10739 if { (eval echo configure:10740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10740 rm -rf conftest*
10741 echo "*** The test program compiled, but did not run. This usually means"
10742 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10743 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10744 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10745 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10746 echo "*** is required on your system"
10747 echo "***"
10748 echo "*** If you have an old version installed, it is best to remove it, although"
10749 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10750 echo "***"
10751 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10752 echo "*** came with the system with the command"
10753 echo "***"
10754 echo "*** rpm --erase --nodeps gtk gtk-devel"
10755 else
10756 echo "configure: failed program was:" >&5
10757 cat conftest.$ac_ext >&5
10758 rm -rf conftest*
10759 echo "*** The test program failed to compile or link. See the file config.log for the"
10760 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10761 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10762 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
10763 fi
10764 rm -f conftest*
10765 CFLAGS="$ac_save_CFLAGS"
10766 LIBS="$ac_save_LIBS"
10767 fi
10768 fi
10769 GTK_CFLAGS=""
10770 GTK_LIBS=""
10771 :
10772 fi
10773
10774
10775 rm -f conf.gtktest
10776
10777 fi
10778
10779 if test -z "$wx_cv_lib_gtk"; then
10780 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10781 if test "${with_gtk_prefix+set}" = set; then
10782 withval="$with_gtk_prefix"
10783 gtk_config_prefix="$withval"
10784 else
10785 gtk_config_prefix=""
10786 fi
10787
10788 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10789 if test "${with_gtk_exec_prefix+set}" = set; then
10790 withval="$with_gtk_exec_prefix"
10791 gtk_config_exec_prefix="$withval"
10792 else
10793 gtk_config_exec_prefix=""
10794 fi
10795
10796 # Check whether --enable-gtktest or --disable-gtktest was given.
10797 if test "${enable_gtktest+set}" = set; then
10798 enableval="$enable_gtktest"
10799 :
10800 else
10801 enable_gtktest=yes
10802 fi
10803
10804
10805 for module in . $GTK_MODULES
10806 do
10807 case "$module" in
10808 gthread)
10809 gtk_config_args="$gtk_config_args gthread"
10810 ;;
10811 esac
10812 done
10813
10814 if test x$gtk_config_exec_prefix != x ; then
10815 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10816 if test x${GTK_CONFIG+set} != xset ; then
10817 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10818 fi
10819 fi
10820 if test x$gtk_config_prefix != x ; then
10821 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10822 if test x${GTK_CONFIG+set} != xset ; then
10823 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10824 fi
10825 fi
10826
10827 # Extract the first word of "gtk-config", so it can be a program name with args.
10828 set dummy gtk-config; ac_word=$2
10829 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10830 echo "configure:10831: checking for $ac_word" >&5
10831 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10832 echo $ac_n "(cached) $ac_c" 1>&6
10833 else
10834 case "$GTK_CONFIG" in
10835 /*)
10836 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10837 ;;
10838 ?:/*)
10839 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10840 ;;
10841 *)
10842 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10843 ac_dummy="$PATH"
10844 for ac_dir in $ac_dummy; do
10845 test -z "$ac_dir" && ac_dir=.
10846 if test -f $ac_dir/$ac_word; then
10847 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10848 break
10849 fi
10850 done
10851 IFS="$ac_save_ifs"
10852 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10853 ;;
10854 esac
10855 fi
10856 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10857 if test -n "$GTK_CONFIG"; then
10858 echo "$ac_t""$GTK_CONFIG" 1>&6
10859 else
10860 echo "$ac_t""no" 1>&6
10861 fi
10862
10863 min_gtk_version=1.2.7
10864 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10865 echo "configure:10866: checking for GTK - version >= $min_gtk_version" >&5
10866 no_gtk=""
10867 if test "$GTK_CONFIG" = "no" ; then
10868 no_gtk=yes
10869 else
10870 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10871 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10872 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10873 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10874 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10875 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10876 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10877 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10878 if test "x$enable_gtktest" = "xyes" ; then
10879 ac_save_CFLAGS="$CFLAGS"
10880 ac_save_LIBS="$LIBS"
10881 CFLAGS="$CFLAGS $GTK_CFLAGS"
10882 LIBS="$GTK_LIBS $LIBS"
10883 rm -f conf.gtktest
10884 if test "$cross_compiling" = yes; then
10885 echo $ac_n "cross compiling; assumed OK... $ac_c"
10886 else
10887 cat > conftest.$ac_ext <<EOF
10888 #line 10889 "configure"
10889 #include "confdefs.h"
10890
10891 #include <gtk/gtk.h>
10892 #include <stdio.h>
10893 #include <stdlib.h>
10894
10895 int
10896 main ()
10897 {
10898 int major, minor, micro;
10899 char *tmp_version;
10900
10901 system ("touch conf.gtktest");
10902
10903 /* HP/UX 9 (%@#!) writes to sscanf strings */
10904 tmp_version = g_strdup("$min_gtk_version");
10905 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10906 printf("%s, bad version string\n", "$min_gtk_version");
10907 exit(1);
10908 }
10909
10910 if ((gtk_major_version != $gtk_config_major_version) ||
10911 (gtk_minor_version != $gtk_config_minor_version) ||
10912 (gtk_micro_version != $gtk_config_micro_version))
10913 {
10914 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10915 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10916 gtk_major_version, gtk_minor_version, gtk_micro_version);
10917 printf ("*** was found! If gtk-config was correct, then it is best\n");
10918 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10919 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10920 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10921 printf("*** required on your system.\n");
10922 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10923 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10924 printf("*** before re-running configure\n");
10925 }
10926 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10927 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10928 (gtk_minor_version != GTK_MINOR_VERSION) ||
10929 (gtk_micro_version != GTK_MICRO_VERSION))
10930 {
10931 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10932 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10933 printf("*** library (version %d.%d.%d)\n",
10934 gtk_major_version, gtk_minor_version, gtk_micro_version);
10935 }
10936 #endif /* defined (GTK_MAJOR_VERSION) ... */
10937 else
10938 {
10939 if ((gtk_major_version > major) ||
10940 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10941 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10942 {
10943 return 0;
10944 }
10945 else
10946 {
10947 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10948 gtk_major_version, gtk_minor_version, gtk_micro_version);
10949 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10950 major, minor, micro);
10951 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10952 printf("***\n");
10953 printf("*** If you have already installed a sufficiently new version, this error\n");
10954 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10955 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10956 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10957 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10958 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10959 printf("*** so that the correct libraries are found at run-time))\n");
10960 }
10961 }
10962 return 1;
10963 }
10964
10965 EOF
10966 if { (eval echo configure:10967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10967 then
10968 :
10969 else
10970 echo "configure: failed program was:" >&5
10971 cat conftest.$ac_ext >&5
10972 rm -fr conftest*
10973 no_gtk=yes
10974 fi
10975 rm -fr conftest*
10976 fi
10977
10978 CFLAGS="$ac_save_CFLAGS"
10979 LIBS="$ac_save_LIBS"
10980 fi
10981 fi
10982 if test "x$no_gtk" = x ; then
10983 echo "$ac_t""yes" 1>&6
10984 wx_cv_lib_gtk=1.2.7
10985 else
10986 echo "$ac_t""no" 1>&6
10987 if test "$GTK_CONFIG" = "no" ; then
10988 echo "*** The gtk-config script installed by GTK could not be found"
10989 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10990 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10991 echo "*** full path to gtk-config."
10992 else
10993 if test -f conf.gtktest ; then
10994 :
10995 else
10996 echo "*** Could not run GTK test program, checking why..."
10997 CFLAGS="$CFLAGS $GTK_CFLAGS"
10998 LIBS="$LIBS $GTK_LIBS"
10999 cat > conftest.$ac_ext <<EOF
11000 #line 11001 "configure"
11001 #include "confdefs.h"
11002
11003 #include <gtk/gtk.h>
11004 #include <stdio.h>
11005
11006 int main() {
11007 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11008 ; return 0; }
11009 EOF
11010 if { (eval echo configure:11011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11011 rm -rf conftest*
11012 echo "*** The test program compiled, but did not run. This usually means"
11013 echo "*** that the run-time linker is not finding GTK or finding the wrong"
11014 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
11015 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11016 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11017 echo "*** is required on your system"
11018 echo "***"
11019 echo "*** If you have an old version installed, it is best to remove it, although"
11020 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11021 echo "***"
11022 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
11023 echo "*** came with the system with the command"
11024 echo "***"
11025 echo "*** rpm --erase --nodeps gtk gtk-devel"
11026 else
11027 echo "configure: failed program was:" >&5
11028 cat conftest.$ac_ext >&5
11029 rm -rf conftest*
11030 echo "*** The test program failed to compile or link. See the file config.log for the"
11031 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
11032 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
11033 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
11034 fi
11035 rm -f conftest*
11036 CFLAGS="$ac_save_CFLAGS"
11037 LIBS="$ac_save_LIBS"
11038 fi
11039 fi
11040 GTK_CFLAGS=""
11041 GTK_LIBS=""
11042 :
11043 fi
11044
11045
11046 rm -f conf.gtktest
11047
11048 fi
11049
11050 if test -z "$wx_cv_lib_gtk"; then
11051 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
11052 if test "${with_gtk_prefix+set}" = set; then
11053 withval="$with_gtk_prefix"
11054 gtk_config_prefix="$withval"
11055 else
11056 gtk_config_prefix=""
11057 fi
11058
11059 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
11060 if test "${with_gtk_exec_prefix+set}" = set; then
11061 withval="$with_gtk_exec_prefix"
11062 gtk_config_exec_prefix="$withval"
11063 else
11064 gtk_config_exec_prefix=""
11065 fi
11066
11067 # Check whether --enable-gtktest or --disable-gtktest was given.
11068 if test "${enable_gtktest+set}" = set; then
11069 enableval="$enable_gtktest"
11070 :
11071 else
11072 enable_gtktest=yes
11073 fi
11074
11075
11076 for module in . $GTK_MODULES
11077 do
11078 case "$module" in
11079 gthread)
11080 gtk_config_args="$gtk_config_args gthread"
11081 ;;
11082 esac
11083 done
11084
11085 if test x$gtk_config_exec_prefix != x ; then
11086 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
11087 if test x${GTK_CONFIG+set} != xset ; then
11088 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
11089 fi
11090 fi
11091 if test x$gtk_config_prefix != x ; then
11092 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
11093 if test x${GTK_CONFIG+set} != xset ; then
11094 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
11095 fi
11096 fi
11097
11098 # Extract the first word of "gtk-config", so it can be a program name with args.
11099 set dummy gtk-config; ac_word=$2
11100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11101 echo "configure:11102: checking for $ac_word" >&5
11102 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
11103 echo $ac_n "(cached) $ac_c" 1>&6
11104 else
11105 case "$GTK_CONFIG" in
11106 /*)
11107 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
11108 ;;
11109 ?:/*)
11110 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
11111 ;;
11112 *)
11113 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11114 ac_dummy="$PATH"
11115 for ac_dir in $ac_dummy; do
11116 test -z "$ac_dir" && ac_dir=.
11117 if test -f $ac_dir/$ac_word; then
11118 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
11119 break
11120 fi
11121 done
11122 IFS="$ac_save_ifs"
11123 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
11124 ;;
11125 esac
11126 fi
11127 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
11128 if test -n "$GTK_CONFIG"; then
11129 echo "$ac_t""$GTK_CONFIG" 1>&6
11130 else
11131 echo "$ac_t""no" 1>&6
11132 fi
11133
11134 min_gtk_version=1.2.3
11135 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
11136 echo "configure:11137: checking for GTK - version >= $min_gtk_version" >&5
11137 no_gtk=""
11138 if test "$GTK_CONFIG" = "no" ; then
11139 no_gtk=yes
11140 else
11141 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
11142 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
11143 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
11144 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11145 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
11146 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11147 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
11148 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11149 if test "x$enable_gtktest" = "xyes" ; then
11150 ac_save_CFLAGS="$CFLAGS"
11151 ac_save_LIBS="$LIBS"
11152 CFLAGS="$CFLAGS $GTK_CFLAGS"
11153 LIBS="$GTK_LIBS $LIBS"
11154 rm -f conf.gtktest
11155 if test "$cross_compiling" = yes; then
11156 echo $ac_n "cross compiling; assumed OK... $ac_c"
11157 else
11158 cat > conftest.$ac_ext <<EOF
11159 #line 11160 "configure"
11160 #include "confdefs.h"
11161
11162 #include <gtk/gtk.h>
11163 #include <stdio.h>
11164 #include <stdlib.h>
11165
11166 int
11167 main ()
11168 {
11169 int major, minor, micro;
11170 char *tmp_version;
11171
11172 system ("touch conf.gtktest");
11173
11174 /* HP/UX 9 (%@#!) writes to sscanf strings */
11175 tmp_version = g_strdup("$min_gtk_version");
11176 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11177 printf("%s, bad version string\n", "$min_gtk_version");
11178 exit(1);
11179 }
11180
11181 if ((gtk_major_version != $gtk_config_major_version) ||
11182 (gtk_minor_version != $gtk_config_minor_version) ||
11183 (gtk_micro_version != $gtk_config_micro_version))
11184 {
11185 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11186 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11187 gtk_major_version, gtk_minor_version, gtk_micro_version);
11188 printf ("*** was found! If gtk-config was correct, then it is best\n");
11189 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11190 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11191 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11192 printf("*** required on your system.\n");
11193 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
11194 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
11195 printf("*** before re-running configure\n");
11196 }
11197 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
11198 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11199 (gtk_minor_version != GTK_MINOR_VERSION) ||
11200 (gtk_micro_version != GTK_MICRO_VERSION))
11201 {
11202 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11203 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11204 printf("*** library (version %d.%d.%d)\n",
11205 gtk_major_version, gtk_minor_version, gtk_micro_version);
11206 }
11207 #endif /* defined (GTK_MAJOR_VERSION) ... */
11208 else
11209 {
11210 if ((gtk_major_version > major) ||
11211 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11212 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11213 {
11214 return 0;
11215 }
11216 else
11217 {
11218 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11219 gtk_major_version, gtk_minor_version, gtk_micro_version);
11220 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11221 major, minor, micro);
11222 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11223 printf("***\n");
11224 printf("*** If you have already installed a sufficiently new version, this error\n");
11225 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
11226 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11227 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
11228 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
11229 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11230 printf("*** so that the correct libraries are found at run-time))\n");
11231 }
11232 }
11233 return 1;
11234 }
11235
11236 EOF
11237 if { (eval echo configure:11238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11238 then
11239 :
11240 else
11241 echo "configure: failed program was:" >&5
11242 cat conftest.$ac_ext >&5
11243 rm -fr conftest*
11244 no_gtk=yes
11245 fi
11246 rm -fr conftest*
11247 fi
11248
11249 CFLAGS="$ac_save_CFLAGS"
11250 LIBS="$ac_save_LIBS"
11251 fi
11252 fi
11253 if test "x$no_gtk" = x ; then
11254 echo "$ac_t""yes" 1>&6
11255 wx_cv_lib_gtk=1.2.3
11256 else
11257 echo "$ac_t""no" 1>&6
11258 if test "$GTK_CONFIG" = "no" ; then
11259 echo "*** The gtk-config script installed by GTK could not be found"
11260 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
11261 echo "*** your path, or set the GTK_CONFIG environment variable to the"
11262 echo "*** full path to gtk-config."
11263 else
11264 if test -f conf.gtktest ; then
11265 :
11266 else
11267 echo "*** Could not run GTK test program, checking why..."
11268 CFLAGS="$CFLAGS $GTK_CFLAGS"
11269 LIBS="$LIBS $GTK_LIBS"
11270 cat > conftest.$ac_ext <<EOF
11271 #line 11272 "configure"
11272 #include "confdefs.h"
11273
11274 #include <gtk/gtk.h>
11275 #include <stdio.h>
11276
11277 int main() {
11278 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11279 ; return 0; }
11280 EOF
11281 if { (eval echo configure:11282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11282 rm -rf conftest*
11283 echo "*** The test program compiled, but did not run. This usually means"
11284 echo "*** that the run-time linker is not finding GTK or finding the wrong"
11285 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
11286 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11287 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11288 echo "*** is required on your system"
11289 echo "***"
11290 echo "*** If you have an old version installed, it is best to remove it, although"
11291 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11292 echo "***"
11293 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
11294 echo "*** came with the system with the command"
11295 echo "***"
11296 echo "*** rpm --erase --nodeps gtk gtk-devel"
11297 else
11298 echo "configure: failed program was:" >&5
11299 cat conftest.$ac_ext >&5
11300 rm -rf conftest*
11301 echo "*** The test program failed to compile or link. See the file config.log for the"
11302 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
11303 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
11304 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
11305 fi
11306 rm -f conftest*
11307 CFLAGS="$ac_save_CFLAGS"
11308 LIBS="$ac_save_LIBS"
11309 fi
11310 fi
11311 GTK_CFLAGS=""
11312 GTK_LIBS=""
11313 :
11314 fi
11315
11316
11317 rm -f conf.gtktest
11318
11319 fi
11320
11321 if test -z "$wx_cv_lib_gtk"; then
11322 wx_cv_lib_gtk=none
11323 else
11324 wx_cv_cflags_gtk=$GTK_CFLAGS
11325 wx_cv_libs_gtk=$GTK_LIBS
11326 fi
11327
11328
11329 fi
11330
11331
11332 if test "$gtk_version_cached" = 1; then
11333 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
11334 fi
11335
11336 case "$wx_cv_lib_gtk" in
11337 2.0) WXGTK20=1
11338 ;;
11339 1.2.7) WXGTK127=1
11340 WXGTK12=1
11341 ;;
11342 1.2.3) WXGTK12=1
11343 ;;
11344 *) { echo "configure: error:
11345 Please check that gtk-config is in path, the directory
11346 where GTK+ libraries are installed (returned by
11347 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
11348 equivalent variable and GTK+ is version 1.2.3 or above.
11349 " 1>&2; exit 1; }
11350 ;;
11351 esac
11352
11353 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11354 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
11355
11356 AFMINSTALL=afminstall
11357 TOOLKIT=GTK
11358 GUIDIST=GTK_DIST
11359
11360 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
11361 echo "configure:11362: checking for gdk_im_open in -lgdk" >&5
11362 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
11363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11364 echo $ac_n "(cached) $ac_c" 1>&6
11365 else
11366 ac_save_LIBS="$LIBS"
11367 LIBS="-lgdk $LIBS"
11368 cat > conftest.$ac_ext <<EOF
11369 #line 11370 "configure"
11370 #include "confdefs.h"
11371 /* Override any gcc2 internal prototype to avoid an error. */
11372 /* We use char because int might match the return type of a gcc2
11373 builtin and then its argument prototype would still apply. */
11374 char gdk_im_open();
11375
11376 int main() {
11377 gdk_im_open()
11378 ; return 0; }
11379 EOF
11380 if { (eval echo configure:11381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11381 rm -rf conftest*
11382 eval "ac_cv_lib_$ac_lib_var=yes"
11383 else
11384 echo "configure: failed program was:" >&5
11385 cat conftest.$ac_ext >&5
11386 rm -rf conftest*
11387 eval "ac_cv_lib_$ac_lib_var=no"
11388 fi
11389 rm -f conftest*
11390 LIBS="$ac_save_LIBS"
11391
11392 fi
11393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11394 echo "$ac_t""yes" 1>&6
11395 cat >> confdefs.h <<\EOF
11396 #define HAVE_XIM 1
11397 EOF
11398
11399 else
11400 echo "$ac_t""no" 1>&6
11401 fi
11402
11403 fi
11404
11405 if test "$wxUSE_MGL" = 1; then
11406 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
11407 echo "configure:11408: checking for SciTech MGL library" >&5
11408 if test "x$MGL_ROOT" = x ; then
11409 echo "$ac_t""not found" 1>&6
11410 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
11411 else
11412 echo "$ac_t""$MGL_ROOT" 1>&6
11413 fi
11414
11415 case "${host}" in
11416 *-*-linux* )
11417 mgl_os=linux/gcc/glibc
11418 ;;
11419 *-pc-msdosdjgpp )
11420 mgl_os=dos32/dj2
11421 ;;
11422 *)
11423 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
11424 esac
11425
11426 mgl_lib_type=""
11427
11428 if test "$wxUSE_DEBUG_FLAG" = yes ; then
11429 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
11430 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
11431 mgl_lib_type=debug
11432 fi
11433 fi
11434 if test "x$mgl_lib_type" = x ; then
11435 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
11436 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
11437 mgl_lib_type=release
11438 else
11439 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
11440 fi
11441 fi
11442
11443 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
11444 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
11445
11446 AFMINSTALL=afminstall
11447 TOOLKIT=MGL
11448 GUIDIST=MGL_DIST
11449 fi
11450
11451 if test "$wxUSE_MICROWIN" = 1; then
11452 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
11453 echo "configure:11454: checking for MicroWindows" >&5
11454 if test "x$MICROWINDOWS" = x ; then
11455 echo "$ac_t""not found" 1>&6
11456 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
11457 else
11458 echo "$ac_t""$MICROWINDOWS" 1>&6
11459 fi
11460
11461 if test -f $MICROWINDOWS/lib/libmwin.a; then
11462 echo "$ac_t""MicroWindows' libraries found." 1>&6
11463 else
11464 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
11465 fi
11466
11467 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
11468 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
11469
11470 AFMINSTALL=afminstall
11471 TOOLKIT=MICROWIN
11472 GUIDIST=MICROWIN_DIST
11473
11474 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
11475 fi
11476
11477 if test "$wxUSE_X11" = 1; then
11478 # If we find X, set shell vars x_includes and x_libraries to the
11479 # paths, otherwise set no_x=yes.
11480 # Uses ac_ vars as temps to allow command line to override cache and checks.
11481 # --without-x overrides everything else, but does not touch the cache.
11482 echo $ac_n "checking for X""... $ac_c" 1>&6
11483 echo "configure:11484: checking for X" >&5
11484
11485 # Check whether --with-x or --without-x was given.
11486 if test "${with_x+set}" = set; then
11487 withval="$with_x"
11488 :
11489 fi
11490
11491 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11492 if test "x$with_x" = xno; then
11493 # The user explicitly disabled X.
11494 have_x=disabled
11495 else
11496 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11497 # Both variables are already set.
11498 have_x=yes
11499 else
11500 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
11501 echo $ac_n "(cached) $ac_c" 1>&6
11502 else
11503 # One or both of the vars are not set, and there is no cached value.
11504 ac_x_includes=NO ac_x_libraries=NO
11505 rm -fr conftestdir
11506 if mkdir conftestdir; then
11507 cd conftestdir
11508 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11509 cat > Imakefile <<'EOF'
11510 acfindx:
11511 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11512 EOF
11513 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11514 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11515 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11516 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11517 for ac_extension in a so sl; do
11518 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11519 test -f $ac_im_libdir/libX11.$ac_extension; then
11520 ac_im_usrlibdir=$ac_im_libdir; break
11521 fi
11522 done
11523 # Screen out bogus values from the imake configuration. They are
11524 # bogus both because they are the default anyway, and because
11525 # using them would break gcc on systems where it needs fixed includes.
11526 case "$ac_im_incroot" in
11527 /usr/include) ;;
11528 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
11529 esac
11530 case "$ac_im_usrlibdir" in
11531 /usr/lib | /lib) ;;
11532 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
11533 esac
11534 fi
11535 cd ..
11536 rm -fr conftestdir
11537 fi
11538
11539 if test "$ac_x_includes" = NO; then
11540 # Guess where to find include files, by looking for this one X11 .h file.
11541 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
11542
11543 # First, try using that file with no special directory specified.
11544 cat > conftest.$ac_ext <<EOF
11545 #line 11546 "configure"
11546 #include "confdefs.h"
11547 #include <$x_direct_test_include>
11548 EOF
11549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11550 { (eval echo configure:11551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11552 if test -z "$ac_err"; then
11553 rm -rf conftest*
11554 # We can compile using X headers with no special include directory.
11555 ac_x_includes=
11556 else
11557 echo "$ac_err" >&5
11558 echo "configure: failed program was:" >&5
11559 cat conftest.$ac_ext >&5
11560 rm -rf conftest*
11561 # Look for the header file in a standard set of common directories.
11562 # Check X11 before X11Rn because it is often a symlink to the current release.
11563 for ac_dir in \
11564 /usr/X11/include \
11565 /usr/X11R6/include \
11566 /usr/X11R5/include \
11567 /usr/X11R4/include \
11568 \
11569 /usr/include/X11 \
11570 /usr/include/X11R6 \
11571 /usr/include/X11R5 \
11572 /usr/include/X11R4 \
11573 \
11574 /usr/local/X11/include \
11575 /usr/local/X11R6/include \
11576 /usr/local/X11R5/include \
11577 /usr/local/X11R4/include \
11578 \
11579 /usr/local/include/X11 \
11580 /usr/local/include/X11R6 \
11581 /usr/local/include/X11R5 \
11582 /usr/local/include/X11R4 \
11583 \
11584 /usr/X386/include \
11585 /usr/x386/include \
11586 /usr/XFree86/include/X11 \
11587 \
11588 /usr/include \
11589 /usr/local/include \
11590 /usr/unsupported/include \
11591 /usr/athena/include \
11592 /usr/local/x11r5/include \
11593 /usr/lpp/Xamples/include \
11594 \
11595 /usr/openwin/include \
11596 /usr/openwin/share/include \
11597 ; \
11598 do
11599 if test -r "$ac_dir/$x_direct_test_include"; then
11600 ac_x_includes=$ac_dir
11601 break
11602 fi
11603 done
11604 fi
11605 rm -f conftest*
11606 fi # $ac_x_includes = NO
11607
11608 if test "$ac_x_libraries" = NO; then
11609 # Check for the libraries.
11610
11611 test -z "$x_direct_test_library" && x_direct_test_library=Xt
11612 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11613
11614 # See if we find them without any special options.
11615 # Don't add to $LIBS permanently.
11616 ac_save_LIBS="$LIBS"
11617 LIBS="-l$x_direct_test_library $LIBS"
11618 cat > conftest.$ac_ext <<EOF
11619 #line 11620 "configure"
11620 #include "confdefs.h"
11621
11622 int main() {
11623 ${x_direct_test_function}()
11624 ; return 0; }
11625 EOF
11626 if { (eval echo configure:11627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11627 rm -rf conftest*
11628 LIBS="$ac_save_LIBS"
11629 # We can link X programs with no special library path.
11630 ac_x_libraries=
11631 else
11632 echo "configure: failed program was:" >&5
11633 cat conftest.$ac_ext >&5
11634 rm -rf conftest*
11635 LIBS="$ac_save_LIBS"
11636 # First see if replacing the include by lib works.
11637 # Check X11 before X11Rn because it is often a symlink to the current release.
11638 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11639 /usr/X11/lib \
11640 /usr/X11R6/lib \
11641 /usr/X11R5/lib \
11642 /usr/X11R4/lib \
11643 \
11644 /usr/lib/X11 \
11645 /usr/lib/X11R6 \
11646 /usr/lib/X11R5 \
11647 /usr/lib/X11R4 \
11648 \
11649 /usr/local/X11/lib \
11650 /usr/local/X11R6/lib \
11651 /usr/local/X11R5/lib \
11652 /usr/local/X11R4/lib \
11653 \
11654 /usr/local/lib/X11 \
11655 /usr/local/lib/X11R6 \
11656 /usr/local/lib/X11R5 \
11657 /usr/local/lib/X11R4 \
11658 \
11659 /usr/X386/lib \
11660 /usr/x386/lib \
11661 /usr/XFree86/lib/X11 \
11662 \
11663 /usr/lib \
11664 /usr/local/lib \
11665 /usr/unsupported/lib \
11666 /usr/athena/lib \
11667 /usr/local/x11r5/lib \
11668 /usr/lpp/Xamples/lib \
11669 /lib/usr/lib/X11 \
11670 \
11671 /usr/openwin/lib \
11672 /usr/openwin/share/lib \
11673 ; \
11674 do
11675 for ac_extension in a so sl; do
11676 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
11677 ac_x_libraries=$ac_dir
11678 break 2
11679 fi
11680 done
11681 done
11682 fi
11683 rm -f conftest*
11684 fi # $ac_x_libraries = NO
11685
11686 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
11687 # Didn't find X anywhere. Cache the known absence of X.
11688 ac_cv_have_x="have_x=no"
11689 else
11690 # Record where we found X for the cache.
11691 ac_cv_have_x="have_x=yes \
11692 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11693 fi
11694 fi
11695 fi
11696 eval "$ac_cv_have_x"
11697 fi # $with_x != no
11698
11699 if test "$have_x" != yes; then
11700 echo "$ac_t""$have_x" 1>&6
11701 no_x=yes
11702 else
11703 # If each of the values was on the command line, it overrides each guess.
11704 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11705 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11706 # Update the cache value to reflect the command line values.
11707 ac_cv_have_x="have_x=yes \
11708 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11709 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
11710 fi
11711
11712 if test "$no_x" = yes; then
11713 # Not all programs may use this symbol, but it does not hurt to define it.
11714 cat >> confdefs.h <<\EOF
11715 #define X_DISPLAY_MISSING 1
11716 EOF
11717
11718 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11719 else
11720 if test -n "$x_includes"; then
11721 X_CFLAGS="$X_CFLAGS -I$x_includes"
11722 fi
11723
11724 # It would also be nice to do this for all -L options, not just this one.
11725 if test -n "$x_libraries"; then
11726 X_LIBS="$X_LIBS -L$x_libraries"
11727 # For Solaris; some versions of Sun CC require a space after -R and
11728 # others require no space. Words are not sufficient . . . .
11729 case "`(uname -sr) 2>/dev/null`" in
11730 "SunOS 5"*)
11731 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
11732 echo "configure:11733: checking whether -R must be followed by a space" >&5
11733 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
11734 cat > conftest.$ac_ext <<EOF
11735 #line 11736 "configure"
11736 #include "confdefs.h"
11737
11738 int main() {
11739
11740 ; return 0; }
11741 EOF
11742 if { (eval echo configure:11743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11743 rm -rf conftest*
11744 ac_R_nospace=yes
11745 else
11746 echo "configure: failed program was:" >&5
11747 cat conftest.$ac_ext >&5
11748 rm -rf conftest*
11749 ac_R_nospace=no
11750 fi
11751 rm -f conftest*
11752 if test $ac_R_nospace = yes; then
11753 echo "$ac_t""no" 1>&6
11754 X_LIBS="$X_LIBS -R$x_libraries"
11755 else
11756 LIBS="$ac_xsave_LIBS -R $x_libraries"
11757 cat > conftest.$ac_ext <<EOF
11758 #line 11759 "configure"
11759 #include "confdefs.h"
11760
11761 int main() {
11762
11763 ; return 0; }
11764 EOF
11765 if { (eval echo configure:11766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11766 rm -rf conftest*
11767 ac_R_space=yes
11768 else
11769 echo "configure: failed program was:" >&5
11770 cat conftest.$ac_ext >&5
11771 rm -rf conftest*
11772 ac_R_space=no
11773 fi
11774 rm -f conftest*
11775 if test $ac_R_space = yes; then
11776 echo "$ac_t""yes" 1>&6
11777 X_LIBS="$X_LIBS -R $x_libraries"
11778 else
11779 echo "$ac_t""neither works" 1>&6
11780 fi
11781 fi
11782 LIBS="$ac_xsave_LIBS"
11783 esac
11784 fi
11785
11786 # Check for system-dependent libraries X programs must link with.
11787 # Do this before checking for the system-independent R6 libraries
11788 # (-lICE), since we may need -lsocket or whatever for X linking.
11789
11790 if test "$ISC" = yes; then
11791 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11792 else
11793 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
11794 # libraries were built with DECnet support. And karl@cs.umb.edu says
11795 # the Alpha needs dnet_stub (dnet does not exist).
11796 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
11797 echo "configure:11798: checking for dnet_ntoa in -ldnet" >&5
11798 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11799 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11800 echo $ac_n "(cached) $ac_c" 1>&6
11801 else
11802 ac_save_LIBS="$LIBS"
11803 LIBS="-ldnet $LIBS"
11804 cat > conftest.$ac_ext <<EOF
11805 #line 11806 "configure"
11806 #include "confdefs.h"
11807 /* Override any gcc2 internal prototype to avoid an error. */
11808 /* We use char because int might match the return type of a gcc2
11809 builtin and then its argument prototype would still apply. */
11810 char dnet_ntoa();
11811
11812 int main() {
11813 dnet_ntoa()
11814 ; return 0; }
11815 EOF
11816 if { (eval echo configure:11817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11817 rm -rf conftest*
11818 eval "ac_cv_lib_$ac_lib_var=yes"
11819 else
11820 echo "configure: failed program was:" >&5
11821 cat conftest.$ac_ext >&5
11822 rm -rf conftest*
11823 eval "ac_cv_lib_$ac_lib_var=no"
11824 fi
11825 rm -f conftest*
11826 LIBS="$ac_save_LIBS"
11827
11828 fi
11829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11830 echo "$ac_t""yes" 1>&6
11831 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11832 else
11833 echo "$ac_t""no" 1>&6
11834 fi
11835
11836 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11837 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
11838 echo "configure:11839: checking for dnet_ntoa in -ldnet_stub" >&5
11839 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11840 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11841 echo $ac_n "(cached) $ac_c" 1>&6
11842 else
11843 ac_save_LIBS="$LIBS"
11844 LIBS="-ldnet_stub $LIBS"
11845 cat > conftest.$ac_ext <<EOF
11846 #line 11847 "configure"
11847 #include "confdefs.h"
11848 /* Override any gcc2 internal prototype to avoid an error. */
11849 /* We use char because int might match the return type of a gcc2
11850 builtin and then its argument prototype would still apply. */
11851 char dnet_ntoa();
11852
11853 int main() {
11854 dnet_ntoa()
11855 ; return 0; }
11856 EOF
11857 if { (eval echo configure:11858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11858 rm -rf conftest*
11859 eval "ac_cv_lib_$ac_lib_var=yes"
11860 else
11861 echo "configure: failed program was:" >&5
11862 cat conftest.$ac_ext >&5
11863 rm -rf conftest*
11864 eval "ac_cv_lib_$ac_lib_var=no"
11865 fi
11866 rm -f conftest*
11867 LIBS="$ac_save_LIBS"
11868
11869 fi
11870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11871 echo "$ac_t""yes" 1>&6
11872 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
11873 else
11874 echo "$ac_t""no" 1>&6
11875 fi
11876
11877 fi
11878
11879 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11880 # to get the SysV transport functions.
11881 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
11882 # needs -lnsl.
11883 # The nsl library prevents programs from opening the X display
11884 # on Irix 5.2, according to dickey@clark.net.
11885 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
11886 echo "configure:11887: checking for gethostbyname" >&5
11887 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
11888 echo $ac_n "(cached) $ac_c" 1>&6
11889 else
11890 cat > conftest.$ac_ext <<EOF
11891 #line 11892 "configure"
11892 #include "confdefs.h"
11893 /* System header to define __stub macros and hopefully few prototypes,
11894 which can conflict with char gethostbyname(); below. */
11895 #include <assert.h>
11896 /* Override any gcc2 internal prototype to avoid an error. */
11897 /* We use char because int might match the return type of a gcc2
11898 builtin and then its argument prototype would still apply. */
11899 char gethostbyname();
11900
11901 int main() {
11902
11903 /* The GNU C library defines this for functions which it implements
11904 to always fail with ENOSYS. Some functions are actually named
11905 something starting with __ and the normal name is an alias. */
11906 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11907 choke me
11908 #else
11909 gethostbyname();
11910 #endif
11911
11912 ; return 0; }
11913 EOF
11914 if { (eval echo configure:11915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11915 rm -rf conftest*
11916 eval "ac_cv_func_gethostbyname=yes"
11917 else
11918 echo "configure: failed program was:" >&5
11919 cat conftest.$ac_ext >&5
11920 rm -rf conftest*
11921 eval "ac_cv_func_gethostbyname=no"
11922 fi
11923 rm -f conftest*
11924 fi
11925
11926 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
11927 echo "$ac_t""yes" 1>&6
11928 :
11929 else
11930 echo "$ac_t""no" 1>&6
11931 fi
11932
11933 if test $ac_cv_func_gethostbyname = no; then
11934 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
11935 echo "configure:11936: checking for gethostbyname in -lnsl" >&5
11936 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
11937 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11938 echo $ac_n "(cached) $ac_c" 1>&6
11939 else
11940 ac_save_LIBS="$LIBS"
11941 LIBS="-lnsl $LIBS"
11942 cat > conftest.$ac_ext <<EOF
11943 #line 11944 "configure"
11944 #include "confdefs.h"
11945 /* Override any gcc2 internal prototype to avoid an error. */
11946 /* We use char because int might match the return type of a gcc2
11947 builtin and then its argument prototype would still apply. */
11948 char gethostbyname();
11949
11950 int main() {
11951 gethostbyname()
11952 ; return 0; }
11953 EOF
11954 if { (eval echo configure:11955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11955 rm -rf conftest*
11956 eval "ac_cv_lib_$ac_lib_var=yes"
11957 else
11958 echo "configure: failed program was:" >&5
11959 cat conftest.$ac_ext >&5
11960 rm -rf conftest*
11961 eval "ac_cv_lib_$ac_lib_var=no"
11962 fi
11963 rm -f conftest*
11964 LIBS="$ac_save_LIBS"
11965
11966 fi
11967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11968 echo "$ac_t""yes" 1>&6
11969 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11970 else
11971 echo "$ac_t""no" 1>&6
11972 fi
11973
11974 fi
11975
11976 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11977 # socket/setsockopt and other routines are undefined under SCO ODT
11978 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
11979 # on later versions), says simon@lia.di.epfl.ch: it contains
11980 # gethostby* variants that don't use the nameserver (or something).
11981 # -lsocket must be given before -lnsl if both are needed.
11982 # We assume that if connect needs -lnsl, so does gethostbyname.
11983 echo $ac_n "checking for connect""... $ac_c" 1>&6
11984 echo "configure:11985: checking for connect" >&5
11985 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11986 echo $ac_n "(cached) $ac_c" 1>&6
11987 else
11988 cat > conftest.$ac_ext <<EOF
11989 #line 11990 "configure"
11990 #include "confdefs.h"
11991 /* System header to define __stub macros and hopefully few prototypes,
11992 which can conflict with char connect(); below. */
11993 #include <assert.h>
11994 /* Override any gcc2 internal prototype to avoid an error. */
11995 /* We use char because int might match the return type of a gcc2
11996 builtin and then its argument prototype would still apply. */
11997 char connect();
11998
11999 int main() {
12000
12001 /* The GNU C library defines this for functions which it implements
12002 to always fail with ENOSYS. Some functions are actually named
12003 something starting with __ and the normal name is an alias. */
12004 #if defined (__stub_connect) || defined (__stub___connect)
12005 choke me
12006 #else
12007 connect();
12008 #endif
12009
12010 ; return 0; }
12011 EOF
12012 if { (eval echo configure:12013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12013 rm -rf conftest*
12014 eval "ac_cv_func_connect=yes"
12015 else
12016 echo "configure: failed program was:" >&5
12017 cat conftest.$ac_ext >&5
12018 rm -rf conftest*
12019 eval "ac_cv_func_connect=no"
12020 fi
12021 rm -f conftest*
12022 fi
12023
12024 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
12025 echo "$ac_t""yes" 1>&6
12026 :
12027 else
12028 echo "$ac_t""no" 1>&6
12029 fi
12030
12031 if test $ac_cv_func_connect = no; then
12032 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
12033 echo "configure:12034: checking for connect in -lsocket" >&5
12034 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
12035 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12036 echo $ac_n "(cached) $ac_c" 1>&6
12037 else
12038 ac_save_LIBS="$LIBS"
12039 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12040 cat > conftest.$ac_ext <<EOF
12041 #line 12042 "configure"
12042 #include "confdefs.h"
12043 /* Override any gcc2 internal prototype to avoid an error. */
12044 /* We use char because int might match the return type of a gcc2
12045 builtin and then its argument prototype would still apply. */
12046 char connect();
12047
12048 int main() {
12049 connect()
12050 ; return 0; }
12051 EOF
12052 if { (eval echo configure:12053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12053 rm -rf conftest*
12054 eval "ac_cv_lib_$ac_lib_var=yes"
12055 else
12056 echo "configure: failed program was:" >&5
12057 cat conftest.$ac_ext >&5
12058 rm -rf conftest*
12059 eval "ac_cv_lib_$ac_lib_var=no"
12060 fi
12061 rm -f conftest*
12062 LIBS="$ac_save_LIBS"
12063
12064 fi
12065 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12066 echo "$ac_t""yes" 1>&6
12067 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12068 else
12069 echo "$ac_t""no" 1>&6
12070 fi
12071
12072 fi
12073
12074 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
12075 echo $ac_n "checking for remove""... $ac_c" 1>&6
12076 echo "configure:12077: checking for remove" >&5
12077 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
12078 echo $ac_n "(cached) $ac_c" 1>&6
12079 else
12080 cat > conftest.$ac_ext <<EOF
12081 #line 12082 "configure"
12082 #include "confdefs.h"
12083 /* System header to define __stub macros and hopefully few prototypes,
12084 which can conflict with char remove(); below. */
12085 #include <assert.h>
12086 /* Override any gcc2 internal prototype to avoid an error. */
12087 /* We use char because int might match the return type of a gcc2
12088 builtin and then its argument prototype would still apply. */
12089 char remove();
12090
12091 int main() {
12092
12093 /* The GNU C library defines this for functions which it implements
12094 to always fail with ENOSYS. Some functions are actually named
12095 something starting with __ and the normal name is an alias. */
12096 #if defined (__stub_remove) || defined (__stub___remove)
12097 choke me
12098 #else
12099 remove();
12100 #endif
12101
12102 ; return 0; }
12103 EOF
12104 if { (eval echo configure:12105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12105 rm -rf conftest*
12106 eval "ac_cv_func_remove=yes"
12107 else
12108 echo "configure: failed program was:" >&5
12109 cat conftest.$ac_ext >&5
12110 rm -rf conftest*
12111 eval "ac_cv_func_remove=no"
12112 fi
12113 rm -f conftest*
12114 fi
12115
12116 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
12117 echo "$ac_t""yes" 1>&6
12118 :
12119 else
12120 echo "$ac_t""no" 1>&6
12121 fi
12122
12123 if test $ac_cv_func_remove = no; then
12124 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
12125 echo "configure:12126: checking for remove in -lposix" >&5
12126 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
12127 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12128 echo $ac_n "(cached) $ac_c" 1>&6
12129 else
12130 ac_save_LIBS="$LIBS"
12131 LIBS="-lposix $LIBS"
12132 cat > conftest.$ac_ext <<EOF
12133 #line 12134 "configure"
12134 #include "confdefs.h"
12135 /* Override any gcc2 internal prototype to avoid an error. */
12136 /* We use char because int might match the return type of a gcc2
12137 builtin and then its argument prototype would still apply. */
12138 char remove();
12139
12140 int main() {
12141 remove()
12142 ; return 0; }
12143 EOF
12144 if { (eval echo configure:12145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12145 rm -rf conftest*
12146 eval "ac_cv_lib_$ac_lib_var=yes"
12147 else
12148 echo "configure: failed program was:" >&5
12149 cat conftest.$ac_ext >&5
12150 rm -rf conftest*
12151 eval "ac_cv_lib_$ac_lib_var=no"
12152 fi
12153 rm -f conftest*
12154 LIBS="$ac_save_LIBS"
12155
12156 fi
12157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12158 echo "$ac_t""yes" 1>&6
12159 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12160 else
12161 echo "$ac_t""no" 1>&6
12162 fi
12163
12164 fi
12165
12166 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12167 echo $ac_n "checking for shmat""... $ac_c" 1>&6
12168 echo "configure:12169: checking for shmat" >&5
12169 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
12170 echo $ac_n "(cached) $ac_c" 1>&6
12171 else
12172 cat > conftest.$ac_ext <<EOF
12173 #line 12174 "configure"
12174 #include "confdefs.h"
12175 /* System header to define __stub macros and hopefully few prototypes,
12176 which can conflict with char shmat(); below. */
12177 #include <assert.h>
12178 /* Override any gcc2 internal prototype to avoid an error. */
12179 /* We use char because int might match the return type of a gcc2
12180 builtin and then its argument prototype would still apply. */
12181 char shmat();
12182
12183 int main() {
12184
12185 /* The GNU C library defines this for functions which it implements
12186 to always fail with ENOSYS. Some functions are actually named
12187 something starting with __ and the normal name is an alias. */
12188 #if defined (__stub_shmat) || defined (__stub___shmat)
12189 choke me
12190 #else
12191 shmat();
12192 #endif
12193
12194 ; return 0; }
12195 EOF
12196 if { (eval echo configure:12197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12197 rm -rf conftest*
12198 eval "ac_cv_func_shmat=yes"
12199 else
12200 echo "configure: failed program was:" >&5
12201 cat conftest.$ac_ext >&5
12202 rm -rf conftest*
12203 eval "ac_cv_func_shmat=no"
12204 fi
12205 rm -f conftest*
12206 fi
12207
12208 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12209 echo "$ac_t""yes" 1>&6
12210 :
12211 else
12212 echo "$ac_t""no" 1>&6
12213 fi
12214
12215 if test $ac_cv_func_shmat = no; then
12216 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
12217 echo "configure:12218: checking for shmat in -lipc" >&5
12218 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12219 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12220 echo $ac_n "(cached) $ac_c" 1>&6
12221 else
12222 ac_save_LIBS="$LIBS"
12223 LIBS="-lipc $LIBS"
12224 cat > conftest.$ac_ext <<EOF
12225 #line 12226 "configure"
12226 #include "confdefs.h"
12227 /* Override any gcc2 internal prototype to avoid an error. */
12228 /* We use char because int might match the return type of a gcc2
12229 builtin and then its argument prototype would still apply. */
12230 char shmat();
12231
12232 int main() {
12233 shmat()
12234 ; return 0; }
12235 EOF
12236 if { (eval echo configure:12237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12237 rm -rf conftest*
12238 eval "ac_cv_lib_$ac_lib_var=yes"
12239 else
12240 echo "configure: failed program was:" >&5
12241 cat conftest.$ac_ext >&5
12242 rm -rf conftest*
12243 eval "ac_cv_lib_$ac_lib_var=no"
12244 fi
12245 rm -f conftest*
12246 LIBS="$ac_save_LIBS"
12247
12248 fi
12249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12250 echo "$ac_t""yes" 1>&6
12251 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12252 else
12253 echo "$ac_t""no" 1>&6
12254 fi
12255
12256 fi
12257 fi
12258
12259 # Check for libraries that X11R6 Xt/Xaw programs need.
12260 ac_save_LDFLAGS="$LDFLAGS"
12261 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12262 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12263 # check for ICE first), but we must link in the order -lSM -lICE or
12264 # we get undefined symbols. So assume we have SM if we have ICE.
12265 # These have to be linked with before -lX11, unlike the other
12266 # libraries we check for below, so use a different variable.
12267 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12268 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
12269 echo "configure:12270: checking for IceConnectionNumber in -lICE" >&5
12270 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12272 echo $ac_n "(cached) $ac_c" 1>&6
12273 else
12274 ac_save_LIBS="$LIBS"
12275 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12276 cat > conftest.$ac_ext <<EOF
12277 #line 12278 "configure"
12278 #include "confdefs.h"
12279 /* Override any gcc2 internal prototype to avoid an error. */
12280 /* We use char because int might match the return type of a gcc2
12281 builtin and then its argument prototype would still apply. */
12282 char IceConnectionNumber();
12283
12284 int main() {
12285 IceConnectionNumber()
12286 ; return 0; }
12287 EOF
12288 if { (eval echo configure:12289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12289 rm -rf conftest*
12290 eval "ac_cv_lib_$ac_lib_var=yes"
12291 else
12292 echo "configure: failed program was:" >&5
12293 cat conftest.$ac_ext >&5
12294 rm -rf conftest*
12295 eval "ac_cv_lib_$ac_lib_var=no"
12296 fi
12297 rm -f conftest*
12298 LIBS="$ac_save_LIBS"
12299
12300 fi
12301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12302 echo "$ac_t""yes" 1>&6
12303 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12304 else
12305 echo "$ac_t""no" 1>&6
12306 fi
12307
12308 LDFLAGS="$ac_save_LDFLAGS"
12309
12310 fi
12311
12312
12313 if test "$no_x" = "yes"; then
12314 { echo "configure: error: X11 not found" 1>&2; exit 1; }
12315 fi
12316
12317 GUI_TK_LIBRARY="$X_LIBS"
12318 TOOLKIT_INCLUDE="$X_CFLAGS"
12319 AFMINSTALL=afminstall
12320 COMPILED_X_PROGRAM=0
12321
12322 xpm_link=
12323 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
12324 echo "configure:12325: checking for Xpm library" >&5
12325
12326 ac_find_libraries=
12327 for ac_dir in $SEARCH_LIB;
12328 do
12329 for ac_extension in a so sl dylib; do
12330 if test -f "$ac_dir/libXpm.$ac_extension"; then
12331 ac_find_libraries=$ac_dir
12332 break 2
12333 fi
12334 done
12335 done
12336
12337 if test "$ac_find_libraries" != "" ; then
12338
12339 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12340 result=$?
12341 if test $result = 0; then
12342 ac_path_to_link=""
12343 else
12344 ac_path_to_link=" -L$ac_find_libraries"
12345 fi
12346
12347 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
12348 xpm_link=" -lXpm"
12349 cat >> confdefs.h <<\EOF
12350 #define wxHAVE_LIB_XPM 1
12351 EOF
12352
12353 echo "$ac_t""found at $ac_find_libraries" 1>&6
12354 else
12355 cat > conftest.$ac_ext <<EOF
12356 #line 12357 "configure"
12357 #include "confdefs.h"
12358
12359 #include <X11/xpm.h>
12360
12361 int main() {
12362
12363 int version;
12364 version = XpmLibraryVersion();
12365
12366 ; return 0; }
12367 EOF
12368 if { (eval echo configure:12369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12369 rm -rf conftest*
12370
12371 xpm_link=" -lXpm"
12372 cat >> confdefs.h <<\EOF
12373 #define wxHAVE_LIB_XPM 1
12374 EOF
12375
12376 echo "$ac_t""found in default search path" 1>&6
12377 COMPILED_X_PROGRAM=0
12378
12379 else
12380 echo "configure: failed program was:" >&5
12381 cat conftest.$ac_ext >&5
12382 rm -rf conftest*
12383
12384 echo "$ac_t""no" 1>&6
12385 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12386
12387
12388 fi
12389 rm -f conftest*
12390 fi
12391
12392 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext -lXt -lX11"
12393 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
12394 TOOLKIT=X11
12395 GUIDIST=X11_DIST
12396 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXX11__"
12397 fi
12398
12399 if test "$wxUSE_WINE" = 1; then
12400 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12401 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12402 echo "configure:12403: checking for windows.h" >&5
12403 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12404 echo $ac_n "(cached) $ac_c" 1>&6
12405 else
12406 cat > conftest.$ac_ext <<EOF
12407 #line 12408 "configure"
12408 #include "confdefs.h"
12409 #include <windows.h>
12410 EOF
12411 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12412 { (eval echo configure:12413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12413 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12414 if test -z "$ac_err"; then
12415 rm -rf conftest*
12416 eval "ac_cv_header_$ac_safe=yes"
12417 else
12418 echo "$ac_err" >&5
12419 echo "configure: failed program was:" >&5
12420 cat conftest.$ac_ext >&5
12421 rm -rf conftest*
12422 eval "ac_cv_header_$ac_safe=no"
12423 fi
12424 rm -f conftest*
12425 fi
12426 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12427 echo "$ac_t""yes" 1>&6
12428 :
12429 else
12430 echo "$ac_t""no" 1>&6
12431
12432 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12433
12434 fi
12435
12436
12437 xpm_link=
12438 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
12439 echo "configure:12440: checking for Xpm library" >&5
12440
12441 ac_find_libraries=
12442 for ac_dir in $SEARCH_LIB;
12443 do
12444 for ac_extension in a so sl dylib; do
12445 if test -f "$ac_dir/libXpm.$ac_extension"; then
12446 ac_find_libraries=$ac_dir
12447 break 2
12448 fi
12449 done
12450 done
12451
12452 if test "$ac_find_libraries" != "" ; then
12453 GUI_TK_LIBRARY="-L$ac_find_libraries"
12454 xpm_link=" -lXpm"
12455 cat >> confdefs.h <<\EOF
12456 #define wxHAVE_LIB_XPM 1
12457 EOF
12458
12459 echo "$ac_t""found at $ac_find_libraries" 1>&6
12460 else
12461 echo "$ac_t""no" 1>&6
12462 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12463 fi
12464
12465 mesa_link=
12466 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
12467 echo "configure:12468: checking for Mesa library" >&5
12468
12469 ac_find_libraries=
12470 for ac_dir in $SEARCH_LIB;
12471 do
12472 for ac_extension in a so sl dylib; do
12473 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
12474 ac_find_libraries=$ac_dir
12475 break 2
12476 fi
12477 done
12478 done
12479
12480 if test "$ac_find_libraries" != "" ; then
12481 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
12482 mesa_link=" -lMesaGL"
12483 echo "$ac_t""found at $ac_find_libraries" 1>&6
12484 else
12485 { echo "configure: error: no" 1>&2; exit 1; }
12486 fi
12487
12488 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
12489 TOOLKIT=MSW
12490 GUIDIST=MSW_DIST
12491 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
12492 fi
12493
12494 if test "$wxUSE_MOTIF" = 1; then
12495 if test "$no_x" = yes; then
12496 # Not all programs may use this symbol, but it does not hurt to define it.
12497 cat >> confdefs.h <<\EOF
12498 #define X_DISPLAY_MISSING 1
12499 EOF
12500
12501 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12502 else
12503 if test -n "$x_includes"; then
12504 X_CFLAGS="$X_CFLAGS -I$x_includes"
12505 fi
12506
12507 # It would also be nice to do this for all -L options, not just this one.
12508 if test -n "$x_libraries"; then
12509 X_LIBS="$X_LIBS -L$x_libraries"
12510 # For Solaris; some versions of Sun CC require a space after -R and
12511 # others require no space. Words are not sufficient . . . .
12512 case "`(uname -sr) 2>/dev/null`" in
12513 "SunOS 5"*)
12514 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
12515 echo "configure:12516: checking whether -R must be followed by a space" >&5
12516 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
12517 cat > conftest.$ac_ext <<EOF
12518 #line 12519 "configure"
12519 #include "confdefs.h"
12520
12521 int main() {
12522
12523 ; return 0; }
12524 EOF
12525 if { (eval echo configure:12526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12526 rm -rf conftest*
12527 ac_R_nospace=yes
12528 else
12529 echo "configure: failed program was:" >&5
12530 cat conftest.$ac_ext >&5
12531 rm -rf conftest*
12532 ac_R_nospace=no
12533 fi
12534 rm -f conftest*
12535 if test $ac_R_nospace = yes; then
12536 echo "$ac_t""no" 1>&6
12537 X_LIBS="$X_LIBS -R$x_libraries"
12538 else
12539 LIBS="$ac_xsave_LIBS -R $x_libraries"
12540 cat > conftest.$ac_ext <<EOF
12541 #line 12542 "configure"
12542 #include "confdefs.h"
12543
12544 int main() {
12545
12546 ; return 0; }
12547 EOF
12548 if { (eval echo configure:12549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12549 rm -rf conftest*
12550 ac_R_space=yes
12551 else
12552 echo "configure: failed program was:" >&5
12553 cat conftest.$ac_ext >&5
12554 rm -rf conftest*
12555 ac_R_space=no
12556 fi
12557 rm -f conftest*
12558 if test $ac_R_space = yes; then
12559 echo "$ac_t""yes" 1>&6
12560 X_LIBS="$X_LIBS -R $x_libraries"
12561 else
12562 echo "$ac_t""neither works" 1>&6
12563 fi
12564 fi
12565 LIBS="$ac_xsave_LIBS"
12566 esac
12567 fi
12568
12569 # Check for system-dependent libraries X programs must link with.
12570 # Do this before checking for the system-independent R6 libraries
12571 # (-lICE), since we may need -lsocket or whatever for X linking.
12572
12573 if test "$ISC" = yes; then
12574 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12575 else
12576 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
12577 # libraries were built with DECnet support. And karl@cs.umb.edu says
12578 # the Alpha needs dnet_stub (dnet does not exist).
12579 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
12580 echo "configure:12581: checking for dnet_ntoa in -ldnet" >&5
12581 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12582 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12583 echo $ac_n "(cached) $ac_c" 1>&6
12584 else
12585 ac_save_LIBS="$LIBS"
12586 LIBS="-ldnet $LIBS"
12587 cat > conftest.$ac_ext <<EOF
12588 #line 12589 "configure"
12589 #include "confdefs.h"
12590 /* Override any gcc2 internal prototype to avoid an error. */
12591 /* We use char because int might match the return type of a gcc2
12592 builtin and then its argument prototype would still apply. */
12593 char dnet_ntoa();
12594
12595 int main() {
12596 dnet_ntoa()
12597 ; return 0; }
12598 EOF
12599 if { (eval echo configure:12600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12600 rm -rf conftest*
12601 eval "ac_cv_lib_$ac_lib_var=yes"
12602 else
12603 echo "configure: failed program was:" >&5
12604 cat conftest.$ac_ext >&5
12605 rm -rf conftest*
12606 eval "ac_cv_lib_$ac_lib_var=no"
12607 fi
12608 rm -f conftest*
12609 LIBS="$ac_save_LIBS"
12610
12611 fi
12612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12613 echo "$ac_t""yes" 1>&6
12614 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12615 else
12616 echo "$ac_t""no" 1>&6
12617 fi
12618
12619 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12620 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
12621 echo "configure:12622: checking for dnet_ntoa in -ldnet_stub" >&5
12622 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12623 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12624 echo $ac_n "(cached) $ac_c" 1>&6
12625 else
12626 ac_save_LIBS="$LIBS"
12627 LIBS="-ldnet_stub $LIBS"
12628 cat > conftest.$ac_ext <<EOF
12629 #line 12630 "configure"
12630 #include "confdefs.h"
12631 /* Override any gcc2 internal prototype to avoid an error. */
12632 /* We use char because int might match the return type of a gcc2
12633 builtin and then its argument prototype would still apply. */
12634 char dnet_ntoa();
12635
12636 int main() {
12637 dnet_ntoa()
12638 ; return 0; }
12639 EOF
12640 if { (eval echo configure:12641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12641 rm -rf conftest*
12642 eval "ac_cv_lib_$ac_lib_var=yes"
12643 else
12644 echo "configure: failed program was:" >&5
12645 cat conftest.$ac_ext >&5
12646 rm -rf conftest*
12647 eval "ac_cv_lib_$ac_lib_var=no"
12648 fi
12649 rm -f conftest*
12650 LIBS="$ac_save_LIBS"
12651
12652 fi
12653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12654 echo "$ac_t""yes" 1>&6
12655 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12656 else
12657 echo "$ac_t""no" 1>&6
12658 fi
12659
12660 fi
12661
12662 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12663 # to get the SysV transport functions.
12664 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
12665 # needs -lnsl.
12666 # The nsl library prevents programs from opening the X display
12667 # on Irix 5.2, according to dickey@clark.net.
12668 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
12669 echo "configure:12670: checking for gethostbyname" >&5
12670 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
12671 echo $ac_n "(cached) $ac_c" 1>&6
12672 else
12673 cat > conftest.$ac_ext <<EOF
12674 #line 12675 "configure"
12675 #include "confdefs.h"
12676 /* System header to define __stub macros and hopefully few prototypes,
12677 which can conflict with char gethostbyname(); below. */
12678 #include <assert.h>
12679 /* Override any gcc2 internal prototype to avoid an error. */
12680 /* We use char because int might match the return type of a gcc2
12681 builtin and then its argument prototype would still apply. */
12682 char gethostbyname();
12683
12684 int main() {
12685
12686 /* The GNU C library defines this for functions which it implements
12687 to always fail with ENOSYS. Some functions are actually named
12688 something starting with __ and the normal name is an alias. */
12689 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12690 choke me
12691 #else
12692 gethostbyname();
12693 #endif
12694
12695 ; return 0; }
12696 EOF
12697 if { (eval echo configure:12698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12698 rm -rf conftest*
12699 eval "ac_cv_func_gethostbyname=yes"
12700 else
12701 echo "configure: failed program was:" >&5
12702 cat conftest.$ac_ext >&5
12703 rm -rf conftest*
12704 eval "ac_cv_func_gethostbyname=no"
12705 fi
12706 rm -f conftest*
12707 fi
12708
12709 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
12710 echo "$ac_t""yes" 1>&6
12711 :
12712 else
12713 echo "$ac_t""no" 1>&6
12714 fi
12715
12716 if test $ac_cv_func_gethostbyname = no; then
12717 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
12718 echo "configure:12719: checking for gethostbyname in -lnsl" >&5
12719 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
12720 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12721 echo $ac_n "(cached) $ac_c" 1>&6
12722 else
12723 ac_save_LIBS="$LIBS"
12724 LIBS="-lnsl $LIBS"
12725 cat > conftest.$ac_ext <<EOF
12726 #line 12727 "configure"
12727 #include "confdefs.h"
12728 /* Override any gcc2 internal prototype to avoid an error. */
12729 /* We use char because int might match the return type of a gcc2
12730 builtin and then its argument prototype would still apply. */
12731 char gethostbyname();
12732
12733 int main() {
12734 gethostbyname()
12735 ; return 0; }
12736 EOF
12737 if { (eval echo configure:12738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12738 rm -rf conftest*
12739 eval "ac_cv_lib_$ac_lib_var=yes"
12740 else
12741 echo "configure: failed program was:" >&5
12742 cat conftest.$ac_ext >&5
12743 rm -rf conftest*
12744 eval "ac_cv_lib_$ac_lib_var=no"
12745 fi
12746 rm -f conftest*
12747 LIBS="$ac_save_LIBS"
12748
12749 fi
12750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12751 echo "$ac_t""yes" 1>&6
12752 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12753 else
12754 echo "$ac_t""no" 1>&6
12755 fi
12756
12757 fi
12758
12759 # lieder@skyler.mavd.honeywell.com says without -lsocket,
12760 # socket/setsockopt and other routines are undefined under SCO ODT
12761 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12762 # on later versions), says simon@lia.di.epfl.ch: it contains
12763 # gethostby* variants that don't use the nameserver (or something).
12764 # -lsocket must be given before -lnsl if both are needed.
12765 # We assume that if connect needs -lnsl, so does gethostbyname.
12766 echo $ac_n "checking for connect""... $ac_c" 1>&6
12767 echo "configure:12768: checking for connect" >&5
12768 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
12769 echo $ac_n "(cached) $ac_c" 1>&6
12770 else
12771 cat > conftest.$ac_ext <<EOF
12772 #line 12773 "configure"
12773 #include "confdefs.h"
12774 /* System header to define __stub macros and hopefully few prototypes,
12775 which can conflict with char connect(); below. */
12776 #include <assert.h>
12777 /* Override any gcc2 internal prototype to avoid an error. */
12778 /* We use char because int might match the return type of a gcc2
12779 builtin and then its argument prototype would still apply. */
12780 char connect();
12781
12782 int main() {
12783
12784 /* The GNU C library defines this for functions which it implements
12785 to always fail with ENOSYS. Some functions are actually named
12786 something starting with __ and the normal name is an alias. */
12787 #if defined (__stub_connect) || defined (__stub___connect)
12788 choke me
12789 #else
12790 connect();
12791 #endif
12792
12793 ; return 0; }
12794 EOF
12795 if { (eval echo configure:12796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12796 rm -rf conftest*
12797 eval "ac_cv_func_connect=yes"
12798 else
12799 echo "configure: failed program was:" >&5
12800 cat conftest.$ac_ext >&5
12801 rm -rf conftest*
12802 eval "ac_cv_func_connect=no"
12803 fi
12804 rm -f conftest*
12805 fi
12806
12807 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
12808 echo "$ac_t""yes" 1>&6
12809 :
12810 else
12811 echo "$ac_t""no" 1>&6
12812 fi
12813
12814 if test $ac_cv_func_connect = no; then
12815 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
12816 echo "configure:12817: checking for connect in -lsocket" >&5
12817 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
12818 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12819 echo $ac_n "(cached) $ac_c" 1>&6
12820 else
12821 ac_save_LIBS="$LIBS"
12822 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12823 cat > conftest.$ac_ext <<EOF
12824 #line 12825 "configure"
12825 #include "confdefs.h"
12826 /* Override any gcc2 internal prototype to avoid an error. */
12827 /* We use char because int might match the return type of a gcc2
12828 builtin and then its argument prototype would still apply. */
12829 char connect();
12830
12831 int main() {
12832 connect()
12833 ; return 0; }
12834 EOF
12835 if { (eval echo configure:12836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12836 rm -rf conftest*
12837 eval "ac_cv_lib_$ac_lib_var=yes"
12838 else
12839 echo "configure: failed program was:" >&5
12840 cat conftest.$ac_ext >&5
12841 rm -rf conftest*
12842 eval "ac_cv_lib_$ac_lib_var=no"
12843 fi
12844 rm -f conftest*
12845 LIBS="$ac_save_LIBS"
12846
12847 fi
12848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12849 echo "$ac_t""yes" 1>&6
12850 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12851 else
12852 echo "$ac_t""no" 1>&6
12853 fi
12854
12855 fi
12856
12857 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
12858 echo $ac_n "checking for remove""... $ac_c" 1>&6
12859 echo "configure:12860: checking for remove" >&5
12860 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
12861 echo $ac_n "(cached) $ac_c" 1>&6
12862 else
12863 cat > conftest.$ac_ext <<EOF
12864 #line 12865 "configure"
12865 #include "confdefs.h"
12866 /* System header to define __stub macros and hopefully few prototypes,
12867 which can conflict with char remove(); below. */
12868 #include <assert.h>
12869 /* Override any gcc2 internal prototype to avoid an error. */
12870 /* We use char because int might match the return type of a gcc2
12871 builtin and then its argument prototype would still apply. */
12872 char remove();
12873
12874 int main() {
12875
12876 /* The GNU C library defines this for functions which it implements
12877 to always fail with ENOSYS. Some functions are actually named
12878 something starting with __ and the normal name is an alias. */
12879 #if defined (__stub_remove) || defined (__stub___remove)
12880 choke me
12881 #else
12882 remove();
12883 #endif
12884
12885 ; return 0; }
12886 EOF
12887 if { (eval echo configure:12888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12888 rm -rf conftest*
12889 eval "ac_cv_func_remove=yes"
12890 else
12891 echo "configure: failed program was:" >&5
12892 cat conftest.$ac_ext >&5
12893 rm -rf conftest*
12894 eval "ac_cv_func_remove=no"
12895 fi
12896 rm -f conftest*
12897 fi
12898
12899 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
12900 echo "$ac_t""yes" 1>&6
12901 :
12902 else
12903 echo "$ac_t""no" 1>&6
12904 fi
12905
12906 if test $ac_cv_func_remove = no; then
12907 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
12908 echo "configure:12909: checking for remove in -lposix" >&5
12909 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
12910 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12911 echo $ac_n "(cached) $ac_c" 1>&6
12912 else
12913 ac_save_LIBS="$LIBS"
12914 LIBS="-lposix $LIBS"
12915 cat > conftest.$ac_ext <<EOF
12916 #line 12917 "configure"
12917 #include "confdefs.h"
12918 /* Override any gcc2 internal prototype to avoid an error. */
12919 /* We use char because int might match the return type of a gcc2
12920 builtin and then its argument prototype would still apply. */
12921 char remove();
12922
12923 int main() {
12924 remove()
12925 ; return 0; }
12926 EOF
12927 if { (eval echo configure:12928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12928 rm -rf conftest*
12929 eval "ac_cv_lib_$ac_lib_var=yes"
12930 else
12931 echo "configure: failed program was:" >&5
12932 cat conftest.$ac_ext >&5
12933 rm -rf conftest*
12934 eval "ac_cv_lib_$ac_lib_var=no"
12935 fi
12936 rm -f conftest*
12937 LIBS="$ac_save_LIBS"
12938
12939 fi
12940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12941 echo "$ac_t""yes" 1>&6
12942 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12943 else
12944 echo "$ac_t""no" 1>&6
12945 fi
12946
12947 fi
12948
12949 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12950 echo $ac_n "checking for shmat""... $ac_c" 1>&6
12951 echo "configure:12952: checking for shmat" >&5
12952 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
12953 echo $ac_n "(cached) $ac_c" 1>&6
12954 else
12955 cat > conftest.$ac_ext <<EOF
12956 #line 12957 "configure"
12957 #include "confdefs.h"
12958 /* System header to define __stub macros and hopefully few prototypes,
12959 which can conflict with char shmat(); below. */
12960 #include <assert.h>
12961 /* Override any gcc2 internal prototype to avoid an error. */
12962 /* We use char because int might match the return type of a gcc2
12963 builtin and then its argument prototype would still apply. */
12964 char shmat();
12965
12966 int main() {
12967
12968 /* The GNU C library defines this for functions which it implements
12969 to always fail with ENOSYS. Some functions are actually named
12970 something starting with __ and the normal name is an alias. */
12971 #if defined (__stub_shmat) || defined (__stub___shmat)
12972 choke me
12973 #else
12974 shmat();
12975 #endif
12976
12977 ; return 0; }
12978 EOF
12979 if { (eval echo configure:12980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12980 rm -rf conftest*
12981 eval "ac_cv_func_shmat=yes"
12982 else
12983 echo "configure: failed program was:" >&5
12984 cat conftest.$ac_ext >&5
12985 rm -rf conftest*
12986 eval "ac_cv_func_shmat=no"
12987 fi
12988 rm -f conftest*
12989 fi
12990
12991 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12992 echo "$ac_t""yes" 1>&6
12993 :
12994 else
12995 echo "$ac_t""no" 1>&6
12996 fi
12997
12998 if test $ac_cv_func_shmat = no; then
12999 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
13000 echo "configure:13001: checking for shmat in -lipc" >&5
13001 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
13002 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13003 echo $ac_n "(cached) $ac_c" 1>&6
13004 else
13005 ac_save_LIBS="$LIBS"
13006 LIBS="-lipc $LIBS"
13007 cat > conftest.$ac_ext <<EOF
13008 #line 13009 "configure"
13009 #include "confdefs.h"
13010 /* Override any gcc2 internal prototype to avoid an error. */
13011 /* We use char because int might match the return type of a gcc2
13012 builtin and then its argument prototype would still apply. */
13013 char shmat();
13014
13015 int main() {
13016 shmat()
13017 ; return 0; }
13018 EOF
13019 if { (eval echo configure:13020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13020 rm -rf conftest*
13021 eval "ac_cv_lib_$ac_lib_var=yes"
13022 else
13023 echo "configure: failed program was:" >&5
13024 cat conftest.$ac_ext >&5
13025 rm -rf conftest*
13026 eval "ac_cv_lib_$ac_lib_var=no"
13027 fi
13028 rm -f conftest*
13029 LIBS="$ac_save_LIBS"
13030
13031 fi
13032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13033 echo "$ac_t""yes" 1>&6
13034 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13035 else
13036 echo "$ac_t""no" 1>&6
13037 fi
13038
13039 fi
13040 fi
13041
13042 # Check for libraries that X11R6 Xt/Xaw programs need.
13043 ac_save_LDFLAGS="$LDFLAGS"
13044 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13045 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13046 # check for ICE first), but we must link in the order -lSM -lICE or
13047 # we get undefined symbols. So assume we have SM if we have ICE.
13048 # These have to be linked with before -lX11, unlike the other
13049 # libraries we check for below, so use a different variable.
13050 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
13051 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
13052 echo "configure:13053: checking for IceConnectionNumber in -lICE" >&5
13053 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
13054 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13055 echo $ac_n "(cached) $ac_c" 1>&6
13056 else
13057 ac_save_LIBS="$LIBS"
13058 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13059 cat > conftest.$ac_ext <<EOF
13060 #line 13061 "configure"
13061 #include "confdefs.h"
13062 /* Override any gcc2 internal prototype to avoid an error. */
13063 /* We use char because int might match the return type of a gcc2
13064 builtin and then its argument prototype would still apply. */
13065 char IceConnectionNumber();
13066
13067 int main() {
13068 IceConnectionNumber()
13069 ; return 0; }
13070 EOF
13071 if { (eval echo configure:13072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13072 rm -rf conftest*
13073 eval "ac_cv_lib_$ac_lib_var=yes"
13074 else
13075 echo "configure: failed program was:" >&5
13076 cat conftest.$ac_ext >&5
13077 rm -rf conftest*
13078 eval "ac_cv_lib_$ac_lib_var=no"
13079 fi
13080 rm -f conftest*
13081 LIBS="$ac_save_LIBS"
13082
13083 fi
13084 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13085 echo "$ac_t""yes" 1>&6
13086 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13087 else
13088 echo "$ac_t""no" 1>&6
13089 fi
13090
13091 LDFLAGS="$ac_save_LDFLAGS"
13092
13093 fi
13094
13095
13096 if test "$no_x" = "yes"; then
13097 { echo "configure: error: X11 not found" 1>&2; exit 1; }
13098 fi
13099
13100 GUI_TK_LIBRARY="$X_LIBS"
13101 TOOLKIT_INCLUDE="$X_CFLAGS"
13102 AFMINSTALL=afminstall
13103 COMPILED_X_PROGRAM=0
13104
13105 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
13106 echo "configure:13107: checking for Motif/Lesstif headers" >&5
13107
13108 ac_find_includes=
13109 for ac_dir in $SEARCH_INCLUDE;
13110 do
13111 if test -f "$ac_dir/Xm/Xm.h"; then
13112 ac_find_includes=$ac_dir
13113 break
13114 fi
13115 done
13116
13117 if test "$ac_find_includes" != "" ; then
13118 echo "$ac_t""found $ac_find_includes" 1>&6
13119 else
13120 cat > conftest.$ac_ext <<EOF
13121 #line 13122 "configure"
13122 #include "confdefs.h"
13123
13124 #include <Xm/Xm.h>
13125
13126 int main() {
13127
13128 int version;
13129 version = xmUseVersion;
13130
13131 ; return 0; }
13132 EOF
13133 if { (eval echo configure:13134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13134 rm -rf conftest*
13135
13136 echo "$ac_t""found in default search path" 1>&6
13137 COMPILED_X_PROGRAM=1
13138
13139 else
13140 echo "configure: failed program was:" >&5
13141 cat conftest.$ac_ext >&5
13142 rm -rf conftest*
13143
13144 echo "$ac_t""no" 1>&6
13145 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
13146
13147
13148 fi
13149 rm -f conftest*
13150 fi
13151
13152 if test "$COMPILED_X_PROGRAM" = 0; then
13153 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
13154 echo "configure:13155: checking for Motif/Lesstif library" >&5
13155
13156 ac_find_libraries=
13157 for ac_dir in $SEARCH_LIB;
13158 do
13159 for ac_extension in a so sl dylib; do
13160 if test -f "$ac_dir/libXm.$ac_extension"; then
13161 ac_find_libraries=$ac_dir
13162 break 2
13163 fi
13164 done
13165 done
13166
13167 if test "$ac_find_libraries" != "" ; then
13168
13169 ac_path_to_include=$ac_find_includes
13170 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
13171 result=$?
13172 if test $result = 0; then
13173 ac_path_to_include=""
13174 else
13175 ac_path_to_include=" -I$ac_find_includes"
13176 fi
13177
13178
13179 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13180 result=$?
13181 if test $result = 0; then
13182 ac_path_to_link=""
13183 else
13184 ac_path_to_link=" -L$ac_find_libraries"
13185 fi
13186
13187
13188 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13189 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
13190 echo "$ac_t""found at $ac_find_libraries" 1>&6
13191 else
13192 cat > conftest.$ac_ext <<EOF
13193 #line 13194 "configure"
13194 #include "confdefs.h"
13195
13196 #include <Xm/Xm.h>
13197
13198 int main() {
13199
13200 int version;
13201 version = xmUseVersion;
13202
13203 ; return 0; }
13204 EOF
13205 if { (eval echo configure:13206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13206 rm -rf conftest*
13207
13208 echo "$ac_t""found in default search path" 1>&6
13209 COMPILED_X_PROGRAM=1
13210
13211 else
13212 echo "configure: failed program was:" >&5
13213 cat conftest.$ac_ext >&5
13214 rm -rf conftest*
13215
13216 echo "$ac_t""no" 1>&6
13217 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
13218
13219
13220 fi
13221 rm -f conftest*
13222 fi
13223 fi
13224
13225 xpm_link=
13226 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13227 echo "configure:13228: checking for Xpm library" >&5
13228
13229 ac_find_libraries=
13230 for ac_dir in $SEARCH_LIB;
13231 do
13232 for ac_extension in a so sl dylib; do
13233 if test -f "$ac_dir/libXpm.$ac_extension"; then
13234 ac_find_libraries=$ac_dir
13235 break 2
13236 fi
13237 done
13238 done
13239
13240 if test "$ac_find_libraries" != "" ; then
13241
13242 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13243 result=$?
13244 if test $result = 0; then
13245 ac_path_to_link=""
13246 else
13247 ac_path_to_link=" -L$ac_find_libraries"
13248 fi
13249
13250 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13251 xpm_link=" -lXpm"
13252 cat >> confdefs.h <<\EOF
13253 #define wxHAVE_LIB_XPM 1
13254 EOF
13255
13256 echo "$ac_t""found at $ac_find_libraries" 1>&6
13257 else
13258 cat > conftest.$ac_ext <<EOF
13259 #line 13260 "configure"
13260 #include "confdefs.h"
13261
13262 #include <X11/xpm.h>
13263
13264 int main() {
13265
13266 int version;
13267 version = XpmLibraryVersion();
13268
13269 ; return 0; }
13270 EOF
13271 if { (eval echo configure:13272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13272 rm -rf conftest*
13273
13274 xpm_link=" -lXpm"
13275 cat >> confdefs.h <<\EOF
13276 #define wxHAVE_LIB_XPM 1
13277 EOF
13278
13279 echo "$ac_t""found in default search path" 1>&6
13280 COMPILED_X_PROGRAM=0
13281
13282 else
13283 echo "configure: failed program was:" >&5
13284 cat conftest.$ac_ext >&5
13285 rm -rf conftest*
13286
13287 echo "$ac_t""no" 1>&6
13288 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13289
13290
13291 fi
13292 rm -f conftest*
13293 fi
13294
13295 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
13296 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
13297 TOOLKIT=MOTIF
13298 GUIDIST=MOTIF_DIST
13299 fi
13300
13301 if test "$wxUSE_MAC" = 1; then
13302 if test "$wxUSE_PRECOMP" = "yes"; then
13303 CPPFLAGS="$CPPFLAGS -cpp-precomp"
13304 fi
13305 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
13306 CFLAGS="$CFLAGS -fpascal-strings"
13307 CXXFLAGS="$CXXFLAGS -fpascal-strings"
13308
13309 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
13310 TOOLKIT=MAC
13311 GUIDIST=MACX_DIST
13312 fi
13313
13314 if test "$wxUSE_PM" = 1; then
13315 TOOLKIT=PM
13316 GUIDIST=GTK_DIST
13317 fi
13318
13319 if test "$TOOLKIT" = "PM" ; then
13320 TOOLKIT_DIR="os2"
13321 else
13322 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
13323 fi
13324
13325 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
13326
13327 if test "$wxUSE_UNIVERSAL" = "yes"; then
13328 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
13329
13330 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
13331 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
13332
13333 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
13334 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
13335 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
13336 WIDGET_SET=univ
13337 else
13338 ALL_OBJECTS="\$(GUIOBJS)"
13339 ALL_SOURCES="\$(ALL_SOURCES)"
13340 ALL_HEADERS="\$(ALL_HEADERS)"
13341 fi
13342
13343 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
13344
13345 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
13346 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
13347 fi
13348
13349 if test "$wxUSE_HTML" = "yes"; then
13350 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
13351 fi
13352
13353 if test "$wxUSE_LIBJPEG" = "builtin" ; then
13354 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
13355 fi
13356 if test "$wxUSE_LIBTIFF" = "builtin" ; then
13357 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
13358 fi
13359 if test "$wxUSE_LIBPNG" = "builtin" ; then
13360 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
13361 fi
13362 if test "$wxUSE_FREETYPE" = "builtin" ; then
13363 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
13364 fi
13365
13366 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
13367 DISTDIR="wx\$(TOOLKIT)"
13368 else
13369 USE_GUI=0
13370
13371 TOOLKIT_DIR="base"
13372
13373 if test "$USE_WIN32" = 1 ; then
13374 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
13375 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
13376
13377 TOOLKIT="MSW"
13378 else
13379 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
13380 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
13381 fi
13382
13383 PORT_FILES="\${top_srcdir}/src/files.lst"
13384
13385 GUIDIST="BASE_DIST"
13386 DISTDIR="wxBase"
13387 fi
13388
13389
13390 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
13391 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
13392 fi
13393
13394 if test "$wxUSE_REGEX" = "builtin" ; then
13395 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
13396 fi
13397 if test "$wxUSE_ZLIB" = "builtin" ; then
13398 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
13399 fi
13400
13401 if test "$wxUSE_OPENGL" = "yes"; then
13402 if test "$wxUSE_MAC" = 1; then
13403 OPENGL_LIBS="-framework OpenGL -framework AGL"
13404 else
13405
13406 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
13407 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
13408 echo "configure:13409: checking for GL/gl.h" >&5
13409 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13410 echo $ac_n "(cached) $ac_c" 1>&6
13411 else
13412 cat > conftest.$ac_ext <<EOF
13413 #line 13414 "configure"
13414 #include "confdefs.h"
13415 #include <GL/gl.h>
13416 EOF
13417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13418 { (eval echo configure:13419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13420 if test -z "$ac_err"; then
13421 rm -rf conftest*
13422 eval "ac_cv_header_$ac_safe=yes"
13423 else
13424 echo "$ac_err" >&5
13425 echo "configure: failed program was:" >&5
13426 cat conftest.$ac_ext >&5
13427 rm -rf conftest*
13428 eval "ac_cv_header_$ac_safe=no"
13429 fi
13430 rm -f conftest*
13431 fi
13432 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13433 echo "$ac_t""yes" 1>&6
13434
13435 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
13436 echo "configure:13437: checking for -lGL" >&5
13437
13438 ac_find_libraries=
13439 for ac_dir in $SEARCH_LIB;
13440 do
13441 for ac_extension in a so sl dylib; do
13442 if test -f "$ac_dir/libGL.$ac_extension"; then
13443 ac_find_libraries=$ac_dir
13444 break 2
13445 fi
13446 done
13447 done
13448
13449 if test "$ac_find_libraries" != "" ; then
13450
13451 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
13452 result=$?
13453 if test $result = 0; then
13454 ac_path_to_link=""
13455 else
13456 ac_path_to_link=" -L$ac_find_libraries"
13457 fi
13458
13459 if test "$ac_path_to_link" = " -L/usr/lib" ; then
13460 LDFLAGS_GL="$LDFLAGS"
13461 else
13462 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
13463 fi
13464 OPENGL_LIBS="-lGL -lGLU"
13465 echo "$ac_t""yes" 1>&6
13466 else
13467 echo "$ac_t""no" 1>&6
13468 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
13469 echo "configure:13470: checking for -lMesaGL" >&5
13470
13471 ac_find_libraries=
13472 for ac_dir in $SEARCH_LIB;
13473 do
13474 for ac_extension in a so sl dylib; do
13475 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13476 ac_find_libraries=$ac_dir
13477 break 2
13478 fi
13479 done
13480 done
13481
13482 if test "$ac_find_libraries" != "" ; then
13483
13484 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
13485 result=$?
13486 if test $result = 0; then
13487 ac_path_to_link=""
13488 else
13489 ac_path_to_link=" -L$ac_find_libraries"
13490 fi
13491
13492 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
13493 OPENGL_LIBS="-lMesaGL -lMesaGLU"
13494 echo "$ac_t""yes" 1>&6
13495 else
13496 echo "$ac_t""no" 1>&6
13497 fi
13498 fi
13499
13500 else
13501 echo "$ac_t""no" 1>&6
13502 fi
13503
13504
13505
13506 # AC_CHECK_HEADER(GL/gl.h,
13507 # [
13508 # AC_CHECK_LIB(GL, glFlush,
13509 # [
13510 # OPENGL_LIBS="-lGL -lGLU"
13511 # ],
13512 # [
13513 # AC_CHECK_LIB(MesaGL, glFlush,
13514 # [
13515 # OPENGL_LIBS="-lMesaGL -lMesaGLU"
13516 # ],
13517 # [],
13518 # [-lm])
13519 # ],
13520 # [-lm])
13521 # ])
13522
13523 if test "x$OPENGL_LIBS" = "x"; then
13524 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
13525 fi
13526 fi
13527
13528 if test "$wxUSE_OPENGL" = "yes"; then
13529 cat >> confdefs.h <<\EOF
13530 #define wxUSE_OPENGL 1
13531 EOF
13532
13533 cat >> confdefs.h <<\EOF
13534 #define wxUSE_GLCANVAS 1
13535 EOF
13536
13537 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
13538 fi
13539 fi
13540
13541 if test -z "$TOOLKIT_VPATH" ; then
13542 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
13543 fi
13544
13545 if test -n "$TOOLKIT" ; then
13546 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
13547 fi
13548
13549 lib_unicode_suffix=
13550 if test "$wxUSE_UNICODE" = "yes"; then
13551 lib_unicode_suffix=u
13552 fi
13553
13554 lib_debug_suffix=
13555 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
13556 lib_debug_suffix=d
13557 fi
13558
13559 TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
13560 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
13561
13562 if test "$cross_compiling" = "yes"; then
13563 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
13564 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
13565 fi
13566
13567 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
13568 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
13569
13570 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
13571 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
13572
13573 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
13574 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
13575 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
13576 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
13577
13578 WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
13579 WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
13580
13581 case "${host}" in
13582 *-*-cygwin* | *-*-mingw32* )
13583
13584
13585
13586 if test "$cross_compiling" != "yes"; then
13587 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
13588 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
13589 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
13590 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
13591 else
13592 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
13593 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
13594 fi
13595
13596 esac
13597
13598 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
13599 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
13600
13601 WXCONFIG_LIBS="-l${WX_LIBRARY}"
13602 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
13603
13604 if test "$wxUSE_OPENGL" = "yes"; then
13605 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
13606 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
13607 fi
13608
13609
13610
13611 if test "$wxUSE_SHARED" = "yes"; then
13612
13613 if test "$wxUSE_OPENGL" = "yes"; then
13614 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
13615 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
13616 else
13617 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
13618 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
13619 fi
13620
13621 if test "$GCC" = "yes"; then
13622 PIC_FLAG="-fPIC"
13623 fi
13624
13625 SHARED_LD="${CXX} -shared -o"
13626
13627 case "${host}" in
13628 *-hp-hpux* )
13629 if test "$GCC" == "yes"; then
13630 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
13631 else
13632 LDFLAGS="$LDFLAGS -L/usr/lib"
13633
13634 SHARED_LD="${CXX} -b -o"
13635 PIC_FLAG="+Z"
13636 fi
13637
13638 if test "$wxUSE_OPENGL" = "yes"; then
13639 WX_ALL_INSTALLED="preinstall_gl"
13640 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
13641 else
13642 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
13643 fi
13644 ;;
13645
13646 *-*-linux* )
13647 if test "$GCC" != "yes"; then
13648 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
13649 echo "configure:13650: checking for Intel compiler" >&5
13650 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
13651 echo $ac_n "(cached) $ac_c" 1>&6
13652 else
13653
13654 cat > conftest.$ac_ext <<EOF
13655 #line 13656 "configure"
13656 #include "confdefs.h"
13657
13658 int main() {
13659
13660 #ifndef __INTEL_COMPILER
13661 #error Not icc
13662 #endif
13663
13664 ; return 0; }
13665 EOF
13666 if { (eval echo configure:13667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13667 rm -rf conftest*
13668 wx_cv_prog_icc=yes
13669 else
13670 echo "configure: failed program was:" >&5
13671 cat conftest.$ac_ext >&5
13672 rm -rf conftest*
13673 wx_cv_prog_icc=no
13674
13675 fi
13676 rm -f conftest*
13677
13678 fi
13679
13680 echo "$ac_t""$wx_cv_prog_icc" 1>&6
13681 if test "$wx_cv_prog_icc" = "yes"; then
13682 PIC_FLAG="-KPIC"
13683 fi
13684 fi
13685
13686 if test "$wxUSE_SONAME" = "yes" ; then
13687 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
13688 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
13689 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
13690 fi
13691 ;;
13692
13693 *-*-solaris2* )
13694 if test "$GCC" = yes ; then
13695 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
13696 else
13697 SHARED_LD="${CXX} -G -o"
13698 PIC_FLAG="-KPIC"
13699 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
13700 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
13701 fi
13702 ;;
13703
13704 *-*-darwin* )
13705 CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
13706 CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
13707 SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
13708 PIC_FLAG="-dynamic -fPIC"
13709 ;;
13710
13711 *-*-aix* )
13712 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
13713 ;;
13714
13715 *-*-cygwin* | *-*-mingw32* )
13716
13717 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
13718
13719 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
13720 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
13721
13722 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
13723
13724 if test "$wxUSE_OPENGL" = "yes"; then
13725 WX_ALL_INSTALLED="preinstall_gl"
13726 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
13727 else
13728 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
13729 fi
13730 ;;
13731
13732 *-pc-os2_emx | *-pc-os2-emx )
13733 wxUSE_SHARED=no
13734 ;;
13735
13736 *-*-beos* )
13737 SHARED_LD="${LD} -shared -o"
13738 ;;
13739
13740 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
13741 *-*-sunos4* | \
13742 *-*-irix5* | *-*-irix6* | \
13743 *-*-osf* | \
13744 *-*-dgux5* | \
13745 *-*-sysv5* )
13746 ;;
13747
13748 *)
13749 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
13750 esac
13751
13752 if test "x$WX_TARGET_LIBRARY" = "x"; then
13753 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
13754 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
13755 fi
13756
13757 WX_TARGET_LIBRARY_TYPE="so"
13758 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
13759 fi
13760
13761 if test "$wxUSE_SHARED" = "no"; then
13762
13763 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
13764 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
13765 fi
13766
13767 if test "$wxUSE_MAC" = 1; then
13768 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
13769 fi
13770
13771 if test "$wxUSE_OPENGL" = "yes"; then
13772 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
13773 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
13774 else
13775 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
13776 fi
13777
13778 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
13779 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
13780
13781 WX_TARGET_LIBRARY_TYPE="a"
13782 INSTALL_LIBRARY='$(INSTALL_DATA)'
13783 fi
13784
13785 if test "$wxUSE_MAC" = 1; then
13786 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
13787 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
13788 # Extract the first word of "Rez", so it can be a program name with args.
13789 set dummy Rez; ac_word=$2
13790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13791 echo "configure:13792: checking for $ac_word" >&5
13792 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
13793 echo $ac_n "(cached) $ac_c" 1>&6
13794 else
13795 if test -n "$RESCOMP"; then
13796 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
13797 else
13798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13799 ac_dummy="$PATH"
13800 for ac_dir in $ac_dummy; do
13801 test -z "$ac_dir" && ac_dir=.
13802 if test -f $ac_dir/$ac_word; then
13803 ac_cv_prog_RESCOMP="Rez"
13804 break
13805 fi
13806 done
13807 IFS="$ac_save_ifs"
13808 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
13809 fi
13810 fi
13811 RESCOMP="$ac_cv_prog_RESCOMP"
13812 if test -n "$RESCOMP"; then
13813 echo "$ac_t""$RESCOMP" 1>&6
13814 else
13815 echo "$ac_t""no" 1>&6
13816 fi
13817
13818 # Extract the first word of "DeRez", so it can be a program name with args.
13819 set dummy DeRez; ac_word=$2
13820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13821 echo "configure:13822: checking for $ac_word" >&5
13822 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
13823 echo $ac_n "(cached) $ac_c" 1>&6
13824 else
13825 if test -n "$DEREZ"; then
13826 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
13827 else
13828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13829 ac_dummy="$PATH"
13830 for ac_dir in $ac_dummy; do
13831 test -z "$ac_dir" && ac_dir=.
13832 if test -f $ac_dir/$ac_word; then
13833 ac_cv_prog_DEREZ="DeRez"
13834 break
13835 fi
13836 done
13837 IFS="$ac_save_ifs"
13838 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
13839 fi
13840 fi
13841 DEREZ="$ac_cv_prog_DEREZ"
13842 if test -n "$DEREZ"; then
13843 echo "$ac_t""$DEREZ" 1>&6
13844 else
13845 echo "$ac_t""no" 1>&6
13846 fi
13847
13848 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
13849 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
13850 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
13851 fi
13852
13853
13854 if test "$wxUSE_MAC" != 1; then
13855 for ac_hdr in strings.h
13856 do
13857 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13858 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13859 echo "configure:13860: checking for $ac_hdr" >&5
13860 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13861 echo $ac_n "(cached) $ac_c" 1>&6
13862 else
13863 cat > conftest.$ac_ext <<EOF
13864 #line 13865 "configure"
13865 #include "confdefs.h"
13866 #include <$ac_hdr>
13867 EOF
13868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13869 { (eval echo configure:13870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13871 if test -z "$ac_err"; then
13872 rm -rf conftest*
13873 eval "ac_cv_header_$ac_safe=yes"
13874 else
13875 echo "$ac_err" >&5
13876 echo "configure: failed program was:" >&5
13877 cat conftest.$ac_ext >&5
13878 rm -rf conftest*
13879 eval "ac_cv_header_$ac_safe=no"
13880 fi
13881 rm -f conftest*
13882 fi
13883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13884 echo "$ac_t""yes" 1>&6
13885 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13886 cat >> confdefs.h <<EOF
13887 #define $ac_tr_hdr 1
13888 EOF
13889
13890 else
13891 echo "$ac_t""no" 1>&6
13892 fi
13893 done
13894
13895 fi
13896
13897 for ac_hdr in stdlib.h
13898 do
13899 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13901 echo "configure:13902: checking for $ac_hdr" >&5
13902 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13903 echo $ac_n "(cached) $ac_c" 1>&6
13904 else
13905 cat > conftest.$ac_ext <<EOF
13906 #line 13907 "configure"
13907 #include "confdefs.h"
13908 #include <$ac_hdr>
13909 EOF
13910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13911 { (eval echo configure:13912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13913 if test -z "$ac_err"; then
13914 rm -rf conftest*
13915 eval "ac_cv_header_$ac_safe=yes"
13916 else
13917 echo "$ac_err" >&5
13918 echo "configure: failed program was:" >&5
13919 cat conftest.$ac_ext >&5
13920 rm -rf conftest*
13921 eval "ac_cv_header_$ac_safe=no"
13922 fi
13923 rm -f conftest*
13924 fi
13925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13926 echo "$ac_t""yes" 1>&6
13927 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13928 cat >> confdefs.h <<EOF
13929 #define $ac_tr_hdr 1
13930 EOF
13931
13932 else
13933 echo "$ac_t""no" 1>&6
13934 fi
13935 done
13936
13937 for ac_hdr in malloc.h
13938 do
13939 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13940 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13941 echo "configure:13942: checking for $ac_hdr" >&5
13942 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13943 echo $ac_n "(cached) $ac_c" 1>&6
13944 else
13945 cat > conftest.$ac_ext <<EOF
13946 #line 13947 "configure"
13947 #include "confdefs.h"
13948 #include <$ac_hdr>
13949 EOF
13950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13951 { (eval echo configure:13952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13952 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13953 if test -z "$ac_err"; then
13954 rm -rf conftest*
13955 eval "ac_cv_header_$ac_safe=yes"
13956 else
13957 echo "$ac_err" >&5
13958 echo "configure: failed program was:" >&5
13959 cat conftest.$ac_ext >&5
13960 rm -rf conftest*
13961 eval "ac_cv_header_$ac_safe=no"
13962 fi
13963 rm -f conftest*
13964 fi
13965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13966 echo "$ac_t""yes" 1>&6
13967 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13968 cat >> confdefs.h <<EOF
13969 #define $ac_tr_hdr 1
13970 EOF
13971
13972 else
13973 echo "$ac_t""no" 1>&6
13974 fi
13975 done
13976
13977 for ac_hdr in unistd.h
13978 do
13979 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13980 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13981 echo "configure:13982: checking for $ac_hdr" >&5
13982 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13983 echo $ac_n "(cached) $ac_c" 1>&6
13984 else
13985 cat > conftest.$ac_ext <<EOF
13986 #line 13987 "configure"
13987 #include "confdefs.h"
13988 #include <$ac_hdr>
13989 EOF
13990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13991 { (eval echo configure:13992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13993 if test -z "$ac_err"; then
13994 rm -rf conftest*
13995 eval "ac_cv_header_$ac_safe=yes"
13996 else
13997 echo "$ac_err" >&5
13998 echo "configure: failed program was:" >&5
13999 cat conftest.$ac_ext >&5
14000 rm -rf conftest*
14001 eval "ac_cv_header_$ac_safe=no"
14002 fi
14003 rm -f conftest*
14004 fi
14005 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14006 echo "$ac_t""yes" 1>&6
14007 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14008 cat >> confdefs.h <<EOF
14009 #define $ac_tr_hdr 1
14010 EOF
14011
14012 else
14013 echo "$ac_t""no" 1>&6
14014 fi
14015 done
14016
14017 for ac_hdr in wchar.h
14018 do
14019 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14020 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14021 echo "configure:14022: checking for $ac_hdr" >&5
14022 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14023 echo $ac_n "(cached) $ac_c" 1>&6
14024 else
14025 cat > conftest.$ac_ext <<EOF
14026 #line 14027 "configure"
14027 #include "confdefs.h"
14028 #include <$ac_hdr>
14029 EOF
14030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14031 { (eval echo configure:14032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14033 if test -z "$ac_err"; then
14034 rm -rf conftest*
14035 eval "ac_cv_header_$ac_safe=yes"
14036 else
14037 echo "$ac_err" >&5
14038 echo "configure: failed program was:" >&5
14039 cat conftest.$ac_ext >&5
14040 rm -rf conftest*
14041 eval "ac_cv_header_$ac_safe=no"
14042 fi
14043 rm -f conftest*
14044 fi
14045 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14046 echo "$ac_t""yes" 1>&6
14047 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14048 cat >> confdefs.h <<EOF
14049 #define $ac_tr_hdr 1
14050 EOF
14051
14052 else
14053 echo "$ac_t""no" 1>&6
14054 fi
14055 done
14056
14057 for ac_hdr in wcstr.h
14058 do
14059 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14060 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14061 echo "configure:14062: checking for $ac_hdr" >&5
14062 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14063 echo $ac_n "(cached) $ac_c" 1>&6
14064 else
14065 cat > conftest.$ac_ext <<EOF
14066 #line 14067 "configure"
14067 #include "confdefs.h"
14068 #include <$ac_hdr>
14069 EOF
14070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14071 { (eval echo configure:14072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14073 if test -z "$ac_err"; then
14074 rm -rf conftest*
14075 eval "ac_cv_header_$ac_safe=yes"
14076 else
14077 echo "$ac_err" >&5
14078 echo "configure: failed program was:" >&5
14079 cat conftest.$ac_ext >&5
14080 rm -rf conftest*
14081 eval "ac_cv_header_$ac_safe=no"
14082 fi
14083 rm -f conftest*
14084 fi
14085 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14086 echo "$ac_t""yes" 1>&6
14087 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14088 cat >> confdefs.h <<EOF
14089 #define $ac_tr_hdr 1
14090 EOF
14091
14092 else
14093 echo "$ac_t""no" 1>&6
14094 fi
14095 done
14096
14097 for ac_hdr in wctype.h
14098 do
14099 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14100 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14101 echo "configure:14102: checking for $ac_hdr" >&5
14102 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14103 echo $ac_n "(cached) $ac_c" 1>&6
14104 else
14105 cat > conftest.$ac_ext <<EOF
14106 #line 14107 "configure"
14107 #include "confdefs.h"
14108 #include <$ac_hdr>
14109 EOF
14110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14111 { (eval echo configure:14112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14113 if test -z "$ac_err"; then
14114 rm -rf conftest*
14115 eval "ac_cv_header_$ac_safe=yes"
14116 else
14117 echo "$ac_err" >&5
14118 echo "configure: failed program was:" >&5
14119 cat conftest.$ac_ext >&5
14120 rm -rf conftest*
14121 eval "ac_cv_header_$ac_safe=no"
14122 fi
14123 rm -f conftest*
14124 fi
14125 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14126 echo "$ac_t""yes" 1>&6
14127 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14128 cat >> confdefs.h <<EOF
14129 #define $ac_tr_hdr 1
14130 EOF
14131
14132 else
14133 echo "$ac_t""no" 1>&6
14134 fi
14135 done
14136
14137 for ac_hdr in fnmatch.h
14138 do
14139 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14140 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14141 echo "configure:14142: checking for $ac_hdr" >&5
14142 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14143 echo $ac_n "(cached) $ac_c" 1>&6
14144 else
14145 cat > conftest.$ac_ext <<EOF
14146 #line 14147 "configure"
14147 #include "confdefs.h"
14148 #include <$ac_hdr>
14149 EOF
14150 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14151 { (eval echo configure:14152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14152 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14153 if test -z "$ac_err"; then
14154 rm -rf conftest*
14155 eval "ac_cv_header_$ac_safe=yes"
14156 else
14157 echo "$ac_err" >&5
14158 echo "configure: failed program was:" >&5
14159 cat conftest.$ac_ext >&5
14160 rm -rf conftest*
14161 eval "ac_cv_header_$ac_safe=no"
14162 fi
14163 rm -f conftest*
14164 fi
14165 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14166 echo "$ac_t""yes" 1>&6
14167 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14168 cat >> confdefs.h <<EOF
14169 #define $ac_tr_hdr 1
14170 EOF
14171
14172 else
14173 echo "$ac_t""no" 1>&6
14174 fi
14175 done
14176
14177 for ac_hdr in langinfo.h
14178 do
14179 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14180 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14181 echo "configure:14182: checking for $ac_hdr" >&5
14182 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14183 echo $ac_n "(cached) $ac_c" 1>&6
14184 else
14185 cat > conftest.$ac_ext <<EOF
14186 #line 14187 "configure"
14187 #include "confdefs.h"
14188 #include <$ac_hdr>
14189 EOF
14190 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14191 { (eval echo configure:14192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14192 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14193 if test -z "$ac_err"; then
14194 rm -rf conftest*
14195 eval "ac_cv_header_$ac_safe=yes"
14196 else
14197 echo "$ac_err" >&5
14198 echo "configure: failed program was:" >&5
14199 cat conftest.$ac_ext >&5
14200 rm -rf conftest*
14201 eval "ac_cv_header_$ac_safe=no"
14202 fi
14203 rm -f conftest*
14204 fi
14205 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14206 echo "$ac_t""yes" 1>&6
14207 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14208 cat >> confdefs.h <<EOF
14209 #define $ac_tr_hdr 1
14210 EOF
14211
14212 else
14213 echo "$ac_t""no" 1>&6
14214 fi
14215 done
14216
14217
14218 if test "$wxUSE_GUI" = "yes"; then
14219 if test "$wxUSE_UNIX" = "yes"; then
14220 for ac_hdr in X11/XKBlib.h
14221 do
14222 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14223 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14224 echo "configure:14225: checking for $ac_hdr" >&5
14225 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14226 echo $ac_n "(cached) $ac_c" 1>&6
14227 else
14228 cat > conftest.$ac_ext <<EOF
14229 #line 14230 "configure"
14230 #include "confdefs.h"
14231 #include <$ac_hdr>
14232 EOF
14233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14234 { (eval echo configure:14235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14235 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14236 if test -z "$ac_err"; then
14237 rm -rf conftest*
14238 eval "ac_cv_header_$ac_safe=yes"
14239 else
14240 echo "$ac_err" >&5
14241 echo "configure: failed program was:" >&5
14242 cat conftest.$ac_ext >&5
14243 rm -rf conftest*
14244 eval "ac_cv_header_$ac_safe=no"
14245 fi
14246 rm -f conftest*
14247 fi
14248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14249 echo "$ac_t""yes" 1>&6
14250 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14251 cat >> confdefs.h <<EOF
14252 #define $ac_tr_hdr 1
14253 EOF
14254
14255 else
14256 echo "$ac_t""no" 1>&6
14257 fi
14258 done
14259
14260 fi
14261 fi
14262
14263
14264 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
14265 echo "configure:14266: checking for ANSI C header files" >&5
14266 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
14267 echo $ac_n "(cached) $ac_c" 1>&6
14268 else
14269 cat > conftest.$ac_ext <<EOF
14270 #line 14271 "configure"
14271 #include "confdefs.h"
14272 #include <stdlib.h>
14273 #include <stdarg.h>
14274 #include <string.h>
14275 #include <float.h>
14276 EOF
14277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14278 { (eval echo configure:14279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14280 if test -z "$ac_err"; then
14281 rm -rf conftest*
14282 ac_cv_header_stdc=yes
14283 else
14284 echo "$ac_err" >&5
14285 echo "configure: failed program was:" >&5
14286 cat conftest.$ac_ext >&5
14287 rm -rf conftest*
14288 ac_cv_header_stdc=no
14289 fi
14290 rm -f conftest*
14291
14292 if test $ac_cv_header_stdc = yes; then
14293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14294 cat > conftest.$ac_ext <<EOF
14295 #line 14296 "configure"
14296 #include "confdefs.h"
14297 #include <string.h>
14298 EOF
14299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14300 egrep "memchr" >/dev/null 2>&1; then
14301 :
14302 else
14303 rm -rf conftest*
14304 ac_cv_header_stdc=no
14305 fi
14306 rm -f conftest*
14307
14308 fi
14309
14310 if test $ac_cv_header_stdc = yes; then
14311 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14312 cat > conftest.$ac_ext <<EOF
14313 #line 14314 "configure"
14314 #include "confdefs.h"
14315 #include <stdlib.h>
14316 EOF
14317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14318 egrep "free" >/dev/null 2>&1; then
14319 :
14320 else
14321 rm -rf conftest*
14322 ac_cv_header_stdc=no
14323 fi
14324 rm -f conftest*
14325
14326 fi
14327
14328 if test $ac_cv_header_stdc = yes; then
14329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14330 if test "$cross_compiling" = yes; then
14331 :
14332 else
14333 cat > conftest.$ac_ext <<EOF
14334 #line 14335 "configure"
14335 #include "confdefs.h"
14336 #include <ctype.h>
14337 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14338 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14340 int main () { int i; for (i = 0; i < 256; i++)
14341 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14342 exit (0); }
14343
14344 EOF
14345 if { (eval echo configure:14346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14346 then
14347 :
14348 else
14349 echo "configure: failed program was:" >&5
14350 cat conftest.$ac_ext >&5
14351 rm -fr conftest*
14352 ac_cv_header_stdc=no
14353 fi
14354 rm -fr conftest*
14355 fi
14356
14357 fi
14358 fi
14359
14360 echo "$ac_t""$ac_cv_header_stdc" 1>&6
14361 if test $ac_cv_header_stdc = yes; then
14362 cat >> confdefs.h <<\EOF
14363 #define STDC_HEADERS 1
14364 EOF
14365
14366 fi
14367
14368 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14369 echo "configure:14370: checking for mode_t" >&5
14370 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
14371 echo $ac_n "(cached) $ac_c" 1>&6
14372 else
14373 cat > conftest.$ac_ext <<EOF
14374 #line 14375 "configure"
14375 #include "confdefs.h"
14376 #include <sys/types.h>
14377 #if STDC_HEADERS
14378 #include <stdlib.h>
14379 #include <stddef.h>
14380 #endif
14381 EOF
14382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14383 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14384 rm -rf conftest*
14385 ac_cv_type_mode_t=yes
14386 else
14387 rm -rf conftest*
14388 ac_cv_type_mode_t=no
14389 fi
14390 rm -f conftest*
14391
14392 fi
14393 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
14394 if test $ac_cv_type_mode_t = no; then
14395 cat >> confdefs.h <<\EOF
14396 #define mode_t int
14397 EOF
14398
14399 fi
14400
14401 echo $ac_n "checking for off_t""... $ac_c" 1>&6
14402 echo "configure:14403: checking for off_t" >&5
14403 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
14404 echo $ac_n "(cached) $ac_c" 1>&6
14405 else
14406 cat > conftest.$ac_ext <<EOF
14407 #line 14408 "configure"
14408 #include "confdefs.h"
14409 #include <sys/types.h>
14410 #if STDC_HEADERS
14411 #include <stdlib.h>
14412 #include <stddef.h>
14413 #endif
14414 EOF
14415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14416 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14417 rm -rf conftest*
14418 ac_cv_type_off_t=yes
14419 else
14420 rm -rf conftest*
14421 ac_cv_type_off_t=no
14422 fi
14423 rm -f conftest*
14424
14425 fi
14426 echo "$ac_t""$ac_cv_type_off_t" 1>&6
14427 if test $ac_cv_type_off_t = no; then
14428 cat >> confdefs.h <<\EOF
14429 #define off_t long
14430 EOF
14431
14432 fi
14433
14434 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14435 echo "configure:14436: checking for pid_t" >&5
14436 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
14437 echo $ac_n "(cached) $ac_c" 1>&6
14438 else
14439 cat > conftest.$ac_ext <<EOF
14440 #line 14441 "configure"
14441 #include "confdefs.h"
14442 #include <sys/types.h>
14443 #if STDC_HEADERS
14444 #include <stdlib.h>
14445 #include <stddef.h>
14446 #endif
14447 EOF
14448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14449 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14450 rm -rf conftest*
14451 ac_cv_type_pid_t=yes
14452 else
14453 rm -rf conftest*
14454 ac_cv_type_pid_t=no
14455 fi
14456 rm -f conftest*
14457
14458 fi
14459 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
14460 if test $ac_cv_type_pid_t = no; then
14461 cat >> confdefs.h <<\EOF
14462 #define pid_t int
14463 EOF
14464
14465 fi
14466
14467 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14468 echo "configure:14469: checking for size_t" >&5
14469 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
14470 echo $ac_n "(cached) $ac_c" 1>&6
14471 else
14472 cat > conftest.$ac_ext <<EOF
14473 #line 14474 "configure"
14474 #include "confdefs.h"
14475 #include <sys/types.h>
14476 #if STDC_HEADERS
14477 #include <stdlib.h>
14478 #include <stddef.h>
14479 #endif
14480 EOF
14481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14482 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14483 rm -rf conftest*
14484 ac_cv_type_size_t=yes
14485 else
14486 rm -rf conftest*
14487 ac_cv_type_size_t=no
14488 fi
14489 rm -f conftest*
14490
14491 fi
14492 echo "$ac_t""$ac_cv_type_size_t" 1>&6
14493 if test $ac_cv_type_size_t = no; then
14494 cat >> confdefs.h <<\EOF
14495 #define size_t unsigned
14496 EOF
14497
14498 fi
14499
14500 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14501 echo "configure:14502: checking for uid_t in sys/types.h" >&5
14502 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
14503 echo $ac_n "(cached) $ac_c" 1>&6
14504 else
14505 cat > conftest.$ac_ext <<EOF
14506 #line 14507 "configure"
14507 #include "confdefs.h"
14508 #include <sys/types.h>
14509 EOF
14510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14511 egrep "uid_t" >/dev/null 2>&1; then
14512 rm -rf conftest*
14513 ac_cv_type_uid_t=yes
14514 else
14515 rm -rf conftest*
14516 ac_cv_type_uid_t=no
14517 fi
14518 rm -f conftest*
14519
14520 fi
14521
14522 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14523 if test $ac_cv_type_uid_t = no; then
14524 cat >> confdefs.h <<\EOF
14525 #define uid_t int
14526 EOF
14527
14528 cat >> confdefs.h <<\EOF
14529 #define gid_t int
14530 EOF
14531
14532 fi
14533
14534
14535 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
14536 echo "configure:14537: checking for wchar_t" >&5
14537 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
14538 echo $ac_n "(cached) $ac_c" 1>&6
14539 else
14540
14541 cat > conftest.$ac_ext <<EOF
14542 #line 14543 "configure"
14543 #include "confdefs.h"
14544
14545 #ifdef HAVE_WCHAR_H
14546 # ifdef __CYGWIN__
14547 # include <stddef.h>
14548 # endif
14549 # include <wchar.h>
14550 #endif
14551 #ifdef HAVE_STDLIB_H
14552 # include <stdlib.h>
14553 #endif
14554
14555 int main() {
14556
14557 wchar_t wc, *ws;
14558 wc = L'a';
14559 ws = L"Hello, world!";
14560
14561 ; return 0; }
14562 EOF
14563 if { (eval echo configure:14564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14564 rm -rf conftest*
14565 wx_cv_type_wchar_t=yes
14566 else
14567 echo "configure: failed program was:" >&5
14568 cat conftest.$ac_ext >&5
14569 rm -rf conftest*
14570 wx_cv_type_wchar_t=no
14571
14572 fi
14573 rm -f conftest*
14574
14575 fi
14576
14577 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
14578
14579 if test "$wx_cv_type_wchar_t" = "yes"; then
14580 cat >> confdefs.h <<\EOF
14581 #define wxUSE_WCHAR_T 1
14582 EOF
14583
14584 fi
14585
14586
14587 ac_ext=C
14588 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14589 ac_cpp='$CXXCPP $CPPFLAGS'
14590 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14591 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14592 cross_compiling=$ac_cv_prog_cxx_cross
14593
14594 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
14595 echo "configure:14596: checking if size_t is unsigned int" >&5
14596 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
14597 echo $ac_n "(cached) $ac_c" 1>&6
14598 else
14599 cat > conftest.$ac_ext <<EOF
14600 #line 14601 "configure"
14601 #include "confdefs.h"
14602 #include <stddef.h>
14603 int main() {
14604
14605 return 0; }
14606
14607 struct Foo { void foo(size_t); void foo(unsigned int); };
14608
14609 int bar() {
14610
14611 ; return 0; }
14612 EOF
14613 if { (eval echo configure:14614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14614 rm -rf conftest*
14615 wx_cv_size_t_is_uint=no
14616 else
14617 echo "configure: failed program was:" >&5
14618 cat conftest.$ac_ext >&5
14619 rm -rf conftest*
14620 wx_cv_size_t_is_uint=yes
14621
14622 fi
14623 rm -f conftest*
14624
14625 fi
14626
14627 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
14628
14629 if test "$wx_cv_size_t_is_uint" = "yes"; then
14630 cat >> confdefs.h <<\EOF
14631 #define wxSIZE_T_IS_UINT 1
14632 EOF
14633
14634 else
14635 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
14636 echo "configure:14637: checking if size_t is unsigned long" >&5
14637 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
14638 echo $ac_n "(cached) $ac_c" 1>&6
14639 else
14640 cat > conftest.$ac_ext <<EOF
14641 #line 14642 "configure"
14642 #include "confdefs.h"
14643 #include <stddef.h>
14644 int main() {
14645
14646 return 0; }
14647
14648 struct Foo { void foo(size_t); void foo(unsigned long); };
14649
14650 int bar() {
14651
14652 ; return 0; }
14653 EOF
14654 if { (eval echo configure:14655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14655 rm -rf conftest*
14656 wx_cv_size_t_is_ulong=no
14657 else
14658 echo "configure: failed program was:" >&5
14659 cat conftest.$ac_ext >&5
14660 rm -rf conftest*
14661 wx_cv_size_t_is_ulong=yes
14662
14663 fi
14664 rm -f conftest*
14665
14666 fi
14667
14668 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
14669
14670 if test "$wx_cv_size_t_is_ulong" = "yes"; then
14671 cat >> confdefs.h <<\EOF
14672 #define wxSIZE_T_IS_ULONG 1
14673 EOF
14674
14675 fi
14676 fi
14677
14678 ac_ext=c
14679 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14680 ac_cpp='$CPP $CPPFLAGS'
14681 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14682 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14683 cross_compiling=$ac_cv_prog_cc_cross
14684
14685
14686
14687 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
14688 echo "configure:14689: checking for pw_gecos in struct passwd" >&5
14689 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
14690 echo $ac_n "(cached) $ac_c" 1>&6
14691 else
14692
14693 cat > conftest.$ac_ext <<EOF
14694 #line 14695 "configure"
14695 #include "confdefs.h"
14696 #include <pwd.h>
14697 int main() {
14698
14699 char *p;
14700 struct passwd *pw;
14701 p = pw->pw_gecos;
14702
14703 ; return 0; }
14704 EOF
14705 if { (eval echo configure:14706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14706 rm -rf conftest*
14707
14708 wx_cv_struct_pw_gecos=yes
14709
14710 else
14711 echo "configure: failed program was:" >&5
14712 cat conftest.$ac_ext >&5
14713 rm -rf conftest*
14714
14715 wx_cv_struct_pw_gecos=no
14716
14717
14718 fi
14719 rm -f conftest*
14720
14721
14722 fi
14723
14724 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
14725
14726 if test "$wx_cv_struct_pw_gecos" = "yes"; then
14727 cat >> confdefs.h <<\EOF
14728 #define HAVE_PW_GECOS 1
14729 EOF
14730
14731 fi
14732
14733
14734 echo $ac_n "checking for working const""... $ac_c" 1>&6
14735 echo "configure:14736: checking for working const" >&5
14736 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
14737 echo $ac_n "(cached) $ac_c" 1>&6
14738 else
14739 cat > conftest.$ac_ext <<EOF
14740 #line 14741 "configure"
14741 #include "confdefs.h"
14742
14743 int main() {
14744
14745 /* Ultrix mips cc rejects this. */
14746 typedef int charset[2]; const charset x;
14747 /* SunOS 4.1.1 cc rejects this. */
14748 char const *const *ccp;
14749 char **p;
14750 /* NEC SVR4.0.2 mips cc rejects this. */
14751 struct point {int x, y;};
14752 static struct point const zero = {0,0};
14753 /* AIX XL C 1.02.0.0 rejects this.
14754 It does not let you subtract one const X* pointer from another in an arm
14755 of an if-expression whose if-part is not a constant expression */
14756 const char *g = "string";
14757 ccp = &g + (g ? g-g : 0);
14758 /* HPUX 7.0 cc rejects these. */
14759 ++ccp;
14760 p = (char**) ccp;
14761 ccp = (char const *const *) p;
14762 { /* SCO 3.2v4 cc rejects this. */
14763 char *t;
14764 char const *s = 0 ? (char *) 0 : (char const *) 0;
14765
14766 *t++ = 0;
14767 }
14768 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14769 int x[] = {25, 17};
14770 const int *foo = &x[0];
14771 ++foo;
14772 }
14773 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14774 typedef const int *iptr;
14775 iptr p = 0;
14776 ++p;
14777 }
14778 { /* AIX XL C 1.02.0.0 rejects this saying
14779 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14780 struct s { int j; const int *ap[3]; };
14781 struct s *b; b->j = 5;
14782 }
14783 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14784 const int foo = 10;
14785 }
14786
14787 ; return 0; }
14788 EOF
14789 if { (eval echo configure:14790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14790 rm -rf conftest*
14791 ac_cv_c_const=yes
14792 else
14793 echo "configure: failed program was:" >&5
14794 cat conftest.$ac_ext >&5
14795 rm -rf conftest*
14796 ac_cv_c_const=no
14797 fi
14798 rm -f conftest*
14799 fi
14800
14801 echo "$ac_t""$ac_cv_c_const" 1>&6
14802 if test $ac_cv_c_const = no; then
14803 cat >> confdefs.h <<\EOF
14804 #define const
14805 EOF
14806
14807 fi
14808
14809 echo $ac_n "checking for inline""... $ac_c" 1>&6
14810 echo "configure:14811: checking for inline" >&5
14811 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
14812 echo $ac_n "(cached) $ac_c" 1>&6
14813 else
14814 ac_cv_c_inline=no
14815 for ac_kw in inline __inline__ __inline; do
14816 cat > conftest.$ac_ext <<EOF
14817 #line 14818 "configure"
14818 #include "confdefs.h"
14819
14820 int main() {
14821 } $ac_kw foo() {
14822 ; return 0; }
14823 EOF
14824 if { (eval echo configure:14825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14825 rm -rf conftest*
14826 ac_cv_c_inline=$ac_kw; break
14827 else
14828 echo "configure: failed program was:" >&5
14829 cat conftest.$ac_ext >&5
14830 fi
14831 rm -f conftest*
14832 done
14833
14834 fi
14835
14836 echo "$ac_t""$ac_cv_c_inline" 1>&6
14837 case "$ac_cv_c_inline" in
14838 inline | yes) ;;
14839 no) cat >> confdefs.h <<\EOF
14840 #define inline
14841 EOF
14842 ;;
14843 *) cat >> confdefs.h <<EOF
14844 #define inline $ac_cv_c_inline
14845 EOF
14846 ;;
14847 esac
14848
14849
14850 echo $ac_n "checking size of char""... $ac_c" 1>&6
14851 echo "configure:14852: checking size of char" >&5
14852 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
14853 echo $ac_n "(cached) $ac_c" 1>&6
14854 else
14855 if test "$cross_compiling" = yes; then
14856 ac_cv_sizeof_char=1
14857 else
14858 cat > conftest.$ac_ext <<EOF
14859 #line 14860 "configure"
14860 #include "confdefs.h"
14861 #include <stdio.h>
14862 int main()
14863 {
14864 FILE *f=fopen("conftestval", "w");
14865 if (!f) return(1);
14866 fprintf(f, "%d\n", sizeof(char));
14867 return(0);
14868 }
14869 EOF
14870 if { (eval echo configure:14871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14871 then
14872 ac_cv_sizeof_char=`cat conftestval`
14873 else
14874 echo "configure: failed program was:" >&5
14875 cat conftest.$ac_ext >&5
14876 rm -fr conftest*
14877 ac_cv_sizeof_char=0
14878 fi
14879 rm -fr conftest*
14880 fi
14881
14882 fi
14883 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
14884 cat >> confdefs.h <<EOF
14885 #define SIZEOF_CHAR $ac_cv_sizeof_char
14886 EOF
14887
14888
14889 echo $ac_n "checking size of short""... $ac_c" 1>&6
14890 echo "configure:14891: checking size of short" >&5
14891 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
14892 echo $ac_n "(cached) $ac_c" 1>&6
14893 else
14894 if test "$cross_compiling" = yes; then
14895 ac_cv_sizeof_short=2
14896 else
14897 cat > conftest.$ac_ext <<EOF
14898 #line 14899 "configure"
14899 #include "confdefs.h"
14900 #include <stdio.h>
14901 int main()
14902 {
14903 FILE *f=fopen("conftestval", "w");
14904 if (!f) return(1);
14905 fprintf(f, "%d\n", sizeof(short));
14906 return(0);
14907 }
14908 EOF
14909 if { (eval echo configure:14910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14910 then
14911 ac_cv_sizeof_short=`cat conftestval`
14912 else
14913 echo "configure: failed program was:" >&5
14914 cat conftest.$ac_ext >&5
14915 rm -fr conftest*
14916 ac_cv_sizeof_short=0
14917 fi
14918 rm -fr conftest*
14919 fi
14920
14921 fi
14922 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14923 cat >> confdefs.h <<EOF
14924 #define SIZEOF_SHORT $ac_cv_sizeof_short
14925 EOF
14926
14927
14928 echo $ac_n "checking size of int *""... $ac_c" 1>&6
14929 echo "configure:14930: checking size of int *" >&5
14930 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
14931 echo $ac_n "(cached) $ac_c" 1>&6
14932 else
14933 if test "$cross_compiling" = yes; then
14934 ac_cv_sizeof_int_p=4
14935 else
14936 cat > conftest.$ac_ext <<EOF
14937 #line 14938 "configure"
14938 #include "confdefs.h"
14939 #include <stdio.h>
14940 int main()
14941 {
14942 FILE *f=fopen("conftestval", "w");
14943 if (!f) return(1);
14944 fprintf(f, "%d\n", sizeof(int *));
14945 return(0);
14946 }
14947 EOF
14948 if { (eval echo configure:14949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14949 then
14950 ac_cv_sizeof_int_p=`cat conftestval`
14951 else
14952 echo "configure: failed program was:" >&5
14953 cat conftest.$ac_ext >&5
14954 rm -fr conftest*
14955 ac_cv_sizeof_int_p=0
14956 fi
14957 rm -fr conftest*
14958 fi
14959
14960 fi
14961 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
14962 cat >> confdefs.h <<EOF
14963 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14964 EOF
14965
14966
14967 echo $ac_n "checking size of int""... $ac_c" 1>&6
14968 echo "configure:14969: checking size of int" >&5
14969 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
14970 echo $ac_n "(cached) $ac_c" 1>&6
14971 else
14972 if test "$cross_compiling" = yes; then
14973 ac_cv_sizeof_int=4
14974 else
14975 cat > conftest.$ac_ext <<EOF
14976 #line 14977 "configure"
14977 #include "confdefs.h"
14978 #include <stdio.h>
14979 int main()
14980 {
14981 FILE *f=fopen("conftestval", "w");
14982 if (!f) return(1);
14983 fprintf(f, "%d\n", sizeof(int));
14984 return(0);
14985 }
14986 EOF
14987 if { (eval echo configure:14988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14988 then
14989 ac_cv_sizeof_int=`cat conftestval`
14990 else
14991 echo "configure: failed program was:" >&5
14992 cat conftest.$ac_ext >&5
14993 rm -fr conftest*
14994 ac_cv_sizeof_int=0
14995 fi
14996 rm -fr conftest*
14997 fi
14998
14999 fi
15000 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
15001 cat >> confdefs.h <<EOF
15002 #define SIZEOF_INT $ac_cv_sizeof_int
15003 EOF
15004
15005
15006 echo $ac_n "checking size of long""... $ac_c" 1>&6
15007 echo "configure:15008: checking size of long" >&5
15008 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
15009 echo $ac_n "(cached) $ac_c" 1>&6
15010 else
15011 if test "$cross_compiling" = yes; then
15012 ac_cv_sizeof_long=4
15013 else
15014 cat > conftest.$ac_ext <<EOF
15015 #line 15016 "configure"
15016 #include "confdefs.h"
15017 #include <stdio.h>
15018 int main()
15019 {
15020 FILE *f=fopen("conftestval", "w");
15021 if (!f) return(1);
15022 fprintf(f, "%d\n", sizeof(long));
15023 return(0);
15024 }
15025 EOF
15026 if { (eval echo configure:15027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15027 then
15028 ac_cv_sizeof_long=`cat conftestval`
15029 else
15030 echo "configure: failed program was:" >&5
15031 cat conftest.$ac_ext >&5
15032 rm -fr conftest*
15033 ac_cv_sizeof_long=0
15034 fi
15035 rm -fr conftest*
15036 fi
15037
15038 fi
15039 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
15040 cat >> confdefs.h <<EOF
15041 #define SIZEOF_LONG $ac_cv_sizeof_long
15042 EOF
15043
15044
15045 echo $ac_n "checking size of long long""... $ac_c" 1>&6
15046 echo "configure:15047: checking size of long long" >&5
15047 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
15048 echo $ac_n "(cached) $ac_c" 1>&6
15049 else
15050 if test "$cross_compiling" = yes; then
15051 ac_cv_sizeof_long_long=0
15052 else
15053 cat > conftest.$ac_ext <<EOF
15054 #line 15055 "configure"
15055 #include "confdefs.h"
15056 #include <stdio.h>
15057 int main()
15058 {
15059 FILE *f=fopen("conftestval", "w");
15060 if (!f) return(1);
15061 fprintf(f, "%d\n", sizeof(long long));
15062 return(0);
15063 }
15064 EOF
15065 if { (eval echo configure:15066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15066 then
15067 ac_cv_sizeof_long_long=`cat conftestval`
15068 else
15069 echo "configure: failed program was:" >&5
15070 cat conftest.$ac_ext >&5
15071 rm -fr conftest*
15072 ac_cv_sizeof_long_long=0
15073 fi
15074 rm -fr conftest*
15075 fi
15076
15077 fi
15078 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
15079 cat >> confdefs.h <<EOF
15080 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15081 EOF
15082
15083
15084
15085 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
15086 echo "configure:15087: checking size of wchar_t" >&5
15087 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
15088 echo $ac_n "(cached) $ac_c" 1>&6
15089 else
15090
15091 if test "$cross_compiling" = yes; then
15092 wx_cv_sizeof_wchar_t=4
15093
15094 else
15095 cat > conftest.$ac_ext <<EOF
15096 #line 15097 "configure"
15097 #include "confdefs.h"
15098
15099 #ifdef HAVE_WCHAR_H
15100 # ifdef __CYGWIN__
15101 # include <stddef.h>
15102 # endif
15103 # include <wchar.h>
15104 #endif
15105 #ifdef HAVE_STDLIB_H
15106 # include <stdlib.h>
15107 #endif
15108 #include <stdio.h>
15109 int main()
15110 {
15111 FILE *f=fopen("conftestval", "w");
15112 if (!f) exit(1);
15113 fprintf(f, "%i", sizeof(wchar_t));
15114 exit(0);
15115 }
15116
15117 EOF
15118 if { (eval echo configure:15119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15119 then
15120 wx_cv_sizeof_wchar_t=`cat conftestval`
15121 else
15122 echo "configure: failed program was:" >&5
15123 cat conftest.$ac_ext >&5
15124 rm -fr conftest*
15125 wx_cv_sizeof_wchar_t=0
15126 fi
15127 rm -fr conftest*
15128 fi
15129
15130
15131 fi
15132
15133 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
15134
15135 cat >> confdefs.h <<EOF
15136 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
15137 EOF
15138
15139
15140 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
15141 echo "configure:15142: checking whether byte ordering is bigendian" >&5
15142 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
15143 echo $ac_n "(cached) $ac_c" 1>&6
15144 else
15145 ac_cv_c_bigendian=unknown
15146 # See if sys/param.h defines the BYTE_ORDER macro.
15147 cat > conftest.$ac_ext <<EOF
15148 #line 15149 "configure"
15149 #include "confdefs.h"
15150 #include <sys/types.h>
15151 #include <sys/param.h>
15152 int main() {
15153
15154 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15155 bogus endian macros
15156 #endif
15157 ; return 0; }
15158 EOF
15159 if { (eval echo configure:15160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15160 rm -rf conftest*
15161 # It does; now see whether it defined to BIG_ENDIAN or not.
15162 cat > conftest.$ac_ext <<EOF
15163 #line 15164 "configure"
15164 #include "confdefs.h"
15165 #include <sys/types.h>
15166 #include <sys/param.h>
15167 int main() {
15168
15169 #if BYTE_ORDER != BIG_ENDIAN
15170 not big endian
15171 #endif
15172 ; return 0; }
15173 EOF
15174 if { (eval echo configure:15175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15175 rm -rf conftest*
15176 ac_cv_c_bigendian=yes
15177 else
15178 echo "configure: failed program was:" >&5
15179 cat conftest.$ac_ext >&5
15180 rm -rf conftest*
15181 ac_cv_c_bigendian=no
15182 fi
15183 rm -f conftest*
15184 else
15185 echo "configure: failed program was:" >&5
15186 cat conftest.$ac_ext >&5
15187 fi
15188 rm -f conftest*
15189 if test $ac_cv_c_bigendian = unknown; then
15190 if test "$cross_compiling" = yes; then
15191 ac_cv_c_bigendian=unknown
15192 else
15193 cat > conftest.$ac_ext <<EOF
15194 #line 15195 "configure"
15195 #include "confdefs.h"
15196 main () {
15197 /* Are we little or big endian? From Harbison&Steele. */
15198 union
15199 {
15200 long l;
15201 char c[sizeof (long)];
15202 } u;
15203 u.l = 1;
15204 exit (u.c[sizeof (long) - 1] == 1);
15205 }
15206 EOF
15207 if { (eval echo configure:15208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15208 then
15209 ac_cv_c_bigendian=no
15210 else
15211 echo "configure: failed program was:" >&5
15212 cat conftest.$ac_ext >&5
15213 rm -fr conftest*
15214 ac_cv_c_bigendian=yes
15215 fi
15216 rm -fr conftest*
15217 fi
15218
15219 fi
15220 fi
15221
15222 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
15223 if test $ac_cv_c_bigendian = unknown; then
15224 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
15225 fi
15226 if test $ac_cv_c_bigendian = yes; then
15227 cat >> confdefs.h <<\EOF
15228 #define WORDS_BIGENDIAN 1
15229 EOF
15230
15231 fi
15232
15233
15234 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
15235 echo "configure:15236: checking how to run the C++ preprocessor" >&5
15236 if test -z "$CXXCPP"; then
15237 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
15238 echo $ac_n "(cached) $ac_c" 1>&6
15239 else
15240 ac_ext=C
15241 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15242 ac_cpp='$CXXCPP $CPPFLAGS'
15243 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15244 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15245 cross_compiling=$ac_cv_prog_cxx_cross
15246 CXXCPP="${CXX-g++} -E"
15247 cat > conftest.$ac_ext <<EOF
15248 #line 15249 "configure"
15249 #include "confdefs.h"
15250 #include <stdlib.h>
15251 EOF
15252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15253 { (eval echo configure:15254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15255 if test -z "$ac_err"; then
15256 :
15257 else
15258 echo "$ac_err" >&5
15259 echo "configure: failed program was:" >&5
15260 cat conftest.$ac_ext >&5
15261 rm -rf conftest*
15262 CXXCPP=/lib/cpp
15263 fi
15264 rm -f conftest*
15265 ac_cv_prog_CXXCPP="$CXXCPP"
15266 ac_ext=C
15267 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15268 ac_cpp='$CXXCPP $CPPFLAGS'
15269 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15270 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15271 cross_compiling=$ac_cv_prog_cxx_cross
15272 fi
15273 fi
15274 CXXCPP="$ac_cv_prog_CXXCPP"
15275 echo "$ac_t""$CXXCPP" 1>&6
15276
15277
15278 if test "$cross_compiling" = "yes"; then
15279 cat >> confdefs.h <<\EOF
15280 #define wxUSE_IOSTREAMH 1
15281 EOF
15282
15283 else
15284
15285 ac_ext=C
15286 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15287 ac_cpp='$CXXCPP $CPPFLAGS'
15288 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15289 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15290 cross_compiling=$ac_cv_prog_cxx_cross
15291
15292
15293 for ac_hdr in iostream
15294 do
15295 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15296 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15297 echo "configure:15298: checking for $ac_hdr" >&5
15298 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15299 echo $ac_n "(cached) $ac_c" 1>&6
15300 else
15301 cat > conftest.$ac_ext <<EOF
15302 #line 15303 "configure"
15303 #include "confdefs.h"
15304 #include <$ac_hdr>
15305 EOF
15306 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15307 { (eval echo configure:15308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15308 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15309 if test -z "$ac_err"; then
15310 rm -rf conftest*
15311 eval "ac_cv_header_$ac_safe=yes"
15312 else
15313 echo "$ac_err" >&5
15314 echo "configure: failed program was:" >&5
15315 cat conftest.$ac_ext >&5
15316 rm -rf conftest*
15317 eval "ac_cv_header_$ac_safe=no"
15318 fi
15319 rm -f conftest*
15320 fi
15321 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15322 echo "$ac_t""yes" 1>&6
15323 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15324 cat >> confdefs.h <<EOF
15325 #define $ac_tr_hdr 1
15326 EOF
15327
15328 else
15329 echo "$ac_t""no" 1>&6
15330 fi
15331 done
15332
15333
15334 if test "$ac_cv_header_iostream" = "yes" ; then
15335 :
15336 else
15337 cat >> confdefs.h <<\EOF
15338 #define wxUSE_IOSTREAMH 1
15339 EOF
15340
15341 fi
15342
15343 ac_ext=c
15344 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15345 ac_cpp='$CPP $CPPFLAGS'
15346 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15347 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15348 cross_compiling=$ac_cv_prog_cc_cross
15349
15350 fi
15351
15352
15353
15354 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
15355 echo "configure:15356: checking if C++ compiler supports bool" >&5
15356 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
15357 echo $ac_n "(cached) $ac_c" 1>&6
15358 else
15359
15360
15361 ac_ext=C
15362 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15363 ac_cpp='$CXXCPP $CPPFLAGS'
15364 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15365 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15366 cross_compiling=$ac_cv_prog_cxx_cross
15367
15368
15369 cat > conftest.$ac_ext <<EOF
15370 #line 15371 "configure"
15371 #include "confdefs.h"
15372
15373
15374 int main() {
15375
15376 bool b = true;
15377
15378 return 0;
15379
15380 ; return 0; }
15381 EOF
15382 if { (eval echo configure:15383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15383 rm -rf conftest*
15384
15385 wx_cv_cpp_bool=yes
15386
15387 else
15388 echo "configure: failed program was:" >&5
15389 cat conftest.$ac_ext >&5
15390 rm -rf conftest*
15391
15392 wx_cv_cpp_bool=no
15393
15394
15395 fi
15396 rm -f conftest*
15397
15398 ac_ext=c
15399 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15400 ac_cpp='$CPP $CPPFLAGS'
15401 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15402 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15403 cross_compiling=$ac_cv_prog_cc_cross
15404
15405
15406 fi
15407
15408 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
15409
15410 if test "$wx_cv_cpp_bool" = "yes"; then
15411 cat >> confdefs.h <<\EOF
15412 #define HAVE_BOOL 1
15413 EOF
15414
15415 fi
15416
15417
15418
15419 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
15420 echo "configure:15421: checking for wcslen in -lc" >&5
15421 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
15422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15423 echo $ac_n "(cached) $ac_c" 1>&6
15424 else
15425 ac_save_LIBS="$LIBS"
15426 LIBS="-lc $LIBS"
15427 cat > conftest.$ac_ext <<EOF
15428 #line 15429 "configure"
15429 #include "confdefs.h"
15430 /* Override any gcc2 internal prototype to avoid an error. */
15431 /* We use char because int might match the return type of a gcc2
15432 builtin and then its argument prototype would still apply. */
15433 char wcslen();
15434
15435 int main() {
15436 wcslen()
15437 ; return 0; }
15438 EOF
15439 if { (eval echo configure:15440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15440 rm -rf conftest*
15441 eval "ac_cv_lib_$ac_lib_var=yes"
15442 else
15443 echo "configure: failed program was:" >&5
15444 cat conftest.$ac_ext >&5
15445 rm -rf conftest*
15446 eval "ac_cv_lib_$ac_lib_var=no"
15447 fi
15448 rm -f conftest*
15449 LIBS="$ac_save_LIBS"
15450
15451 fi
15452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15453 echo "$ac_t""yes" 1>&6
15454
15455 cat >> confdefs.h <<\EOF
15456 #define HAVE_WCSLEN 1
15457 EOF
15458
15459 WCHAR_LINK=
15460
15461 else
15462 echo "$ac_t""no" 1>&6
15463
15464 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
15465 echo "configure:15466: checking for wcslen in -lw" >&5
15466 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
15467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15468 echo $ac_n "(cached) $ac_c" 1>&6
15469 else
15470 ac_save_LIBS="$LIBS"
15471 LIBS="-lw $LIBS"
15472 cat > conftest.$ac_ext <<EOF
15473 #line 15474 "configure"
15474 #include "confdefs.h"
15475 /* Override any gcc2 internal prototype to avoid an error. */
15476 /* We use char because int might match the return type of a gcc2
15477 builtin and then its argument prototype would still apply. */
15478 char wcslen();
15479
15480 int main() {
15481 wcslen()
15482 ; return 0; }
15483 EOF
15484 if { (eval echo configure:15485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15485 rm -rf conftest*
15486 eval "ac_cv_lib_$ac_lib_var=yes"
15487 else
15488 echo "configure: failed program was:" >&5
15489 cat conftest.$ac_ext >&5
15490 rm -rf conftest*
15491 eval "ac_cv_lib_$ac_lib_var=no"
15492 fi
15493 rm -f conftest*
15494 LIBS="$ac_save_LIBS"
15495
15496 fi
15497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15498 echo "$ac_t""yes" 1>&6
15499
15500 cat >> confdefs.h <<\EOF
15501 #define HAVE_WCSLEN 1
15502 EOF
15503
15504 WCHAR_LINK=" -lw"
15505
15506 else
15507 echo "$ac_t""no" 1>&6
15508
15509 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
15510 echo "configure:15511: checking for wcslen in -lmsvcrt" >&5
15511 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
15512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15513 echo $ac_n "(cached) $ac_c" 1>&6
15514 else
15515 ac_save_LIBS="$LIBS"
15516 LIBS="-lmsvcrt $LIBS"
15517 cat > conftest.$ac_ext <<EOF
15518 #line 15519 "configure"
15519 #include "confdefs.h"
15520 /* Override any gcc2 internal prototype to avoid an error. */
15521 /* We use char because int might match the return type of a gcc2
15522 builtin and then its argument prototype would still apply. */
15523 char wcslen();
15524
15525 int main() {
15526 wcslen()
15527 ; return 0; }
15528 EOF
15529 if { (eval echo configure:15530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15530 rm -rf conftest*
15531 eval "ac_cv_lib_$ac_lib_var=yes"
15532 else
15533 echo "configure: failed program was:" >&5
15534 cat conftest.$ac_ext >&5
15535 rm -rf conftest*
15536 eval "ac_cv_lib_$ac_lib_var=no"
15537 fi
15538 rm -f conftest*
15539 LIBS="$ac_save_LIBS"
15540
15541 fi
15542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15543 echo "$ac_t""yes" 1>&6
15544
15545 cat >> confdefs.h <<\EOF
15546 #define HAVE_WCSLEN 1
15547 EOF
15548
15549 WCHAR_LINK=
15550
15551 else
15552 echo "$ac_t""no" 1>&6
15553 fi
15554
15555
15556 fi
15557
15558
15559 fi
15560
15561
15562 for ac_func in wcsrtombs
15563 do
15564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15565 echo "configure:15566: checking for $ac_func" >&5
15566 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15567 echo $ac_n "(cached) $ac_c" 1>&6
15568 else
15569 cat > conftest.$ac_ext <<EOF
15570 #line 15571 "configure"
15571 #include "confdefs.h"
15572 /* System header to define __stub macros and hopefully few prototypes,
15573 which can conflict with char $ac_func(); below. */
15574 #include <assert.h>
15575 /* Override any gcc2 internal prototype to avoid an error. */
15576 /* We use char because int might match the return type of a gcc2
15577 builtin and then its argument prototype would still apply. */
15578 char $ac_func();
15579
15580 int main() {
15581
15582 /* The GNU C library defines this for functions which it implements
15583 to always fail with ENOSYS. Some functions are actually named
15584 something starting with __ and the normal name is an alias. */
15585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15586 choke me
15587 #else
15588 $ac_func();
15589 #endif
15590
15591 ; return 0; }
15592 EOF
15593 if { (eval echo configure:15594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15594 rm -rf conftest*
15595 eval "ac_cv_func_$ac_func=yes"
15596 else
15597 echo "configure: failed program was:" >&5
15598 cat conftest.$ac_ext >&5
15599 rm -rf conftest*
15600 eval "ac_cv_func_$ac_func=no"
15601 fi
15602 rm -f conftest*
15603 fi
15604
15605 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15606 echo "$ac_t""yes" 1>&6
15607 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15608 cat >> confdefs.h <<EOF
15609 #define $ac_tr_func 1
15610 EOF
15611
15612 else
15613 echo "$ac_t""no" 1>&6
15614 fi
15615 done
15616
15617
15618 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15619 echo "configure:15620: checking for vprintf" >&5
15620 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
15621 echo $ac_n "(cached) $ac_c" 1>&6
15622 else
15623 cat > conftest.$ac_ext <<EOF
15624 #line 15625 "configure"
15625 #include "confdefs.h"
15626 /* System header to define __stub macros and hopefully few prototypes,
15627 which can conflict with char vprintf(); below. */
15628 #include <assert.h>
15629 /* Override any gcc2 internal prototype to avoid an error. */
15630 /* We use char because int might match the return type of a gcc2
15631 builtin and then its argument prototype would still apply. */
15632 char vprintf();
15633
15634 int main() {
15635
15636 /* The GNU C library defines this for functions which it implements
15637 to always fail with ENOSYS. Some functions are actually named
15638 something starting with __ and the normal name is an alias. */
15639 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15640 choke me
15641 #else
15642 vprintf();
15643 #endif
15644
15645 ; return 0; }
15646 EOF
15647 if { (eval echo configure:15648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15648 rm -rf conftest*
15649 eval "ac_cv_func_vprintf=yes"
15650 else
15651 echo "configure: failed program was:" >&5
15652 cat conftest.$ac_ext >&5
15653 rm -rf conftest*
15654 eval "ac_cv_func_vprintf=no"
15655 fi
15656 rm -f conftest*
15657 fi
15658
15659 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15660 echo "$ac_t""yes" 1>&6
15661 cat >> confdefs.h <<\EOF
15662 #define HAVE_VPRINTF 1
15663 EOF
15664
15665 else
15666 echo "$ac_t""no" 1>&6
15667 fi
15668
15669 if test "$ac_cv_func_vprintf" != yes; then
15670 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15671 echo "configure:15672: checking for _doprnt" >&5
15672 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
15673 echo $ac_n "(cached) $ac_c" 1>&6
15674 else
15675 cat > conftest.$ac_ext <<EOF
15676 #line 15677 "configure"
15677 #include "confdefs.h"
15678 /* System header to define __stub macros and hopefully few prototypes,
15679 which can conflict with char _doprnt(); below. */
15680 #include <assert.h>
15681 /* Override any gcc2 internal prototype to avoid an error. */
15682 /* We use char because int might match the return type of a gcc2
15683 builtin and then its argument prototype would still apply. */
15684 char _doprnt();
15685
15686 int main() {
15687
15688 /* The GNU C library defines this for functions which it implements
15689 to always fail with ENOSYS. Some functions are actually named
15690 something starting with __ and the normal name is an alias. */
15691 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15692 choke me
15693 #else
15694 _doprnt();
15695 #endif
15696
15697 ; return 0; }
15698 EOF
15699 if { (eval echo configure:15700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15700 rm -rf conftest*
15701 eval "ac_cv_func__doprnt=yes"
15702 else
15703 echo "configure: failed program was:" >&5
15704 cat conftest.$ac_ext >&5
15705 rm -rf conftest*
15706 eval "ac_cv_func__doprnt=no"
15707 fi
15708 rm -f conftest*
15709 fi
15710
15711 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15712 echo "$ac_t""yes" 1>&6
15713 cat >> confdefs.h <<\EOF
15714 #define HAVE_DOPRNT 1
15715 EOF
15716
15717 else
15718 echo "$ac_t""no" 1>&6
15719 fi
15720
15721 fi
15722
15723
15724
15725
15726
15727
15728 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
15729 echo "configure:15730: checking for vsnprintf" >&5
15730 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
15731 echo $ac_n "(cached) $ac_c" 1>&6
15732 else
15733
15734 cat > conftest.$ac_ext <<EOF
15735 #line 15736 "configure"
15736 #include "confdefs.h"
15737
15738 #include <stdio.h>
15739 #include <stdarg.h>
15740
15741 int main() {
15742
15743 int wx_test_vsnprintf(const char *, ...);
15744
15745 wx_test_vsnprintf("%s");
15746 return 0;
15747 }
15748
15749 int wx_test_vsnprintf(const char *fmt, ...)
15750 {
15751 char *s;
15752
15753 va_list argp;
15754 va_start(argp, fmt);
15755 vsnprintf(s, 42, fmt, argp);
15756 va_end(argp);
15757
15758 ; return 0; }
15759 EOF
15760 if { (eval echo configure:15761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15761 rm -rf conftest*
15762
15763 wx_cv_func_vsnprintf=yes
15764
15765 else
15766 echo "configure: failed program was:" >&5
15767 cat conftest.$ac_ext >&5
15768 rm -rf conftest*
15769
15770 cat > conftest.$ac_ext <<EOF
15771 #line 15772 "configure"
15772 #include "confdefs.h"
15773
15774 #include <stdio.h>
15775 #include <stdarg.h>
15776
15777 int main() {
15778
15779 int wx_test_vsnprintf(const char *, ...);
15780
15781 wx_test_vsnprintf("%s");
15782 return 0;
15783 }
15784
15785 int wx_test_vsnprintf(const char *fmt, ...)
15786 {
15787 char *s;
15788
15789 va_list argp;
15790 va_start(argp, fmt);
15791 _vsnprintf(s, 42, fmt, argp);
15792 va_end(argp);
15793
15794 ; return 0; }
15795 EOF
15796 if { (eval echo configure:15797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15797 rm -rf conftest*
15798
15799 wx_cv_func_vsnprintf=yes
15800
15801 else
15802 echo "configure: failed program was:" >&5
15803 cat conftest.$ac_ext >&5
15804 rm -rf conftest*
15805
15806 wx_cv_func_vsnprintf=no
15807
15808 fi
15809 rm -f conftest*
15810
15811 fi
15812 rm -f conftest*
15813
15814 fi
15815
15816 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
15817
15818 if test "$wx_cv_func_vsnprintf" = yes; then
15819 cat >> confdefs.h <<\EOF
15820 #define HAVE_VSNPRINTF 1
15821 EOF
15822
15823 else
15824 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
15825 fi
15826
15827 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
15828 echo "configure:15829: checking for vsscanf" >&5
15829 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
15830 echo $ac_n "(cached) $ac_c" 1>&6
15831 else
15832
15833 cat > conftest.$ac_ext <<EOF
15834 #line 15835 "configure"
15835 #include "confdefs.h"
15836
15837 #include <stdio.h>
15838 #include <stdarg.h>
15839
15840 int main() {
15841
15842 int wx_test_vsscanf(const char *, ...);
15843
15844 wx_test_vsscanf("%d");
15845 return 0;
15846 }
15847
15848 int wx_test_vsscanf(const char *fmt, ...)
15849 {
15850 va_list argp;
15851 va_start(argp, fmt);
15852 vsscanf("42", fmt, argp);
15853 va_end(argp);
15854
15855 ; return 0; }
15856 EOF
15857 if { (eval echo configure:15858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15858 rm -rf conftest*
15859
15860 wx_cv_func_vsscanf=yes
15861
15862 else
15863 echo "configure: failed program was:" >&5
15864 cat conftest.$ac_ext >&5
15865 rm -rf conftest*
15866
15867 wx_cv_func_vsscanf=no
15868
15869 fi
15870 rm -f conftest*
15871
15872 fi
15873
15874 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
15875
15876 if test "$wx_cv_func_vsscanf" = yes; then
15877 cat >> confdefs.h <<\EOF
15878 #define HAVE_VSSCANF 1
15879 EOF
15880
15881 fi
15882
15883 if test "$TOOLKIT" != "MSW"; then
15884
15885
15886
15887 ac_ext=C
15888 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15889 ac_cpp='$CXXCPP $CPPFLAGS'
15890 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15891 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15892 cross_compiling=$ac_cv_prog_cxx_cross
15893
15894
15895
15896 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15897 if test "${with_libiconv_prefix+set}" = set; then
15898 withval="$with_libiconv_prefix"
15899
15900 for dir in `echo "$withval" | tr : ' '`; do
15901 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
15902 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
15903 done
15904
15905 fi
15906
15907
15908 echo $ac_n "checking for iconv""... $ac_c" 1>&6
15909 echo "configure:15910: checking for iconv" >&5
15910 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
15911 echo $ac_n "(cached) $ac_c" 1>&6
15912 else
15913
15914 am_cv_func_iconv="no, consider installing GNU libiconv"
15915 am_cv_lib_iconv=no
15916 cat > conftest.$ac_ext <<EOF
15917 #line 15918 "configure"
15918 #include "confdefs.h"
15919 #include <stdlib.h>
15920 #include <iconv.h>
15921 int main() {
15922 iconv_t cd = iconv_open("","");
15923 iconv(cd,NULL,NULL,NULL,NULL);
15924 iconv_close(cd);
15925 ; return 0; }
15926 EOF
15927 if { (eval echo configure:15928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15928 rm -rf conftest*
15929 am_cv_func_iconv=yes
15930 else
15931 echo "configure: failed program was:" >&5
15932 cat conftest.$ac_ext >&5
15933 fi
15934 rm -f conftest*
15935 if test "$am_cv_func_iconv" != yes; then
15936 am_save_LIBS="$LIBS"
15937 LIBS="$LIBS -liconv"
15938 cat > conftest.$ac_ext <<EOF
15939 #line 15940 "configure"
15940 #include "confdefs.h"
15941 #include <stdlib.h>
15942 #include <iconv.h>
15943 int main() {
15944 iconv_t cd = iconv_open("","");
15945 iconv(cd,NULL,NULL,NULL,NULL);
15946 iconv_close(cd);
15947 ; return 0; }
15948 EOF
15949 if { (eval echo configure:15950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15950 rm -rf conftest*
15951 am_cv_lib_iconv=yes
15952 am_cv_func_iconv=yes
15953 else
15954 echo "configure: failed program was:" >&5
15955 cat conftest.$ac_ext >&5
15956 fi
15957 rm -f conftest*
15958 LIBS="$am_save_LIBS"
15959 fi
15960
15961 fi
15962
15963 echo "$ac_t""$am_cv_func_iconv" 1>&6
15964 if test "$am_cv_func_iconv" = yes; then
15965 cat >> confdefs.h <<\EOF
15966 #define HAVE_ICONV 1
15967 EOF
15968
15969 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
15970 echo "configure:15971: checking if iconv needs const" >&5
15971 if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
15972 echo $ac_n "(cached) $ac_c" 1>&6
15973 else
15974 cat > conftest.$ac_ext <<EOF
15975 #line 15976 "configure"
15976 #include "confdefs.h"
15977
15978 #include <stdlib.h>
15979 #include <iconv.h>
15980 extern
15981 #ifdef __cplusplus
15982 "C"
15983 #endif
15984 #if defined(__STDC__) || defined(__cplusplus)
15985 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15986 #else
15987 size_t iconv();
15988 #endif
15989
15990 int main() {
15991
15992 ; return 0; }
15993 EOF
15994 if { (eval echo configure:15995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15995 rm -rf conftest*
15996 wx_cv_func_iconv_const="no"
15997 else
15998 echo "configure: failed program was:" >&5
15999 cat conftest.$ac_ext >&5
16000 rm -rf conftest*
16001 wx_cv_func_iconv_const="yes"
16002
16003 fi
16004 rm -f conftest*
16005
16006 fi
16007
16008 echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
16009
16010 iconv_const=
16011 if test "x$wx_cv_func_iconv_const" = "xyes"; then
16012 iconv_const="const"
16013 fi
16014
16015 cat >> confdefs.h <<EOF
16016 #define ICONV_CONST $iconv_const
16017 EOF
16018
16019 fi
16020 LIBICONV=
16021 if test "$am_cv_lib_iconv" = yes; then
16022 LIBICONV="-liconv"
16023 fi
16024
16025
16026 LIBS="$LIBICONV $LIBS"
16027 ac_ext=c
16028 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16029 ac_cpp='$CPP $CPPFLAGS'
16030 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16031 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16032 cross_compiling=$ac_cv_prog_cc_cross
16033
16034
16035 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
16036 for ac_func in sigaction
16037 do
16038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16039 echo "configure:16040: checking for $ac_func" >&5
16040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16041 echo $ac_n "(cached) $ac_c" 1>&6
16042 else
16043 cat > conftest.$ac_ext <<EOF
16044 #line 16045 "configure"
16045 #include "confdefs.h"
16046 /* System header to define __stub macros and hopefully few prototypes,
16047 which can conflict with char $ac_func(); below. */
16048 #include <assert.h>
16049 /* Override any gcc2 internal prototype to avoid an error. */
16050 /* We use char because int might match the return type of a gcc2
16051 builtin and then its argument prototype would still apply. */
16052 char $ac_func();
16053
16054 int main() {
16055
16056 /* The GNU C library defines this for functions which it implements
16057 to always fail with ENOSYS. Some functions are actually named
16058 something starting with __ and the normal name is an alias. */
16059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16060 choke me
16061 #else
16062 $ac_func();
16063 #endif
16064
16065 ; return 0; }
16066 EOF
16067 if { (eval echo configure:16068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16068 rm -rf conftest*
16069 eval "ac_cv_func_$ac_func=yes"
16070 else
16071 echo "configure: failed program was:" >&5
16072 cat conftest.$ac_ext >&5
16073 rm -rf conftest*
16074 eval "ac_cv_func_$ac_func=no"
16075 fi
16076 rm -f conftest*
16077 fi
16078
16079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16080 echo "$ac_t""yes" 1>&6
16081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16082 cat >> confdefs.h <<EOF
16083 #define $ac_tr_func 1
16084 EOF
16085
16086 else
16087 echo "$ac_t""no" 1>&6
16088 fi
16089 done
16090
16091
16092 if test "$ac_cv_func_sigaction" = "no"; then
16093 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
16094 wxUSE_ON_FATAL_EXCEPTION=no
16095 fi
16096
16097 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16098
16099 ac_ext=C
16100 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16101 ac_cpp='$CXXCPP $CPPFLAGS'
16102 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16103 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16104 cross_compiling=$ac_cv_prog_cxx_cross
16105
16106
16107 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
16108 echo "configure:16109: checking for sa_handler type" >&5
16109 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
16110 echo $ac_n "(cached) $ac_c" 1>&6
16111 else
16112
16113 cat > conftest.$ac_ext <<EOF
16114 #line 16115 "configure"
16115 #include "confdefs.h"
16116 #include <signal.h>
16117 int main() {
16118
16119 extern void testSigHandler(int);
16120
16121 struct sigaction sa;
16122 sa.sa_handler = testSigHandler;
16123
16124 ; return 0; }
16125 EOF
16126 if { (eval echo configure:16127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16127 rm -rf conftest*
16128
16129 wx_cv_type_sa_handler=int
16130
16131 else
16132 echo "configure: failed program was:" >&5
16133 cat conftest.$ac_ext >&5
16134 rm -rf conftest*
16135
16136 wx_cv_type_sa_handler=void
16137
16138 fi
16139 rm -f conftest*
16140
16141 fi
16142
16143 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
16144
16145 ac_ext=c
16146 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16147 ac_cpp='$CPP $CPPFLAGS'
16148 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16149 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16150 cross_compiling=$ac_cv_prog_cc_cross
16151
16152
16153 cat >> confdefs.h <<EOF
16154 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
16155 EOF
16156
16157 fi
16158 fi
16159
16160 for ac_func in vfork
16161 do
16162 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16163 echo "configure:16164: checking for $ac_func" >&5
16164 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16165 echo $ac_n "(cached) $ac_c" 1>&6
16166 else
16167 cat > conftest.$ac_ext <<EOF
16168 #line 16169 "configure"
16169 #include "confdefs.h"
16170 /* System header to define __stub macros and hopefully few prototypes,
16171 which can conflict with char $ac_func(); below. */
16172 #include <assert.h>
16173 /* Override any gcc2 internal prototype to avoid an error. */
16174 /* We use char because int might match the return type of a gcc2
16175 builtin and then its argument prototype would still apply. */
16176 char $ac_func();
16177
16178 int main() {
16179
16180 /* The GNU C library defines this for functions which it implements
16181 to always fail with ENOSYS. Some functions are actually named
16182 something starting with __ and the normal name is an alias. */
16183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16184 choke me
16185 #else
16186 $ac_func();
16187 #endif
16188
16189 ; return 0; }
16190 EOF
16191 if { (eval echo configure:16192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16192 rm -rf conftest*
16193 eval "ac_cv_func_$ac_func=yes"
16194 else
16195 echo "configure: failed program was:" >&5
16196 cat conftest.$ac_ext >&5
16197 rm -rf conftest*
16198 eval "ac_cv_func_$ac_func=no"
16199 fi
16200 rm -f conftest*
16201 fi
16202
16203 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16204 echo "$ac_t""yes" 1>&6
16205 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16206 cat >> confdefs.h <<EOF
16207 #define $ac_tr_func 1
16208 EOF
16209
16210 else
16211 echo "$ac_t""no" 1>&6
16212 fi
16213 done
16214
16215
16216 for ac_func in mkstemp mktemp
16217 do
16218 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16219 echo "configure:16220: checking for $ac_func" >&5
16220 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16221 echo $ac_n "(cached) $ac_c" 1>&6
16222 else
16223 cat > conftest.$ac_ext <<EOF
16224 #line 16225 "configure"
16225 #include "confdefs.h"
16226 /* System header to define __stub macros and hopefully few prototypes,
16227 which can conflict with char $ac_func(); below. */
16228 #include <assert.h>
16229 /* Override any gcc2 internal prototype to avoid an error. */
16230 /* We use char because int might match the return type of a gcc2
16231 builtin and then its argument prototype would still apply. */
16232 char $ac_func();
16233
16234 int main() {
16235
16236 /* The GNU C library defines this for functions which it implements
16237 to always fail with ENOSYS. Some functions are actually named
16238 something starting with __ and the normal name is an alias. */
16239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16240 choke me
16241 #else
16242 $ac_func();
16243 #endif
16244
16245 ; return 0; }
16246 EOF
16247 if { (eval echo configure:16248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16248 rm -rf conftest*
16249 eval "ac_cv_func_$ac_func=yes"
16250 else
16251 echo "configure: failed program was:" >&5
16252 cat conftest.$ac_ext >&5
16253 rm -rf conftest*
16254 eval "ac_cv_func_$ac_func=no"
16255 fi
16256 rm -f conftest*
16257 fi
16258
16259 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16260 echo "$ac_t""yes" 1>&6
16261 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16262 cat >> confdefs.h <<EOF
16263 #define $ac_tr_func 1
16264 EOF
16265 break
16266 else
16267 echo "$ac_t""no" 1>&6
16268 fi
16269 done
16270
16271
16272 echo $ac_n "checking for statfs""... $ac_c" 1>&6
16273 echo "configure:16274: checking for statfs" >&5
16274 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16275 echo $ac_n "(cached) $ac_c" 1>&6
16276 else
16277 cat > conftest.$ac_ext <<EOF
16278 #line 16279 "configure"
16279 #include "confdefs.h"
16280
16281 #if defined(__BSD__)
16282 #include <sys/param.h>
16283 #include <sys/mount.h>
16284 #else
16285 #include <sys/vfs.h>
16286 #endif
16287
16288 int main() {
16289
16290 long l;
16291 struct statfs fs;
16292 statfs("/", &fs);
16293 l = fs.f_bsize;
16294 l += fs.f_blocks;
16295 l += fs.f_bavail;
16296
16297 ; return 0; }
16298 EOF
16299 if { (eval echo configure:16300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16300 rm -rf conftest*
16301
16302 wx_cv_func_statfs=yes
16303
16304 else
16305 echo "configure: failed program was:" >&5
16306 cat conftest.$ac_ext >&5
16307 rm -rf conftest*
16308
16309 wx_cv_func_statfs=no
16310
16311
16312 fi
16313 rm -f conftest*
16314
16315 fi
16316
16317 echo "$ac_t""$wx_cv_func_statfs" 1>&6
16318
16319 if test "$wx_cv_func_statfs" = "yes"; then
16320 cat >> confdefs.h <<\EOF
16321 #define HAVE_STATFS 1
16322 EOF
16323
16324 else
16325 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
16326 echo "configure:16327: checking for statvfs" >&5
16327 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
16328 echo $ac_n "(cached) $ac_c" 1>&6
16329 else
16330 cat > conftest.$ac_ext <<EOF
16331 #line 16332 "configure"
16332 #include "confdefs.h"
16333
16334 #include <sys/statvfs.h>
16335
16336 int main() {
16337
16338 long l;
16339 struct statvfs fs;
16340 statvfs("/", &fs);
16341 l = fs.f_bsize;
16342 l += fs.f_blocks;
16343 l += fs.f_bavail;
16344
16345 ; return 0; }
16346 EOF
16347 if { (eval echo configure:16348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16348 rm -rf conftest*
16349
16350 wx_cv_func_statvfs=yes
16351
16352 else
16353 echo "configure: failed program was:" >&5
16354 cat conftest.$ac_ext >&5
16355 rm -rf conftest*
16356
16357 wx_cv_func_statvfs=no
16358
16359
16360 fi
16361 rm -f conftest*
16362
16363 fi
16364
16365 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
16366
16367 if test "$wx_cv_func_statvfs" = "yes"; then
16368 cat >> confdefs.h <<\EOF
16369 #define HAVE_STATVFS 1
16370 EOF
16371
16372 else
16373 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16374 fi
16375 fi
16376
16377 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16378 for ac_func in fcntl flock
16379 do
16380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16381 echo "configure:16382: checking for $ac_func" >&5
16382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16383 echo $ac_n "(cached) $ac_c" 1>&6
16384 else
16385 cat > conftest.$ac_ext <<EOF
16386 #line 16387 "configure"
16387 #include "confdefs.h"
16388 /* System header to define __stub macros and hopefully few prototypes,
16389 which can conflict with char $ac_func(); below. */
16390 #include <assert.h>
16391 /* Override any gcc2 internal prototype to avoid an error. */
16392 /* We use char because int might match the return type of a gcc2
16393 builtin and then its argument prototype would still apply. */
16394 char $ac_func();
16395
16396 int main() {
16397
16398 /* The GNU C library defines this for functions which it implements
16399 to always fail with ENOSYS. Some functions are actually named
16400 something starting with __ and the normal name is an alias. */
16401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16402 choke me
16403 #else
16404 $ac_func();
16405 #endif
16406
16407 ; return 0; }
16408 EOF
16409 if { (eval echo configure:16410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16410 rm -rf conftest*
16411 eval "ac_cv_func_$ac_func=yes"
16412 else
16413 echo "configure: failed program was:" >&5
16414 cat conftest.$ac_ext >&5
16415 rm -rf conftest*
16416 eval "ac_cv_func_$ac_func=no"
16417 fi
16418 rm -f conftest*
16419 fi
16420
16421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16422 echo "$ac_t""yes" 1>&6
16423 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16424 cat >> confdefs.h <<EOF
16425 #define $ac_tr_func 1
16426 EOF
16427 break
16428 else
16429 echo "$ac_t""no" 1>&6
16430 fi
16431 done
16432
16433
16434 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16435 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16436 wxUSE_SNGLINST_CHECKER=no
16437 fi
16438 fi
16439
16440 for ac_func in timegm
16441 do
16442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16443 echo "configure:16444: checking for $ac_func" >&5
16444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16445 echo $ac_n "(cached) $ac_c" 1>&6
16446 else
16447 cat > conftest.$ac_ext <<EOF
16448 #line 16449 "configure"
16449 #include "confdefs.h"
16450 /* System header to define __stub macros and hopefully few prototypes,
16451 which can conflict with char $ac_func(); below. */
16452 #include <assert.h>
16453 /* Override any gcc2 internal prototype to avoid an error. */
16454 /* We use char because int might match the return type of a gcc2
16455 builtin and then its argument prototype would still apply. */
16456 char $ac_func();
16457
16458 int main() {
16459
16460 /* The GNU C library defines this for functions which it implements
16461 to always fail with ENOSYS. Some functions are actually named
16462 something starting with __ and the normal name is an alias. */
16463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16464 choke me
16465 #else
16466 $ac_func();
16467 #endif
16468
16469 ; return 0; }
16470 EOF
16471 if { (eval echo configure:16472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16472 rm -rf conftest*
16473 eval "ac_cv_func_$ac_func=yes"
16474 else
16475 echo "configure: failed program was:" >&5
16476 cat conftest.$ac_ext >&5
16477 rm -rf conftest*
16478 eval "ac_cv_func_$ac_func=no"
16479 fi
16480 rm -f conftest*
16481 fi
16482
16483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16484 echo "$ac_t""yes" 1>&6
16485 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16486 cat >> confdefs.h <<EOF
16487 #define $ac_tr_func 1
16488 EOF
16489
16490 else
16491 echo "$ac_t""no" 1>&6
16492 fi
16493 done
16494
16495
16496 for ac_func in putenv setenv
16497 do
16498 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16499 echo "configure:16500: checking for $ac_func" >&5
16500 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16501 echo $ac_n "(cached) $ac_c" 1>&6
16502 else
16503 cat > conftest.$ac_ext <<EOF
16504 #line 16505 "configure"
16505 #include "confdefs.h"
16506 /* System header to define __stub macros and hopefully few prototypes,
16507 which can conflict with char $ac_func(); below. */
16508 #include <assert.h>
16509 /* Override any gcc2 internal prototype to avoid an error. */
16510 /* We use char because int might match the return type of a gcc2
16511 builtin and then its argument prototype would still apply. */
16512 char $ac_func();
16513
16514 int main() {
16515
16516 /* The GNU C library defines this for functions which it implements
16517 to always fail with ENOSYS. Some functions are actually named
16518 something starting with __ and the normal name is an alias. */
16519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16520 choke me
16521 #else
16522 $ac_func();
16523 #endif
16524
16525 ; return 0; }
16526 EOF
16527 if { (eval echo configure:16528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16528 rm -rf conftest*
16529 eval "ac_cv_func_$ac_func=yes"
16530 else
16531 echo "configure: failed program was:" >&5
16532 cat conftest.$ac_ext >&5
16533 rm -rf conftest*
16534 eval "ac_cv_func_$ac_func=no"
16535 fi
16536 rm -f conftest*
16537 fi
16538
16539 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16540 echo "$ac_t""yes" 1>&6
16541 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16542 cat >> confdefs.h <<EOF
16543 #define $ac_tr_func 1
16544 EOF
16545 break
16546 else
16547 echo "$ac_t""no" 1>&6
16548 fi
16549 done
16550
16551
16552 HAVE_SOME_SLEEP_FUNC=0
16553 if test "$USE_BEOS" = 1; then
16554 cat >> confdefs.h <<\EOF
16555 #define HAVE_SLEEP 1
16556 EOF
16557
16558 HAVE_SOME_SLEEP_FUNC=1
16559 fi
16560
16561 if test "$USE_DARWIN" = 1; then
16562 cat >> confdefs.h <<\EOF
16563 #define HAVE_USLEEP 1
16564 EOF
16565
16566 HAVE_SOME_SLEEP_FUNC=1
16567 fi
16568
16569 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16570 POSIX4_LINK=
16571 for ac_func in nanosleep
16572 do
16573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16574 echo "configure:16575: checking for $ac_func" >&5
16575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16576 echo $ac_n "(cached) $ac_c" 1>&6
16577 else
16578 cat > conftest.$ac_ext <<EOF
16579 #line 16580 "configure"
16580 #include "confdefs.h"
16581 /* System header to define __stub macros and hopefully few prototypes,
16582 which can conflict with char $ac_func(); below. */
16583 #include <assert.h>
16584 /* Override any gcc2 internal prototype to avoid an error. */
16585 /* We use char because int might match the return type of a gcc2
16586 builtin and then its argument prototype would still apply. */
16587 char $ac_func();
16588
16589 int main() {
16590
16591 /* The GNU C library defines this for functions which it implements
16592 to always fail with ENOSYS. Some functions are actually named
16593 something starting with __ and the normal name is an alias. */
16594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16595 choke me
16596 #else
16597 $ac_func();
16598 #endif
16599
16600 ; return 0; }
16601 EOF
16602 if { (eval echo configure:16603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16603 rm -rf conftest*
16604 eval "ac_cv_func_$ac_func=yes"
16605 else
16606 echo "configure: failed program was:" >&5
16607 cat conftest.$ac_ext >&5
16608 rm -rf conftest*
16609 eval "ac_cv_func_$ac_func=no"
16610 fi
16611 rm -f conftest*
16612 fi
16613
16614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16615 echo "$ac_t""yes" 1>&6
16616 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16617 cat >> confdefs.h <<EOF
16618 #define $ac_tr_func 1
16619 EOF
16620 cat >> confdefs.h <<\EOF
16621 #define HAVE_NANOSLEEP 1
16622 EOF
16623
16624 else
16625 echo "$ac_t""no" 1>&6
16626 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
16627 echo "configure:16628: checking for nanosleep in -lposix4" >&5
16628 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
16629 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16630 echo $ac_n "(cached) $ac_c" 1>&6
16631 else
16632 ac_save_LIBS="$LIBS"
16633 LIBS="-lposix4 $LIBS"
16634 cat > conftest.$ac_ext <<EOF
16635 #line 16636 "configure"
16636 #include "confdefs.h"
16637 /* Override any gcc2 internal prototype to avoid an error. */
16638 /* We use char because int might match the return type of a gcc2
16639 builtin and then its argument prototype would still apply. */
16640 char nanosleep();
16641
16642 int main() {
16643 nanosleep()
16644 ; return 0; }
16645 EOF
16646 if { (eval echo configure:16647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16647 rm -rf conftest*
16648 eval "ac_cv_lib_$ac_lib_var=yes"
16649 else
16650 echo "configure: failed program was:" >&5
16651 cat conftest.$ac_ext >&5
16652 rm -rf conftest*
16653 eval "ac_cv_lib_$ac_lib_var=no"
16654 fi
16655 rm -f conftest*
16656 LIBS="$ac_save_LIBS"
16657
16658 fi
16659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16660 echo "$ac_t""yes" 1>&6
16661
16662 cat >> confdefs.h <<\EOF
16663 #define HAVE_NANOSLEEP 1
16664 EOF
16665
16666 POSIX4_LINK=" -lposix4"
16667
16668 else
16669 echo "$ac_t""no" 1>&6
16670
16671 for ac_func in usleep
16672 do
16673 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16674 echo "configure:16675: checking for $ac_func" >&5
16675 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16676 echo $ac_n "(cached) $ac_c" 1>&6
16677 else
16678 cat > conftest.$ac_ext <<EOF
16679 #line 16680 "configure"
16680 #include "confdefs.h"
16681 /* System header to define __stub macros and hopefully few prototypes,
16682 which can conflict with char $ac_func(); below. */
16683 #include <assert.h>
16684 /* Override any gcc2 internal prototype to avoid an error. */
16685 /* We use char because int might match the return type of a gcc2
16686 builtin and then its argument prototype would still apply. */
16687 char $ac_func();
16688
16689 int main() {
16690
16691 /* The GNU C library defines this for functions which it implements
16692 to always fail with ENOSYS. Some functions are actually named
16693 something starting with __ and the normal name is an alias. */
16694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16695 choke me
16696 #else
16697 $ac_func();
16698 #endif
16699
16700 ; return 0; }
16701 EOF
16702 if { (eval echo configure:16703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16703 rm -rf conftest*
16704 eval "ac_cv_func_$ac_func=yes"
16705 else
16706 echo "configure: failed program was:" >&5
16707 cat conftest.$ac_ext >&5
16708 rm -rf conftest*
16709 eval "ac_cv_func_$ac_func=no"
16710 fi
16711 rm -f conftest*
16712 fi
16713
16714 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16715 echo "$ac_t""yes" 1>&6
16716 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16717 cat >> confdefs.h <<EOF
16718 #define $ac_tr_func 1
16719 EOF
16720 cat >> confdefs.h <<\EOF
16721 #define HAVE_USLEEP 1
16722 EOF
16723
16724 else
16725 echo "$ac_t""no" 1>&6
16726 echo "configure: warning: wxSleep() function will not work" 1>&2
16727
16728 fi
16729 done
16730
16731
16732
16733 fi
16734
16735
16736
16737 fi
16738 done
16739
16740 fi
16741
16742 for ac_func in uname gethostname
16743 do
16744 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16745 echo "configure:16746: checking for $ac_func" >&5
16746 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16747 echo $ac_n "(cached) $ac_c" 1>&6
16748 else
16749 cat > conftest.$ac_ext <<EOF
16750 #line 16751 "configure"
16751 #include "confdefs.h"
16752 /* System header to define __stub macros and hopefully few prototypes,
16753 which can conflict with char $ac_func(); below. */
16754 #include <assert.h>
16755 /* Override any gcc2 internal prototype to avoid an error. */
16756 /* We use char because int might match the return type of a gcc2
16757 builtin and then its argument prototype would still apply. */
16758 char $ac_func();
16759
16760 int main() {
16761
16762 /* The GNU C library defines this for functions which it implements
16763 to always fail with ENOSYS. Some functions are actually named
16764 something starting with __ and the normal name is an alias. */
16765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16766 choke me
16767 #else
16768 $ac_func();
16769 #endif
16770
16771 ; return 0; }
16772 EOF
16773 if { (eval echo configure:16774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16774 rm -rf conftest*
16775 eval "ac_cv_func_$ac_func=yes"
16776 else
16777 echo "configure: failed program was:" >&5
16778 cat conftest.$ac_ext >&5
16779 rm -rf conftest*
16780 eval "ac_cv_func_$ac_func=no"
16781 fi
16782 rm -f conftest*
16783 fi
16784
16785 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16786 echo "$ac_t""yes" 1>&6
16787 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16788 cat >> confdefs.h <<EOF
16789 #define $ac_tr_func 1
16790 EOF
16791 break
16792 else
16793 echo "$ac_t""no" 1>&6
16794 fi
16795 done
16796
16797
16798
16799 ac_ext=C
16800 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16801 ac_cpp='$CXXCPP $CPPFLAGS'
16802 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16803 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16804 cross_compiling=$ac_cv_prog_cxx_cross
16805
16806
16807 for ac_func in strtok_r
16808 do
16809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16810 echo "configure:16811: checking for $ac_func" >&5
16811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16812 echo $ac_n "(cached) $ac_c" 1>&6
16813 else
16814 cat > conftest.$ac_ext <<EOF
16815 #line 16816 "configure"
16816 #include "confdefs.h"
16817 /* System header to define __stub macros and hopefully few prototypes,
16818 which can conflict with char $ac_func(); below. */
16819 #include <assert.h>
16820 /* Override any gcc2 internal prototype to avoid an error. */
16821 #ifdef __cplusplus
16822 extern "C"
16823 #endif
16824 /* We use char because int might match the return type of a gcc2
16825 builtin and then its argument prototype would still apply. */
16826 char $ac_func();
16827
16828 int main() {
16829
16830 /* The GNU C library defines this for functions which it implements
16831 to always fail with ENOSYS. Some functions are actually named
16832 something starting with __ and the normal name is an alias. */
16833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16834 choke me
16835 #else
16836 $ac_func();
16837 #endif
16838
16839 ; return 0; }
16840 EOF
16841 if { (eval echo configure:16842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16842 rm -rf conftest*
16843 eval "ac_cv_func_$ac_func=yes"
16844 else
16845 echo "configure: failed program was:" >&5
16846 cat conftest.$ac_ext >&5
16847 rm -rf conftest*
16848 eval "ac_cv_func_$ac_func=no"
16849 fi
16850 rm -f conftest*
16851 fi
16852
16853 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16854 echo "$ac_t""yes" 1>&6
16855 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16856 cat >> confdefs.h <<EOF
16857 #define $ac_tr_func 1
16858 EOF
16859
16860 else
16861 echo "$ac_t""no" 1>&6
16862 fi
16863 done
16864
16865
16866 ac_ext=c
16867 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16868 ac_cpp='$CPP $CPPFLAGS'
16869 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16870 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16871 cross_compiling=$ac_cv_prog_cc_cross
16872
16873
16874 INET_LINK=
16875 for ac_func in inet_addr
16876 do
16877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16878 echo "configure:16879: checking for $ac_func" >&5
16879 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16880 echo $ac_n "(cached) $ac_c" 1>&6
16881 else
16882 cat > conftest.$ac_ext <<EOF
16883 #line 16884 "configure"
16884 #include "confdefs.h"
16885 /* System header to define __stub macros and hopefully few prototypes,
16886 which can conflict with char $ac_func(); below. */
16887 #include <assert.h>
16888 /* Override any gcc2 internal prototype to avoid an error. */
16889 /* We use char because int might match the return type of a gcc2
16890 builtin and then its argument prototype would still apply. */
16891 char $ac_func();
16892
16893 int main() {
16894
16895 /* The GNU C library defines this for functions which it implements
16896 to always fail with ENOSYS. Some functions are actually named
16897 something starting with __ and the normal name is an alias. */
16898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16899 choke me
16900 #else
16901 $ac_func();
16902 #endif
16903
16904 ; return 0; }
16905 EOF
16906 if { (eval echo configure:16907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16907 rm -rf conftest*
16908 eval "ac_cv_func_$ac_func=yes"
16909 else
16910 echo "configure: failed program was:" >&5
16911 cat conftest.$ac_ext >&5
16912 rm -rf conftest*
16913 eval "ac_cv_func_$ac_func=no"
16914 fi
16915 rm -f conftest*
16916 fi
16917
16918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16919 echo "$ac_t""yes" 1>&6
16920 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16921 cat >> confdefs.h <<EOF
16922 #define $ac_tr_func 1
16923 EOF
16924 cat >> confdefs.h <<\EOF
16925 #define HAVE_INET_ADDR 1
16926 EOF
16927
16928 else
16929 echo "$ac_t""no" 1>&6
16930 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
16931 echo "configure:16932: checking for inet_addr in -lnsl" >&5
16932 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
16933 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16934 echo $ac_n "(cached) $ac_c" 1>&6
16935 else
16936 ac_save_LIBS="$LIBS"
16937 LIBS="-lnsl $LIBS"
16938 cat > conftest.$ac_ext <<EOF
16939 #line 16940 "configure"
16940 #include "confdefs.h"
16941 /* Override any gcc2 internal prototype to avoid an error. */
16942 /* We use char because int might match the return type of a gcc2
16943 builtin and then its argument prototype would still apply. */
16944 char inet_addr();
16945
16946 int main() {
16947 inet_addr()
16948 ; return 0; }
16949 EOF
16950 if { (eval echo configure:16951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16951 rm -rf conftest*
16952 eval "ac_cv_lib_$ac_lib_var=yes"
16953 else
16954 echo "configure: failed program was:" >&5
16955 cat conftest.$ac_ext >&5
16956 rm -rf conftest*
16957 eval "ac_cv_lib_$ac_lib_var=no"
16958 fi
16959 rm -f conftest*
16960 LIBS="$ac_save_LIBS"
16961
16962 fi
16963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16964 echo "$ac_t""yes" 1>&6
16965 INET_LINK="nsl"
16966 else
16967 echo "$ac_t""no" 1>&6
16968 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
16969 echo "configure:16970: checking for inet_addr in -lresolv" >&5
16970 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
16971 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16972 echo $ac_n "(cached) $ac_c" 1>&6
16973 else
16974 ac_save_LIBS="$LIBS"
16975 LIBS="-lresolv $LIBS"
16976 cat > conftest.$ac_ext <<EOF
16977 #line 16978 "configure"
16978 #include "confdefs.h"
16979 /* Override any gcc2 internal prototype to avoid an error. */
16980 /* We use char because int might match the return type of a gcc2
16981 builtin and then its argument prototype would still apply. */
16982 char inet_addr();
16983
16984 int main() {
16985 inet_addr()
16986 ; return 0; }
16987 EOF
16988 if { (eval echo configure:16989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16989 rm -rf conftest*
16990 eval "ac_cv_lib_$ac_lib_var=yes"
16991 else
16992 echo "configure: failed program was:" >&5
16993 cat conftest.$ac_ext >&5
16994 rm -rf conftest*
16995 eval "ac_cv_lib_$ac_lib_var=no"
16996 fi
16997 rm -f conftest*
16998 LIBS="$ac_save_LIBS"
16999
17000 fi
17001 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17002 echo "$ac_t""yes" 1>&6
17003 INET_LINK="resolv"
17004
17005 else
17006 echo "$ac_t""no" 1>&6
17007 fi
17008
17009
17010 fi
17011
17012
17013
17014 fi
17015 done
17016
17017
17018 for ac_func in inet_aton
17019 do
17020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17021 echo "configure:17022: checking for $ac_func" >&5
17022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17023 echo $ac_n "(cached) $ac_c" 1>&6
17024 else
17025 cat > conftest.$ac_ext <<EOF
17026 #line 17027 "configure"
17027 #include "confdefs.h"
17028 /* System header to define __stub macros and hopefully few prototypes,
17029 which can conflict with char $ac_func(); below. */
17030 #include <assert.h>
17031 /* Override any gcc2 internal prototype to avoid an error. */
17032 /* We use char because int might match the return type of a gcc2
17033 builtin and then its argument prototype would still apply. */
17034 char $ac_func();
17035
17036 int main() {
17037
17038 /* The GNU C library defines this for functions which it implements
17039 to always fail with ENOSYS. Some functions are actually named
17040 something starting with __ and the normal name is an alias. */
17041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17042 choke me
17043 #else
17044 $ac_func();
17045 #endif
17046
17047 ; return 0; }
17048 EOF
17049 if { (eval echo configure:17050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17050 rm -rf conftest*
17051 eval "ac_cv_func_$ac_func=yes"
17052 else
17053 echo "configure: failed program was:" >&5
17054 cat conftest.$ac_ext >&5
17055 rm -rf conftest*
17056 eval "ac_cv_func_$ac_func=no"
17057 fi
17058 rm -f conftest*
17059 fi
17060
17061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17062 echo "$ac_t""yes" 1>&6
17063 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17064 cat >> confdefs.h <<EOF
17065 #define $ac_tr_func 1
17066 EOF
17067 cat >> confdefs.h <<\EOF
17068 #define HAVE_INET_ATON 1
17069 EOF
17070
17071 else
17072 echo "$ac_t""no" 1>&6
17073 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
17074 echo "configure:17075: checking for inet_aton in -l$INET_LINK" >&5
17075 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
17076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17077 echo $ac_n "(cached) $ac_c" 1>&6
17078 else
17079 ac_save_LIBS="$LIBS"
17080 LIBS="-l$INET_LINK $LIBS"
17081 cat > conftest.$ac_ext <<EOF
17082 #line 17083 "configure"
17083 #include "confdefs.h"
17084 /* Override any gcc2 internal prototype to avoid an error. */
17085 /* We use char because int might match the return type of a gcc2
17086 builtin and then its argument prototype would still apply. */
17087 char inet_aton();
17088
17089 int main() {
17090 inet_aton()
17091 ; return 0; }
17092 EOF
17093 if { (eval echo configure:17094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17094 rm -rf conftest*
17095 eval "ac_cv_lib_$ac_lib_var=yes"
17096 else
17097 echo "configure: failed program was:" >&5
17098 cat conftest.$ac_ext >&5
17099 rm -rf conftest*
17100 eval "ac_cv_lib_$ac_lib_var=no"
17101 fi
17102 rm -f conftest*
17103 LIBS="$ac_save_LIBS"
17104
17105 fi
17106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17107 echo "$ac_t""yes" 1>&6
17108 cat >> confdefs.h <<\EOF
17109 #define HAVE_INET_ATON 1
17110 EOF
17111
17112 else
17113 echo "$ac_t""no" 1>&6
17114 fi
17115
17116
17117 fi
17118 done
17119
17120
17121 if test "x$INET_LINK" != "x"; then
17122 cat >> confdefs.h <<\EOF
17123 #define HAVE_INET_ADDR 1
17124 EOF
17125
17126 INET_LINK=" -l$INET_LINK"
17127 fi
17128
17129 fi
17130
17131
17132 cat > confcache <<\EOF
17133 # This file is a shell script that caches the results of configure
17134 # tests run on this system so they can be shared between configure
17135 # scripts and configure runs. It is not useful on other systems.
17136 # If it contains results you don't want to keep, you may remove or edit it.
17137 #
17138 # By default, configure uses ./config.cache as the cache file,
17139 # creating it if it does not exist already. You can give configure
17140 # the --cache-file=FILE option to use a different cache file; that is
17141 # what configure does when it calls configure scripts in
17142 # subdirectories, so they share the cache.
17143 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17144 # config.status only pays attention to the cache file if you give it the
17145 # --recheck option to rerun configure.
17146 #
17147 EOF
17148 # The following way of writing the cache mishandles newlines in values,
17149 # but we know of no workaround that is simple, portable, and efficient.
17150 # So, don't put newlines in cache variables' values.
17151 # Ultrix sh set writes to stderr and can't be redirected directly,
17152 # and sets the high bit in the cache file unless we assign to the vars.
17153 (set) 2>&1 |
17154 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17155 *ac_space=\ *)
17156 # `set' does not quote correctly, so add quotes (double-quote substitution
17157 # turns \\\\ into \\, and sed turns \\ into \).
17158 sed -n \
17159 -e "s/'/'\\\\''/g" \
17160 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17161 ;;
17162 *)
17163 # `set' quotes correctly as required by POSIX, so do not add quotes.
17164 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17165 ;;
17166 esac >> confcache
17167 if cmp -s $cache_file confcache; then
17168 :
17169 else
17170 if test -w $cache_file; then
17171 echo "updating cache $cache_file"
17172 cat confcache > $cache_file
17173 else
17174 echo "not updating unwritable cache $cache_file"
17175 fi
17176 fi
17177 rm -f confcache
17178
17179
17180
17181 if test "$TOOLKIT" != "MSW"; then
17182
17183
17184 THREADS_LINK=
17185 THREADS_OBJ=
17186 CODE_GEN_FLAGS=
17187 CODE_GEN_FLAGS_CXX=
17188
17189 if test "$wxUSE_THREADS" = "yes" ; then
17190 if test "$wxUSE_WINE" = 1 ; then
17191 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
17192 wxUSE_THREADS="no"
17193 elif test "$USE_BEOS" = 1; then
17194 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
17195 wxUSE_THREADS="no"
17196 fi
17197 fi
17198
17199 if test "$wxUSE_THREADS" = "yes" ; then
17200
17201 if test "$USE_AIX" = 1; then
17202 THREADS_LIB=pthreads
17203 else
17204 THREADS_LIB=pthread
17205 fi
17206
17207 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
17208 echo "configure:17209: checking for pthread_create in -l$THREADS_LIB" >&5
17209 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
17210 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17211 echo $ac_n "(cached) $ac_c" 1>&6
17212 else
17213 ac_save_LIBS="$LIBS"
17214 LIBS="-l$THREADS_LIB $LIBS"
17215 cat > conftest.$ac_ext <<EOF
17216 #line 17217 "configure"
17217 #include "confdefs.h"
17218 /* Override any gcc2 internal prototype to avoid an error. */
17219 /* We use char because int might match the return type of a gcc2
17220 builtin and then its argument prototype would still apply. */
17221 char pthread_create();
17222
17223 int main() {
17224 pthread_create()
17225 ; return 0; }
17226 EOF
17227 if { (eval echo configure:17228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17228 rm -rf conftest*
17229 eval "ac_cv_lib_$ac_lib_var=yes"
17230 else
17231 echo "configure: failed program was:" >&5
17232 cat conftest.$ac_ext >&5
17233 rm -rf conftest*
17234 eval "ac_cv_lib_$ac_lib_var=no"
17235 fi
17236 rm -f conftest*
17237 LIBS="$ac_save_LIBS"
17238
17239 fi
17240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17241 echo "$ac_t""yes" 1>&6
17242
17243 THREADS_OBJ="threadpsx.lo"
17244 THREADS_LINK=$THREADS_LIB
17245
17246 else
17247 echo "$ac_t""no" 1>&6
17248
17249 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
17250 echo "configure:17251: checking for pthread_create in -lc_r" >&5
17251 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
17252 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17253 echo $ac_n "(cached) $ac_c" 1>&6
17254 else
17255 ac_save_LIBS="$LIBS"
17256 LIBS="-lc_r $LIBS"
17257 cat > conftest.$ac_ext <<EOF
17258 #line 17259 "configure"
17259 #include "confdefs.h"
17260 /* Override any gcc2 internal prototype to avoid an error. */
17261 /* We use char because int might match the return type of a gcc2
17262 builtin and then its argument prototype would still apply. */
17263 char pthread_create();
17264
17265 int main() {
17266 pthread_create()
17267 ; return 0; }
17268 EOF
17269 if { (eval echo configure:17270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17270 rm -rf conftest*
17271 eval "ac_cv_lib_$ac_lib_var=yes"
17272 else
17273 echo "configure: failed program was:" >&5
17274 cat conftest.$ac_ext >&5
17275 rm -rf conftest*
17276 eval "ac_cv_lib_$ac_lib_var=no"
17277 fi
17278 rm -f conftest*
17279 LIBS="$ac_save_LIBS"
17280
17281 fi
17282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17283 echo "$ac_t""yes" 1>&6
17284
17285 THREADS_OBJ="threadpsx.lo"
17286 THREADS_LINK="c_r"
17287
17288 else
17289 echo "$ac_t""no" 1>&6
17290
17291 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
17292 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
17293 echo "configure:17294: checking for sys/prctl.h" >&5
17294 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17295 echo $ac_n "(cached) $ac_c" 1>&6
17296 else
17297 cat > conftest.$ac_ext <<EOF
17298 #line 17299 "configure"
17299 #include "confdefs.h"
17300 #include <sys/prctl.h>
17301 EOF
17302 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17303 { (eval echo configure:17304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17304 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17305 if test -z "$ac_err"; then
17306 rm -rf conftest*
17307 eval "ac_cv_header_$ac_safe=yes"
17308 else
17309 echo "$ac_err" >&5
17310 echo "configure: failed program was:" >&5
17311 cat conftest.$ac_ext >&5
17312 rm -rf conftest*
17313 eval "ac_cv_header_$ac_safe=no"
17314 fi
17315 rm -f conftest*
17316 fi
17317 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17318 echo "$ac_t""yes" 1>&6
17319
17320 THREADS_OBJ="threadsgi.lo"
17321
17322 else
17323 echo "$ac_t""no" 1>&6
17324 fi
17325
17326
17327 fi
17328
17329
17330 fi
17331
17332
17333 if test -z "$THREADS_OBJ" ; then
17334 wxUSE_THREADS=no
17335 echo "configure: warning: No thread support on this system... disabled" 1>&2
17336 fi
17337 fi
17338
17339 if test "$wxUSE_THREADS" = "yes" ; then
17340 for ac_func in thr_setconcurrency
17341 do
17342 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17343 echo "configure:17344: checking for $ac_func" >&5
17344 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17345 echo $ac_n "(cached) $ac_c" 1>&6
17346 else
17347 cat > conftest.$ac_ext <<EOF
17348 #line 17349 "configure"
17349 #include "confdefs.h"
17350 /* System header to define __stub macros and hopefully few prototypes,
17351 which can conflict with char $ac_func(); below. */
17352 #include <assert.h>
17353 /* Override any gcc2 internal prototype to avoid an error. */
17354 /* We use char because int might match the return type of a gcc2
17355 builtin and then its argument prototype would still apply. */
17356 char $ac_func();
17357
17358 int main() {
17359
17360 /* The GNU C library defines this for functions which it implements
17361 to always fail with ENOSYS. Some functions are actually named
17362 something starting with __ and the normal name is an alias. */
17363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17364 choke me
17365 #else
17366 $ac_func();
17367 #endif
17368
17369 ; return 0; }
17370 EOF
17371 if { (eval echo configure:17372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17372 rm -rf conftest*
17373 eval "ac_cv_func_$ac_func=yes"
17374 else
17375 echo "configure: failed program was:" >&5
17376 cat conftest.$ac_ext >&5
17377 rm -rf conftest*
17378 eval "ac_cv_func_$ac_func=no"
17379 fi
17380 rm -f conftest*
17381 fi
17382
17383 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17384 echo "$ac_t""yes" 1>&6
17385 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17386 cat >> confdefs.h <<EOF
17387 #define $ac_tr_func 1
17388 EOF
17389
17390 else
17391 echo "$ac_t""no" 1>&6
17392 fi
17393 done
17394
17395
17396
17397 for ac_hdr in sched.h
17398 do
17399 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17400 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17401 echo "configure:17402: checking for $ac_hdr" >&5
17402 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17403 echo $ac_n "(cached) $ac_c" 1>&6
17404 else
17405 cat > conftest.$ac_ext <<EOF
17406 #line 17407 "configure"
17407 #include "confdefs.h"
17408 #include <$ac_hdr>
17409 EOF
17410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17411 { (eval echo configure:17412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17413 if test -z "$ac_err"; then
17414 rm -rf conftest*
17415 eval "ac_cv_header_$ac_safe=yes"
17416 else
17417 echo "$ac_err" >&5
17418 echo "configure: failed program was:" >&5
17419 cat conftest.$ac_ext >&5
17420 rm -rf conftest*
17421 eval "ac_cv_header_$ac_safe=no"
17422 fi
17423 rm -f conftest*
17424 fi
17425 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17426 echo "$ac_t""yes" 1>&6
17427 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17428 cat >> confdefs.h <<EOF
17429 #define $ac_tr_hdr 1
17430 EOF
17431
17432 else
17433 echo "$ac_t""no" 1>&6
17434 fi
17435 done
17436
17437
17438 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
17439 echo "configure:17440: checking for sched_yield in -l$THREADS_LINK" >&5
17440 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
17441 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17442 echo $ac_n "(cached) $ac_c" 1>&6
17443 else
17444 ac_save_LIBS="$LIBS"
17445 LIBS="-l$THREADS_LINK $LIBS"
17446 cat > conftest.$ac_ext <<EOF
17447 #line 17448 "configure"
17448 #include "confdefs.h"
17449 /* Override any gcc2 internal prototype to avoid an error. */
17450 /* We use char because int might match the return type of a gcc2
17451 builtin and then its argument prototype would still apply. */
17452 char sched_yield();
17453
17454 int main() {
17455 sched_yield()
17456 ; return 0; }
17457 EOF
17458 if { (eval echo configure:17459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17459 rm -rf conftest*
17460 eval "ac_cv_lib_$ac_lib_var=yes"
17461 else
17462 echo "configure: failed program was:" >&5
17463 cat conftest.$ac_ext >&5
17464 rm -rf conftest*
17465 eval "ac_cv_lib_$ac_lib_var=no"
17466 fi
17467 rm -f conftest*
17468 LIBS="$ac_save_LIBS"
17469
17470 fi
17471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17472 echo "$ac_t""yes" 1>&6
17473 cat >> confdefs.h <<\EOF
17474 #define HAVE_SCHED_YIELD 1
17475 EOF
17476
17477 else
17478 echo "$ac_t""no" 1>&6
17479 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
17480 echo "configure:17481: checking for sched_yield in -lposix4" >&5
17481 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17483 echo $ac_n "(cached) $ac_c" 1>&6
17484 else
17485 ac_save_LIBS="$LIBS"
17486 LIBS="-lposix4 $LIBS"
17487 cat > conftest.$ac_ext <<EOF
17488 #line 17489 "configure"
17489 #include "confdefs.h"
17490 /* Override any gcc2 internal prototype to avoid an error. */
17491 /* We use char because int might match the return type of a gcc2
17492 builtin and then its argument prototype would still apply. */
17493 char sched_yield();
17494
17495 int main() {
17496 sched_yield()
17497 ; return 0; }
17498 EOF
17499 if { (eval echo configure:17500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17500 rm -rf conftest*
17501 eval "ac_cv_lib_$ac_lib_var=yes"
17502 else
17503 echo "configure: failed program was:" >&5
17504 cat conftest.$ac_ext >&5
17505 rm -rf conftest*
17506 eval "ac_cv_lib_$ac_lib_var=no"
17507 fi
17508 rm -f conftest*
17509 LIBS="$ac_save_LIBS"
17510
17511 fi
17512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17513 echo "$ac_t""yes" 1>&6
17514 cat >> confdefs.h <<\EOF
17515 #define HAVE_SCHED_YIELD 1
17516 EOF
17517 POSIX4_LINK=" -lposix4"
17518 else
17519 echo "$ac_t""no" 1>&6
17520 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
17521
17522 fi
17523
17524
17525 fi
17526
17527
17528 HAVE_PRIOR_FUNCS=0
17529 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
17530 echo "configure:17531: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
17531 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
17532 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17533 echo $ac_n "(cached) $ac_c" 1>&6
17534 else
17535 ac_save_LIBS="$LIBS"
17536 LIBS="-l$THREADS_LINK $LIBS"
17537 cat > conftest.$ac_ext <<EOF
17538 #line 17539 "configure"
17539 #include "confdefs.h"
17540 /* Override any gcc2 internal prototype to avoid an error. */
17541 /* We use char because int might match the return type of a gcc2
17542 builtin and then its argument prototype would still apply. */
17543 char pthread_attr_getschedpolicy();
17544
17545 int main() {
17546 pthread_attr_getschedpolicy()
17547 ; return 0; }
17548 EOF
17549 if { (eval echo configure:17550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17550 rm -rf conftest*
17551 eval "ac_cv_lib_$ac_lib_var=yes"
17552 else
17553 echo "configure: failed program was:" >&5
17554 cat conftest.$ac_ext >&5
17555 rm -rf conftest*
17556 eval "ac_cv_lib_$ac_lib_var=no"
17557 fi
17558 rm -f conftest*
17559 LIBS="$ac_save_LIBS"
17560
17561 fi
17562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17563 echo "$ac_t""yes" 1>&6
17564 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
17565 echo "configure:17566: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
17566 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
17567 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17568 echo $ac_n "(cached) $ac_c" 1>&6
17569 else
17570 ac_save_LIBS="$LIBS"
17571 LIBS="-l$THREADS_LINK $LIBS"
17572 cat > conftest.$ac_ext <<EOF
17573 #line 17574 "configure"
17574 #include "confdefs.h"
17575 /* Override any gcc2 internal prototype to avoid an error. */
17576 /* We use char because int might match the return type of a gcc2
17577 builtin and then its argument prototype would still apply. */
17578 char pthread_attr_setschedparam();
17579
17580 int main() {
17581 pthread_attr_setschedparam()
17582 ; return 0; }
17583 EOF
17584 if { (eval echo configure:17585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17585 rm -rf conftest*
17586 eval "ac_cv_lib_$ac_lib_var=yes"
17587 else
17588 echo "configure: failed program was:" >&5
17589 cat conftest.$ac_ext >&5
17590 rm -rf conftest*
17591 eval "ac_cv_lib_$ac_lib_var=no"
17592 fi
17593 rm -f conftest*
17594 LIBS="$ac_save_LIBS"
17595
17596 fi
17597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17598 echo "$ac_t""yes" 1>&6
17599 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
17600 echo "configure:17601: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
17601 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
17602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17603 echo $ac_n "(cached) $ac_c" 1>&6
17604 else
17605 ac_save_LIBS="$LIBS"
17606 LIBS="-l$THREADS_LINK $LIBS"
17607 cat > conftest.$ac_ext <<EOF
17608 #line 17609 "configure"
17609 #include "confdefs.h"
17610 /* Override any gcc2 internal prototype to avoid an error. */
17611 /* We use char because int might match the return type of a gcc2
17612 builtin and then its argument prototype would still apply. */
17613 char sched_get_priority_max();
17614
17615 int main() {
17616 sched_get_priority_max()
17617 ; return 0; }
17618 EOF
17619 if { (eval echo configure:17620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17620 rm -rf conftest*
17621 eval "ac_cv_lib_$ac_lib_var=yes"
17622 else
17623 echo "configure: failed program was:" >&5
17624 cat conftest.$ac_ext >&5
17625 rm -rf conftest*
17626 eval "ac_cv_lib_$ac_lib_var=no"
17627 fi
17628 rm -f conftest*
17629 LIBS="$ac_save_LIBS"
17630
17631 fi
17632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17633 echo "$ac_t""yes" 1>&6
17634 HAVE_PRIOR_FUNCS=1
17635 else
17636 echo "$ac_t""no" 1>&6
17637 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
17638 echo "configure:17639: checking for sched_get_priority_max in -lposix4" >&5
17639 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
17640 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17641 echo $ac_n "(cached) $ac_c" 1>&6
17642 else
17643 ac_save_LIBS="$LIBS"
17644 LIBS="-lposix4 $LIBS"
17645 cat > conftest.$ac_ext <<EOF
17646 #line 17647 "configure"
17647 #include "confdefs.h"
17648 /* Override any gcc2 internal prototype to avoid an error. */
17649 /* We use char because int might match the return type of a gcc2
17650 builtin and then its argument prototype would still apply. */
17651 char sched_get_priority_max();
17652
17653 int main() {
17654 sched_get_priority_max()
17655 ; return 0; }
17656 EOF
17657 if { (eval echo configure:17658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17658 rm -rf conftest*
17659 eval "ac_cv_lib_$ac_lib_var=yes"
17660 else
17661 echo "configure: failed program was:" >&5
17662 cat conftest.$ac_ext >&5
17663 rm -rf conftest*
17664 eval "ac_cv_lib_$ac_lib_var=no"
17665 fi
17666 rm -f conftest*
17667 LIBS="$ac_save_LIBS"
17668
17669 fi
17670 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17671 echo "$ac_t""yes" 1>&6
17672
17673 HAVE_PRIOR_FUNCS=1
17674 POSIX4_LINK=" -lposix4"
17675
17676 else
17677 echo "$ac_t""no" 1>&6
17678 fi
17679
17680
17681 fi
17682
17683
17684 else
17685 echo "$ac_t""no" 1>&6
17686 fi
17687
17688
17689 else
17690 echo "$ac_t""no" 1>&6
17691 fi
17692
17693
17694 if test "$HAVE_PRIOR_FUNCS" = 1; then
17695 cat >> confdefs.h <<\EOF
17696 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
17697 EOF
17698
17699 else
17700 echo "configure: warning: Setting thread priority will not work" 1>&2
17701 fi
17702
17703 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
17704 echo "configure:17705: checking for pthread_cancel in -l$THREADS_LINK" >&5
17705 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
17706 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17707 echo $ac_n "(cached) $ac_c" 1>&6
17708 else
17709 ac_save_LIBS="$LIBS"
17710 LIBS="-l$THREADS_LINK $LIBS"
17711 cat > conftest.$ac_ext <<EOF
17712 #line 17713 "configure"
17713 #include "confdefs.h"
17714 /* Override any gcc2 internal prototype to avoid an error. */
17715 /* We use char because int might match the return type of a gcc2
17716 builtin and then its argument prototype would still apply. */
17717 char pthread_cancel();
17718
17719 int main() {
17720 pthread_cancel()
17721 ; return 0; }
17722 EOF
17723 if { (eval echo configure:17724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17724 rm -rf conftest*
17725 eval "ac_cv_lib_$ac_lib_var=yes"
17726 else
17727 echo "configure: failed program was:" >&5
17728 cat conftest.$ac_ext >&5
17729 rm -rf conftest*
17730 eval "ac_cv_lib_$ac_lib_var=no"
17731 fi
17732 rm -f conftest*
17733 LIBS="$ac_save_LIBS"
17734
17735 fi
17736 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17737 echo "$ac_t""yes" 1>&6
17738 cat >> confdefs.h <<\EOF
17739 #define HAVE_PTHREAD_CANCEL 1
17740 EOF
17741
17742 else
17743 echo "$ac_t""no" 1>&6
17744 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
17745 fi
17746
17747
17748 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
17749 echo "configure:17750: checking for pthread_cleanup_push/pop" >&5
17750 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
17751 echo $ac_n "(cached) $ac_c" 1>&6
17752 else
17753
17754 cat > conftest.$ac_ext <<EOF
17755 #line 17756 "configure"
17756 #include "confdefs.h"
17757 #include <pthread.h>
17758 int main() {
17759
17760 pthread_cleanup_push(NULL, NULL);
17761 pthread_cleanup_pop(0);
17762
17763 ; return 0; }
17764 EOF
17765 if { (eval echo configure:17766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17766 rm -rf conftest*
17767
17768 wx_cv_func_pthread_cleanup_push=yes
17769
17770 else
17771 echo "configure: failed program was:" >&5
17772 cat conftest.$ac_ext >&5
17773 rm -rf conftest*
17774
17775 wx_cv_func_pthread_cleanup_push=no
17776
17777 fi
17778 rm -f conftest*
17779
17780 fi
17781
17782 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
17783
17784 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
17785 cat >> confdefs.h <<\EOF
17786 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
17787 EOF
17788
17789 fi
17790
17791
17792 if test "x$wx_lib_glibc21" = "xyes"; then
17793 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
17794 fi
17795
17796 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
17797 echo "configure:17798: checking for pthread_mutexattr_t" >&5
17798 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
17799 echo $ac_n "(cached) $ac_c" 1>&6
17800 else
17801
17802 cat > conftest.$ac_ext <<EOF
17803 #line 17804 "configure"
17804 #include "confdefs.h"
17805 #include <pthread.h>
17806 int main() {
17807
17808 pthread_mutexattr_t attr;
17809 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
17810
17811 ; return 0; }
17812 EOF
17813 if { (eval echo configure:17814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17814 rm -rf conftest*
17815
17816 wx_cv_type_pthread_mutexattr_t=yes
17817
17818 else
17819 echo "configure: failed program was:" >&5
17820 cat conftest.$ac_ext >&5
17821 rm -rf conftest*
17822
17823 wx_cv_type_pthread_mutexattr_t=no
17824
17825
17826 fi
17827 rm -f conftest*
17828
17829 fi
17830
17831 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
17832
17833 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
17834 cat >> confdefs.h <<\EOF
17835 #define HAVE_PTHREAD_MUTEXATTR_T 1
17836 EOF
17837
17838 else
17839 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
17840 echo "configure:17841: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
17841 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
17842 echo $ac_n "(cached) $ac_c" 1>&6
17843 else
17844
17845 cat > conftest.$ac_ext <<EOF
17846 #line 17847 "configure"
17847 #include "confdefs.h"
17848 #include <pthread.h>
17849 int main() {
17850
17851 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
17852
17853 ; return 0; }
17854 EOF
17855 if { (eval echo configure:17856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17856 rm -rf conftest*
17857
17858 wx_cv_type_pthread_rec_mutex_init=yes
17859
17860 else
17861 echo "configure: failed program was:" >&5
17862 cat conftest.$ac_ext >&5
17863 rm -rf conftest*
17864
17865 wx_cv_type_pthread_rec_mutex_init=no
17866
17867
17868 fi
17869 rm -f conftest*
17870
17871 fi
17872
17873 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
17874 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
17875 cat >> confdefs.h <<\EOF
17876 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
17877 EOF
17878
17879 else
17880 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
17881 fi
17882 fi
17883
17884 THREADS_LINK=" -l$THREADS_LINK"
17885
17886 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
17887 CPPFLAGS="$CFLAGS -mt"
17888 CXXFLAGS="$CXXFLAGS -mt"
17889 LDFLAGS="$LDFLAGS -mt"
17890 fi
17891 fi
17892
17893 fi
17894
17895 if test "$wxUSE_THREADS" = "yes"; then
17896 cat >> confdefs.h <<\EOF
17897 #define wxUSE_THREADS 1
17898 EOF
17899
17900
17901 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG"
17902
17903 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
17904 else
17905 if test "$ac_cv_func_strtok_r" = "yes"; then
17906 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
17907 echo "configure:17908: checking if -D_REENTRANT is needed" >&5
17908 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
17909 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
17910 echo "$ac_t""yes" 1>&6
17911 else
17912 echo "$ac_t""no" 1>&6
17913 fi
17914 fi
17915 fi
17916
17917 if test "$WXGTK20" = 1 ; then
17918 cat >> confdefs.h <<EOF
17919 #define __WXGTK20__ $WXGTK20
17920 EOF
17921
17922 WXGTK12=1
17923 fi
17924
17925 if test "$WXGTK12" = 1 ; then
17926 cat >> confdefs.h <<EOF
17927 #define __WXGTK12__ $WXGTK12
17928 EOF
17929
17930 fi
17931
17932 if test "$WXGTK127" = 1 ; then
17933 cat >> confdefs.h <<EOF
17934 #define __WXGTK127__ $WXGTK127
17935 EOF
17936
17937 fi
17938
17939 WXDEBUG=
17940
17941 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
17942 WXDEBUG="-g"
17943 wxUSE_OPTIMISE=no
17944 fi
17945
17946 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
17947 wxUSE_DEBUG_INFO=yes
17948 WXDEBUG="-ggdb"
17949 fi
17950
17951 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
17952 cat >> confdefs.h <<\EOF
17953 #define WXDEBUG 1
17954 EOF
17955
17956 WXDEBUG_DEFINE="-D__WXDEBUG__"
17957 else
17958 if test "$wxUSE_GTK" = 1 ; then
17959 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
17960 fi
17961 fi
17962
17963 if test "$wxUSE_MEM_TRACING" = "yes" ; then
17964 cat >> confdefs.h <<\EOF
17965 #define wxUSE_MEMORY_TRACING 1
17966 EOF
17967
17968 cat >> confdefs.h <<\EOF
17969 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
17970 EOF
17971
17972 cat >> confdefs.h <<\EOF
17973 #define wxUSE_DEBUG_NEW_ALWAYS 1
17974 EOF
17975
17976 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
17977 fi
17978
17979 if test "$wxUSE_DMALLOC" = "yes" ; then
17980 DMALLOC_LIBS="-ldmalloc"
17981 fi
17982
17983 PROFILE=
17984 if test "$wxUSE_PROFILE" = "yes" ; then
17985 PROFILE=" -pg"
17986 fi
17987
17988 if test "$GCC" = "yes" ; then
17989 if test "$wxUSE_NO_RTTI" = "yes" ; then
17990 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
17991 fi
17992 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
17993 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
17994 fi
17995 if test "$wxUSE_PERMISSIVE" = "yes" ; then
17996 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
17997 fi
17998 if test "$USE_WIN32" = 1 ; then
17999 # I'm not even really sure what this was ever added to solve,
18000 # but someone added it for mingw native builds, so I guess
18001 # they had a reason, right??
18002 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
18003 fi
18004 fi
18005
18006
18007 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
18008 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
18009 if test "$wxUSE_OPTIMISE" = "no" ; then
18010 OPTIMISE=
18011 else
18012 if test "$GCC" = yes ; then
18013 OPTIMISE="-O2"
18014 case "${host}" in
18015 i586-*-*|i686-*-* )
18016 OPTIMISE="${OPTIMISE} "
18017 ;;
18018 esac
18019 else
18020 OPTIMISE="-O"
18021 fi
18022 fi
18023
18024 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
18025 cat >> confdefs.h <<\EOF
18026 #define WXWIN_COMPATIBILITY_2 1
18027 EOF
18028
18029
18030 WXWIN_COMPATIBILITY_2_2="yes"
18031 fi
18032
18033 if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
18034 cat >> confdefs.h <<\EOF
18035 #define WXWIN_COMPATIBILITY_2_2 1
18036 EOF
18037
18038 fi
18039
18040
18041 if test "$wxUSE_GUI" = "yes"; then
18042 cat >> confdefs.h <<\EOF
18043 #define wxUSE_GUI 1
18044 EOF
18045
18046
18047 else
18048 cat >> confdefs.h <<\EOF
18049 #define wxUSE_NOGUI 1
18050 EOF
18051
18052 fi
18053
18054
18055 if test "$wxUSE_UNIX" = "yes"; then
18056 cat >> confdefs.h <<\EOF
18057 #define wxUSE_UNIX 1
18058 EOF
18059
18060 fi
18061
18062
18063 if test "$wxUSE_APPLE_IEEE" = "yes"; then
18064 cat >> confdefs.h <<\EOF
18065 #define wxUSE_APPLE_IEEE 1
18066 EOF
18067
18068 fi
18069
18070 if test "$wxUSE_TIMER" = "yes"; then
18071 cat >> confdefs.h <<\EOF
18072 #define wxUSE_TIMER 1
18073 EOF
18074
18075 fi
18076
18077 if test "$wxUSE_WAVE" = "yes"; then
18078 cat >> confdefs.h <<\EOF
18079 #define wxUSE_WAVE 1
18080 EOF
18081
18082 fi
18083
18084 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
18085 cat >> confdefs.h <<\EOF
18086 #define wxUSE_CMDLINE_PARSER 1
18087 EOF
18088
18089 fi
18090
18091 if test "$wxUSE_STOPWATCH" = "yes"; then
18092 cat >> confdefs.h <<\EOF
18093 #define wxUSE_STOPWATCH 1
18094 EOF
18095
18096 fi
18097
18098 if test "$wxUSE_DATETIME" = "yes"; then
18099 cat >> confdefs.h <<\EOF
18100 #define wxUSE_DATETIME 1
18101 EOF
18102
18103 fi
18104
18105 if test "$wxUSE_TIMEDATE" = "yes"; then
18106 cat >> confdefs.h <<\EOF
18107 #define wxUSE_TIMEDATE 1
18108 EOF
18109
18110 fi
18111
18112 if test "$wxUSE_FILE" = "yes"; then
18113 cat >> confdefs.h <<\EOF
18114 #define wxUSE_FILE 1
18115 EOF
18116
18117 fi
18118
18119 if test "$wxUSE_FFILE" = "yes"; then
18120 cat >> confdefs.h <<\EOF
18121 #define wxUSE_FFILE 1
18122 EOF
18123
18124 fi
18125
18126 if test "$wxUSE_FILESYSTEM" = "yes"; then
18127 cat >> confdefs.h <<\EOF
18128 #define wxUSE_FILESYSTEM 1
18129 EOF
18130
18131 fi
18132
18133 if test "$wxUSE_FS_INET" = "yes"; then
18134 cat >> confdefs.h <<\EOF
18135 #define wxUSE_FS_INET 1
18136 EOF
18137
18138 fi
18139
18140 if test "$wxUSE_FS_ZIP" = "yes"; then
18141 cat >> confdefs.h <<\EOF
18142 #define wxUSE_FS_ZIP 1
18143 EOF
18144
18145 fi
18146
18147 if test "$wxUSE_ZIPSTREAM" = "yes"; then
18148 cat >> confdefs.h <<\EOF
18149 #define wxUSE_ZIPSTREAM 1
18150 EOF
18151
18152 fi
18153
18154 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18155 cat >> confdefs.h <<\EOF
18156 #define wxUSE_ON_FATAL_EXCEPTION 1
18157 EOF
18158
18159 fi
18160
18161 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
18162 cat >> confdefs.h <<\EOF
18163 #define wxUSE_SNGLINST_CHECKER 1
18164 EOF
18165
18166 fi
18167
18168 if test "$wxUSE_BUSYINFO" = "yes"; then
18169 cat >> confdefs.h <<\EOF
18170 #define wxUSE_BUSYINFO 1
18171 EOF
18172
18173 fi
18174
18175 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
18176 cat >> confdefs.h <<\EOF
18177 #define wxUSE_STD_IOSTREAM 1
18178 EOF
18179
18180 fi
18181
18182 if test "$wxUSE_TEXTBUFFER" = "yes"; then
18183 cat >> confdefs.h <<\EOF
18184 #define wxUSE_TEXTBUFFER 1
18185 EOF
18186
18187 fi
18188
18189 if test "$wxUSE_TEXTFILE" = "yes"; then
18190 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
18191 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
18192 else
18193 cat >> confdefs.h <<\EOF
18194 #define wxUSE_TEXTFILE 1
18195 EOF
18196
18197 fi
18198 fi
18199
18200 if test "$wxUSE_CONFIG" = "yes" ; then
18201 if test "$wxUSE_TEXTFILE" != "yes"; then
18202 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
18203 else
18204 cat >> confdefs.h <<\EOF
18205 #define wxUSE_CONFIG 1
18206 EOF
18207
18208 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18209 fi
18210 fi
18211
18212 if test "$wxUSE_INTL" = "yes" ; then
18213 if test "$wxUSE_FILE" != "yes"; then
18214 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
18215 else
18216 cat >> confdefs.h <<\EOF
18217 #define wxUSE_INTL 1
18218 EOF
18219
18220 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
18221 GUIDIST="$GUIDIST INTL_DIST"
18222 fi
18223 fi
18224
18225 if test "$wxUSE_LOG" = "yes"; then
18226 cat >> confdefs.h <<\EOF
18227 #define wxUSE_LOG 1
18228 EOF
18229
18230
18231 if test "$wxUSE_LOGGUI" = "yes"; then
18232 cat >> confdefs.h <<\EOF
18233 #define wxUSE_LOGGUI 1
18234 EOF
18235
18236 fi
18237
18238 if test "$wxUSE_LOGWINDOW" = "yes"; then
18239 cat >> confdefs.h <<\EOF
18240 #define wxUSE_LOGWINDOW 1
18241 EOF
18242
18243 fi
18244
18245 if test "$wxUSE_LOGDIALOG" = "yes"; then
18246 cat >> confdefs.h <<\EOF
18247 #define wxUSE_LOG_DIALOG 1
18248 EOF
18249
18250 fi
18251 fi
18252
18253 if test "$wxUSE_LONGLONG" = "yes"; then
18254 cat >> confdefs.h <<\EOF
18255 #define wxUSE_LONGLONG 1
18256 EOF
18257
18258 fi
18259
18260 if test "$wxUSE_GEOMETRY" = "yes"; then
18261 cat >> confdefs.h <<\EOF
18262 #define wxUSE_GEOMETRY 1
18263 EOF
18264
18265 fi
18266
18267 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
18268 cat >> confdefs.h <<\EOF
18269 #define wxUSE_DIALUP_MANAGER 1
18270 EOF
18271
18272 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
18273 fi
18274
18275 if test "$wxUSE_STREAMS" = "yes" ; then
18276 cat >> confdefs.h <<\EOF
18277 #define wxUSE_STREAMS 1
18278 EOF
18279
18280 fi
18281
18282
18283 if test "$wxUSE_DATETIME" = "yes"; then
18284 for ac_func in strptime
18285 do
18286 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18287 echo "configure:18288: checking for $ac_func" >&5
18288 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18289 echo $ac_n "(cached) $ac_c" 1>&6
18290 else
18291 cat > conftest.$ac_ext <<EOF
18292 #line 18293 "configure"
18293 #include "confdefs.h"
18294 /* System header to define __stub macros and hopefully few prototypes,
18295 which can conflict with char $ac_func(); below. */
18296 #include <assert.h>
18297 /* Override any gcc2 internal prototype to avoid an error. */
18298 /* We use char because int might match the return type of a gcc2
18299 builtin and then its argument prototype would still apply. */
18300 char $ac_func();
18301
18302 int main() {
18303
18304 /* The GNU C library defines this for functions which it implements
18305 to always fail with ENOSYS. Some functions are actually named
18306 something starting with __ and the normal name is an alias. */
18307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18308 choke me
18309 #else
18310 $ac_func();
18311 #endif
18312
18313 ; return 0; }
18314 EOF
18315 if { (eval echo configure:18316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18316 rm -rf conftest*
18317 eval "ac_cv_func_$ac_func=yes"
18318 else
18319 echo "configure: failed program was:" >&5
18320 cat conftest.$ac_ext >&5
18321 rm -rf conftest*
18322 eval "ac_cv_func_$ac_func=no"
18323 fi
18324 rm -f conftest*
18325 fi
18326
18327 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18328 echo "$ac_t""yes" 1>&6
18329 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18330 cat >> confdefs.h <<EOF
18331 #define $ac_tr_func 1
18332 EOF
18333
18334 else
18335 echo "$ac_t""no" 1>&6
18336 fi
18337 done
18338
18339
18340 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
18341 echo "configure:18342: checking for timezone variable in <time.h>" >&5
18342 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18343 echo $ac_n "(cached) $ac_c" 1>&6
18344 else
18345
18346 cat > conftest.$ac_ext <<EOF
18347 #line 18348 "configure"
18348 #include "confdefs.h"
18349
18350 #include <time.h>
18351
18352 int main() {
18353
18354 int tz;
18355 tz = timezone;
18356
18357 ; return 0; }
18358 EOF
18359 if { (eval echo configure:18360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18360 rm -rf conftest*
18361
18362 wx_cv_var_timezone=timezone
18363
18364 else
18365 echo "configure: failed program was:" >&5
18366 cat conftest.$ac_ext >&5
18367 rm -rf conftest*
18368
18369 cat > conftest.$ac_ext <<EOF
18370 #line 18371 "configure"
18371 #include "confdefs.h"
18372
18373 #include <time.h>
18374
18375 int main() {
18376
18377 int tz;
18378 tz = _timezone;
18379
18380 ; return 0; }
18381 EOF
18382 if { (eval echo configure:18383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18383 rm -rf conftest*
18384
18385 wx_cv_var_timezone=_timezone
18386
18387 else
18388 echo "configure: failed program was:" >&5
18389 cat conftest.$ac_ext >&5
18390 rm -rf conftest*
18391
18392 cat > conftest.$ac_ext <<EOF
18393 #line 18394 "configure"
18394 #include "confdefs.h"
18395
18396 #include <time.h>
18397
18398 int main() {
18399
18400 int tz;
18401 tz = __timezone;
18402
18403 ; return 0; }
18404 EOF
18405 if { (eval echo configure:18406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18406 rm -rf conftest*
18407
18408 wx_cv_var_timezone=__timezone
18409
18410 else
18411 echo "configure: failed program was:" >&5
18412 cat conftest.$ac_ext >&5
18413 rm -rf conftest*
18414
18415 if test "$USE_DOS" = 0 ; then
18416 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
18417 fi
18418
18419
18420 fi
18421 rm -f conftest*
18422
18423
18424 fi
18425 rm -f conftest*
18426
18427
18428 fi
18429 rm -f conftest*
18430
18431
18432 fi
18433
18434 echo "$ac_t""$wx_cv_var_timezone" 1>&6
18435
18436 if test "x$wx_cv_var_timezone" != x ; then
18437 cat >> confdefs.h <<EOF
18438 #define WX_TIMEZONE $wx_cv_var_timezone
18439 EOF
18440
18441 fi
18442
18443 for ac_func in localtime
18444 do
18445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18446 echo "configure:18447: checking for $ac_func" >&5
18447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18448 echo $ac_n "(cached) $ac_c" 1>&6
18449 else
18450 cat > conftest.$ac_ext <<EOF
18451 #line 18452 "configure"
18452 #include "confdefs.h"
18453 /* System header to define __stub macros and hopefully few prototypes,
18454 which can conflict with char $ac_func(); below. */
18455 #include <assert.h>
18456 /* Override any gcc2 internal prototype to avoid an error. */
18457 /* We use char because int might match the return type of a gcc2
18458 builtin and then its argument prototype would still apply. */
18459 char $ac_func();
18460
18461 int main() {
18462
18463 /* The GNU C library defines this for functions which it implements
18464 to always fail with ENOSYS. Some functions are actually named
18465 something starting with __ and the normal name is an alias. */
18466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18467 choke me
18468 #else
18469 $ac_func();
18470 #endif
18471
18472 ; return 0; }
18473 EOF
18474 if { (eval echo configure:18475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18475 rm -rf conftest*
18476 eval "ac_cv_func_$ac_func=yes"
18477 else
18478 echo "configure: failed program was:" >&5
18479 cat conftest.$ac_ext >&5
18480 rm -rf conftest*
18481 eval "ac_cv_func_$ac_func=no"
18482 fi
18483 rm -f conftest*
18484 fi
18485
18486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18487 echo "$ac_t""yes" 1>&6
18488 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18489 cat >> confdefs.h <<EOF
18490 #define $ac_tr_func 1
18491 EOF
18492
18493 else
18494 echo "$ac_t""no" 1>&6
18495 fi
18496 done
18497
18498
18499 if test "$ac_cv_func_localtime" = "yes"; then
18500 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
18501 echo "configure:18502: checking for tm_gmtoff in struct tm" >&5
18502 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18503 echo $ac_n "(cached) $ac_c" 1>&6
18504 else
18505
18506 cat > conftest.$ac_ext <<EOF
18507 #line 18508 "configure"
18508 #include "confdefs.h"
18509
18510 #include <time.h>
18511
18512 int main() {
18513
18514 struct tm tm;
18515 tm.tm_gmtoff++;
18516
18517 ; return 0; }
18518 EOF
18519 if { (eval echo configure:18520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18520 rm -rf conftest*
18521
18522 wx_cv_struct_tm_has_gmtoff=yes
18523
18524 else
18525 echo "configure: failed program was:" >&5
18526 cat conftest.$ac_ext >&5
18527 rm -rf conftest*
18528 wx_cv_struct_tm_has_gmtoff=no
18529
18530 fi
18531 rm -f conftest*
18532
18533 fi
18534
18535 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
18536 fi
18537
18538 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
18539 cat >> confdefs.h <<\EOF
18540 #define WX_GMTOFF_IN_TM 1
18541 EOF
18542
18543 fi
18544
18545 for ac_func in gettimeofday ftime
18546 do
18547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18548 echo "configure:18549: checking for $ac_func" >&5
18549 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18550 echo $ac_n "(cached) $ac_c" 1>&6
18551 else
18552 cat > conftest.$ac_ext <<EOF
18553 #line 18554 "configure"
18554 #include "confdefs.h"
18555 /* System header to define __stub macros and hopefully few prototypes,
18556 which can conflict with char $ac_func(); below. */
18557 #include <assert.h>
18558 /* Override any gcc2 internal prototype to avoid an error. */
18559 /* We use char because int might match the return type of a gcc2
18560 builtin and then its argument prototype would still apply. */
18561 char $ac_func();
18562
18563 int main() {
18564
18565 /* The GNU C library defines this for functions which it implements
18566 to always fail with ENOSYS. Some functions are actually named
18567 something starting with __ and the normal name is an alias. */
18568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18569 choke me
18570 #else
18571 $ac_func();
18572 #endif
18573
18574 ; return 0; }
18575 EOF
18576 if { (eval echo configure:18577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18577 rm -rf conftest*
18578 eval "ac_cv_func_$ac_func=yes"
18579 else
18580 echo "configure: failed program was:" >&5
18581 cat conftest.$ac_ext >&5
18582 rm -rf conftest*
18583 eval "ac_cv_func_$ac_func=no"
18584 fi
18585 rm -f conftest*
18586 fi
18587
18588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18589 echo "$ac_t""yes" 1>&6
18590 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18591 cat >> confdefs.h <<EOF
18592 #define $ac_tr_func 1
18593 EOF
18594 break
18595 else
18596 echo "$ac_t""no" 1>&6
18597 fi
18598 done
18599
18600
18601 if test "$ac_cv_func_gettimeofday" = "yes"; then
18602 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
18603 echo "configure:18604: checking whether gettimeofday takes two arguments" >&5
18604 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
18605 echo $ac_n "(cached) $ac_c" 1>&6
18606 else
18607
18608
18609 ac_ext=C
18610 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18611 ac_cpp='$CXXCPP $CPPFLAGS'
18612 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18613 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18614 cross_compiling=$ac_cv_prog_cxx_cross
18615
18616
18617 cat > conftest.$ac_ext <<EOF
18618 #line 18619 "configure"
18619 #include "confdefs.h"
18620
18621 #include <sys/time.h>
18622 #include <unistd.h>
18623
18624 int main() {
18625
18626 struct timeval tv;
18627 gettimeofday(&tv, NULL);
18628
18629 ; return 0; }
18630 EOF
18631 if { (eval echo configure:18632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18632 rm -rf conftest*
18633 wx_cv_func_gettimeofday_has_2_args=yes
18634 else
18635 echo "configure: failed program was:" >&5
18636 cat conftest.$ac_ext >&5
18637 rm -rf conftest*
18638 cat > conftest.$ac_ext <<EOF
18639 #line 18640 "configure"
18640 #include "confdefs.h"
18641
18642 #include <sys/time.h>
18643 #include <unistd.h>
18644
18645 int main() {
18646
18647 struct timeval tv;
18648 gettimeofday(&tv);
18649
18650 ; return 0; }
18651 EOF
18652 if { (eval echo configure:18653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18653 rm -rf conftest*
18654 wx_cv_func_gettimeofday_has_2_args=no
18655 else
18656 echo "configure: failed program was:" >&5
18657 cat conftest.$ac_ext >&5
18658 rm -rf conftest*
18659
18660 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
18661 wx_cv_func_gettimeofday_has_2_args=unknown
18662
18663
18664 fi
18665 rm -f conftest*
18666
18667 fi
18668 rm -f conftest*
18669 ac_ext=c
18670 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18671 ac_cpp='$CPP $CPPFLAGS'
18672 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18673 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18674 cross_compiling=$ac_cv_prog_cc_cross
18675
18676
18677 fi
18678
18679 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
18680
18681 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
18682 cat >> confdefs.h <<\EOF
18683 #define WX_GETTIMEOFDAY_NO_TZ 1
18684 EOF
18685
18686 fi
18687 fi
18688
18689 cat >> confdefs.h <<\EOF
18690 #define wxUSE_TIMEDATE 1
18691 EOF
18692
18693 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
18694 fi
18695
18696
18697 if test "$TOOLKIT" != "MSW"; then
18698
18699 if test "$wxUSE_SOCKETS" = "yes"; then
18700 echo $ac_n "checking for socket""... $ac_c" 1>&6
18701 echo "configure:18702: checking for socket" >&5
18702 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
18703 echo $ac_n "(cached) $ac_c" 1>&6
18704 else
18705 cat > conftest.$ac_ext <<EOF
18706 #line 18707 "configure"
18707 #include "confdefs.h"
18708 /* System header to define __stub macros and hopefully few prototypes,
18709 which can conflict with char socket(); below. */
18710 #include <assert.h>
18711 /* Override any gcc2 internal prototype to avoid an error. */
18712 /* We use char because int might match the return type of a gcc2
18713 builtin and then its argument prototype would still apply. */
18714 char socket();
18715
18716 int main() {
18717
18718 /* The GNU C library defines this for functions which it implements
18719 to always fail with ENOSYS. Some functions are actually named
18720 something starting with __ and the normal name is an alias. */
18721 #if defined (__stub_socket) || defined (__stub___socket)
18722 choke me
18723 #else
18724 socket();
18725 #endif
18726
18727 ; return 0; }
18728 EOF
18729 if { (eval echo configure:18730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18730 rm -rf conftest*
18731 eval "ac_cv_func_socket=yes"
18732 else
18733 echo "configure: failed program was:" >&5
18734 cat conftest.$ac_ext >&5
18735 rm -rf conftest*
18736 eval "ac_cv_func_socket=no"
18737 fi
18738 rm -f conftest*
18739 fi
18740
18741 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
18742 echo "$ac_t""yes" 1>&6
18743 :
18744 else
18745 echo "$ac_t""no" 1>&6
18746 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
18747 echo "configure:18748: checking for socket in -lsocket" >&5
18748 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
18749 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18750 echo $ac_n "(cached) $ac_c" 1>&6
18751 else
18752 ac_save_LIBS="$LIBS"
18753 LIBS="-lsocket $LIBS"
18754 cat > conftest.$ac_ext <<EOF
18755 #line 18756 "configure"
18756 #include "confdefs.h"
18757 /* Override any gcc2 internal prototype to avoid an error. */
18758 /* We use char because int might match the return type of a gcc2
18759 builtin and then its argument prototype would still apply. */
18760 char socket();
18761
18762 int main() {
18763 socket()
18764 ; return 0; }
18765 EOF
18766 if { (eval echo configure:18767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18767 rm -rf conftest*
18768 eval "ac_cv_lib_$ac_lib_var=yes"
18769 else
18770 echo "configure: failed program was:" >&5
18771 cat conftest.$ac_ext >&5
18772 rm -rf conftest*
18773 eval "ac_cv_lib_$ac_lib_var=no"
18774 fi
18775 rm -f conftest*
18776 LIBS="$ac_save_LIBS"
18777
18778 fi
18779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18780 echo "$ac_t""yes" 1>&6
18781 INET_LINK="$INET_LINK -lsocket"
18782 else
18783 echo "$ac_t""no" 1>&6
18784
18785 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
18786 wxUSE_SOCKETS=no
18787
18788
18789 fi
18790
18791
18792 fi
18793
18794 fi
18795
18796
18797 if test "$wxUSE_SOCKETS" = "yes" ; then
18798 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
18799 echo "configure:18800: checking what is the type of the third argument of getsockname" >&5
18800 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
18801 echo $ac_n "(cached) $ac_c" 1>&6
18802 else
18803
18804
18805 ac_ext=C
18806 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18807 ac_cpp='$CXXCPP $CPPFLAGS'
18808 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18809 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18810 cross_compiling=$ac_cv_prog_cxx_cross
18811
18812
18813 cat > conftest.$ac_ext <<EOF
18814 #line 18815 "configure"
18815 #include "confdefs.h"
18816
18817 #include <sys/types.h>
18818 #include <sys/socket.h>
18819
18820 int main() {
18821
18822 socklen_t len;
18823 getsockname(0, 0, &len);
18824
18825 ; return 0; }
18826 EOF
18827 if { (eval echo configure:18828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18828 rm -rf conftest*
18829 wx_cv_type_getsockname3=socklen_t
18830 else
18831 echo "configure: failed program was:" >&5
18832 cat conftest.$ac_ext >&5
18833 rm -rf conftest*
18834 cat > conftest.$ac_ext <<EOF
18835 #line 18836 "configure"
18836 #include "confdefs.h"
18837
18838 #include <sys/types.h>
18839 #include <sys/socket.h>
18840
18841 int main() {
18842
18843 size_t len;
18844 getsockname(0, 0, &len);
18845
18846 ; return 0; }
18847 EOF
18848 if { (eval echo configure:18849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18849 rm -rf conftest*
18850 wx_cv_type_getsockname3=size_t
18851 else
18852 echo "configure: failed program was:" >&5
18853 cat conftest.$ac_ext >&5
18854 rm -rf conftest*
18855 cat > conftest.$ac_ext <<EOF
18856 #line 18857 "configure"
18857 #include "confdefs.h"
18858
18859 #include <sys/types.h>
18860 #include <sys/socket.h>
18861
18862 int main() {
18863
18864 int len;
18865 getsockname(0, 0, &len);
18866
18867 ; return 0; }
18868 EOF
18869 if { (eval echo configure:18870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18870 rm -rf conftest*
18871 wx_cv_type_getsockname3=int
18872 else
18873 echo "configure: failed program was:" >&5
18874 cat conftest.$ac_ext >&5
18875 rm -rf conftest*
18876 wx_cv_type_getsockname3=unknown
18877
18878 fi
18879 rm -f conftest*
18880
18881 fi
18882 rm -f conftest*
18883
18884 fi
18885 rm -f conftest*
18886
18887 ac_ext=c
18888 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18889 ac_cpp='$CPP $CPPFLAGS'
18890 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18891 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18892 cross_compiling=$ac_cv_prog_cc_cross
18893
18894
18895 fi
18896
18897 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
18898
18899 if test "$wx_cv_type_getsockname3" = "unknown"; then
18900 wxUSE_SOCKETS=no
18901 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
18902 else
18903 cat >> confdefs.h <<EOF
18904 #define SOCKLEN_T $wx_cv_type_getsockname3
18905 EOF
18906
18907 fi
18908 fi
18909 fi
18910
18911 if test "$wxUSE_SOCKETS" = "yes" ; then
18912 cat >> confdefs.h <<\EOF
18913 #define wxUSE_SOCKETS 1
18914 EOF
18915
18916 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
18917 fi
18918
18919
18920 if test "$wxUSE_GUI" = "yes"; then
18921
18922 if test "$TOOLKIT" = "MAC"; then
18923 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
18924 wxUSE_JOYSTICK=no
18925 fi
18926 if test "$TOOLKIT" = "MOTIF"; then
18927 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
18928 wxUSE_JOYSTICK=no
18929 fi
18930 if test "$TOOLKIT" = "X11"; then
18931 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
18932 wxUSE_JOYSTICK=no
18933 fi
18934
18935 if test "$TOOLKIT" != "MSW"; then
18936 if test "$wxUSE_JOYSTICK" = "yes"; then
18937 for ac_hdr in linux/joystick.h
18938 do
18939 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18940 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18941 echo "configure:18942: checking for $ac_hdr" >&5
18942 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18943 echo $ac_n "(cached) $ac_c" 1>&6
18944 else
18945 cat > conftest.$ac_ext <<EOF
18946 #line 18947 "configure"
18947 #include "confdefs.h"
18948 #include <$ac_hdr>
18949 EOF
18950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18951 { (eval echo configure:18952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18952 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18953 if test -z "$ac_err"; then
18954 rm -rf conftest*
18955 eval "ac_cv_header_$ac_safe=yes"
18956 else
18957 echo "$ac_err" >&5
18958 echo "configure: failed program was:" >&5
18959 cat conftest.$ac_ext >&5
18960 rm -rf conftest*
18961 eval "ac_cv_header_$ac_safe=no"
18962 fi
18963 rm -f conftest*
18964 fi
18965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18966 echo "$ac_t""yes" 1>&6
18967 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18968 cat >> confdefs.h <<EOF
18969 #define $ac_tr_hdr 1
18970 EOF
18971
18972 else
18973 echo "$ac_t""no" 1>&6
18974 fi
18975 done
18976
18977 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
18978 wxUSE_JOYSTICK=no
18979 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
18980 fi
18981 fi
18982 fi
18983
18984 if test "$wxUSE_JOYSTICK" = "yes"; then
18985 cat >> confdefs.h <<\EOF
18986 #define wxUSE_JOYSTICK 1
18987 EOF
18988
18989 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
18990 fi
18991 fi
18992
18993
18994 if test "$TOOLKIT" != "MSW"; then
18995
18996 HAVE_DL_FUNCS=0
18997 HAVE_SHL_FUNCS=0
18998 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
18999 if test "$USE_DARWIN" = 1; then
19000 HAVE_DL_FUNCS=1
19001 else
19002 for ac_func in dlopen
19003 do
19004 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19005 echo "configure:19006: checking for $ac_func" >&5
19006 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19007 echo $ac_n "(cached) $ac_c" 1>&6
19008 else
19009 cat > conftest.$ac_ext <<EOF
19010 #line 19011 "configure"
19011 #include "confdefs.h"
19012 /* System header to define __stub macros and hopefully few prototypes,
19013 which can conflict with char $ac_func(); below. */
19014 #include <assert.h>
19015 /* Override any gcc2 internal prototype to avoid an error. */
19016 /* We use char because int might match the return type of a gcc2
19017 builtin and then its argument prototype would still apply. */
19018 char $ac_func();
19019
19020 int main() {
19021
19022 /* The GNU C library defines this for functions which it implements
19023 to always fail with ENOSYS. Some functions are actually named
19024 something starting with __ and the normal name is an alias. */
19025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19026 choke me
19027 #else
19028 $ac_func();
19029 #endif
19030
19031 ; return 0; }
19032 EOF
19033 if { (eval echo configure:19034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19034 rm -rf conftest*
19035 eval "ac_cv_func_$ac_func=yes"
19036 else
19037 echo "configure: failed program was:" >&5
19038 cat conftest.$ac_ext >&5
19039 rm -rf conftest*
19040 eval "ac_cv_func_$ac_func=no"
19041 fi
19042 rm -f conftest*
19043 fi
19044
19045 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19046 echo "$ac_t""yes" 1>&6
19047 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19048 cat >> confdefs.h <<EOF
19049 #define $ac_tr_func 1
19050 EOF
19051
19052 cat >> confdefs.h <<\EOF
19053 #define HAVE_DLOPEN 1
19054 EOF
19055
19056 HAVE_DL_FUNCS=1
19057
19058 else
19059 echo "$ac_t""no" 1>&6
19060 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
19061 echo "configure:19062: checking for dlopen in -ldl" >&5
19062 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
19063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19064 echo $ac_n "(cached) $ac_c" 1>&6
19065 else
19066 ac_save_LIBS="$LIBS"
19067 LIBS="-ldl $LIBS"
19068 cat > conftest.$ac_ext <<EOF
19069 #line 19070 "configure"
19070 #include "confdefs.h"
19071 /* Override any gcc2 internal prototype to avoid an error. */
19072 /* We use char because int might match the return type of a gcc2
19073 builtin and then its argument prototype would still apply. */
19074 char dlopen();
19075
19076 int main() {
19077 dlopen()
19078 ; return 0; }
19079 EOF
19080 if { (eval echo configure:19081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19081 rm -rf conftest*
19082 eval "ac_cv_lib_$ac_lib_var=yes"
19083 else
19084 echo "configure: failed program was:" >&5
19085 cat conftest.$ac_ext >&5
19086 rm -rf conftest*
19087 eval "ac_cv_lib_$ac_lib_var=no"
19088 fi
19089 rm -f conftest*
19090 LIBS="$ac_save_LIBS"
19091
19092 fi
19093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19094 echo "$ac_t""yes" 1>&6
19095
19096 cat >> confdefs.h <<\EOF
19097 #define HAVE_DLOPEN 1
19098 EOF
19099
19100 HAVE_DL_FUNCS=1
19101 DL_LINK=" -ldl$DL_LINK"
19102
19103 else
19104 echo "$ac_t""no" 1>&6
19105
19106 for ac_func in shl_load
19107 do
19108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19109 echo "configure:19110: checking for $ac_func" >&5
19110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19111 echo $ac_n "(cached) $ac_c" 1>&6
19112 else
19113 cat > conftest.$ac_ext <<EOF
19114 #line 19115 "configure"
19115 #include "confdefs.h"
19116 /* System header to define __stub macros and hopefully few prototypes,
19117 which can conflict with char $ac_func(); below. */
19118 #include <assert.h>
19119 /* Override any gcc2 internal prototype to avoid an error. */
19120 /* We use char because int might match the return type of a gcc2
19121 builtin and then its argument prototype would still apply. */
19122 char $ac_func();
19123
19124 int main() {
19125
19126 /* The GNU C library defines this for functions which it implements
19127 to always fail with ENOSYS. Some functions are actually named
19128 something starting with __ and the normal name is an alias. */
19129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19130 choke me
19131 #else
19132 $ac_func();
19133 #endif
19134
19135 ; return 0; }
19136 EOF
19137 if { (eval echo configure:19138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19138 rm -rf conftest*
19139 eval "ac_cv_func_$ac_func=yes"
19140 else
19141 echo "configure: failed program was:" >&5
19142 cat conftest.$ac_ext >&5
19143 rm -rf conftest*
19144 eval "ac_cv_func_$ac_func=no"
19145 fi
19146 rm -f conftest*
19147 fi
19148
19149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19150 echo "$ac_t""yes" 1>&6
19151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19152 cat >> confdefs.h <<EOF
19153 #define $ac_tr_func 1
19154 EOF
19155
19156 cat >> confdefs.h <<\EOF
19157 #define HAVE_SHL_LOAD 1
19158 EOF
19159
19160 HAVE_SHL_FUNCS=1
19161
19162 else
19163 echo "$ac_t""no" 1>&6
19164 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
19165 echo "configure:19166: checking for dld in -lshl_load" >&5
19166 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19167 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19168 echo $ac_n "(cached) $ac_c" 1>&6
19169 else
19170 ac_save_LIBS="$LIBS"
19171 LIBS="-lshl_load $LIBS"
19172 cat > conftest.$ac_ext <<EOF
19173 #line 19174 "configure"
19174 #include "confdefs.h"
19175 /* Override any gcc2 internal prototype to avoid an error. */
19176 /* We use char because int might match the return type of a gcc2
19177 builtin and then its argument prototype would still apply. */
19178 char dld();
19179
19180 int main() {
19181 dld()
19182 ; return 0; }
19183 EOF
19184 if { (eval echo configure:19185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19185 rm -rf conftest*
19186 eval "ac_cv_lib_$ac_lib_var=yes"
19187 else
19188 echo "configure: failed program was:" >&5
19189 cat conftest.$ac_ext >&5
19190 rm -rf conftest*
19191 eval "ac_cv_lib_$ac_lib_var=no"
19192 fi
19193 rm -f conftest*
19194 LIBS="$ac_save_LIBS"
19195
19196 fi
19197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19198 echo "$ac_t""yes" 1>&6
19199
19200 HAVE_SHL_FUNCS=1
19201 DL_LINK=" -ldld$DL_LINK"
19202
19203 else
19204 echo "$ac_t""no" 1>&6
19205 fi
19206
19207
19208 fi
19209 done
19210
19211
19212 fi
19213
19214
19215 fi
19216 done
19217
19218
19219 if test "$HAVE_DL_FUNCS" = 1; then
19220 for ac_func in dlerror
19221 do
19222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19223 echo "configure:19224: checking for $ac_func" >&5
19224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19225 echo $ac_n "(cached) $ac_c" 1>&6
19226 else
19227 cat > conftest.$ac_ext <<EOF
19228 #line 19229 "configure"
19229 #include "confdefs.h"
19230 /* System header to define __stub macros and hopefully few prototypes,
19231 which can conflict with char $ac_func(); below. */
19232 #include <assert.h>
19233 /* Override any gcc2 internal prototype to avoid an error. */
19234 /* We use char because int might match the return type of a gcc2
19235 builtin and then its argument prototype would still apply. */
19236 char $ac_func();
19237
19238 int main() {
19239
19240 /* The GNU C library defines this for functions which it implements
19241 to always fail with ENOSYS. Some functions are actually named
19242 something starting with __ and the normal name is an alias. */
19243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19244 choke me
19245 #else
19246 $ac_func();
19247 #endif
19248
19249 ; return 0; }
19250 EOF
19251 if { (eval echo configure:19252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19252 rm -rf conftest*
19253 eval "ac_cv_func_$ac_func=yes"
19254 else
19255 echo "configure: failed program was:" >&5
19256 cat conftest.$ac_ext >&5
19257 rm -rf conftest*
19258 eval "ac_cv_func_$ac_func=no"
19259 fi
19260 rm -f conftest*
19261 fi
19262
19263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19264 echo "$ac_t""yes" 1>&6
19265 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19266 cat >> confdefs.h <<EOF
19267 #define $ac_tr_func 1
19268 EOF
19269 cat >> confdefs.h <<\EOF
19270 #define HAVE_DLERROR 1
19271 EOF
19272
19273 else
19274 echo "$ac_t""no" 1>&6
19275 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
19276 echo "configure:19277: checking for dlerror in -ldl" >&5
19277 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19278 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19279 echo $ac_n "(cached) $ac_c" 1>&6
19280 else
19281 ac_save_LIBS="$LIBS"
19282 LIBS="-ldl $LIBS"
19283 cat > conftest.$ac_ext <<EOF
19284 #line 19285 "configure"
19285 #include "confdefs.h"
19286 /* Override any gcc2 internal prototype to avoid an error. */
19287 /* We use char because int might match the return type of a gcc2
19288 builtin and then its argument prototype would still apply. */
19289 char dlerror();
19290
19291 int main() {
19292 dlerror()
19293 ; return 0; }
19294 EOF
19295 if { (eval echo configure:19296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19296 rm -rf conftest*
19297 eval "ac_cv_lib_$ac_lib_var=yes"
19298 else
19299 echo "configure: failed program was:" >&5
19300 cat conftest.$ac_ext >&5
19301 rm -rf conftest*
19302 eval "ac_cv_lib_$ac_lib_var=no"
19303 fi
19304 rm -f conftest*
19305 LIBS="$ac_save_LIBS"
19306
19307 fi
19308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19309 echo "$ac_t""yes" 1>&6
19310 cat >> confdefs.h <<\EOF
19311 #define HAVE_DLERROR 1
19312 EOF
19313
19314 else
19315 echo "$ac_t""no" 1>&6
19316 fi
19317
19318 fi
19319 done
19320
19321 fi
19322 fi
19323
19324 if test "$HAVE_DL_FUNCS" = 0; then
19325 if test "$HAVE_SHL_FUNCS" = 0; then
19326 if test "$USE_UNIX" = 1; then
19327 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
19328 wxUSE_DYNAMIC_LOADER=no
19329 wxUSE_DYNLIB_CLASS=no
19330 else
19331 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19332 fi
19333 fi
19334 fi
19335 fi
19336 fi
19337
19338 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19339 cat >> confdefs.h <<\EOF
19340 #define wxUSE_DYNAMIC_LOADER 1
19341 EOF
19342
19343 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19344 cat >> confdefs.h <<\EOF
19345 #define wxUSE_DYNLIB_CLASS 1
19346 EOF
19347
19348 fi
19349
19350
19351 if test "$wxUSE_FONTMAP" = "yes" ; then
19352 cat >> confdefs.h <<\EOF
19353 #define wxUSE_FONTMAP 1
19354 EOF
19355
19356 fi
19357
19358 if test "$wxUSE_UNICODE" = "yes" ; then
19359 cat >> confdefs.h <<\EOF
19360 #define wxUSE_UNICODE 1
19361 EOF
19362
19363
19364 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19365 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
19366 echo "configure:19367: checking for main in -lunicows" >&5
19367 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19368 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19369 echo $ac_n "(cached) $ac_c" 1>&6
19370 else
19371 ac_save_LIBS="$LIBS"
19372 LIBS="-lunicows $LIBS"
19373 cat > conftest.$ac_ext <<EOF
19374 #line 19375 "configure"
19375 #include "confdefs.h"
19376
19377 int main() {
19378 main()
19379 ; return 0; }
19380 EOF
19381 if { (eval echo configure:19382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19382 rm -rf conftest*
19383 eval "ac_cv_lib_$ac_lib_var=yes"
19384 else
19385 echo "configure: failed program was:" >&5
19386 cat conftest.$ac_ext >&5
19387 rm -rf conftest*
19388 eval "ac_cv_lib_$ac_lib_var=no"
19389 fi
19390 rm -f conftest*
19391 LIBS="$ac_save_LIBS"
19392
19393 fi
19394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19395 echo "$ac_t""yes" 1>&6
19396
19397 cat >> confdefs.h <<\EOF
19398 #define wxUSE_UNICODE_MSLU 1
19399 EOF
19400
19401
19402 else
19403 echo "$ac_t""no" 1>&6
19404
19405 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19406 Applications will only run on Windows NT/2000/XP!" 1>&2
19407 wxUSE_UNICODE_MSLU=no
19408
19409 fi
19410
19411 fi
19412 fi
19413
19414 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
19415 cat >> confdefs.h <<\EOF
19416 #define wxUSE_EXPERIMENTAL_PRINTF 1
19417 EOF
19418
19419 fi
19420
19421
19422
19423 IODBC_C_SRC=""
19424 if test "$wxUSE_ODBC" = "yes" ; then
19425 cat >> confdefs.h <<\EOF
19426 #define wxUSE_ODBC 1
19427 EOF
19428
19429 WXODBCFLAG="-D_IODBC_"
19430 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
19431 fi
19432
19433
19434 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
19435 cat >> confdefs.h <<\EOF
19436 #define wxUSE_POSTSCRIPT 1
19437 EOF
19438
19439 fi
19440
19441 cat >> confdefs.h <<\EOF
19442 #define wxUSE_AFM_FOR_POSTSCRIPT 1
19443 EOF
19444
19445
19446 cat >> confdefs.h <<\EOF
19447 #define wxUSE_NORMALIZED_PS_FONTS 1
19448 EOF
19449
19450
19451
19452 if test "$wxUSE_CONSTRAINTS" = "yes"; then
19453 cat >> confdefs.h <<\EOF
19454 #define wxUSE_CONSTRAINTS 1
19455 EOF
19456
19457 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19458 fi
19459
19460 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19461 if test "$wxUSE_UNIVERSAL" = "yes"; then
19462 echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2
19463 wxUSE_MDI_ARCHITECTURE=no
19464 fi
19465
19466 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19467 cat >> confdefs.h <<\EOF
19468 #define wxUSE_MDI_ARCHITECTURE 1
19469 EOF
19470
19471 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19472 fi
19473 fi
19474
19475 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
19476 cat >> confdefs.h <<\EOF
19477 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
19478 EOF
19479
19480 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19481 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19482 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19483 fi
19484 fi
19485
19486 if test "$wxUSE_HELP" = "yes"; then
19487 cat >> confdefs.h <<\EOF
19488 #define wxUSE_HELP 1
19489 EOF
19490
19491 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
19492
19493 if test "$wxUSE_MSW" = 1; then
19494 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
19495 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
19496 echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
19497 echo "configure:19498: checking for htmlhelp.h" >&5
19498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19499 echo $ac_n "(cached) $ac_c" 1>&6
19500 else
19501 cat > conftest.$ac_ext <<EOF
19502 #line 19503 "configure"
19503 #include "confdefs.h"
19504 #include <htmlhelp.h>
19505 EOF
19506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19507 { (eval echo configure:19508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19509 if test -z "$ac_err"; then
19510 rm -rf conftest*
19511 eval "ac_cv_header_$ac_safe=yes"
19512 else
19513 echo "$ac_err" >&5
19514 echo "configure: failed program was:" >&5
19515 cat conftest.$ac_ext >&5
19516 rm -rf conftest*
19517 eval "ac_cv_header_$ac_safe=no"
19518 fi
19519 rm -f conftest*
19520 fi
19521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19522 echo "$ac_t""yes" 1>&6
19523
19524 cat >> confdefs.h <<\EOF
19525 #define wxUSE_MS_HTML_HELP 1
19526 EOF
19527
19528
19529 else
19530 echo "$ac_t""no" 1>&6
19531
19532 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
19533 wxUSE_MS_HTML_HELP=no
19534
19535 fi
19536
19537 fi
19538 fi
19539
19540 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19541 if test "$wxUSE_HTML" = "yes"; then
19542 cat >> confdefs.h <<\EOF
19543 #define wxUSE_WXHTML_HELP 1
19544 EOF
19545
19546 else
19547 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19548 wxUSE_WXHTML_HELP=no
19549 fi
19550 fi
19551 fi
19552
19553 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19554 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19555 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
19556 else
19557 cat >> confdefs.h <<\EOF
19558 #define wxUSE_PRINTING_ARCHITECTURE 1
19559 EOF
19560
19561 fi
19562 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19563 fi
19564
19565 if test "$wxUSE_PROLOGIO" = "yes" ; then
19566 cat >> confdefs.h <<\EOF
19567 #define wxUSE_PROLOGIO 1
19568 EOF
19569
19570 fi
19571
19572 if test "$wxUSE_RESOURCES" = "yes" ; then
19573 cat >> confdefs.h <<\EOF
19574 #define wxUSE_RESOURCES 1
19575 EOF
19576
19577 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19578 fi
19579
19580 if test "$wxUSE_X_RESOURCES" = "yes"; then
19581 cat >> confdefs.h <<\EOF
19582 #define wxUSE_X_RESOURCES 1
19583 EOF
19584
19585 fi
19586
19587
19588 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19589 -o "$wxUSE_CLIPBOARD" = "yes" \
19590 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
19591 for ac_hdr in ole2.h
19592 do
19593 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19594 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19595 echo "configure:19596: checking for $ac_hdr" >&5
19596 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19597 echo $ac_n "(cached) $ac_c" 1>&6
19598 else
19599 cat > conftest.$ac_ext <<EOF
19600 #line 19601 "configure"
19601 #include "confdefs.h"
19602 #include <$ac_hdr>
19603 EOF
19604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19605 { (eval echo configure:19606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19606 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19607 if test -z "$ac_err"; then
19608 rm -rf conftest*
19609 eval "ac_cv_header_$ac_safe=yes"
19610 else
19611 echo "$ac_err" >&5
19612 echo "configure: failed program was:" >&5
19613 cat conftest.$ac_ext >&5
19614 rm -rf conftest*
19615 eval "ac_cv_header_$ac_safe=no"
19616 fi
19617 rm -f conftest*
19618 fi
19619 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19620 echo "$ac_t""yes" 1>&6
19621 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19622 cat >> confdefs.h <<EOF
19623 #define $ac_tr_hdr 1
19624 EOF
19625
19626 else
19627 echo "$ac_t""no" 1>&6
19628 fi
19629 done
19630
19631
19632 if test "$ac_cv_header_ole2_h" = "yes" ; then
19633 if test "$GCC" = yes ; then
19634 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
19635 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
19636 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
19637 cat >> confdefs.h <<\EOF
19638 #define wxUSE_OLE 1
19639 EOF
19640
19641
19642 fi
19643
19644 cat >> confdefs.h <<\EOF
19645 #define wxUSE_DATAOBJ 1
19646 EOF
19647
19648 else
19649 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
19650
19651 wxUSE_CLIPBOARD=no
19652 wxUSE_DRAG_AND_DROP=no
19653 wxUSE_DATAOBJ=no
19654 fi
19655
19656 if test "$wxUSE_METAFILE" = "yes"; then
19657 cat >> confdefs.h <<\EOF
19658 #define wxUSE_METAFILE 1
19659 EOF
19660
19661
19662 cat >> confdefs.h <<\EOF
19663 #define wxUSE_ENH_METAFILE 1
19664 EOF
19665
19666 fi
19667 fi
19668
19669 if test "$wxUSE_IPC" = "yes"; then
19670 if test "$wxUSE_SOCKETS" != "yes"; then
19671 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
19672 fi
19673
19674 cat >> confdefs.h <<\EOF
19675 #define wxUSE_IPC 1
19676 EOF
19677
19678 fi
19679
19680 if test "$wxUSE_CLIPBOARD" = "yes"; then
19681 cat >> confdefs.h <<\EOF
19682 #define wxUSE_CLIPBOARD 1
19683 EOF
19684
19685
19686 cat >> confdefs.h <<\EOF
19687 #define wxUSE_DATAOBJ 1
19688 EOF
19689
19690 fi
19691
19692 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
19693 if test "$wxUSE_GTK" = 1; then
19694 if test "$WXGTK12" != 1; then
19695 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
19696 wxUSE_DRAG_AND_DROP=no
19697 fi
19698 fi
19699
19700 if test "$wxUSE_MOTIF" = 1; then
19701 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
19702 wxUSE_DRAG_AND_DROP=no
19703 fi
19704
19705 if test "$wxUSE_X11" = 1; then
19706 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
19707 wxUSE_DRAG_AND_DROP=no
19708 fi
19709
19710 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
19711 cat >> confdefs.h <<\EOF
19712 #define wxUSE_DRAG_AND_DROP 1
19713 EOF
19714
19715 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
19716 fi
19717
19718 fi
19719
19720 if test "$wxUSE_SPLINES" = "yes" ; then
19721 cat >> confdefs.h <<\EOF
19722 #define wxUSE_SPLINES 1
19723 EOF
19724
19725 fi
19726
19727
19728 USES_CONTROLS=0
19729 if test "$wxUSE_CONTROLS" = "yes"; then
19730 USES_CONTROLS=1
19731 fi
19732
19733 if test "$wxUSE_ACCEL" = "yes"; then
19734 cat >> confdefs.h <<\EOF
19735 #define wxUSE_ACCEL 1
19736 EOF
19737
19738 USES_CONTROLS=1
19739 fi
19740
19741 if test "$wxUSE_BUTTON" = "yes"; then
19742 cat >> confdefs.h <<\EOF
19743 #define wxUSE_BUTTON 1
19744 EOF
19745
19746 USES_CONTROLS=1
19747 fi
19748
19749 if test "$wxUSE_BMPBUTTON" = "yes"; then
19750 cat >> confdefs.h <<\EOF
19751 #define wxUSE_BMPBUTTON 1
19752 EOF
19753
19754 USES_CONTROLS=1
19755 fi
19756
19757 if test "$wxUSE_CALCTRL" = "yes"; then
19758 cat >> confdefs.h <<\EOF
19759 #define wxUSE_CALENDARCTRL 1
19760 EOF
19761
19762 USES_CONTROLS=1
19763 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
19764 fi
19765
19766 if test "$wxUSE_CARET" = "yes"; then
19767 cat >> confdefs.h <<\EOF
19768 #define wxUSE_CARET 1
19769 EOF
19770
19771 USES_CONTROLS=1
19772 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
19773 fi
19774
19775 if test "$wxUSE_COMBOBOX" = "yes"; then
19776 cat >> confdefs.h <<\EOF
19777 #define wxUSE_COMBOBOX 1
19778 EOF
19779
19780 USES_CONTROLS=1
19781 fi
19782
19783 if test "$wxUSE_CHOICE" = "yes"; then
19784 cat >> confdefs.h <<\EOF
19785 #define wxUSE_CHOICE 1
19786 EOF
19787
19788 USES_CONTROLS=1
19789 fi
19790
19791 if test "$wxUSE_CHECKBOX" = "yes"; then
19792 cat >> confdefs.h <<\EOF
19793 #define wxUSE_CHECKBOX 1
19794 EOF
19795
19796 USES_CONTROLS=1
19797 fi
19798
19799 if test "$wxUSE_CHECKLST" = "yes"; then
19800 cat >> confdefs.h <<\EOF
19801 #define wxUSE_CHECKLISTBOX 1
19802 EOF
19803
19804 USES_CONTROLS=1
19805 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
19806 fi
19807
19808 if test "$wxUSE_GAUGE" = "yes"; then
19809 cat >> confdefs.h <<\EOF
19810 #define wxUSE_GAUGE 1
19811 EOF
19812
19813 USES_CONTROLS=1
19814 fi
19815
19816 if test "$wxUSE_NEW_GRID" = "yes"; then
19817 wxUSE_GRID="yes"
19818 cat >> confdefs.h <<\EOF
19819 #define wxUSE_NEW_GRID 1
19820 EOF
19821
19822 USES_CONTROLS=1
19823 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
19824 fi
19825
19826 if test "$wxUSE_GRID" = "yes"; then
19827 cat >> confdefs.h <<\EOF
19828 #define wxUSE_GRID 1
19829 EOF
19830
19831 USES_CONTROLS=1
19832 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
19833 fi
19834
19835 if test "$wxUSE_IMAGLIST" = "yes"; then
19836 cat >> confdefs.h <<\EOF
19837 #define wxUSE_IMAGLIST 1
19838 EOF
19839
19840 fi
19841
19842 if test "$wxUSE_LISTBOX" = "yes"; then
19843 cat >> confdefs.h <<\EOF
19844 #define wxUSE_LISTBOX 1
19845 EOF
19846
19847 USES_CONTROLS=1
19848 fi
19849
19850 if test "$wxUSE_LISTCTRL" = "yes"; then
19851 if test "$wxUSE_IMAGLIST" = "yes"; then
19852 cat >> confdefs.h <<\EOF
19853 #define wxUSE_LISTCTRL 1
19854 EOF
19855
19856 USES_CONTROLS=1
19857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
19858 else
19859 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
19860 fi
19861 fi
19862
19863 if test "$wxUSE_NOTEBOOK" = "yes"; then
19864 cat >> confdefs.h <<\EOF
19865 #define wxUSE_NOTEBOOK 1
19866 EOF
19867
19868 USES_CONTROLS=1
19869 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
19870 fi
19871
19872 if test "$wxUSE_PROPSHEET" = "yes"; then
19873 cat >> confdefs.h <<\EOF
19874 #define wxUSE_PROPSHEET 1
19875 EOF
19876
19877 USES_CONTROLS=1
19878 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
19879 fi
19880
19881 if test "$wxUSE_RADIOBOX" = "yes"; then
19882 cat >> confdefs.h <<\EOF
19883 #define wxUSE_RADIOBOX 1
19884 EOF
19885
19886 USES_CONTROLS=1
19887 fi
19888
19889 if test "$wxUSE_RADIOBTN" = "yes"; then
19890 cat >> confdefs.h <<\EOF
19891 #define wxUSE_RADIOBTN 1
19892 EOF
19893
19894 USES_CONTROLS=1
19895 fi
19896
19897 if test "$wxUSE_SASH" = "yes"; then
19898 cat >> confdefs.h <<\EOF
19899 #define wxUSE_SASH 1
19900 EOF
19901
19902 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
19903 fi
19904
19905 if test "$wxUSE_SCROLLBAR" = "yes"; then
19906 cat >> confdefs.h <<\EOF
19907 #define wxUSE_SCROLLBAR 1
19908 EOF
19909
19910 USES_CONTROLS=1
19911 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
19912 fi
19913
19914 if test "$wxUSE_SLIDER" = "yes"; then
19915 cat >> confdefs.h <<\EOF
19916 #define wxUSE_SLIDER 1
19917 EOF
19918
19919 USES_CONTROLS=1
19920 fi
19921
19922 if test "$wxUSE_SPINBTN" = "yes"; then
19923 cat >> confdefs.h <<\EOF
19924 #define wxUSE_SPINBTN 1
19925 EOF
19926
19927 USES_CONTROLS=1
19928 fi
19929
19930 if test "$wxUSE_SPINCTRL" = "yes"; then
19931 cat >> confdefs.h <<\EOF
19932 #define wxUSE_SPINCTRL 1
19933 EOF
19934
19935 USES_CONTROLS=1
19936 fi
19937
19938 if test "$wxUSE_SPLITTER" = "yes"; then
19939 cat >> confdefs.h <<\EOF
19940 #define wxUSE_SPLITTER 1
19941 EOF
19942
19943 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
19944 fi
19945
19946 if test "$wxUSE_STATBMP" = "yes"; then
19947 cat >> confdefs.h <<\EOF
19948 #define wxUSE_STATBMP 1
19949 EOF
19950
19951 USES_CONTROLS=1
19952 fi
19953
19954 if test "$wxUSE_STATBOX" = "yes"; then
19955 cat >> confdefs.h <<\EOF
19956 #define wxUSE_STATBOX 1
19957 EOF
19958
19959 USES_CONTROLS=1
19960 fi
19961
19962 if test "$wxUSE_STATTEXT" = "yes"; then
19963 cat >> confdefs.h <<\EOF
19964 #define wxUSE_STATTEXT 1
19965 EOF
19966
19967 USES_CONTROLS=1
19968 fi
19969
19970 if test "$wxUSE_STATLINE" = "yes"; then
19971 if test "$wxUSE_WINE" = 1 ; then
19972 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
19973 else
19974 cat >> confdefs.h <<\EOF
19975 #define wxUSE_STATLINE 1
19976 EOF
19977
19978 USES_CONTROLS=1
19979 fi
19980 fi
19981
19982 if test "$wxUSE_STATUSBAR" = "yes"; then
19983 cat >> confdefs.h <<\EOF
19984 #define wxUSE_STATUSBAR 1
19985 EOF
19986
19987 USES_CONTROLS=1
19988
19989 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
19990 fi
19991
19992 if test "$wxUSE_TABDIALOG" = "yes"; then
19993 cat >> confdefs.h <<\EOF
19994 #define wxUSE_TAB_DIALOG 1
19995 EOF
19996
19997 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
19998 fi
19999
20000 if test "$wxUSE_TEXTCTRL" = "yes"; then
20001 cat >> confdefs.h <<\EOF
20002 #define wxUSE_TEXTCTRL 1
20003 EOF
20004
20005 USES_CONTROLS=1
20006 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
20007 fi
20008
20009 if test "$wxUSE_TOGGLEBTN" = "yes"; then
20010 if test "$wxUSE_MAC" = 1; then
20011 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
20012 wxUSE_TOGGLEBTN=no
20013 fi
20014 if test "$wxUSE_UNIVERSAL" = "yes"; then
20015 echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2
20016 wxUSE_TOGGLEBTN=no
20017 fi
20018
20019 if test "$wxUSE_TOGGLEBTN" = "yes"; then
20020 cat >> confdefs.h <<\EOF
20021 #define wxUSE_TOGGLEBTN 1
20022 EOF
20023
20024 USES_CONTROLS=1
20025 fi
20026 fi
20027
20028 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
20029 cat >> confdefs.h <<\EOF
20030 #define wxUSE_TOOLBAR_SIMPLE 1
20031 EOF
20032
20033 wxUSE_TOOLBAR="yes"
20034 USES_CONTROLS=1
20035 fi
20036
20037 if test "$wxUSE_TOOLBAR" = "yes"; then
20038 cat >> confdefs.h <<\EOF
20039 #define wxUSE_TOOLBAR 1
20040 EOF
20041
20042 USES_CONTROLS=1
20043
20044 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
20045 wxUSE_TOOLBAR_NATIVE="yes"
20046 fi
20047
20048 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
20049 cat >> confdefs.h <<\EOF
20050 #define wxUSE_TOOLBAR_NATIVE 1
20051 EOF
20052
20053 USES_CONTROLS=1
20054 fi
20055
20056 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
20057 fi
20058
20059 if test "$wxUSE_TOOLTIPS" = "yes"; then
20060 if test "$wxUSE_MOTIF" = 1; then
20061 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
20062 else
20063 if test "$wxUSE_WINE" = 1; then
20064 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
20065 else
20066 if test "$wxUSE_UNIVERSAL" = "yes"; then
20067 echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2
20068 else
20069 cat >> confdefs.h <<\EOF
20070 #define wxUSE_TOOLTIPS 1
20071 EOF
20072
20073 fi
20074 fi
20075 fi
20076 fi
20077
20078 if test "$wxUSE_TREECTRL" = "yes"; then
20079 if test "$wxUSE_IMAGLIST" = "yes"; then
20080 cat >> confdefs.h <<\EOF
20081 #define wxUSE_TREECTRL 1
20082 EOF
20083
20084 USES_CONTROLS=1
20085 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20086 else
20087 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
20088 fi
20089 fi
20090
20091 if test "$wxUSE_POPUPWIN" = "yes"; then
20092 if test "$wxUSE_MAC" = 1; then
20093 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
20094 else
20095 if test "$wxUSE_MOTIF" = 1; then
20096 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
20097 else
20098 cat >> confdefs.h <<\EOF
20099 #define wxUSE_POPUPWIN 1
20100 EOF
20101
20102
20103 USES_CONTROLS=1
20104 fi
20105 fi
20106 fi
20107
20108 if test "$wxUSE_TIPWINDOW" = "yes"; then
20109 cat >> confdefs.h <<\EOF
20110 #define wxUSE_TIPWINDOW 1
20111 EOF
20112
20113 fi
20114
20115 if test "$USES_CONTROLS" = 1; then
20116 cat >> confdefs.h <<\EOF
20117 #define wxUSE_CONTROLS 1
20118 EOF
20119
20120 fi
20121
20122
20123 if test "$wxUSE_TREELAYOUT" = "yes"; then
20124 cat >> confdefs.h <<\EOF
20125 #define wxUSE_TREELAYOUT 1
20126 EOF
20127
20128 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20129 fi
20130
20131 if test "$wxUSE_DRAGIMAGE" = "yes"; then
20132 cat >> confdefs.h <<\EOF
20133 #define wxUSE_DRAGIMAGE 1
20134 EOF
20135
20136 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20137 fi
20138
20139 if test "$wxUSE_MENUS" = "yes"; then
20140 cat >> confdefs.h <<\EOF
20141 #define wxUSE_MENUS 1
20142 EOF
20143
20144 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
20145 fi
20146
20147 if test "$wxUSE_METAFILE" = "yes"; then
20148 cat >> confdefs.h <<\EOF
20149 #define wxUSE_METAFILE 1
20150 EOF
20151
20152 fi
20153
20154 if test "$wxUSE_MIMETYPE" = "yes"; then
20155 cat >> confdefs.h <<\EOF
20156 #define wxUSE_MIMETYPE 1
20157 EOF
20158
20159 fi
20160
20161 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
20162 cat >> confdefs.h <<\EOF
20163 #define wxUSE_SYSTEM_OPTIONS 1
20164 EOF
20165
20166 fi
20167
20168 if test "$wxUSE_PROTOCOL" = "yes"; then
20169 if test "$wxUSE_SOCKETS" != "yes"; then
20170 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
20171 wxUSE_PROTOCOL=no
20172 fi
20173
20174 if test "$wxUSE_PROTOCOL" = "yes"; then
20175 cat >> confdefs.h <<\EOF
20176 #define wxUSE_PROTOCOL 1
20177 EOF
20178
20179
20180 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
20181 cat >> confdefs.h <<\EOF
20182 #define wxUSE_PROTOCOL_HTTP 1
20183 EOF
20184
20185 fi
20186 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
20187 cat >> confdefs.h <<\EOF
20188 #define wxUSE_PROTOCOL_FTP 1
20189 EOF
20190
20191 fi
20192 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
20193 cat >> confdefs.h <<\EOF
20194 #define wxUSE_PROTOCOL_FILE 1
20195 EOF
20196
20197 fi
20198 fi
20199 fi
20200
20201 if test "$wxUSE_URL" = "yes"; then
20202 if test "$wxUSE_PROTOCOL" != "yes"; then
20203 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20204 wxUSE_URL=no
20205 fi
20206 if test "$wxUSE_URL" = "yes"; then
20207 cat >> confdefs.h <<\EOF
20208 #define wxUSE_URL 1
20209 EOF
20210
20211 fi
20212 fi
20213
20214 if test "$wxUSE_MINIFRAME" = "yes"; then
20215 cat >> confdefs.h <<\EOF
20216 #define wxUSE_MINIFRAME 1
20217 EOF
20218
20219 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20220 fi
20221
20222 if test "$wxUSE_HTML" = "yes"; then
20223 cat >> confdefs.h <<\EOF
20224 #define wxUSE_HTML 1
20225 EOF
20226
20227 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
20228 fi
20229
20230 if test "$wxUSE_VALIDATORS" = "yes"; then
20231 cat >> confdefs.h <<\EOF
20232 #define wxUSE_VALIDATORS 1
20233 EOF
20234
20235 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20236 fi
20237
20238 if test "$wxUSE_PALETTE" = "yes" ; then
20239 cat >> confdefs.h <<\EOF
20240 #define wxUSE_PALETTE 1
20241 EOF
20242
20243 fi
20244
20245 if test "$wxUSE_IMAGE" = "yes" ; then
20246 cat >> confdefs.h <<\EOF
20247 #define wxUSE_IMAGE 1
20248 EOF
20249
20250 fi
20251
20252 if test "$wxUSE_GIF" = "yes" ; then
20253 cat >> confdefs.h <<\EOF
20254 #define wxUSE_GIF 1
20255 EOF
20256
20257 fi
20258
20259 if test "$wxUSE_PCX" = "yes" ; then
20260 cat >> confdefs.h <<\EOF
20261 #define wxUSE_PCX 1
20262 EOF
20263
20264 fi
20265
20266 if test "$wxUSE_IFF" = "yes" ; then
20267 cat >> confdefs.h <<\EOF
20268 #define wxUSE_IFF 1
20269 EOF
20270
20271 fi
20272
20273 if test "$wxUSE_PNM" = "yes" ; then
20274 cat >> confdefs.h <<\EOF
20275 #define wxUSE_PNM 1
20276 EOF
20277
20278 fi
20279
20280 if test "$wxUSE_XPM" = "yes" ; then
20281 cat >> confdefs.h <<\EOF
20282 #define wxUSE_XPM 1
20283 EOF
20284
20285 fi
20286
20287 if test "$wxUSE_ICO_CUR" = "yes" ; then
20288 cat >> confdefs.h <<\EOF
20289 #define wxUSE_ICO_CUR 1
20290 EOF
20291
20292 fi
20293
20294 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20295 LIBS=" -lunicows $LIBS"
20296 fi
20297
20298
20299 if test "$wxUSE_CHOICEDLG" = "yes"; then
20300 cat >> confdefs.h <<\EOF
20301 #define wxUSE_CHOICEDLG 1
20302 EOF
20303
20304 fi
20305
20306 if test "$wxUSE_COLOURDLG" = "yes"; then
20307 cat >> confdefs.h <<\EOF
20308 #define wxUSE_COLOURDLG 1
20309 EOF
20310
20311 fi
20312
20313 if test "$wxUSE_FILEDLG" = "yes"; then
20314 cat >> confdefs.h <<\EOF
20315 #define wxUSE_FILEDLG 1
20316 EOF
20317
20318 fi
20319
20320 if test "$wxUSE_FINDREPLDLG" = "yes"; then
20321 cat >> confdefs.h <<\EOF
20322 #define wxUSE_FINDREPLDLG 1
20323 EOF
20324
20325 fi
20326
20327 if test "$wxUSE_FONTDLG" = "yes"; then
20328 cat >> confdefs.h <<\EOF
20329 #define wxUSE_FONTDLG 1
20330 EOF
20331
20332 fi
20333
20334 if test "$wxUSE_DIRDLG" = "yes"; then
20335 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20336 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
20337 else
20338 if test "$wxUSE_TREECTRL" != "yes"; then
20339 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
20340 else
20341 cat >> confdefs.h <<\EOF
20342 #define wxUSE_DIRDLG 1
20343 EOF
20344
20345 fi
20346 fi
20347 fi
20348
20349 if test "$wxUSE_MSGDLG" = "yes"; then
20350 cat >> confdefs.h <<\EOF
20351 #define wxUSE_MSGDLG 1
20352 EOF
20353
20354 fi
20355
20356 if test "$wxUSE_NUMBERDLG" = "yes"; then
20357 cat >> confdefs.h <<\EOF
20358 #define wxUSE_NUMBERDLG 1
20359 EOF
20360
20361 fi
20362
20363 if test "$wxUSE_PROGRESSDLG" = "yes"; then
20364 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20365 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20366 else
20367 cat >> confdefs.h <<\EOF
20368 #define wxUSE_PROGRESSDLG 1
20369 EOF
20370
20371 fi
20372 fi
20373
20374 if test "$wxUSE_SPLASH" = "yes"; then
20375 cat >> confdefs.h <<\EOF
20376 #define wxUSE_SPLASH 1
20377 EOF
20378
20379 fi
20380
20381 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20382 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20383 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20384 else
20385 cat >> confdefs.h <<\EOF
20386 #define wxUSE_STARTUP_TIPS 1
20387 EOF
20388
20389 fi
20390 fi
20391
20392 if test "$wxUSE_TEXTDLG" = "yes"; then
20393 cat >> confdefs.h <<\EOF
20394 #define wxUSE_TEXTDLG 1
20395 EOF
20396
20397 fi
20398
20399 if test "$wxUSE_WIZARDDLG" = "yes"; then
20400 cat >> confdefs.h <<\EOF
20401 #define wxUSE_WIZARDDLG 1
20402 EOF
20403
20404 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20405 fi
20406
20407
20408 if test "$cross_compiling" = "yes"; then
20409 OSINFO="\"$host\""
20410 else
20411 OSINFO=`uname -s -r -m`
20412 OSINFO="\"$OSINFO\""
20413 fi
20414
20415 cat >> confdefs.h <<EOF
20416 #define WXWIN_OS_DESCRIPTION $OSINFO
20417 EOF
20418
20419
20420
20421 if test "x$prefix" != "xNONE"; then
20422 wxPREFIX=$prefix
20423 else
20424 wxPREFIX=$ac_default_prefix
20425 fi
20426
20427 cat >> confdefs.h <<EOF
20428 #define wxINSTALL_PREFIX "$wxPREFIX"
20429 EOF
20430
20431
20432
20433
20434
20435 if test "$wxUSE_MAC" = 1 ; then
20436 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
20437 fi
20438
20439
20440 LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS"
20441
20442 if test "$wxUSE_GUI" = "yes"; then
20443
20444 LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS"
20445
20446
20447 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
20448 drawing dynamic erase event exec font image \
20449 minimal richedit rotate widgets"
20450
20451 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20452 else
20453 SAMPLES_SUBDIRS="console"
20454 fi
20455
20456
20457 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
20458 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
20459 $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
20460
20461 if test "$wxUSE_GTK" = 1; then
20462 WXCONFIG_INCLUDE=
20463 else
20464 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20465 fi
20466
20467 if test "$GXX" = yes ; then
20468 CXXWARNINGS="-Wall"
20469
20470 if test "$wxUSE_NO_DEPS" = "no" ; then
20471 CFLAGS="-MMD $CFLAGS"
20472 CXXFLAGS="-MMD $CXXFLAGS"
20473 fi
20474 fi
20475
20476 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
20477
20478 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20479 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
20480
20481 LDFLAGS="$LDFLAGS$PROFILE"
20482
20483 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
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 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
20572 echo "configure:20573: checking whether ${MAKE-make} sets \${MAKE}" >&5
20573 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20574 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20575 echo $ac_n "(cached) $ac_c" 1>&6
20576 else
20577 cat > conftestmake <<\EOF
20578 all:
20579 @echo 'ac_maketemp="${MAKE}"'
20580 EOF
20581 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20582 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
20583 if test -n "$ac_maketemp"; then
20584 eval ac_cv_prog_make_${ac_make}_set=yes
20585 else
20586 eval ac_cv_prog_make_${ac_make}_set=no
20587 fi
20588 rm -f conftestmake
20589 fi
20590 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20591 echo "$ac_t""yes" 1>&6
20592 SET_MAKE=
20593 else
20594 echo "$ac_t""no" 1>&6
20595 SET_MAKE="MAKE=${MAKE-make}"
20596 fi
20597
20598
20599 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
20600 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
20601 fi
20602
20603
20604
20605 if test "$wxUSE_GUI" = "yes"; then
20606 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
20607 wx_cv_if_gnu_make=$IF_GNU_MAKE
20608 wx_cv_path_ifs=$PATH_IFS
20609 wx_cv_program_ext=$PROGRAM_EXT
20610 wx_cv_target_library=$WX_TARGET_LIBRARY
20611 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
20612 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
20613 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
20614 wx_cv_path_ifs wx_cv_program_ext \
20615 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
20616 subdirs="demos samples utils contrib"
20617
20618 fi
20619
20620 trap '' 1 2 15
20621 cat > confcache <<\EOF
20622 # This file is a shell script that caches the results of configure
20623 # tests run on this system so they can be shared between configure
20624 # scripts and configure runs. It is not useful on other systems.
20625 # If it contains results you don't want to keep, you may remove or edit it.
20626 #
20627 # By default, configure uses ./config.cache as the cache file,
20628 # creating it if it does not exist already. You can give configure
20629 # the --cache-file=FILE option to use a different cache file; that is
20630 # what configure does when it calls configure scripts in
20631 # subdirectories, so they share the cache.
20632 # Giving --cache-file=/dev/null disables caching, for debugging configure.
20633 # config.status only pays attention to the cache file if you give it the
20634 # --recheck option to rerun configure.
20635 #
20636 EOF
20637 # The following way of writing the cache mishandles newlines in values,
20638 # but we know of no workaround that is simple, portable, and efficient.
20639 # So, don't put newlines in cache variables' values.
20640 # Ultrix sh set writes to stderr and can't be redirected directly,
20641 # and sets the high bit in the cache file unless we assign to the vars.
20642 (set) 2>&1 |
20643 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20644 *ac_space=\ *)
20645 # `set' does not quote correctly, so add quotes (double-quote substitution
20646 # turns \\\\ into \\, and sed turns \\ into \).
20647 sed -n \
20648 -e "s/'/'\\\\''/g" \
20649 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20650 ;;
20651 *)
20652 # `set' quotes correctly as required by POSIX, so do not add quotes.
20653 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20654 ;;
20655 esac >> confcache
20656 if cmp -s $cache_file confcache; then
20657 :
20658 else
20659 if test -w $cache_file; then
20660 echo "updating cache $cache_file"
20661 cat confcache > $cache_file
20662 else
20663 echo "not updating unwritable cache $cache_file"
20664 fi
20665 fi
20666 rm -f confcache
20667
20668 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20669
20670 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20671 # Let make expand exec_prefix.
20672 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20673
20674 # Any assignment to VPATH causes Sun make to only execute
20675 # the first set of double-colon rules, so remove it if not needed.
20676 # If there is a colon in the path, we need to keep it.
20677 if test "x$srcdir" = x.; then
20678 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
20679 fi
20680
20681 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20682
20683 DEFS=-DHAVE_CONFIG_H
20684
20685 # Without the "./", some shells look in PATH for config.status.
20686 : ${CONFIG_STATUS=./config.status}
20687
20688 echo creating $CONFIG_STATUS
20689 rm -f $CONFIG_STATUS
20690 cat > $CONFIG_STATUS <<EOF
20691 #! /bin/sh
20692 # Generated automatically by configure.
20693 # Run this file to recreate the current configuration.
20694 # This directory was configured as follows,
20695 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20696 #
20697 # $0 $ac_configure_args
20698 #
20699 # Compiler output produced by configure, useful for debugging
20700 # configure, is in ./config.log if it exists.
20701
20702 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20703 for ac_option
20704 do
20705 case "\$ac_option" in
20706 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20707 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
20708 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
20709 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
20710 echo "$CONFIG_STATUS generated by autoconf version 2.13"
20711 exit 0 ;;
20712 -help | --help | --hel | --he | --h)
20713 echo "\$ac_cs_usage"; exit 0 ;;
20714 *) echo "\$ac_cs_usage"; exit 1 ;;
20715 esac
20716 done
20717
20718 ac_given_srcdir=$srcdir
20719 ac_given_INSTALL="$INSTALL"
20720
20721 trap 'rm -fr `echo "
20722 wx-config
20723 src/make.env
20724 src/makeprog.env
20725 src/makelib.env
20726 Makefile
20727 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
20728 EOF
20729 cat >> $CONFIG_STATUS <<EOF
20730
20731 # Protect against being on the right side of a sed subst in config.status.
20732 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
20733 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
20734 $ac_vpsub
20735 $extrasub
20736 s%@SHELL@%$SHELL%g
20737 s%@CFLAGS@%$CFLAGS%g
20738 s%@CPPFLAGS@%$CPPFLAGS%g
20739 s%@CXXFLAGS@%$CXXFLAGS%g
20740 s%@FFLAGS@%$FFLAGS%g
20741 s%@DEFS@%$DEFS%g
20742 s%@LDFLAGS@%$LDFLAGS%g
20743 s%@LIBS@%$LIBS%g
20744 s%@exec_prefix@%$exec_prefix%g
20745 s%@prefix@%$prefix%g
20746 s%@program_transform_name@%$program_transform_name%g
20747 s%@bindir@%$bindir%g
20748 s%@sbindir@%$sbindir%g
20749 s%@libexecdir@%$libexecdir%g
20750 s%@datadir@%$datadir%g
20751 s%@sysconfdir@%$sysconfdir%g
20752 s%@sharedstatedir@%$sharedstatedir%g
20753 s%@localstatedir@%$localstatedir%g
20754 s%@libdir@%$libdir%g
20755 s%@includedir@%$includedir%g
20756 s%@oldincludedir@%$oldincludedir%g
20757 s%@infodir@%$infodir%g
20758 s%@mandir@%$mandir%g
20759 s%@host@%$host%g
20760 s%@host_alias@%$host_alias%g
20761 s%@host_cpu@%$host_cpu%g
20762 s%@host_vendor@%$host_vendor%g
20763 s%@host_os@%$host_os%g
20764 s%@target@%$target%g
20765 s%@target_alias@%$target_alias%g
20766 s%@target_cpu@%$target_cpu%g
20767 s%@target_vendor@%$target_vendor%g
20768 s%@target_os@%$target_os%g
20769 s%@build@%$build%g
20770 s%@build_alias@%$build_alias%g
20771 s%@build_cpu@%$build_cpu%g
20772 s%@build_vendor@%$build_vendor%g
20773 s%@build_os@%$build_os%g
20774 s%@CC@%$CC%g
20775 s%@CPP@%$CPP%g
20776 s%@CXX@%$CXX%g
20777 s%@RANLIB@%$RANLIB%g
20778 s%@AR@%$AR%g
20779 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
20780 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
20781 s%@INSTALL_DATA@%$INSTALL_DATA%g
20782 s%@STRIP@%$STRIP%g
20783 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
20784 s%@YACC@%$YACC%g
20785 s%@LEX@%$LEX%g
20786 s%@LEXLIB@%$LEXLIB%g
20787 s%@LN_S@%$LN_S%g
20788 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
20789 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
20790 s%@GTK_LIBS@%$GTK_LIBS%g
20791 s%@GTK_CONFIG@%$GTK_CONFIG%g
20792 s%@X_CFLAGS@%$X_CFLAGS%g
20793 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
20794 s%@X_LIBS@%$X_LIBS%g
20795 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
20796 s%@RESCOMP@%$RESCOMP%g
20797 s%@DEREZ@%$DEREZ%g
20798 s%@CXXCPP@%$CXXCPP%g
20799 s%@LIBICONV@%$LIBICONV%g
20800 s%@LEX_STEM@%$LEX_STEM%g
20801 s%@PATH_IFS@%$PATH_IFS%g
20802 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
20803 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
20804 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
20805 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
20806 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
20807 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
20808 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
20809 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
20810 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
20811 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
20812 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
20813 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
20814 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
20815 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
20816 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
20817 s%@WX_ALL@%$WX_ALL%g
20818 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
20819 s%@SHARED_LD@%$SHARED_LD%g
20820 s%@PIC_FLAG@%$PIC_FLAG%g
20821 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
20822 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
20823 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
20824 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
20825 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
20826 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
20827 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
20828 s%@USE_GUI@%$USE_GUI%g
20829 s%@AFMINSTALL@%$AFMINSTALL%g
20830 s%@TOOLKIT@%$TOOLKIT%g
20831 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
20832 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
20833 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
20834 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
20835 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
20836 s%@cross_compiling@%$cross_compiling%g
20837 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
20838 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
20839 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
20840 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
20841 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
20842 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
20843 s%@ALL_HEADERS@%$ALL_HEADERS%g
20844 s%@ALL_SOURCES@%$ALL_SOURCES%g
20845 s%@GUIDIST@%$GUIDIST%g
20846 s%@PORT_FILES@%$PORT_FILES%g
20847 s%@DISTDIR@%$DISTDIR%g
20848 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
20849 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
20850 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
20851 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
20852 s%@EXTRADEFS@%$EXTRADEFS%g
20853 s%@RESFLAGS@%$RESFLAGS%g
20854 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
20855 s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
20856 s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
20857 s%@LIBWXMACRES@%$LIBWXMACRES%g
20858 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
20859 s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
20860 s%@DLLTOOL@%$DLLTOOL%g
20861 s%@AS@%$AS%g
20862 s%@NM@%$NM%g
20863 s%@LD@%$LD%g
20864 s%@MAKEINFO@%$MAKEINFO%g
20865 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
20866 s%@SET_MAKE@%$SET_MAKE%g
20867 s%@subdirs@%$subdirs%g
20868
20869 CEOF
20870 EOF
20871
20872 cat >> $CONFIG_STATUS <<\EOF
20873
20874 # Split the substitutions into bite-sized pieces for seds with
20875 # small command number limits, like on Digital OSF/1 and HP-UX.
20876 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
20877 ac_file=1 # Number of current file.
20878 ac_beg=1 # First line for current file.
20879 ac_end=$ac_max_sed_cmds # Line after last line for current file.
20880 ac_more_lines=:
20881 ac_sed_cmds=""
20882 while $ac_more_lines; do
20883 if test $ac_beg -gt 1; then
20884 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
20885 else
20886 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
20887 fi
20888 if test ! -s conftest.s$ac_file; then
20889 ac_more_lines=false
20890 rm -f conftest.s$ac_file
20891 else
20892 if test -z "$ac_sed_cmds"; then
20893 ac_sed_cmds="sed -f conftest.s$ac_file"
20894 else
20895 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
20896 fi
20897 ac_file=`expr $ac_file + 1`
20898 ac_beg=$ac_end
20899 ac_end=`expr $ac_end + $ac_max_sed_cmds`
20900 fi
20901 done
20902 if test -z "$ac_sed_cmds"; then
20903 ac_sed_cmds=cat
20904 fi
20905 EOF
20906
20907 cat >> $CONFIG_STATUS <<EOF
20908
20909 CONFIG_FILES=\${CONFIG_FILES-"wx-config
20910 src/make.env
20911 src/makeprog.env
20912 src/makelib.env
20913 Makefile
20914 "}
20915 EOF
20916 cat >> $CONFIG_STATUS <<\EOF
20917 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
20918 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20919 case "$ac_file" in
20920 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20921 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20922 *) ac_file_in="${ac_file}.in" ;;
20923 esac
20924
20925 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
20926
20927 # Remove last slash and all that follows it. Not all systems have dirname.
20928 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20929 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20930 # The file is in a subdirectory.
20931 test ! -d "$ac_dir" && mkdir "$ac_dir"
20932 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
20933 # A "../" for each directory in $ac_dir_suffix.
20934 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
20935 else
20936 ac_dir_suffix= ac_dots=
20937 fi
20938
20939 case "$ac_given_srcdir" in
20940 .) srcdir=.
20941 if test -z "$ac_dots"; then top_srcdir=.
20942 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
20943 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
20944 *) # Relative path.
20945 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
20946 top_srcdir="$ac_dots$ac_given_srcdir" ;;
20947 esac
20948
20949 case "$ac_given_INSTALL" in
20950 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20951 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
20952 esac
20953
20954 echo creating "$ac_file"
20955 rm -f "$ac_file"
20956 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
20957 case "$ac_file" in
20958 *Makefile*) ac_comsub="1i\\
20959 # $configure_input" ;;
20960 *) ac_comsub= ;;
20961 esac
20962
20963 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20964 sed -e "$ac_comsub
20965 s%@configure_input@%$configure_input%g
20966 s%@srcdir@%$srcdir%g
20967 s%@top_srcdir@%$top_srcdir%g
20968 s%@INSTALL@%$INSTALL%g
20969 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
20970 fi; done
20971 rm -f conftest.s*
20972
20973 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20974 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20975 #
20976 # ac_d sets the value in "#define NAME VALUE" lines.
20977 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20978 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
20979 ac_dC='\3'
20980 ac_dD='%g'
20981 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20982 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20983 ac_uB='\([ ]\)%\1#\2define\3'
20984 ac_uC=' '
20985 ac_uD='\4%g'
20986 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20987 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20988 ac_eB='$%\1#\2define\3'
20989 ac_eC=' '
20990 ac_eD='%g'
20991
20992 if test "${CONFIG_HEADERS+set}" != set; then
20993 EOF
20994 cat >> $CONFIG_STATUS <<EOF
20995 CONFIG_HEADERS="setup.h:setup.h.in"
20996 EOF
20997 cat >> $CONFIG_STATUS <<\EOF
20998 fi
20999 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
21000 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21001 case "$ac_file" in
21002 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21003 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21004 *) ac_file_in="${ac_file}.in" ;;
21005 esac
21006
21007 echo creating $ac_file
21008
21009 rm -f conftest.frag conftest.in conftest.out
21010 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21011 cat $ac_file_inputs > conftest.in
21012
21013 EOF
21014
21015 # Transform confdefs.h into a sed script conftest.vals that substitutes
21016 # the proper values into config.h.in to produce config.h. And first:
21017 # Protect against being on the right side of a sed subst in config.status.
21018 # Protect against being in an unquoted here document in config.status.
21019 rm -f conftest.vals
21020 cat > conftest.hdr <<\EOF
21021 s/[\\&%]/\\&/g
21022 s%[\\$`]%\\&%g
21023 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21024 s%ac_d%ac_u%gp
21025 s%ac_u%ac_e%gp
21026 EOF
21027 sed -n -f conftest.hdr confdefs.h > conftest.vals
21028 rm -f conftest.hdr
21029
21030 # This sed command replaces #undef with comments. This is necessary, for
21031 # example, in the case of _POSIX_SOURCE, which is predefined and required
21032 # on some systems where configure will not decide to define it.
21033 cat >> conftest.vals <<\EOF
21034 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
21035 EOF
21036
21037 # Break up conftest.vals because some shells have a limit on
21038 # the size of here documents, and old seds have small limits too.
21039
21040 rm -f conftest.tail
21041 while :
21042 do
21043 ac_lines=`grep -c . conftest.vals`
21044 # grep -c gives empty output for an empty file on some AIX systems.
21045 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21046 # Write a limited-size here document to conftest.frag.
21047 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21048 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
21049 echo 'CEOF
21050 sed -f conftest.frag conftest.in > conftest.out
21051 rm -f conftest.in
21052 mv conftest.out conftest.in
21053 ' >> $CONFIG_STATUS
21054 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21055 rm -f conftest.vals
21056 mv conftest.tail conftest.vals
21057 done
21058 rm -f conftest.vals
21059
21060 cat >> $CONFIG_STATUS <<\EOF
21061 rm -f conftest.frag conftest.h
21062 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
21063 cat conftest.in >> conftest.h
21064 rm -f conftest.in
21065 if cmp -s $ac_file conftest.h 2>/dev/null; then
21066 echo "$ac_file is unchanged"
21067 rm -f conftest.h
21068 else
21069 # Remove last slash and all that follows it. Not all systems have dirname.
21070 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21071 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21072 # The file is in a subdirectory.
21073 test ! -d "$ac_dir" && mkdir "$ac_dir"
21074 fi
21075 rm -f $ac_file
21076 mv conftest.h $ac_file
21077 fi
21078 fi; done
21079
21080 EOF
21081 cat >> $CONFIG_STATUS <<EOF
21082
21083 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
21084 LN_S="${LN_S}"
21085
21086
21087 EOF
21088 cat >> $CONFIG_STATUS <<\EOF
21089
21090 if test ! -h wx-config; then
21091 chmod +x wx-config
21092 mv wx-config wx${TOOLCHAIN_NAME}-config
21093 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
21094 fi
21095
21096 if test ! -d lib; then
21097 mkdir lib
21098 fi
21099 if test ! -d lib/wx; then
21100 mkdir lib/wx
21101 fi
21102 if test ! -d lib/wx/include; then
21103 mkdir lib/wx/include
21104 fi
21105 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21106 mkdir lib/wx/include/${TOOLCHAIN_NAME}
21107 fi
21108 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21109 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
21110 fi
21111 if test -f setup.h; then
21112 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
21113 fi
21114
21115 exit 0
21116 EOF
21117 chmod +x $CONFIG_STATUS
21118 rm -fr confdefs* $ac_clean_files
21119 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
21120
21121 if test "$no_recursion" != yes; then
21122
21123 # Remove --cache-file and --srcdir arguments so they do not pile up.
21124 ac_sub_configure_args=
21125 ac_prev=
21126 for ac_arg in $ac_configure_args; do
21127 if test -n "$ac_prev"; then
21128 ac_prev=
21129 continue
21130 fi
21131 case "$ac_arg" in
21132 -cache-file | --cache-file | --cache-fil | --cache-fi \
21133 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21134 ac_prev=cache_file ;;
21135 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21136 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
21137 ;;
21138 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21139 ac_prev=srcdir ;;
21140 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21141 ;;
21142 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21143 esac
21144 done
21145
21146 for ac_config_dir in demos samples utils contrib; do
21147
21148 # Do not complain, so a configure script can configure whichever
21149 # parts of a large source tree are present.
21150 if test ! -d $srcdir/$ac_config_dir; then
21151 continue
21152 fi
21153
21154 echo configuring in $ac_config_dir
21155
21156 case "$srcdir" in
21157 .) ;;
21158 *)
21159 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21160 else
21161 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21162 fi
21163 ;;
21164 esac
21165
21166 ac_popdir=`pwd`
21167 cd $ac_config_dir
21168
21169 # A "../" for each directory in /$ac_config_dir.
21170 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
21171
21172 case "$srcdir" in
21173 .) # No --srcdir option. We are building in place.
21174 ac_sub_srcdir=$srcdir ;;
21175 /*) # Absolute path.
21176 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
21177 *) # Relative path.
21178 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
21179 esac
21180
21181 # Check for guested configure; otherwise get Cygnus style configure.
21182 if test -f $ac_sub_srcdir/configure; then
21183 ac_sub_configure=$ac_sub_srcdir/configure
21184 elif test -f $ac_sub_srcdir/configure.in; then
21185 ac_sub_configure=$ac_configure
21186 else
21187 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
21188 ac_sub_configure=
21189 fi
21190
21191 # The recursion is here.
21192 if test -n "$ac_sub_configure"; then
21193
21194 # Make the cache file name correct relative to the subdirectory.
21195 case "$cache_file" in
21196 /*) ac_sub_cache_file=$cache_file ;;
21197 *) # Relative path.
21198 ac_sub_cache_file="$ac_dots$cache_file" ;;
21199 esac
21200 case "$ac_given_INSTALL" in
21201 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21202 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21203 esac
21204
21205 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
21206 # The eval makes quoting arguments work.
21207 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21208 then :
21209 else
21210 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21211 fi
21212 fi
21213
21214 cd $ac_popdir
21215 done
21216 fi
21217
21218