]> git.saurik.com Git - wxWidgets.git/blob - configure
regenerated from .in
[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 # Guess values for system-dependent variables and create Makefiles.
45 # Generated automatically using autoconf version 2.13
46 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
47 #
48 # This configure script is free software; the Free Software Foundation
49 # gives unlimited permission to copy, distribute and modify it.
50
51 # Defaults:
52 ac_help=
53 ac_default_prefix=/usr/local
54 # Any additions from configure.in:
55 ac_help="$ac_help
56 --enable-gui use GUI classes"
57 ac_help="$ac_help
58 --enable-universal use wxWindows GUI controls instead of native ones"
59 ac_help="$ac_help
60 --with-gtk use GTK+"
61 ac_help="$ac_help
62 --with-motif use Motif/Lesstif"
63 ac_help="$ac_help
64 --with-mac use Mac OS X"
65 ac_help="$ac_help
66 --with-wine use WINE"
67 ac_help="$ac_help
68 --with-msw use MS-Windows"
69 ac_help="$ac_help
70 --with-pm use OS/2 Presentation Manager"
71 ac_help="$ac_help
72 --with-mgl use SciTech MGL"
73 ac_help="$ac_help
74 --with-microwin use MicroWindows"
75 ac_help="$ac_help
76 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
77 ac_help="$ac_help
78 --with-libpng use libpng (PNG image format)"
79 ac_help="$ac_help
80 --with-libjpeg use libjpeg (JPEG file format)"
81 ac_help="$ac_help
82 --with-libtiff use libtiff (TIFF file format)"
83 ac_help="$ac_help
84 --with-freetype use freetype (font rasterizer)"
85 ac_help="$ac_help
86 --with-opengl use OpenGL (or Mesa)"
87 ac_help="$ac_help
88 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
89 ac_help="$ac_help
90 --with-regex enable support for wxRegEx class"
91 ac_help="$ac_help
92 --with-zlib use zlib for LZW compression"
93 ac_help="$ac_help
94 --with-odbc use the IODBC and wxODBC classes"
95 ac_help="$ac_help
96 --enable-shared create shared library code"
97 ac_help="$ac_help
98 --enable-soname set the DT_SONAME field in ELF shared libraries"
99 ac_help="$ac_help
100 --enable-optimise create optimised code"
101 ac_help="$ac_help
102 --enable-debug same as debug_flag and debug_info"
103 ac_help="$ac_help
104 --enable-precomp enable use of precompiled headers (Mac OS X)"
105 ac_help="$ac_help
106 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
107 ac_help="$ac_help
108 --enable-debug_info create code with debugging information"
109 ac_help="$ac_help
110 --enable-debug_gdb create code with extra GDB debugging information"
111 ac_help="$ac_help
112 --enable-debug_cntxt use wxDebugContext"
113 ac_help="$ac_help
114 --enable-mem_tracing create code with memory tracing"
115 ac_help="$ac_help
116 --enable-profile create code with profiling information"
117 ac_help="$ac_help
118 --enable-no_rtti create code without RTTI information"
119 ac_help="$ac_help
120 --enable-no_exceptions create code without C++ exceptions handling"
121 ac_help="$ac_help
122 --enable-permissive compile code disregarding strict ANSI"
123 ac_help="$ac_help
124 --enable-no_deps create code without dependency information"
125 ac_help="$ac_help
126 --enable-compat20 enable wxWindows 2.0 compatibility"
127 ac_help="$ac_help
128 --enable-compat22 enable wxWindows 2.2 compatibility"
129 ac_help="$ac_help
130 --enable-intl use internationalization system"
131 ac_help="$ac_help
132 --enable-config use wxConfig (and derived) classes"
133 ac_help="$ac_help
134 --enable-protocols use wxProtocol and derived classes"
135 ac_help="$ac_help
136 --enable-ftp use wxFTP (requires wxProtocol"
137 ac_help="$ac_help
138 --enable-http use wxHTTP (requires wxProtocol"
139 ac_help="$ac_help
140 --enable-fileproto use wxFileProto class (requires wxProtocol"
141 ac_help="$ac_help
142 --enable-sockets use socket/network classes"
143 ac_help="$ac_help
144 --enable-ipc use interprocess communication (wxSocket etc.)"
145 ac_help="$ac_help
146 --enable-cmdline use wxCmdLineParser class"
147 ac_help="$ac_help
148 --enable-datetime use wxDateTime class"
149 ac_help="$ac_help
150 --enable-timedate use obsolete wxDate/wxTime classes"
151 ac_help="$ac_help
152 --enable-stopwatch use wxStopWatch class"
153 ac_help="$ac_help
154 --enable-dialupman use dialup network classes"
155 ac_help="$ac_help
156 --enable-apple_ieee use the Apple IEEE codec"
157 ac_help="$ac_help
158 --enable-timer use wxTimer class"
159 ac_help="$ac_help
160 --enable-wave use wxWave class"
161 ac_help="$ac_help
162 --enable-fraction use wxFraction class"
163 ac_help="$ac_help
164 --enable-dynlib use wxLibrary class for DLL loading"
165 ac_help="$ac_help
166 --enable-dynamicloader use (new) wxDynamicLibrary class"
167 ac_help="$ac_help
168 --enable-longlong use wxLongLong class"
169 ac_help="$ac_help
170 --enable-geometry use geometry class"
171 ac_help="$ac_help
172 --enable-log use logging system"
173 ac_help="$ac_help
174 --enable-streams use wxStream etc classes"
175 ac_help="$ac_help
176 --enable-file use wxFile classes"
177 ac_help="$ac_help
178 --enable-ffile use wxFFile classes"
179 ac_help="$ac_help
180 --enable-textbuf use wxTextBuffer class"
181 ac_help="$ac_help
182 --enable-textfile use wxTextFile class"
183 ac_help="$ac_help
184 --enable-fontmap use font encodings conversion classes"
185 ac_help="$ac_help
186 --enable-unicode compile wxString with Unicode support"
187 ac_help="$ac_help
188 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
189 ac_help="$ac_help
190 --enable-wxprintfv use wxWindows implementation of vprintf()"
191 ac_help="$ac_help
192 --enable-std_iostreams use standard C++ stream classes"
193 ac_help="$ac_help
194 --enable-filesystem use virtual file systems classes"
195 ac_help="$ac_help
196 --enable-fs_inet use virtual HTTP/FTP filesystems"
197 ac_help="$ac_help
198 --enable-fs_zip use virtual ZIP filesystems"
199 ac_help="$ac_help
200 --enable-zipstream use wxZipInputStream"
201 ac_help="$ac_help
202 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
203 ac_help="$ac_help
204 --enable-snglinst use wxSingleInstanceChecker class"
205 ac_help="$ac_help
206 --enable-mimetype use wxMimeTypesManager"
207 ac_help="$ac_help
208 --enable-sysoptions use wxSystemOptions"
209 ac_help="$ac_help
210 --enable-threads use threads"
211 ac_help="$ac_help
212 --enable-docview use document view architecture"
213 ac_help="$ac_help
214 --enable-help use help subsystem"
215 ac_help="$ac_help
216 --enable-mshtmlhelp use MS HTML Help (win32)"
217 ac_help="$ac_help
218 --enable-html use wxHTML sub-library"
219 ac_help="$ac_help
220 --enable-htmlhelp use wxHTML-based help"
221 ac_help="$ac_help
222 --enable-constraints use layout-constraints system"
223 ac_help="$ac_help
224 --enable-printarch use printing architecture"
225 ac_help="$ac_help
226 --enable-mdi use multiple document interface architecture"
227 ac_help="$ac_help
228 --enable-loggui use standard GUI logger"
229 ac_help="$ac_help
230 --enable-logwin use wxLogWindow"
231 ac_help="$ac_help
232 --enable-logdialog use wxLogDialog"
233 ac_help="$ac_help
234 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
235 ac_help="$ac_help
236 --enable-prologio use Prolog IO library"
237 ac_help="$ac_help
238 --enable-resources use wxWindows resources"
239 ac_help="$ac_help
240 --enable-xresources use X resources for save (default for gtk+)"
241 ac_help="$ac_help
242 --enable-clipboard use wxClipboard classes"
243 ac_help="$ac_help
244 --enable-dnd use Drag'n'Drop classes"
245 ac_help="$ac_help
246 --enable-metafile use win32 metafiles"
247 ac_help="$ac_help
248 --enable-treelayout use wxTreeLayout classes"
249 ac_help="$ac_help
250 --enable-controls use all usual controls"
251 ac_help="$ac_help
252 --enable-accel use accelerators"
253 ac_help="$ac_help
254 --enable-button use wxButton class"
255 ac_help="$ac_help
256 --enable-bmpbutton use wxBitmapButton class"
257 ac_help="$ac_help
258 --enable-calendar use wxCalendarCtrl class"
259 ac_help="$ac_help
260 --enable-caret use wxCaret class"
261 ac_help="$ac_help
262 --enable-checkbox use wxCheckBox class"
263 ac_help="$ac_help
264 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
265 ac_help="$ac_help
266 --enable-choice use wxChoice class"
267 ac_help="$ac_help
268 --enable-combobox use wxComboBox classes"
269 ac_help="$ac_help
270 --enable-gauge use wxGauge class"
271 ac_help="$ac_help
272 --enable-grid use wxGrid class"
273 ac_help="$ac_help
274 --enable-newgrid use new wxGrid class"
275 ac_help="$ac_help
276 --enable-imaglist use wxImageList class"
277 ac_help="$ac_help
278 --enable-listbox use wxListBox class"
279 ac_help="$ac_help
280 --enable-listctrl use wxListCtrl class"
281 ac_help="$ac_help
282 --enable-notebook use wxNotebook class"
283 ac_help="$ac_help
284 --enable-propsheet use wxPropertySheet class"
285 ac_help="$ac_help
286 --enable-radiobox use wxRadioBox class"
287 ac_help="$ac_help
288 --enable-radiobtn use wxRadioButton class"
289 ac_help="$ac_help
290 --enable-sash use wxSashWindow class"
291 ac_help="$ac_help
292 --enable-scrollbar use wxScrollBar class and scrollable windows"
293 ac_help="$ac_help
294 --enable-slider use wxSlider class"
295 ac_help="$ac_help
296 --enable-spinbtn use wxSpinButton class"
297 ac_help="$ac_help
298 --enable-spinctrl use wxSpinCtrl class"
299 ac_help="$ac_help
300 --enable-splitter use wxSplitterWindow class"
301 ac_help="$ac_help
302 --enable-statbmp use wxStaticBitmap class"
303 ac_help="$ac_help
304 --enable-statbox use wxStaticBox class"
305 ac_help="$ac_help
306 --enable-statline use wxStaticLine class"
307 ac_help="$ac_help
308 --enable-stattext use wxStaticText class"
309 ac_help="$ac_help
310 --enable-statusbar use wxStatusBar class"
311 ac_help="$ac_help
312 --enable-tabdialog use wxTabControl class"
313 ac_help="$ac_help
314 --enable-textctrl use wxTextCtrl class"
315 ac_help="$ac_help
316 --enable-togglebtn use wxToggleButton class"
317 ac_help="$ac_help
318 --enable-toolbar use wxToolBar class"
319 ac_help="$ac_help
320 --enable-tbarnative use native wxToolBar class"
321 ac_help="$ac_help
322 --enable-tbarsmpl use wxToolBarSimple class"
323 ac_help="$ac_help
324 --enable-treectrl use wxTreeCtrl class"
325 ac_help="$ac_help
326 --enable-tipwindow use wxTipWindow class"
327 ac_help="$ac_help
328 --enable-popupwin use wxPopUpWindow class"
329 ac_help="$ac_help
330 --enable-commondlg use all common dialogs"
331 ac_help="$ac_help
332 --enable-choicedlg use wxChoiceDialog"
333 ac_help="$ac_help
334 --enable-coldlg use wxColourDialog"
335 ac_help="$ac_help
336 --enable-filedlg use wxFileDialog"
337 ac_help="$ac_help
338 --enable-finddlg use wxFindReplaceDialog"
339 ac_help="$ac_help
340 --enable-fontdlg use wxFontDialog"
341 ac_help="$ac_help
342 --enable-dirdlg use wxDirDialog"
343 ac_help="$ac_help
344 --enable-msgdlg use wxMessageDialog"
345 ac_help="$ac_help
346 --enable-numberdlg use wxNumberEntryDialog"
347 ac_help="$ac_help
348 --enable-splash use wxSplashScreen"
349 ac_help="$ac_help
350 --enable-textdlg use wxTextDialog"
351 ac_help="$ac_help
352 --enable-tipdlg use startup tips"
353 ac_help="$ac_help
354 --enable-progressdlg use wxProgressDialog"
355 ac_help="$ac_help
356 --enable-wizarddlg use wxWizard"
357 ac_help="$ac_help
358 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
359 ac_help="$ac_help
360 --enable-miniframe use wxMiniFrame class"
361 ac_help="$ac_help
362 --enable-tooltips use wxToolTip class"
363 ac_help="$ac_help
364 --enable-splines use spline drawing code"
365 ac_help="$ac_help
366 --enable-validators use wxValidator and derived classes"
367 ac_help="$ac_help
368 --enable-busyinfo use wxBusyInfo"
369 ac_help="$ac_help
370 --enable-joystick use wxJoystick (Linux only)"
371 ac_help="$ac_help
372 --enable-metafiles use wxMetaFile (Windows only)"
373 ac_help="$ac_help
374 --enable-dragimage use wxDragImage"
375 ac_help="$ac_help
376 --enable-palette use wxPalette class"
377 ac_help="$ac_help
378 --enable-image use wxImage class"
379 ac_help="$ac_help
380 --enable-gif use gif images (GIF file format)"
381 ac_help="$ac_help
382 --enable-pcx use pcx images (PCX file format)"
383 ac_help="$ac_help
384 --enable-pnm use pnm images (PNM file format)"
385 ac_help="$ac_help
386 --enable-xpm use xpm images (XPM file format)"
387 ac_help="$ac_help
388 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
389 ac_help="$ac_help
390 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
391 ac_help="$ac_help
392 --disable-gtktest Do not try to compile and run a test GTK program"
393 ac_help="$ac_help
394 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
395 ac_help="$ac_help
396 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
397 ac_help="$ac_help
398 --disable-gtktest Do not try to compile and run a test GTK program"
399 ac_help="$ac_help
400 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
401 ac_help="$ac_help
402 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
403 ac_help="$ac_help
404 --disable-gtktest Do not try to compile and run a test GTK program"
405 ac_help="$ac_help
406 --with-x use the X Window System"
407
408 # Initialize some variables set by options.
409 # The variables have the same names as the options, with
410 # dashes changed to underlines.
411 build=NONE
412 cache_file=./config.cache
413 exec_prefix=NONE
414 host=NONE
415 no_create=
416 nonopt=NONE
417 no_recursion=
418 prefix=NONE
419 program_prefix=NONE
420 program_suffix=NONE
421 program_transform_name=s,x,x,
422 silent=
423 site=
424 srcdir=
425 target=NONE
426 verbose=
427 x_includes=NONE
428 x_libraries=NONE
429 bindir='${exec_prefix}/bin'
430 sbindir='${exec_prefix}/sbin'
431 libexecdir='${exec_prefix}/libexec'
432 datadir='${prefix}/share'
433 sysconfdir='${prefix}/etc'
434 sharedstatedir='${prefix}/com'
435 localstatedir='${prefix}/var'
436 libdir='${exec_prefix}/lib'
437 includedir='${prefix}/include'
438 oldincludedir='/usr/include'
439 infodir='${prefix}/info'
440 mandir='${prefix}/man'
441
442 # Initialize some other variables.
443 subdirs=
444 MFLAGS= MAKEFLAGS=
445 SHELL=${CONFIG_SHELL-/bin/sh}
446 # Maximum number of lines to put in a shell here document.
447 ac_max_here_lines=12
448
449 ac_prev=
450 for ac_option
451 do
452
453 # If the previous option needs an argument, assign it.
454 if test -n "$ac_prev"; then
455 eval "$ac_prev=\$ac_option"
456 ac_prev=
457 continue
458 fi
459
460 case "$ac_option" in
461 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
462 *) ac_optarg= ;;
463 esac
464
465 # Accept the important Cygnus configure options, so we can diagnose typos.
466
467 case "$ac_option" in
468
469 -bindir | --bindir | --bindi | --bind | --bin | --bi)
470 ac_prev=bindir ;;
471 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
472 bindir="$ac_optarg" ;;
473
474 -build | --build | --buil | --bui | --bu)
475 ac_prev=build ;;
476 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
477 build="$ac_optarg" ;;
478
479 -cache-file | --cache-file | --cache-fil | --cache-fi \
480 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
481 ac_prev=cache_file ;;
482 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
483 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
484 cache_file="$ac_optarg" ;;
485
486 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
487 ac_prev=datadir ;;
488 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
489 | --da=*)
490 datadir="$ac_optarg" ;;
491
492 -disable-* | --disable-*)
493 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
494 # Reject names that are not valid shell variable names.
495 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
496 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
497 fi
498 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
499 eval "enable_${ac_feature}=no" ;;
500
501 -enable-* | --enable-*)
502 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
503 # Reject names that are not valid shell variable names.
504 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
505 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
506 fi
507 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
508 case "$ac_option" in
509 *=*) ;;
510 *) ac_optarg=yes ;;
511 esac
512 eval "enable_${ac_feature}='$ac_optarg'" ;;
513
514 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
515 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
516 | --exec | --exe | --ex)
517 ac_prev=exec_prefix ;;
518 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
519 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
520 | --exec=* | --exe=* | --ex=*)
521 exec_prefix="$ac_optarg" ;;
522
523 -gas | --gas | --ga | --g)
524 # Obsolete; use --with-gas.
525 with_gas=yes ;;
526
527 -help | --help | --hel | --he)
528 # Omit some internal or obsolete options to make the list less imposing.
529 # This message is too long to be a string in the A/UX 3.1 sh.
530 cat << EOF
531 Usage: configure [options] [host]
532 Options: [defaults in brackets after descriptions]
533 Configuration:
534 --cache-file=FILE cache test results in FILE
535 --help print this message
536 --no-create do not create output files
537 --quiet, --silent do not print \`checking...' messages
538 --version print the version of autoconf that created configure
539 Directory and file names:
540 --prefix=PREFIX install architecture-independent files in PREFIX
541 [$ac_default_prefix]
542 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
543 [same as prefix]
544 --bindir=DIR user executables in DIR [EPREFIX/bin]
545 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
546 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
547 --datadir=DIR read-only architecture-independent data in DIR
548 [PREFIX/share]
549 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
550 --sharedstatedir=DIR modifiable architecture-independent data in DIR
551 [PREFIX/com]
552 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
553 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
554 --includedir=DIR C header files in DIR [PREFIX/include]
555 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
556 --infodir=DIR info documentation in DIR [PREFIX/info]
557 --mandir=DIR man documentation in DIR [PREFIX/man]
558 --srcdir=DIR find the sources in DIR [configure dir or ..]
559 --program-prefix=PREFIX prepend PREFIX to installed program names
560 --program-suffix=SUFFIX append SUFFIX to installed program names
561 --program-transform-name=PROGRAM
562 run sed PROGRAM on installed program names
563 EOF
564 cat << EOF
565 Host type:
566 --build=BUILD configure for building on BUILD [BUILD=HOST]
567 --host=HOST configure for HOST [guessed]
568 --target=TARGET configure for TARGET [TARGET=HOST]
569 Features and packages:
570 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
571 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
572 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
573 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
574 --x-includes=DIR X include files are in DIR
575 --x-libraries=DIR X library files are in DIR
576 EOF
577 if test -n "$ac_help"; then
578 echo "--enable and --with options recognized:$ac_help"
579 fi
580 exit 0 ;;
581
582 -host | --host | --hos | --ho)
583 ac_prev=host ;;
584 -host=* | --host=* | --hos=* | --ho=*)
585 host="$ac_optarg" ;;
586
587 -includedir | --includedir | --includedi | --included | --include \
588 | --includ | --inclu | --incl | --inc)
589 ac_prev=includedir ;;
590 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
591 | --includ=* | --inclu=* | --incl=* | --inc=*)
592 includedir="$ac_optarg" ;;
593
594 -infodir | --infodir | --infodi | --infod | --info | --inf)
595 ac_prev=infodir ;;
596 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
597 infodir="$ac_optarg" ;;
598
599 -libdir | --libdir | --libdi | --libd)
600 ac_prev=libdir ;;
601 -libdir=* | --libdir=* | --libdi=* | --libd=*)
602 libdir="$ac_optarg" ;;
603
604 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
605 | --libexe | --libex | --libe)
606 ac_prev=libexecdir ;;
607 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
608 | --libexe=* | --libex=* | --libe=*)
609 libexecdir="$ac_optarg" ;;
610
611 -localstatedir | --localstatedir | --localstatedi | --localstated \
612 | --localstate | --localstat | --localsta | --localst \
613 | --locals | --local | --loca | --loc | --lo)
614 ac_prev=localstatedir ;;
615 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
616 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
617 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
618 localstatedir="$ac_optarg" ;;
619
620 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
621 ac_prev=mandir ;;
622 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
623 mandir="$ac_optarg" ;;
624
625 -nfp | --nfp | --nf)
626 # Obsolete; use --without-fp.
627 with_fp=no ;;
628
629 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
630 | --no-cr | --no-c)
631 no_create=yes ;;
632
633 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
634 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
635 no_recursion=yes ;;
636
637 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
638 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
639 | --oldin | --oldi | --old | --ol | --o)
640 ac_prev=oldincludedir ;;
641 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
642 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
643 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
644 oldincludedir="$ac_optarg" ;;
645
646 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
647 ac_prev=prefix ;;
648 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
649 prefix="$ac_optarg" ;;
650
651 -program-prefix | --program-prefix | --program-prefi | --program-pref \
652 | --program-pre | --program-pr | --program-p)
653 ac_prev=program_prefix ;;
654 -program-prefix=* | --program-prefix=* | --program-prefi=* \
655 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
656 program_prefix="$ac_optarg" ;;
657
658 -program-suffix | --program-suffix | --program-suffi | --program-suff \
659 | --program-suf | --program-su | --program-s)
660 ac_prev=program_suffix ;;
661 -program-suffix=* | --program-suffix=* | --program-suffi=* \
662 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
663 program_suffix="$ac_optarg" ;;
664
665 -program-transform-name | --program-transform-name \
666 | --program-transform-nam | --program-transform-na \
667 | --program-transform-n | --program-transform- \
668 | --program-transform | --program-transfor \
669 | --program-transfo | --program-transf \
670 | --program-trans | --program-tran \
671 | --progr-tra | --program-tr | --program-t)
672 ac_prev=program_transform_name ;;
673 -program-transform-name=* | --program-transform-name=* \
674 | --program-transform-nam=* | --program-transform-na=* \
675 | --program-transform-n=* | --program-transform-=* \
676 | --program-transform=* | --program-transfor=* \
677 | --program-transfo=* | --program-transf=* \
678 | --program-trans=* | --program-tran=* \
679 | --progr-tra=* | --program-tr=* | --program-t=*)
680 program_transform_name="$ac_optarg" ;;
681
682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
683 | -silent | --silent | --silen | --sile | --sil)
684 silent=yes ;;
685
686 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
687 ac_prev=sbindir ;;
688 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
689 | --sbi=* | --sb=*)
690 sbindir="$ac_optarg" ;;
691
692 -sharedstatedir | --sharedstatedir | --sharedstatedi \
693 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
694 | --sharedst | --shareds | --shared | --share | --shar \
695 | --sha | --sh)
696 ac_prev=sharedstatedir ;;
697 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
698 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
699 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
700 | --sha=* | --sh=*)
701 sharedstatedir="$ac_optarg" ;;
702
703 -site | --site | --sit)
704 ac_prev=site ;;
705 -site=* | --site=* | --sit=*)
706 site="$ac_optarg" ;;
707
708 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
709 ac_prev=srcdir ;;
710 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
711 srcdir="$ac_optarg" ;;
712
713 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
714 | --syscon | --sysco | --sysc | --sys | --sy)
715 ac_prev=sysconfdir ;;
716 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
717 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
718 sysconfdir="$ac_optarg" ;;
719
720 -target | --target | --targe | --targ | --tar | --ta | --t)
721 ac_prev=target ;;
722 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
723 target="$ac_optarg" ;;
724
725 -v | -verbose | --verbose | --verbos | --verbo | --verb)
726 verbose=yes ;;
727
728 -version | --version | --versio | --versi | --vers)
729 echo "configure generated by autoconf version 2.13"
730 exit 0 ;;
731
732 -with-* | --with-*)
733 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
734 # Reject names that are not valid shell variable names.
735 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
736 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
737 fi
738 ac_package=`echo $ac_package| sed 's/-/_/g'`
739 case "$ac_option" in
740 *=*) ;;
741 *) ac_optarg=yes ;;
742 esac
743 eval "with_${ac_package}='$ac_optarg'" ;;
744
745 -without-* | --without-*)
746 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
747 # Reject names that are not valid shell variable names.
748 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
749 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
750 fi
751 ac_package=`echo $ac_package| sed 's/-/_/g'`
752 eval "with_${ac_package}=no" ;;
753
754 --x)
755 # Obsolete; use --with-x.
756 with_x=yes ;;
757
758 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
759 | --x-incl | --x-inc | --x-in | --x-i)
760 ac_prev=x_includes ;;
761 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
762 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
763 x_includes="$ac_optarg" ;;
764
765 -x-libraries | --x-libraries | --x-librarie | --x-librari \
766 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
767 ac_prev=x_libraries ;;
768 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
769 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
770 x_libraries="$ac_optarg" ;;
771
772 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
773 ;;
774
775 *)
776 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
777 echo "configure: warning: $ac_option: invalid host type" 1>&2
778 fi
779 if test "x$nonopt" != xNONE; then
780 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
781 fi
782 nonopt="$ac_option"
783 ;;
784
785 esac
786 done
787
788 if test -n "$ac_prev"; then
789 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
790 fi
791
792 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
793
794 # File descriptor usage:
795 # 0 standard input
796 # 1 file creation
797 # 2 errors and warnings
798 # 3 some systems may open it to /dev/tty
799 # 4 used on the Kubota Titan
800 # 6 checking for... messages and results
801 # 5 compiler messages saved in config.log
802 if test "$silent" = yes; then
803 exec 6>/dev/null
804 else
805 exec 6>&1
806 fi
807 exec 5>./config.log
808
809 echo "\
810 This file contains any messages produced by compilers while
811 running configure, to aid debugging if configure makes a mistake.
812 " 1>&5
813
814 # Strip out --no-create and --no-recursion so they do not pile up.
815 # Also quote any args containing shell metacharacters.
816 ac_configure_args=
817 for ac_arg
818 do
819 case "$ac_arg" in
820 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
821 | --no-cr | --no-c) ;;
822 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
823 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
824 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
825 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
826 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
827 esac
828 done
829
830 # NLS nuisances.
831 # Only set these to C if already set. These must not be set unconditionally
832 # because not all systems understand e.g. LANG=C (notably SCO).
833 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
834 # Non-C LC_CTYPE values break the ctype check.
835 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
836 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
837 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
838 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
839
840 # confdefs.h avoids OS command line length limits that DEFS can exceed.
841 rm -rf conftest* confdefs.h
842 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
843 echo > confdefs.h
844
845 # A filename unique to this package, relative to the directory that
846 # configure is in, which we can look for to find out if srcdir is correct.
847 ac_unique_file=wx-config.in
848
849 # Find the source files, if location was not specified.
850 if test -z "$srcdir"; then
851 ac_srcdir_defaulted=yes
852 # Try the directory containing this script, then its parent.
853 ac_prog=$0
854 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
855 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
856 srcdir=$ac_confdir
857 if test ! -r $srcdir/$ac_unique_file; then
858 srcdir=..
859 fi
860 else
861 ac_srcdir_defaulted=no
862 fi
863 if test ! -r $srcdir/$ac_unique_file; then
864 if test "$ac_srcdir_defaulted" = yes; then
865 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
866 else
867 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
868 fi
869 fi
870 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
871
872 # Prefer explicitly selected file to automatically selected ones.
873 if test -z "$CONFIG_SITE"; then
874 if test "x$prefix" != xNONE; then
875 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
876 else
877 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
878 fi
879 fi
880 for ac_site_file in $CONFIG_SITE; do
881 if test -r "$ac_site_file"; then
882 echo "loading site script $ac_site_file"
883 . "$ac_site_file"
884 fi
885 done
886
887 if test -r "$cache_file"; then
888 echo "loading cache $cache_file"
889 . $cache_file
890 else
891 echo "creating cache $cache_file"
892 > $cache_file
893 fi
894
895 ac_ext=c
896 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
897 ac_cpp='$CPP $CPPFLAGS'
898 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
899 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
900 cross_compiling=$ac_cv_prog_cc_cross
901
902 ac_exeext=
903 ac_objext=o
904 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
905 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
906 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
907 ac_n= ac_c='
908 ' ac_t=' '
909 else
910 ac_n=-n ac_c= ac_t=
911 fi
912 else
913 ac_n= ac_c='\c' ac_t=
914 fi
915
916
917
918 ac_aux_dir=
919 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
920 if test -f $ac_dir/install-sh; then
921 ac_aux_dir=$ac_dir
922 ac_install_sh="$ac_aux_dir/install-sh -c"
923 break
924 elif test -f $ac_dir/install.sh; then
925 ac_aux_dir=$ac_dir
926 ac_install_sh="$ac_aux_dir/install.sh -c"
927 break
928 fi
929 done
930 if test -z "$ac_aux_dir"; then
931 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
932 fi
933 ac_config_guess=$ac_aux_dir/config.guess
934 ac_config_sub=$ac_aux_dir/config.sub
935 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
936
937
938 # Do some error checking and defaulting for the host and target type.
939 # The inputs are:
940 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
941 #
942 # The rules are:
943 # 1. You are not allowed to specify --host, --target, and nonopt at the
944 # same time.
945 # 2. Host defaults to nonopt.
946 # 3. If nonopt is not specified, then host defaults to the current host,
947 # as determined by config.guess.
948 # 4. Target and build default to nonopt.
949 # 5. If nonopt is not specified, then target and build default to host.
950
951 # The aliases save the names the user supplied, while $host etc.
952 # will get canonicalized.
953 case $host---$target---$nonopt in
954 NONE---*---* | *---NONE---* | *---*---NONE) ;;
955 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
956 esac
957
958
959 # Make sure we can run config.sub.
960 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
961 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
962 fi
963
964 echo $ac_n "checking host system type""... $ac_c" 1>&6
965 echo "configure:966: checking host system type" >&5
966
967 host_alias=$host
968 case "$host_alias" in
969 NONE)
970 case $nonopt in
971 NONE)
972 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
973 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
974 fi ;;
975 *) host_alias=$nonopt ;;
976 esac ;;
977 esac
978
979 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
980 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
981 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
982 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
983 echo "$ac_t""$host" 1>&6
984
985 echo $ac_n "checking target system type""... $ac_c" 1>&6
986 echo "configure:987: checking target system type" >&5
987
988 target_alias=$target
989 case "$target_alias" in
990 NONE)
991 case $nonopt in
992 NONE) target_alias=$host_alias ;;
993 *) target_alias=$nonopt ;;
994 esac ;;
995 esac
996
997 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
998 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
999 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1000 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1001 echo "$ac_t""$target" 1>&6
1002
1003 echo $ac_n "checking build system type""... $ac_c" 1>&6
1004 echo "configure:1005: checking build system type" >&5
1005
1006 build_alias=$build
1007 case "$build_alias" in
1008 NONE)
1009 case $nonopt in
1010 NONE) build_alias=$host_alias ;;
1011 *) build_alias=$nonopt ;;
1012 esac ;;
1013 esac
1014
1015 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1016 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1017 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1018 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1019 echo "$ac_t""$build" 1>&6
1020
1021 test "$host_alias" != "$target_alias" &&
1022 test "$program_prefix$program_suffix$program_transform_name" = \
1023 NONENONEs,x,x, &&
1024 program_prefix=${target_alias}-
1025
1026
1027
1028 WX_MAJOR_VERSION_NUMBER=2
1029 WX_MINOR_VERSION_NUMBER=3
1030 WX_RELEASE_NUMBER=3
1031
1032 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1033 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1034
1035 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1036
1037 WX_CURRENT=2
1038 WX_REVISION=0
1039 WX_AGE=0
1040
1041
1042
1043 USE_UNIX=1
1044 USE_WIN32=0
1045 USE_DOS=0
1046 USE_BEOS=0
1047 USE_MAC=0
1048
1049 USE_LINUX=
1050 USE_SGI=
1051 USE_HPUX=
1052 USE_SYSV=
1053 USE_SVR4=
1054 USE_AIX=
1055 USE_SUN=
1056 USE_SOLARIS=
1057 USE_SUNOS=
1058 USE_ALPHA=
1059 USE_OSF=
1060 USE_BSD=
1061 USE_DARWIN=
1062 USE_FREEBSD=
1063 USE_OPENBSD=
1064 USE_NETBSD=
1065 USE_VMS=
1066 USE_ULTRIX=
1067 USE_DATA_GENERAL=
1068
1069 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1070
1071 CPP_MT_FLAG=-D_REENTRANT
1072
1073 ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE"
1074
1075 DEFAULT_wxUSE_GTK=0
1076 DEFAULT_wxUSE_MAC=0
1077 DEFAULT_wxUSE_MGL=0
1078 DEFAULT_wxUSE_MICROWIN=0
1079 DEFAULT_wxUSE_MOTIF=0
1080 DEFAULT_wxUSE_MSW=0
1081 DEFAULT_wxUSE_PM=0
1082 DEFAULT_wxUSE_WINE=0
1083
1084 DEFAULT_DEFAULT_wxUSE_GTK=0
1085 DEFAULT_DEFAULT_wxUSE_MAC=0
1086 DEFAULT_DEFAULT_wxUSE_MGL=0
1087 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1088 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1089 DEFAULT_DEFAULT_wxUSE_MSW=0
1090 DEFAULT_DEFAULT_wxUSE_PM=0
1091 DEFAULT_DEFAULT_wxUSE_WINE=0
1092
1093 PROGRAM_EXT=
1094 SO_SUFFIX=so
1095
1096 case "${host}" in
1097 *-hp-hpux* )
1098 USE_HPUX=1
1099 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1100 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1101 SO_SUFFIX=sl
1102 cat >> confdefs.h <<\EOF
1103 #define __HPUX__ 1
1104 EOF
1105
1106 ;;
1107 *-*-linux* )
1108 USE_LINUX=1
1109 cat >> confdefs.h <<\EOF
1110 #define __LINUX__ 1
1111 EOF
1112
1113 TMP=`uname -m`
1114 if test "x$TMP" = "xalpha"; then
1115 USE_ALPHA=1
1116 cat >> confdefs.h <<\EOF
1117 #define __ALPHA__ 1
1118 EOF
1119
1120 fi
1121 DEFAULT_DEFAULT_wxUSE_GTK=1
1122 ;;
1123 *-*-irix5* | *-*-irix6* )
1124 USE_SGI=1
1125 USE_SVR4=1
1126 cat >> confdefs.h <<\EOF
1127 #define __SGI__ 1
1128 EOF
1129
1130 cat >> confdefs.h <<\EOF
1131 #define __SVR4__ 1
1132 EOF
1133
1134 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1135 ;;
1136 *-*-solaris2* )
1137 USE_SUN=1
1138 USE_SOLARIS=1
1139 USE_SVR4=1
1140 cat >> confdefs.h <<\EOF
1141 #define __SUN__ 1
1142 EOF
1143
1144 cat >> confdefs.h <<\EOF
1145 #define __SOLARIS__ 1
1146 EOF
1147
1148 cat >> confdefs.h <<\EOF
1149 #define __SVR4__ 1
1150 EOF
1151
1152 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1153 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1154 ;;
1155 *-*-sunos4* )
1156 USE_SUN=1
1157 USE_SUNOS=1
1158 USE_BSD=1
1159 cat >> confdefs.h <<\EOF
1160 #define __SUN__ 1
1161 EOF
1162
1163 cat >> confdefs.h <<\EOF
1164 #define __SUNOS__ 1
1165 EOF
1166
1167 cat >> confdefs.h <<\EOF
1168 #define __BSD__ 1
1169 EOF
1170
1171 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1172 ;;
1173 *-*-freebsd*)
1174 USE_BSD=1
1175 USE_FREEBSD=1
1176 CPP_MT_FLAG=-D_THREAD_SAFE
1177 cat >> confdefs.h <<\EOF
1178 #define __FREEBSD__ 1
1179 EOF
1180
1181 cat >> confdefs.h <<\EOF
1182 #define __BSD__ 1
1183 EOF
1184
1185 DEFAULT_DEFAULT_wxUSE_GTK=1
1186 ;;
1187 *-*-openbsd*)
1188 USE_BSD=1
1189 USE_OPENBSD=1
1190 cat >> confdefs.h <<\EOF
1191 #define __FREEBSD__ 1
1192 EOF
1193
1194 cat >> confdefs.h <<\EOF
1195 #define __OPENBSD__ 1
1196 EOF
1197
1198 DEFAULT_DEFAULT_wxUSE_GTK=1
1199 ;;
1200 *-*-netbsd*)
1201 USE_BSD=1
1202 USE_NETBSD=1
1203 cat >> confdefs.h <<\EOF
1204 #define __FREEBSD__ 1
1205 EOF
1206
1207 cat >> confdefs.h <<\EOF
1208 #define __NETBSD__ 1
1209 EOF
1210
1211 DEFAULT_DEFAULT_wxUSE_GTK=1
1212 ;;
1213 *-*-osf* )
1214 USE_ALPHA=1
1215 USE_OSF=1
1216 cat >> confdefs.h <<\EOF
1217 #define __ALPHA__ 1
1218 EOF
1219
1220 cat >> confdefs.h <<\EOF
1221 #define __OSF__ 1
1222 EOF
1223
1224 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1225 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1226 ;;
1227 *-*-dgux5* )
1228 USE_ALPHA=1
1229 USE_SVR4=1
1230 cat >> confdefs.h <<\EOF
1231 #define __ALPHA__ 1
1232 EOF
1233
1234 cat >> confdefs.h <<\EOF
1235 #define __SVR4__ 1
1236 EOF
1237
1238 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1239 ;;
1240 *-*-sysv5* )
1241 USE_SYSV=1
1242 USE_SVR4=1
1243 cat >> confdefs.h <<\EOF
1244 #define __SYSV__ 1
1245 EOF
1246
1247 cat >> confdefs.h <<\EOF
1248 #define __SVR4__ 1
1249 EOF
1250
1251 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1252 ;;
1253 *-*-aix* )
1254 USE_AIX=1
1255 USE_SYSV=1
1256 USE_SVR4=1
1257 cat >> confdefs.h <<\EOF
1258 #define __AIX__ 1
1259 EOF
1260
1261 cat >> confdefs.h <<\EOF
1262 #define __SYSV__ 1
1263 EOF
1264
1265 cat >> confdefs.h <<\EOF
1266 #define __SVR4__ 1
1267 EOF
1268
1269 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1270 ;;
1271
1272 *-*-cygwin* | *-*-mingw32* )
1273 USE_UNIX=0
1274 USE_WIN32=1
1275 SO_SUFFIX=dll
1276 cat >> confdefs.h <<\EOF
1277 #define __WIN32__ 1
1278 EOF
1279
1280 cat >> confdefs.h <<\EOF
1281 #define __WIN95__ 1
1282 EOF
1283
1284 cat >> confdefs.h <<\EOF
1285 #define __WINDOWS__ 1
1286 EOF
1287
1288 cat >> confdefs.h <<\EOF
1289 #define __GNUWIN32__ 1
1290 EOF
1291
1292 cat >> confdefs.h <<\EOF
1293 #define STRICT 1
1294 EOF
1295
1296 cat >> confdefs.h <<\EOF
1297 #define WINVER 0x0400
1298 EOF
1299
1300 PROGRAM_EXT=".exe"
1301 RESCOMP=windres
1302 DEFAULT_DEFAULT_wxUSE_MSW=1
1303 ;;
1304
1305 *-pc-msdosdjgpp )
1306 USE_UNIX=0
1307 USE_DOS=1
1308 cat >> confdefs.h <<\EOF
1309 #define __DOS__ 1
1310 EOF
1311
1312 PROGRAM_EXT=".exe"
1313 DEFAULT_DEFAULT_wxUSE_MGL=1
1314 DEFAULT_DEFAULT_wxUSE_SHARED=0
1315 ;;
1316
1317 *-pc-os2_emx | *-pc-os2-emx )
1318 cat >> confdefs.h <<\EOF
1319 #define __EMX__ 1
1320 EOF
1321
1322 PROGRAM_EXT=".exe"
1323 DEFAULT_DEFAULT_wxUSE_PM=1
1324 ;;
1325
1326 powerpc-*-darwin* )
1327 USE_BSD=1
1328 USE_DARWIN=1
1329 CPP_MT_FLAG=
1330 SO_SUFFIX=dylib
1331 cat >> confdefs.h <<\EOF
1332 #define __BSD__ 1
1333 EOF
1334
1335 cat >> confdefs.h <<\EOF
1336 #define __DARWIN__ 1
1337 EOF
1338
1339 cat >> confdefs.h <<\EOF
1340 #define __POWERPC__ 1
1341 EOF
1342
1343 DEFAULT_DEFAULT_wxUSE_MAC=1
1344 ;;
1345
1346 *-*-beos* )
1347 USE_BEOS=1
1348 cat >> confdefs.h <<\EOF
1349 #define __BEOS__ 1
1350 EOF
1351
1352 ;;
1353
1354 *)
1355 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1356 esac
1357
1358 if test "$USE_UNIX" = 1 ; then
1359 wxUSE_UNIX=yes
1360 cat >> confdefs.h <<\EOF
1361 #define __UNIX__ 1
1362 EOF
1363
1364 fi
1365
1366 if test "$USE_LINUX" = 1; then
1367 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1368 echo "configure:1369: checking for glibc 2.1 or later" >&5
1369 if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1370 echo $ac_n "(cached) $ac_c" 1>&6
1371 else
1372
1373 cat > conftest.$ac_ext <<EOF
1374 #line 1375 "configure"
1375 #include "confdefs.h"
1376 #include <features.h>
1377 int main() {
1378
1379 #if !__GLIBC_PREREQ(2, 1)
1380 #error not glibc2.1
1381 #endif
1382
1383 ; return 0; }
1384 EOF
1385 if { (eval echo configure:1386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1386 rm -rf conftest*
1387
1388 wx_lib_glibc21=yes
1389
1390 else
1391 echo "configure: failed program was:" >&5
1392 cat conftest.$ac_ext >&5
1393 rm -rf conftest*
1394
1395 wx_lib_glibc21=no
1396
1397
1398 fi
1399 rm -f conftest*
1400
1401 fi
1402
1403 echo "$ac_t""$wx_lib_glibc21" 1>&6
1404 if test "$wx_lib_glibc21" = "yes"; then
1405 cat >> confdefs.h <<\EOF
1406 #define wxHAVE_GLIBC2 1
1407 EOF
1408
1409 fi
1410 fi
1411
1412
1413
1414
1415 wx_arg_cache_file="configarg.cache"
1416 echo "loading argument cache $wx_arg_cache_file"
1417 rm -f ${wx_arg_cache_file}.tmp
1418 touch ${wx_arg_cache_file}.tmp
1419 touch ${wx_arg_cache_file}
1420
1421
1422 DEBUG_CONFIGURE=0
1423 if test $DEBUG_CONFIGURE = 1; then
1424 DEFAULT_wxUSE_UNIVERSAL=no
1425
1426 DEFAULT_wxUSE_THREADS=yes
1427
1428 DEFAULT_wxUSE_SHARED=yes
1429 DEFAULT_wxUSE_SONAME=no
1430 DEFAULT_wxUSE_OPTIMISE=no
1431 DEFAULT_wxUSE_PROFILE=no
1432 DEFAULT_wxUSE_NO_DEPS=no
1433 DEFAULT_wxUSE_NO_RTTI=yes
1434 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1435 DEFAULT_wxUSE_PERMISSIVE=no
1436 DEFAULT_wxUSE_DEBUG_FLAG=yes
1437 DEFAULT_wxUSE_DEBUG_INFO=yes
1438 DEFAULT_wxUSE_DEBUG_GDB=yes
1439 DEFAULT_wxUSE_MEM_TRACING=no
1440 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1441 DEFAULT_wxUSE_DMALLOC=no
1442 DEFAULT_wxUSE_PRECOMP=yes
1443 DEFAULT_wxUSE_APPLE_IEEE=no
1444
1445 DEFAULT_wxUSE_LOG=yes
1446 DEFAULT_wxUSE_LOGWINDOW=no
1447 DEFAULT_wxUSE_LOGGUI=no
1448 DEFAULT_wxUSE_LOGDIALOG=no
1449
1450 DEFAULT_wxUSE_GUI=yes
1451 DEFAULT_wxUSE_CONTROLS=no
1452
1453 DEFAULT_wxUSE_REGEX=no
1454 DEFAULT_wxUSE_ZLIB=no
1455 DEFAULT_wxUSE_LIBPNG=no
1456 DEFAULT_wxUSE_LIBJPEG=no
1457 DEFAULT_wxUSE_LIBTIFF=no
1458 DEFAULT_wxUSE_ODBC=no
1459 DEFAULT_wxUSE_FREETYPE=no
1460 DEFAULT_wxUSE_OPENGL=no
1461
1462 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1463 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1464 DEFAULT_wxUSE_STD_IOSTREAM=no
1465 DEFAULT_wxUSE_CMDLINE_PARSER=no
1466 DEFAULT_wxUSE_DATETIME=no
1467 DEFAULT_wxUSE_TIMEDATE=no
1468 DEFAULT_wxUSE_TIMER=no
1469 DEFAULT_wxUSE_STOPWATCH=no
1470 DEFAULT_wxUSE_FILE=no
1471 DEFAULT_wxUSE_FFILE=no
1472 DEFAULT_wxUSE_TEXTBUFFER=no
1473 DEFAULT_wxUSE_TEXTFILE=no
1474 DEFAULT_wxUSE_WAVE=no
1475 DEFAULT_wxUSE_INTL=no
1476 DEFAULT_wxUSE_CONFIG=no
1477 DEFAULT_wxUSE_FONTMAP=no
1478 DEFAULT_wxUSE_STREAMS=no
1479 DEFAULT_wxUSE_SOCKETS=no
1480 DEFAULT_wxUSE_DIALUP_MANAGER=no
1481 DEFAULT_wxUSE_JOYSTICK=no
1482 DEFAULT_wxUSE_DYNLIB_CLASS=no
1483 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1484 DEFAULT_wxUSE_LONGLONG=no
1485 DEFAULT_wxUSE_GEOMETRY=no
1486
1487 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1488 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1489 DEFAULT_wxUSE_POSTSCRIPT=no
1490
1491 DEFAULT_wxUSE_X_RESOURCES=no
1492 DEFAULT_wxUSE_CLIPBOARD=no
1493 DEFAULT_wxUSE_TOOLTIPS=no
1494 DEFAULT_wxUSE_DRAG_AND_DROP=no
1495 DEFAULT_wxUSE_DRAGIMAGE=no
1496 DEFAULT_wxUSE_SPLINES=no
1497
1498 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1499 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1500 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1501
1502 DEFAULT_wxUSE_PROLOGIO=no
1503 DEFAULT_wxUSE_RESOURCES=no
1504 DEFAULT_wxUSE_CONSTRAINTS=no
1505 DEFAULT_wxUSE_IPC=no
1506 DEFAULT_wxUSE_HELP=no
1507 DEFAULT_wxUSE_MS_HTML_HELP=no
1508 DEFAULT_wxUSE_WXHTML_HELP=no
1509 DEFAULT_wxUSE_TREELAYOUT=no
1510 DEFAULT_wxUSE_METAFILE=no
1511 DEFAULT_wxUSE_MIMETYPE=no
1512 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1513
1514 DEFAULT_wxUSE_COMMONDLGS=no
1515 DEFAULT_wxUSE_CHOICEDLG=no
1516 DEFAULT_wxUSE_COLOURDLG=no
1517 DEFAULT_wxUSE_DIRDLG=no
1518 DEFAULT_wxUSE_FILEDLG=no
1519 DEFAULT_wxUSE_FINDREPLDLG=no
1520 DEFAULT_wxUSE_FONTDLG=no
1521 DEFAULT_wxUSE_MSGDLG=no
1522 DEFAULT_wxUSE_NUMBERDLG=no
1523 DEFAULT_wxUSE_TEXTDLG=no
1524 DEFAULT_wxUSE_SPLASH=no
1525 DEFAULT_wxUSE_STARTUP_TIPS=no
1526 DEFAULT_wxUSE_PROGRESSDLG=no
1527 DEFAULT_wxUSE_WIZARDDLG=no
1528
1529 DEFAULT_wxUSE_MENUS=no
1530 DEFAULT_wxUSE_MINIFRAME=no
1531 DEFAULT_wxUSE_HTML=no
1532 DEFAULT_wxUSE_FILESYSTEM=no
1533 DEFAULT_wxUSE_FS_INET=no
1534 DEFAULT_wxUSE_FS_ZIP=no
1535 DEFAULT_wxUSE_BUSYINFO=no
1536 DEFAULT_wxUSE_ZIPSTREAM=no
1537 DEFAULT_wxUSE_VALIDATORS=no
1538
1539 DEFAULT_wxUSE_ACCEL=no
1540 DEFAULT_wxUSE_BUTTON=no
1541 DEFAULT_wxUSE_BMPBUTTON=no
1542 DEFAULT_wxUSE_CALCTRL=no
1543 DEFAULT_wxUSE_CARET=no
1544 DEFAULT_wxUSE_CHECKBOX=no
1545 DEFAULT_wxUSE_CHECKLST=no
1546 DEFAULT_wxUSE_CHOICE=no
1547 DEFAULT_wxUSE_COMBOBOX=no
1548 DEFAULT_wxUSE_GAUGE=no
1549 DEFAULT_wxUSE_GRID=no
1550 DEFAULT_wxUSE_NEW_GRID=no
1551 DEFAULT_wxUSE_IMAGLIST=no
1552 DEFAULT_wxUSE_LISTBOX=no
1553 DEFAULT_wxUSE_LISTCTRL=no
1554 DEFAULT_wxUSE_NOTEBOOK=no
1555 DEFAULT_wxUSE_PROPSHEET=no
1556 DEFAULT_wxUSE_RADIOBOX=no
1557 DEFAULT_wxUSE_RADIOBTN=no
1558 DEFAULT_wxUSE_SASH=no
1559 DEFAULT_wxUSE_SCROLLBAR=no
1560 DEFAULT_wxUSE_SLIDER=no
1561 DEFAULT_wxUSE_SPINBTN=no
1562 DEFAULT_wxUSE_SPINCTRL=no
1563 DEFAULT_wxUSE_SPLITTER=no
1564 DEFAULT_wxUSE_STATBMP=no
1565 DEFAULT_wxUSE_STATBOX=no
1566 DEFAULT_wxUSE_STATLINE=no
1567 DEFAULT_wxUSE_STATTEXT=no
1568 DEFAULT_wxUSE_STATUSBAR=yes
1569 DEFAULT_wxUSE_TABDIALOG=no
1570 DEFAULT_wxUSE_TEXTCTRL=no
1571 DEFAULT_wxUSE_TOGGLEBTN=no
1572 DEFAULT_wxUSE_TOOLBAR=no
1573 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1574 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1575 DEFAULT_wxUSE_TREECTRL=no
1576 DEFAULT_wxUSE_POPUPWIN=no
1577 DEFAULT_wxUSE_TIPWINDOW=no
1578
1579 DEFAULT_wxUSE_UNICODE=no
1580 DEFAULT_wxUSE_UNICODE_MSLU=no
1581 DEFAULT_wxUSE_WCSRTOMBS=no
1582
1583 DEFAULT_wxUSE_PALETTE=no
1584 DEFAULT_wxUSE_IMAGE=no
1585 DEFAULT_wxUSE_GIF=no
1586 DEFAULT_wxUSE_PCX=no
1587 DEFAULT_wxUSE_PNM=no
1588 DEFAULT_wxUSE_XPM=no
1589 else
1590 DEFAULT_wxUSE_UNIVERSAL=no
1591
1592 DEFAULT_wxUSE_THREADS=yes
1593
1594 DEFAULT_wxUSE_SHARED=yes
1595 DEFAULT_wxUSE_SONAME=no
1596 DEFAULT_wxUSE_OPTIMISE=yes
1597 DEFAULT_wxUSE_PROFILE=no
1598 DEFAULT_wxUSE_NO_DEPS=no
1599 DEFAULT_wxUSE_NO_RTTI=yes
1600 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1601 DEFAULT_wxUSE_PERMISSIVE=no
1602 DEFAULT_wxUSE_DEBUG_FLAG=no
1603 DEFAULT_wxUSE_DEBUG_INFO=no
1604 DEFAULT_wxUSE_DEBUG_GDB=no
1605 DEFAULT_wxUSE_MEM_TRACING=no
1606 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1607 DEFAULT_wxUSE_DMALLOC=no
1608 DEFAULT_wxUSE_PRECOMP=yes
1609 DEFAULT_wxUSE_APPLE_IEEE=yes
1610
1611 DEFAULT_wxUSE_LOG=yes
1612 DEFAULT_wxUSE_LOGWINDOW=yes
1613 DEFAULT_wxUSE_LOGGUI=yes
1614 DEFAULT_wxUSE_LOGDIALOG=yes
1615
1616 DEFAULT_wxUSE_GUI=yes
1617
1618 DEFAULT_wxUSE_REGEX=yes
1619 DEFAULT_wxUSE_ZLIB=yes
1620 DEFAULT_wxUSE_LIBPNG=yes
1621 DEFAULT_wxUSE_LIBJPEG=yes
1622 DEFAULT_wxUSE_LIBTIFF=yes
1623 DEFAULT_wxUSE_ODBC=no
1624 DEFAULT_wxUSE_FREETYPE=no
1625 DEFAULT_wxUSE_OPENGL=no
1626
1627 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1628 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1629 DEFAULT_wxUSE_STD_IOSTREAM=no
1630 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1631 DEFAULT_wxUSE_DATETIME=yes
1632 DEFAULT_wxUSE_TIMEDATE=no
1633 DEFAULT_wxUSE_TIMER=yes
1634 DEFAULT_wxUSE_STOPWATCH=yes
1635 DEFAULT_wxUSE_FILE=yes
1636 DEFAULT_wxUSE_FFILE=yes
1637 DEFAULT_wxUSE_TEXTBUFFER=yes
1638 DEFAULT_wxUSE_TEXTFILE=yes
1639 DEFAULT_wxUSE_WAVE=no
1640 DEFAULT_wxUSE_INTL=yes
1641 DEFAULT_wxUSE_CONFIG=yes
1642 DEFAULT_wxUSE_FONTMAP=yes
1643 DEFAULT_wxUSE_STREAMS=yes
1644 DEFAULT_wxUSE_SOCKETS=yes
1645 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1646 DEFAULT_wxUSE_JOYSTICK=yes
1647 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1648 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1649 DEFAULT_wxUSE_LONGLONG=yes
1650 DEFAULT_wxUSE_GEOMETRY=yes
1651
1652 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1653 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1654 DEFAULT_wxUSE_POSTSCRIPT=yes
1655
1656 DEFAULT_wxUSE_X_RESOURCES=no
1657 DEFAULT_wxUSE_CLIPBOARD=yes
1658 DEFAULT_wxUSE_TOOLTIPS=yes
1659 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1660 DEFAULT_wxUSE_DRAGIMAGE=yes
1661 DEFAULT_wxUSE_SPLINES=yes
1662
1663 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1664 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1665 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1666
1667 DEFAULT_wxUSE_PROLOGIO=yes
1668 DEFAULT_wxUSE_RESOURCES=yes
1669 DEFAULT_wxUSE_CONSTRAINTS=yes
1670 DEFAULT_wxUSE_IPC=yes
1671 DEFAULT_wxUSE_HELP=yes
1672 DEFAULT_wxUSE_MS_HTML_HELP=yes
1673 DEFAULT_wxUSE_WXHTML_HELP=yes
1674 DEFAULT_wxUSE_TREELAYOUT=yes
1675 DEFAULT_wxUSE_METAFILE=yes
1676 DEFAULT_wxUSE_MIMETYPE=yes
1677 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1678
1679 DEFAULT_wxUSE_COMMONDLGS=yes
1680 DEFAULT_wxUSE_CHOICEDLG=yes
1681 DEFAULT_wxUSE_COLOURDLG=yes
1682 DEFAULT_wxUSE_DIRDLG=yes
1683 DEFAULT_wxUSE_FILEDLG=yes
1684 DEFAULT_wxUSE_FINDREPLDLG=yes
1685 DEFAULT_wxUSE_FONTDLG=yes
1686 DEFAULT_wxUSE_MSGDLG=yes
1687 DEFAULT_wxUSE_NUMBERDLG=yes
1688 DEFAULT_wxUSE_TEXTDLG=yes
1689 DEFAULT_wxUSE_SPLASH=yes
1690 DEFAULT_wxUSE_STARTUP_TIPS=yes
1691 DEFAULT_wxUSE_PROGRESSDLG=yes
1692 DEFAULT_wxUSE_WIZARDDLG=yes
1693
1694 DEFAULT_wxUSE_MENUS=yes
1695 DEFAULT_wxUSE_MINIFRAME=yes
1696 DEFAULT_wxUSE_HTML=yes
1697 DEFAULT_wxUSE_FILESYSTEM=yes
1698 DEFAULT_wxUSE_FS_INET=yes
1699 DEFAULT_wxUSE_FS_ZIP=yes
1700 DEFAULT_wxUSE_BUSYINFO=yes
1701 DEFAULT_wxUSE_ZIPSTREAM=yes
1702 DEFAULT_wxUSE_VALIDATORS=yes
1703
1704 DEFAULT_wxUSE_ACCEL=yes
1705 DEFAULT_wxUSE_BUTTON=yes
1706 DEFAULT_wxUSE_BMPBUTTON=yes
1707 DEFAULT_wxUSE_CALCTRL=yes
1708 DEFAULT_wxUSE_CARET=yes
1709 DEFAULT_wxUSE_CHECKBOX=yes
1710 DEFAULT_wxUSE_CHECKLST=yes
1711 DEFAULT_wxUSE_CHOICE=yes
1712 DEFAULT_wxUSE_COMBOBOX=yes
1713 DEFAULT_wxUSE_GAUGE=yes
1714 DEFAULT_wxUSE_GRID=yes
1715 DEFAULT_wxUSE_NEW_GRID=yes
1716 DEFAULT_wxUSE_IMAGLIST=yes
1717 DEFAULT_wxUSE_LISTBOX=yes
1718 DEFAULT_wxUSE_LISTCTRL=yes
1719 DEFAULT_wxUSE_NOTEBOOK=yes
1720 DEFAULT_wxUSE_PROPSHEET=yes
1721 DEFAULT_wxUSE_RADIOBOX=yes
1722 DEFAULT_wxUSE_RADIOBTN=yes
1723 DEFAULT_wxUSE_SASH=yes
1724 DEFAULT_wxUSE_SCROLLBAR=yes
1725 DEFAULT_wxUSE_SLIDER=yes
1726 DEFAULT_wxUSE_SPINBTN=yes
1727 DEFAULT_wxUSE_SPINCTRL=yes
1728 DEFAULT_wxUSE_SPLITTER=yes
1729 DEFAULT_wxUSE_STATBMP=yes
1730 DEFAULT_wxUSE_STATBOX=yes
1731 DEFAULT_wxUSE_STATLINE=yes
1732 DEFAULT_wxUSE_STATTEXT=yes
1733 DEFAULT_wxUSE_STATUSBAR=yes
1734 DEFAULT_wxUSE_TABDIALOG=no
1735 DEFAULT_wxUSE_TEXTCTRL=yes
1736 DEFAULT_wxUSE_TOGGLEBTN=yes
1737 DEFAULT_wxUSE_TOOLBAR=yes
1738 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1739 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1740 DEFAULT_wxUSE_TREECTRL=yes
1741 DEFAULT_wxUSE_POPUPWIN=yes
1742 DEFAULT_wxUSE_TIPWINDOW=yes
1743
1744 DEFAULT_wxUSE_UNICODE=no
1745 DEFAULT_wxUSE_UNICODE_MSLU=yes
1746 DEFAULT_wxUSE_WCSRTOMBS=no
1747
1748 DEFAULT_wxUSE_PALETTE=yes
1749 DEFAULT_wxUSE_IMAGE=yes
1750 DEFAULT_wxUSE_GIF=yes
1751 DEFAULT_wxUSE_PCX=yes
1752 DEFAULT_wxUSE_PNM=yes
1753 DEFAULT_wxUSE_XPM=yes
1754 fi
1755
1756
1757
1758 for toolkit in `echo $ALL_TOOLKITS`; do
1759 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1760 if test "x$LINE" != x ; then
1761 has_toolkit_in_cache=1
1762 eval "DEFAULT_$LINE"
1763 eval "CACHE_$toolkit=1"
1764 fi
1765 done
1766
1767
1768
1769 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1770 echo "configure:1771: checking for --enable-gui" >&5
1771 no_cache=0
1772 # Check whether --enable-gui or --disable-gui was given.
1773 if test "${enable_gui+set}" = set; then
1774 enableval="$enable_gui"
1775
1776 if test "$enableval" = yes; then
1777 ac_cv_use_gui='wxUSE_GUI=yes'
1778 else
1779 ac_cv_use_gui='wxUSE_GUI=no'
1780 fi
1781
1782 else
1783
1784 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1785 if test "x$LINE" != x ; then
1786 eval "DEFAULT_$LINE"
1787 else
1788 no_cache=1
1789 fi
1790
1791 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1792
1793 fi
1794
1795
1796 eval "$ac_cv_use_gui"
1797 if test "$no_cache" != 1; then
1798 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1799 fi
1800
1801 if test "$wxUSE_GUI" = yes; then
1802 echo "$ac_t""yes" 1>&6
1803 else
1804 echo "$ac_t""no" 1>&6
1805 fi
1806
1807
1808 if test "$wxUSE_GUI" = "yes"; then
1809
1810
1811 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1812 echo "configure:1813: checking for --enable-universal" >&5
1813 no_cache=0
1814 # Check whether --enable-universal or --disable-universal was given.
1815 if test "${enable_universal+set}" = set; then
1816 enableval="$enable_universal"
1817
1818 if test "$enableval" = yes; then
1819 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1820 else
1821 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1822 fi
1823
1824 else
1825
1826 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1827 if test "x$LINE" != x ; then
1828 eval "DEFAULT_$LINE"
1829 else
1830 no_cache=1
1831 fi
1832
1833 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1834
1835 fi
1836
1837
1838 eval "$ac_cv_use_universal"
1839 if test "$no_cache" != 1; then
1840 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1841 fi
1842
1843 if test "$wxUSE_UNIVERSAL" = yes; then
1844 echo "$ac_t""yes" 1>&6
1845 else
1846 echo "$ac_t""no" 1>&6
1847 fi
1848
1849 # Check whether --with-gtk or --without-gtk was given.
1850 if test "${with_gtk+set}" = set; then
1851 withval="$with_gtk"
1852 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1853 fi
1854
1855 # Check whether --with-motif or --without-motif was given.
1856 if test "${with_motif+set}" = set; then
1857 withval="$with_motif"
1858 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1859 fi
1860
1861 # Check whether --with-mac or --without-mac was given.
1862 if test "${with_mac+set}" = set; then
1863 withval="$with_mac"
1864 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1865 fi
1866
1867 # Check whether --with-wine or --without-wine was given.
1868 if test "${with_wine+set}" = set; then
1869 withval="$with_wine"
1870 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1871 fi
1872
1873 # Check whether --with-msw or --without-msw was given.
1874 if test "${with_msw+set}" = set; then
1875 withval="$with_msw"
1876 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
1877 fi
1878
1879 # Check whether --with-pm or --without-pm was given.
1880 if test "${with_pm+set}" = set; then
1881 withval="$with_pm"
1882 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1883 fi
1884
1885 # Check whether --with-mgl or --without-mgl was given.
1886 if test "${with_mgl+set}" = set; then
1887 withval="$with_mgl"
1888 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1889 fi
1890
1891 # Check whether --with-microwin or --without-microwin was given.
1892 if test "${with_microwin+set}" = set; then
1893 withval="$with_microwin"
1894 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1895 fi
1896
1897
1898 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1899 if test "${enable_gtk2+set}" = set; then
1900 enableval="$enable_gtk2"
1901 wxUSE_GTK2=1
1902 else
1903 wxUSE_GTK2=0
1904 fi
1905
1906
1907
1908 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1909 echo "configure:1910: checking for --with-libpng" >&5
1910 no_cache=0
1911 # Check whether --with-libpng or --without-libpng was given.
1912 if test "${with_libpng+set}" = set; then
1913 withval="$with_libpng"
1914
1915 if test "$withval" = yes; then
1916 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1917 elif test "$withval" = no; then
1918 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1919 elif test "$withval" = sys; then
1920 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1921 elif test "$withval" = builtin; then
1922 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1923 else
1924 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1925 fi
1926
1927 else
1928
1929 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1930 if test "x$LINE" != x ; then
1931 eval "DEFAULT_$LINE"
1932 else
1933 no_cache=1
1934 fi
1935
1936 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1937
1938 fi
1939
1940
1941 eval "$ac_cv_use_libpng"
1942 if test "$no_cache" != 1; then
1943 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1944 fi
1945
1946 if test "$wxUSE_LIBPNG" = yes; then
1947 echo "$ac_t""yes" 1>&6
1948 elif test "$wxUSE_LIBPNG" = no; then
1949 echo "$ac_t""no" 1>&6
1950 elif test "$wxUSE_LIBPNG" = sys; then
1951 echo "$ac_t""system version" 1>&6
1952 elif test "$wxUSE_LIBPNG" = builtin; then
1953 echo "$ac_t""builtin version" 1>&6
1954 else
1955 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1956 fi
1957
1958
1959 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1960 echo "configure:1961: checking for --with-libjpeg" >&5
1961 no_cache=0
1962 # Check whether --with-libjpeg or --without-libjpeg was given.
1963 if test "${with_libjpeg+set}" = set; then
1964 withval="$with_libjpeg"
1965
1966 if test "$withval" = yes; then
1967 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1968 elif test "$withval" = no; then
1969 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1970 elif test "$withval" = sys; then
1971 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1972 elif test "$withval" = builtin; then
1973 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
1974 else
1975 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1976 fi
1977
1978 else
1979
1980 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1981 if test "x$LINE" != x ; then
1982 eval "DEFAULT_$LINE"
1983 else
1984 no_cache=1
1985 fi
1986
1987 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1988
1989 fi
1990
1991
1992 eval "$ac_cv_use_libjpeg"
1993 if test "$no_cache" != 1; then
1994 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1995 fi
1996
1997 if test "$wxUSE_LIBJPEG" = yes; then
1998 echo "$ac_t""yes" 1>&6
1999 elif test "$wxUSE_LIBJPEG" = no; then
2000 echo "$ac_t""no" 1>&6
2001 elif test "$wxUSE_LIBJPEG" = sys; then
2002 echo "$ac_t""system version" 1>&6
2003 elif test "$wxUSE_LIBJPEG" = builtin; then
2004 echo "$ac_t""builtin version" 1>&6
2005 else
2006 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2007 fi
2008
2009
2010 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2011 echo "configure:2012: checking for --with-libtiff" >&5
2012 no_cache=0
2013 # Check whether --with-libtiff or --without-libtiff was given.
2014 if test "${with_libtiff+set}" = set; then
2015 withval="$with_libtiff"
2016
2017 if test "$withval" = yes; then
2018 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2019 elif test "$withval" = no; then
2020 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2021 elif test "$withval" = sys; then
2022 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2023 elif test "$withval" = builtin; then
2024 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2025 else
2026 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2027 fi
2028
2029 else
2030
2031 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2032 if test "x$LINE" != x ; then
2033 eval "DEFAULT_$LINE"
2034 else
2035 no_cache=1
2036 fi
2037
2038 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2039
2040 fi
2041
2042
2043 eval "$ac_cv_use_libtiff"
2044 if test "$no_cache" != 1; then
2045 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2046 fi
2047
2048 if test "$wxUSE_LIBTIFF" = yes; then
2049 echo "$ac_t""yes" 1>&6
2050 elif test "$wxUSE_LIBTIFF" = no; then
2051 echo "$ac_t""no" 1>&6
2052 elif test "$wxUSE_LIBTIFF" = sys; then
2053 echo "$ac_t""system version" 1>&6
2054 elif test "$wxUSE_LIBTIFF" = builtin; then
2055 echo "$ac_t""builtin version" 1>&6
2056 else
2057 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2058 fi
2059
2060
2061 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
2062 echo "configure:2063: checking for --with-freetype" >&5
2063 no_cache=0
2064 # Check whether --with-freetype or --without-freetype was given.
2065 if test "${with_freetype+set}" = set; then
2066 withval="$with_freetype"
2067
2068 if test "$withval" = yes; then
2069 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2070 elif test "$withval" = no; then
2071 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2072 elif test "$withval" = sys; then
2073 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
2074 elif test "$withval" = builtin; then
2075 ac_cv_use_freetype='wxUSE_FREETYPE=builtin'
2076 else
2077 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2078 fi
2079
2080 else
2081
2082 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2083 if test "x$LINE" != x ; then
2084 eval "DEFAULT_$LINE"
2085 else
2086 no_cache=1
2087 fi
2088
2089 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
2090
2091 fi
2092
2093
2094 eval "$ac_cv_use_freetype"
2095 if test "$no_cache" != 1; then
2096 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2097 fi
2098
2099 if test "$wxUSE_FREETYPE" = yes; then
2100 echo "$ac_t""yes" 1>&6
2101 elif test "$wxUSE_FREETYPE" = no; then
2102 echo "$ac_t""no" 1>&6
2103 elif test "$wxUSE_FREETYPE" = sys; then
2104 echo "$ac_t""system version" 1>&6
2105 elif test "$wxUSE_FREETYPE" = builtin; then
2106 echo "$ac_t""builtin version" 1>&6
2107 else
2108 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2109 fi
2110
2111
2112 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2113 echo "configure:2114: checking for --with-opengl" >&5
2114 no_cache=0
2115 # Check whether --with-opengl or --without-opengl was given.
2116 if test "${with_opengl+set}" = set; then
2117 withval="$with_opengl"
2118
2119 if test "$withval" = yes; then
2120 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2121 else
2122 ac_cv_use_opengl='wxUSE_OPENGL=no'
2123 fi
2124
2125 else
2126
2127 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2128 if test "x$LINE" != x ; then
2129 eval "DEFAULT_$LINE"
2130 else
2131 no_cache=1
2132 fi
2133
2134 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2135
2136 fi
2137
2138
2139 eval "$ac_cv_use_opengl"
2140 if test "$no_cache" != 1; then
2141 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2142 fi
2143
2144 if test "$wxUSE_OPENGL" = yes; then
2145 echo "$ac_t""yes" 1>&6
2146 else
2147 echo "$ac_t""no" 1>&6
2148 fi
2149
2150
2151 fi
2152
2153
2154 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2155 echo "configure:2156: checking for --with-dmalloc" >&5
2156 no_cache=0
2157 # Check whether --with-dmalloc or --without-dmalloc was given.
2158 if test "${with_dmalloc+set}" = set; then
2159 withval="$with_dmalloc"
2160
2161 if test "$withval" = yes; then
2162 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2163 else
2164 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2165 fi
2166
2167 else
2168
2169 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2170 if test "x$LINE" != x ; then
2171 eval "DEFAULT_$LINE"
2172 else
2173 no_cache=1
2174 fi
2175
2176 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2177
2178 fi
2179
2180
2181 eval "$ac_cv_use_dmalloc"
2182 if test "$no_cache" != 1; then
2183 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2184 fi
2185
2186 if test "$wxUSE_DMALLOC" = yes; then
2187 echo "$ac_t""yes" 1>&6
2188 else
2189 echo "$ac_t""no" 1>&6
2190 fi
2191
2192
2193 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2194 echo "configure:2195: checking for --with-regex" >&5
2195 no_cache=0
2196 # Check whether --with-regex or --without-regex was given.
2197 if test "${with_regex+set}" = set; then
2198 withval="$with_regex"
2199
2200 if test "$withval" = yes; then
2201 ac_cv_use_regex='wxUSE_REGEX=yes'
2202 elif test "$withval" = no; then
2203 ac_cv_use_regex='wxUSE_REGEX=no'
2204 elif test "$withval" = sys; then
2205 ac_cv_use_regex='wxUSE_REGEX=sys'
2206 elif test "$withval" = builtin; then
2207 ac_cv_use_regex='wxUSE_REGEX=builtin'
2208 else
2209 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2210 fi
2211
2212 else
2213
2214 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2215 if test "x$LINE" != x ; then
2216 eval "DEFAULT_$LINE"
2217 else
2218 no_cache=1
2219 fi
2220
2221 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2222
2223 fi
2224
2225
2226 eval "$ac_cv_use_regex"
2227 if test "$no_cache" != 1; then
2228 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2229 fi
2230
2231 if test "$wxUSE_REGEX" = yes; then
2232 echo "$ac_t""yes" 1>&6
2233 elif test "$wxUSE_REGEX" = no; then
2234 echo "$ac_t""no" 1>&6
2235 elif test "$wxUSE_REGEX" = sys; then
2236 echo "$ac_t""system version" 1>&6
2237 elif test "$wxUSE_REGEX" = builtin; then
2238 echo "$ac_t""builtin version" 1>&6
2239 else
2240 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2241 fi
2242
2243
2244 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2245 echo "configure:2246: checking for --with-zlib" >&5
2246 no_cache=0
2247 # Check whether --with-zlib or --without-zlib was given.
2248 if test "${with_zlib+set}" = set; then
2249 withval="$with_zlib"
2250
2251 if test "$withval" = yes; then
2252 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2253 elif test "$withval" = no; then
2254 ac_cv_use_zlib='wxUSE_ZLIB=no'
2255 elif test "$withval" = sys; then
2256 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2257 elif test "$withval" = builtin; then
2258 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2259 else
2260 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2261 fi
2262
2263 else
2264
2265 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2266 if test "x$LINE" != x ; then
2267 eval "DEFAULT_$LINE"
2268 else
2269 no_cache=1
2270 fi
2271
2272 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2273
2274 fi
2275
2276
2277 eval "$ac_cv_use_zlib"
2278 if test "$no_cache" != 1; then
2279 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2280 fi
2281
2282 if test "$wxUSE_ZLIB" = yes; then
2283 echo "$ac_t""yes" 1>&6
2284 elif test "$wxUSE_ZLIB" = no; then
2285 echo "$ac_t""no" 1>&6
2286 elif test "$wxUSE_ZLIB" = sys; then
2287 echo "$ac_t""system version" 1>&6
2288 elif test "$wxUSE_ZLIB" = builtin; then
2289 echo "$ac_t""builtin version" 1>&6
2290 else
2291 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2292 fi
2293
2294
2295 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2296 echo "configure:2297: checking for --with-odbc" >&5
2297 no_cache=0
2298 # Check whether --with-odbc or --without-odbc was given.
2299 if test "${with_odbc+set}" = set; then
2300 withval="$with_odbc"
2301
2302 if test "$withval" = yes; then
2303 ac_cv_use_odbc='wxUSE_ODBC=yes'
2304 else
2305 ac_cv_use_odbc='wxUSE_ODBC=no'
2306 fi
2307
2308 else
2309
2310 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2311 if test "x$LINE" != x ; then
2312 eval "DEFAULT_$LINE"
2313 else
2314 no_cache=1
2315 fi
2316
2317 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2318
2319 fi
2320
2321
2322 eval "$ac_cv_use_odbc"
2323 if test "$no_cache" != 1; then
2324 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2325 fi
2326
2327 if test "$wxUSE_ODBC" = yes; then
2328 echo "$ac_t""yes" 1>&6
2329 else
2330 echo "$ac_t""no" 1>&6
2331 fi
2332
2333
2334
2335
2336 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2337 echo "configure:2338: checking for --enable-shared" >&5
2338 no_cache=0
2339 # Check whether --enable-shared or --disable-shared was given.
2340 if test "${enable_shared+set}" = set; then
2341 enableval="$enable_shared"
2342
2343 if test "$enableval" = yes; then
2344 ac_cv_use_shared='wxUSE_SHARED=yes'
2345 else
2346 ac_cv_use_shared='wxUSE_SHARED=no'
2347 fi
2348
2349 else
2350
2351 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2352 if test "x$LINE" != x ; then
2353 eval "DEFAULT_$LINE"
2354 else
2355 no_cache=1
2356 fi
2357
2358 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2359
2360 fi
2361
2362
2363 eval "$ac_cv_use_shared"
2364 if test "$no_cache" != 1; then
2365 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2366 fi
2367
2368 if test "$wxUSE_SHARED" = yes; then
2369 echo "$ac_t""yes" 1>&6
2370 else
2371 echo "$ac_t""no" 1>&6
2372 fi
2373
2374
2375 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2376 echo "configure:2377: checking for --enable-soname" >&5
2377 no_cache=0
2378 # Check whether --enable-soname or --disable-soname was given.
2379 if test "${enable_soname+set}" = set; then
2380 enableval="$enable_soname"
2381
2382 if test "$enableval" = yes; then
2383 ac_cv_use_soname='wxUSE_SONAME=yes'
2384 else
2385 ac_cv_use_soname='wxUSE_SONAME=no'
2386 fi
2387
2388 else
2389
2390 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2391 if test "x$LINE" != x ; then
2392 eval "DEFAULT_$LINE"
2393 else
2394 no_cache=1
2395 fi
2396
2397 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2398
2399 fi
2400
2401
2402 eval "$ac_cv_use_soname"
2403 if test "$no_cache" != 1; then
2404 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2405 fi
2406
2407 if test "$wxUSE_SONAME" = yes; then
2408 echo "$ac_t""yes" 1>&6
2409 else
2410 echo "$ac_t""no" 1>&6
2411 fi
2412
2413
2414 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2415 echo "configure:2416: checking for --enable-optimise" >&5
2416 no_cache=0
2417 # Check whether --enable-optimise or --disable-optimise was given.
2418 if test "${enable_optimise+set}" = set; then
2419 enableval="$enable_optimise"
2420
2421 if test "$enableval" = yes; then
2422 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2423 else
2424 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2425 fi
2426
2427 else
2428
2429 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2430 if test "x$LINE" != x ; then
2431 eval "DEFAULT_$LINE"
2432 else
2433 no_cache=1
2434 fi
2435
2436 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2437
2438 fi
2439
2440
2441 eval "$ac_cv_use_optimise"
2442 if test "$no_cache" != 1; then
2443 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2444 fi
2445
2446 if test "$wxUSE_OPTIMISE" = yes; then
2447 echo "$ac_t""yes" 1>&6
2448 else
2449 echo "$ac_t""no" 1>&6
2450 fi
2451
2452
2453 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2454 echo "configure:2455: checking for --enable-debug" >&5
2455 no_cache=0
2456 # Check whether --enable-debug or --disable-debug was given.
2457 if test "${enable_debug+set}" = set; then
2458 enableval="$enable_debug"
2459
2460 if test "$enableval" = yes; then
2461 ac_cv_use_debug='wxUSE_DEBUG=yes'
2462 else
2463 ac_cv_use_debug='wxUSE_DEBUG=no'
2464 fi
2465
2466 else
2467
2468 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2469 if test "x$LINE" != x ; then
2470 eval "DEFAULT_$LINE"
2471 else
2472 no_cache=1
2473 fi
2474
2475 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2476
2477 fi
2478
2479
2480 eval "$ac_cv_use_debug"
2481 if test "$no_cache" != 1; then
2482 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2483 fi
2484
2485 if test "$wxUSE_DEBUG" = yes; then
2486 echo "$ac_t""yes" 1>&6
2487 else
2488 echo "$ac_t""no" 1>&6
2489 fi
2490
2491
2492
2493 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2494 echo "configure:2495: checking for --enable-precomp" >&5
2495 no_cache=0
2496 # Check whether --enable-precomp or --disable-precomp was given.
2497 if test "${enable_precomp+set}" = set; then
2498 enableval="$enable_precomp"
2499
2500 if test "$enableval" = yes; then
2501 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2502 else
2503 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2504 fi
2505
2506 else
2507
2508 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2509 if test "x$LINE" != x ; then
2510 eval "DEFAULT_$LINE"
2511 else
2512 no_cache=1
2513 fi
2514
2515 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2516
2517 fi
2518
2519
2520 eval "$ac_cv_use_precomp"
2521 if test "$no_cache" != 1; then
2522 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2523 fi
2524
2525 if test "$wxUSE_PRECOMP" = yes; then
2526 echo "$ac_t""yes" 1>&6
2527 else
2528 echo "$ac_t""no" 1>&6
2529 fi
2530
2531
2532 if test "$wxUSE_DEBUG" = "yes"; then
2533 DEFAULT_wxUSE_DEBUG_FLAG=yes
2534 DEFAULT_wxUSE_DEBUG_INFO=yes
2535 elif test "$wxUSE_DEBUG" = "no"; then
2536 DEFAULT_wxUSE_DEBUG_FLAG=no
2537 DEFAULT_wxUSE_DEBUG_INFO=no
2538 fi
2539
2540
2541 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2542 echo "configure:2543: checking for --enable-debug_flag" >&5
2543 no_cache=0
2544 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2545 if test "${enable_debug_flag+set}" = set; then
2546 enableval="$enable_debug_flag"
2547
2548 if test "$enableval" = yes; then
2549 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2550 else
2551 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2552 fi
2553
2554 else
2555
2556 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2557 if test "x$LINE" != x ; then
2558 eval "DEFAULT_$LINE"
2559 else
2560 no_cache=1
2561 fi
2562
2563 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2564
2565 fi
2566
2567
2568 eval "$ac_cv_use_debug_flag"
2569 if test "$no_cache" != 1; then
2570 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2571 fi
2572
2573 if test "$wxUSE_DEBUG_FLAG" = yes; then
2574 echo "$ac_t""yes" 1>&6
2575 else
2576 echo "$ac_t""no" 1>&6
2577 fi
2578
2579
2580 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2581 echo "configure:2582: checking for --enable-debug_info" >&5
2582 no_cache=0
2583 # Check whether --enable-debug_info or --disable-debug_info was given.
2584 if test "${enable_debug_info+set}" = set; then
2585 enableval="$enable_debug_info"
2586
2587 if test "$enableval" = yes; then
2588 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2589 else
2590 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2591 fi
2592
2593 else
2594
2595 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2596 if test "x$LINE" != x ; then
2597 eval "DEFAULT_$LINE"
2598 else
2599 no_cache=1
2600 fi
2601
2602 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2603
2604 fi
2605
2606
2607 eval "$ac_cv_use_debug_info"
2608 if test "$no_cache" != 1; then
2609 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2610 fi
2611
2612 if test "$wxUSE_DEBUG_INFO" = yes; then
2613 echo "$ac_t""yes" 1>&6
2614 else
2615 echo "$ac_t""no" 1>&6
2616 fi
2617
2618
2619 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2620 echo "configure:2621: checking for --enable-debug_gdb" >&5
2621 no_cache=0
2622 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2623 if test "${enable_debug_gdb+set}" = set; then
2624 enableval="$enable_debug_gdb"
2625
2626 if test "$enableval" = yes; then
2627 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2628 else
2629 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2630 fi
2631
2632 else
2633
2634 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2635 if test "x$LINE" != x ; then
2636 eval "DEFAULT_$LINE"
2637 else
2638 no_cache=1
2639 fi
2640
2641 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2642
2643 fi
2644
2645
2646 eval "$ac_cv_use_debug_gdb"
2647 if test "$no_cache" != 1; then
2648 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2649 fi
2650
2651 if test "$wxUSE_DEBUG_GDB" = yes; then
2652 echo "$ac_t""yes" 1>&6
2653 else
2654 echo "$ac_t""no" 1>&6
2655 fi
2656
2657
2658 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2659 echo "configure:2660: checking for --enable-debug_cntxt" >&5
2660 no_cache=0
2661 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2662 if test "${enable_debug_cntxt+set}" = set; then
2663 enableval="$enable_debug_cntxt"
2664
2665 if test "$enableval" = yes; then
2666 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2667 else
2668 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2669 fi
2670
2671 else
2672
2673 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2674 if test "x$LINE" != x ; then
2675 eval "DEFAULT_$LINE"
2676 else
2677 no_cache=1
2678 fi
2679
2680 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2681
2682 fi
2683
2684
2685 eval "$ac_cv_use_debug_cntxt"
2686 if test "$no_cache" != 1; then
2687 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2688 fi
2689
2690 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2691 echo "$ac_t""yes" 1>&6
2692 else
2693 echo "$ac_t""no" 1>&6
2694 fi
2695
2696
2697 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2698 echo "configure:2699: checking for --enable-mem_tracing" >&5
2699 no_cache=0
2700 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2701 if test "${enable_mem_tracing+set}" = set; then
2702 enableval="$enable_mem_tracing"
2703
2704 if test "$enableval" = yes; then
2705 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2706 else
2707 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2708 fi
2709
2710 else
2711
2712 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2713 if test "x$LINE" != x ; then
2714 eval "DEFAULT_$LINE"
2715 else
2716 no_cache=1
2717 fi
2718
2719 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2720
2721 fi
2722
2723
2724 eval "$ac_cv_use_mem_tracing"
2725 if test "$no_cache" != 1; then
2726 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2727 fi
2728
2729 if test "$wxUSE_MEM_TRACING" = yes; then
2730 echo "$ac_t""yes" 1>&6
2731 else
2732 echo "$ac_t""no" 1>&6
2733 fi
2734
2735
2736 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2737 echo "configure:2738: checking for --enable-profile" >&5
2738 no_cache=0
2739 # Check whether --enable-profile or --disable-profile was given.
2740 if test "${enable_profile+set}" = set; then
2741 enableval="$enable_profile"
2742
2743 if test "$enableval" = yes; then
2744 ac_cv_use_profile='wxUSE_PROFILE=yes'
2745 else
2746 ac_cv_use_profile='wxUSE_PROFILE=no'
2747 fi
2748
2749 else
2750
2751 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2752 if test "x$LINE" != x ; then
2753 eval "DEFAULT_$LINE"
2754 else
2755 no_cache=1
2756 fi
2757
2758 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2759
2760 fi
2761
2762
2763 eval "$ac_cv_use_profile"
2764 if test "$no_cache" != 1; then
2765 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2766 fi
2767
2768 if test "$wxUSE_PROFILE" = yes; then
2769 echo "$ac_t""yes" 1>&6
2770 else
2771 echo "$ac_t""no" 1>&6
2772 fi
2773
2774
2775 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2776 echo "configure:2777: checking for --enable-no_rtti" >&5
2777 no_cache=0
2778 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2779 if test "${enable_no_rtti+set}" = set; then
2780 enableval="$enable_no_rtti"
2781
2782 if test "$enableval" = yes; then
2783 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2784 else
2785 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2786 fi
2787
2788 else
2789
2790 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2791 if test "x$LINE" != x ; then
2792 eval "DEFAULT_$LINE"
2793 else
2794 no_cache=1
2795 fi
2796
2797 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2798
2799 fi
2800
2801
2802 eval "$ac_cv_use_no_rtti"
2803 if test "$no_cache" != 1; then
2804 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2805 fi
2806
2807 if test "$wxUSE_NO_RTTI" = yes; then
2808 echo "$ac_t""yes" 1>&6
2809 else
2810 echo "$ac_t""no" 1>&6
2811 fi
2812
2813
2814 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2815 echo "configure:2816: checking for --enable-no_exceptions" >&5
2816 no_cache=0
2817 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2818 if test "${enable_no_exceptions+set}" = set; then
2819 enableval="$enable_no_exceptions"
2820
2821 if test "$enableval" = yes; then
2822 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2823 else
2824 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2825 fi
2826
2827 else
2828
2829 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2830 if test "x$LINE" != x ; then
2831 eval "DEFAULT_$LINE"
2832 else
2833 no_cache=1
2834 fi
2835
2836 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2837
2838 fi
2839
2840
2841 eval "$ac_cv_use_no_exceptions"
2842 if test "$no_cache" != 1; then
2843 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2844 fi
2845
2846 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2847 echo "$ac_t""yes" 1>&6
2848 else
2849 echo "$ac_t""no" 1>&6
2850 fi
2851
2852
2853 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2854 echo "configure:2855: checking for --enable-permissive" >&5
2855 no_cache=0
2856 # Check whether --enable-permissive or --disable-permissive was given.
2857 if test "${enable_permissive+set}" = set; then
2858 enableval="$enable_permissive"
2859
2860 if test "$enableval" = yes; then
2861 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2862 else
2863 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2864 fi
2865
2866 else
2867
2868 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2869 if test "x$LINE" != x ; then
2870 eval "DEFAULT_$LINE"
2871 else
2872 no_cache=1
2873 fi
2874
2875 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2876
2877 fi
2878
2879
2880 eval "$ac_cv_use_permissive"
2881 if test "$no_cache" != 1; then
2882 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2883 fi
2884
2885 if test "$wxUSE_PERMISSIVE" = yes; then
2886 echo "$ac_t""yes" 1>&6
2887 else
2888 echo "$ac_t""no" 1>&6
2889 fi
2890
2891
2892 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2893 echo "configure:2894: checking for --enable-no_deps" >&5
2894 no_cache=0
2895 # Check whether --enable-no_deps or --disable-no_deps was given.
2896 if test "${enable_no_deps+set}" = set; then
2897 enableval="$enable_no_deps"
2898
2899 if test "$enableval" = yes; then
2900 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2901 else
2902 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2903 fi
2904
2905 else
2906
2907 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2908 if test "x$LINE" != x ; then
2909 eval "DEFAULT_$LINE"
2910 else
2911 no_cache=1
2912 fi
2913
2914 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2915
2916 fi
2917
2918
2919 eval "$ac_cv_use_no_deps"
2920 if test "$no_cache" != 1; then
2921 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2922 fi
2923
2924 if test "$wxUSE_NO_DEPS" = yes; then
2925 echo "$ac_t""yes" 1>&6
2926 else
2927 echo "$ac_t""no" 1>&6
2928 fi
2929
2930
2931
2932 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2933 echo "configure:2934: checking for --enable-compat20" >&5
2934 no_cache=0
2935 # Check whether --enable-compat20 or --disable-compat20 was given.
2936 if test "${enable_compat20+set}" = set; then
2937 enableval="$enable_compat20"
2938
2939 if test "$enableval" = yes; then
2940 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2941 else
2942 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2943 fi
2944
2945 else
2946
2947 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2948 if test "x$LINE" != x ; then
2949 eval "DEFAULT_$LINE"
2950 else
2951 no_cache=1
2952 fi
2953
2954 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2955
2956 fi
2957
2958
2959 eval "$ac_cv_use_compat20"
2960 if test "$no_cache" != 1; then
2961 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2962 fi
2963
2964 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2965 echo "$ac_t""yes" 1>&6
2966 else
2967 echo "$ac_t""no" 1>&6
2968 fi
2969
2970
2971 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2972 echo "configure:2973: checking for --enable-compat22" >&5
2973 no_cache=0
2974 # Check whether --enable-compat22 or --disable-compat22 was given.
2975 if test "${enable_compat22+set}" = set; then
2976 enableval="$enable_compat22"
2977
2978 if test "$enableval" = yes; then
2979 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2980 else
2981 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2982 fi
2983
2984 else
2985
2986 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2987 if test "x$LINE" != x ; then
2988 eval "DEFAULT_$LINE"
2989 else
2990 no_cache=1
2991 fi
2992
2993 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2994
2995 fi
2996
2997
2998 eval "$ac_cv_use_compat22"
2999 if test "$no_cache" != 1; then
3000 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3001 fi
3002
3003 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3004 echo "$ac_t""yes" 1>&6
3005 else
3006 echo "$ac_t""no" 1>&6
3007 fi
3008
3009
3010
3011
3012 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3013 echo "configure:3014: checking for --enable-intl" >&5
3014 no_cache=0
3015 # Check whether --enable-intl or --disable-intl was given.
3016 if test "${enable_intl+set}" = set; then
3017 enableval="$enable_intl"
3018
3019 if test "$enableval" = yes; then
3020 ac_cv_use_intl='wxUSE_INTL=yes'
3021 else
3022 ac_cv_use_intl='wxUSE_INTL=no'
3023 fi
3024
3025 else
3026
3027 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3028 if test "x$LINE" != x ; then
3029 eval "DEFAULT_$LINE"
3030 else
3031 no_cache=1
3032 fi
3033
3034 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3035
3036 fi
3037
3038
3039 eval "$ac_cv_use_intl"
3040 if test "$no_cache" != 1; then
3041 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3042 fi
3043
3044 if test "$wxUSE_INTL" = yes; then
3045 echo "$ac_t""yes" 1>&6
3046 else
3047 echo "$ac_t""no" 1>&6
3048 fi
3049
3050
3051 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3052 echo "configure:3053: checking for --enable-config" >&5
3053 no_cache=0
3054 # Check whether --enable-config or --disable-config was given.
3055 if test "${enable_config+set}" = set; then
3056 enableval="$enable_config"
3057
3058 if test "$enableval" = yes; then
3059 ac_cv_use_config='wxUSE_CONFIG=yes'
3060 else
3061 ac_cv_use_config='wxUSE_CONFIG=no'
3062 fi
3063
3064 else
3065
3066 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3067 if test "x$LINE" != x ; then
3068 eval "DEFAULT_$LINE"
3069 else
3070 no_cache=1
3071 fi
3072
3073 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3074
3075 fi
3076
3077
3078 eval "$ac_cv_use_config"
3079 if test "$no_cache" != 1; then
3080 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3081 fi
3082
3083 if test "$wxUSE_CONFIG" = yes; then
3084 echo "$ac_t""yes" 1>&6
3085 else
3086 echo "$ac_t""no" 1>&6
3087 fi
3088
3089
3090
3091 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3092 echo "configure:3093: checking for --enable-protocols" >&5
3093 no_cache=0
3094 # Check whether --enable-protocols or --disable-protocols was given.
3095 if test "${enable_protocols+set}" = set; then
3096 enableval="$enable_protocols"
3097
3098 if test "$enableval" = yes; then
3099 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3100 else
3101 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3102 fi
3103
3104 else
3105
3106 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3107 if test "x$LINE" != x ; then
3108 eval "DEFAULT_$LINE"
3109 else
3110 no_cache=1
3111 fi
3112
3113 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3114
3115 fi
3116
3117
3118 eval "$ac_cv_use_protocols"
3119 if test "$no_cache" != 1; then
3120 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3121 fi
3122
3123 if test "$wxUSE_PROTOCOL" = yes; then
3124 echo "$ac_t""yes" 1>&6
3125 else
3126 echo "$ac_t""no" 1>&6
3127 fi
3128
3129
3130 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3131 echo "configure:3132: checking for --enable-ftp" >&5
3132 no_cache=0
3133 # Check whether --enable-ftp or --disable-ftp was given.
3134 if test "${enable_ftp+set}" = set; then
3135 enableval="$enable_ftp"
3136
3137 if test "$enableval" = yes; then
3138 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3139 else
3140 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3141 fi
3142
3143 else
3144
3145 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3146 if test "x$LINE" != x ; then
3147 eval "DEFAULT_$LINE"
3148 else
3149 no_cache=1
3150 fi
3151
3152 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3153
3154 fi
3155
3156
3157 eval "$ac_cv_use_ftp"
3158 if test "$no_cache" != 1; then
3159 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3160 fi
3161
3162 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3163 echo "$ac_t""yes" 1>&6
3164 else
3165 echo "$ac_t""no" 1>&6
3166 fi
3167
3168
3169 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3170 echo "configure:3171: checking for --enable-http" >&5
3171 no_cache=0
3172 # Check whether --enable-http or --disable-http was given.
3173 if test "${enable_http+set}" = set; then
3174 enableval="$enable_http"
3175
3176 if test "$enableval" = yes; then
3177 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3178 else
3179 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3180 fi
3181
3182 else
3183
3184 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3185 if test "x$LINE" != x ; then
3186 eval "DEFAULT_$LINE"
3187 else
3188 no_cache=1
3189 fi
3190
3191 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3192
3193 fi
3194
3195
3196 eval "$ac_cv_use_http"
3197 if test "$no_cache" != 1; then
3198 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3199 fi
3200
3201 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3202 echo "$ac_t""yes" 1>&6
3203 else
3204 echo "$ac_t""no" 1>&6
3205 fi
3206
3207
3208 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3209 echo "configure:3210: checking for --enable-fileproto" >&5
3210 no_cache=0
3211 # Check whether --enable-fileproto or --disable-fileproto was given.
3212 if test "${enable_fileproto+set}" = set; then
3213 enableval="$enable_fileproto"
3214
3215 if test "$enableval" = yes; then
3216 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3217 else
3218 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3219 fi
3220
3221 else
3222
3223 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3224 if test "x$LINE" != x ; then
3225 eval "DEFAULT_$LINE"
3226 else
3227 no_cache=1
3228 fi
3229
3230 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3231
3232 fi
3233
3234
3235 eval "$ac_cv_use_fileproto"
3236 if test "$no_cache" != 1; then
3237 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3238 fi
3239
3240 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3241 echo "$ac_t""yes" 1>&6
3242 else
3243 echo "$ac_t""no" 1>&6
3244 fi
3245
3246
3247 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3248 echo "configure:3249: checking for --enable-sockets" >&5
3249 no_cache=0
3250 # Check whether --enable-sockets or --disable-sockets was given.
3251 if test "${enable_sockets+set}" = set; then
3252 enableval="$enable_sockets"
3253
3254 if test "$enableval" = yes; then
3255 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3256 else
3257 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3258 fi
3259
3260 else
3261
3262 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3263 if test "x$LINE" != x ; then
3264 eval "DEFAULT_$LINE"
3265 else
3266 no_cache=1
3267 fi
3268
3269 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3270
3271 fi
3272
3273
3274 eval "$ac_cv_use_sockets"
3275 if test "$no_cache" != 1; then
3276 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3277 fi
3278
3279 if test "$wxUSE_SOCKETS" = yes; then
3280 echo "$ac_t""yes" 1>&6
3281 else
3282 echo "$ac_t""no" 1>&6
3283 fi
3284
3285
3286
3287 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3288 echo "configure:3289: checking for --enable-ipc" >&5
3289 no_cache=0
3290 # Check whether --enable-ipc or --disable-ipc was given.
3291 if test "${enable_ipc+set}" = set; then
3292 enableval="$enable_ipc"
3293
3294 if test "$enableval" = yes; then
3295 ac_cv_use_ipc='wxUSE_IPC=yes'
3296 else
3297 ac_cv_use_ipc='wxUSE_IPC=no'
3298 fi
3299
3300 else
3301
3302 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3303 if test "x$LINE" != x ; then
3304 eval "DEFAULT_$LINE"
3305 else
3306 no_cache=1
3307 fi
3308
3309 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3310
3311 fi
3312
3313
3314 eval "$ac_cv_use_ipc"
3315 if test "$no_cache" != 1; then
3316 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3317 fi
3318
3319 if test "$wxUSE_IPC" = yes; then
3320 echo "$ac_t""yes" 1>&6
3321 else
3322 echo "$ac_t""no" 1>&6
3323 fi
3324
3325
3326
3327 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3328 echo "configure:3329: checking for --enable-cmdline" >&5
3329 no_cache=0
3330 # Check whether --enable-cmdline or --disable-cmdline was given.
3331 if test "${enable_cmdline+set}" = set; then
3332 enableval="$enable_cmdline"
3333
3334 if test "$enableval" = yes; then
3335 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3336 else
3337 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3338 fi
3339
3340 else
3341
3342 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3343 if test "x$LINE" != x ; then
3344 eval "DEFAULT_$LINE"
3345 else
3346 no_cache=1
3347 fi
3348
3349 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3350
3351 fi
3352
3353
3354 eval "$ac_cv_use_cmdline"
3355 if test "$no_cache" != 1; then
3356 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3357 fi
3358
3359 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3360 echo "$ac_t""yes" 1>&6
3361 else
3362 echo "$ac_t""no" 1>&6
3363 fi
3364
3365
3366 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3367 echo "configure:3368: checking for --enable-datetime" >&5
3368 no_cache=0
3369 # Check whether --enable-datetime or --disable-datetime was given.
3370 if test "${enable_datetime+set}" = set; then
3371 enableval="$enable_datetime"
3372
3373 if test "$enableval" = yes; then
3374 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3375 else
3376 ac_cv_use_datetime='wxUSE_DATETIME=no'
3377 fi
3378
3379 else
3380
3381 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3382 if test "x$LINE" != x ; then
3383 eval "DEFAULT_$LINE"
3384 else
3385 no_cache=1
3386 fi
3387
3388 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3389
3390 fi
3391
3392
3393 eval "$ac_cv_use_datetime"
3394 if test "$no_cache" != 1; then
3395 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3396 fi
3397
3398 if test "$wxUSE_DATETIME" = yes; then
3399 echo "$ac_t""yes" 1>&6
3400 else
3401 echo "$ac_t""no" 1>&6
3402 fi
3403
3404
3405 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3406 echo "configure:3407: checking for --enable-timedate" >&5
3407 no_cache=0
3408 # Check whether --enable-timedate or --disable-timedate was given.
3409 if test "${enable_timedate+set}" = set; then
3410 enableval="$enable_timedate"
3411
3412 if test "$enableval" = yes; then
3413 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3414 else
3415 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3416 fi
3417
3418 else
3419
3420 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3421 if test "x$LINE" != x ; then
3422 eval "DEFAULT_$LINE"
3423 else
3424 no_cache=1
3425 fi
3426
3427 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3428
3429 fi
3430
3431
3432 eval "$ac_cv_use_timedate"
3433 if test "$no_cache" != 1; then
3434 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3435 fi
3436
3437 if test "$wxUSE_TIMEDATE" = yes; then
3438 echo "$ac_t""yes" 1>&6
3439 else
3440 echo "$ac_t""no" 1>&6
3441 fi
3442
3443
3444 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3445 echo "configure:3446: checking for --enable-stopwatch" >&5
3446 no_cache=0
3447 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3448 if test "${enable_stopwatch+set}" = set; then
3449 enableval="$enable_stopwatch"
3450
3451 if test "$enableval" = yes; then
3452 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3453 else
3454 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3455 fi
3456
3457 else
3458
3459 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3460 if test "x$LINE" != x ; then
3461 eval "DEFAULT_$LINE"
3462 else
3463 no_cache=1
3464 fi
3465
3466 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3467
3468 fi
3469
3470
3471 eval "$ac_cv_use_stopwatch"
3472 if test "$no_cache" != 1; then
3473 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3474 fi
3475
3476 if test "$wxUSE_STOPWATCH" = yes; then
3477 echo "$ac_t""yes" 1>&6
3478 else
3479 echo "$ac_t""no" 1>&6
3480 fi
3481
3482
3483 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3484 echo "configure:3485: checking for --enable-dialupman" >&5
3485 no_cache=0
3486 # Check whether --enable-dialupman or --disable-dialupman was given.
3487 if test "${enable_dialupman+set}" = set; then
3488 enableval="$enable_dialupman"
3489
3490 if test "$enableval" = yes; then
3491 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3492 else
3493 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3494 fi
3495
3496 else
3497
3498 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3499 if test "x$LINE" != x ; then
3500 eval "DEFAULT_$LINE"
3501 else
3502 no_cache=1
3503 fi
3504
3505 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3506
3507 fi
3508
3509
3510 eval "$ac_cv_use_dialupman"
3511 if test "$no_cache" != 1; then
3512 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3513 fi
3514
3515 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3516 echo "$ac_t""yes" 1>&6
3517 else
3518 echo "$ac_t""no" 1>&6
3519 fi
3520
3521
3522 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3523 echo "configure:3524: checking for --enable-apple_ieee" >&5
3524 no_cache=0
3525 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3526 if test "${enable_apple_ieee+set}" = set; then
3527 enableval="$enable_apple_ieee"
3528
3529 if test "$enableval" = yes; then
3530 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3531 else
3532 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3533 fi
3534
3535 else
3536
3537 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3538 if test "x$LINE" != x ; then
3539 eval "DEFAULT_$LINE"
3540 else
3541 no_cache=1
3542 fi
3543
3544 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3545
3546 fi
3547
3548
3549 eval "$ac_cv_use_apple_ieee"
3550 if test "$no_cache" != 1; then
3551 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3552 fi
3553
3554 if test "$wxUSE_APPLE_IEEE" = yes; then
3555 echo "$ac_t""yes" 1>&6
3556 else
3557 echo "$ac_t""no" 1>&6
3558 fi
3559
3560
3561 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3562 echo "configure:3563: checking for --enable-timer" >&5
3563 no_cache=0
3564 # Check whether --enable-timer or --disable-timer was given.
3565 if test "${enable_timer+set}" = set; then
3566 enableval="$enable_timer"
3567
3568 if test "$enableval" = yes; then
3569 ac_cv_use_timer='wxUSE_TIMER=yes'
3570 else
3571 ac_cv_use_timer='wxUSE_TIMER=no'
3572 fi
3573
3574 else
3575
3576 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3577 if test "x$LINE" != x ; then
3578 eval "DEFAULT_$LINE"
3579 else
3580 no_cache=1
3581 fi
3582
3583 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3584
3585 fi
3586
3587
3588 eval "$ac_cv_use_timer"
3589 if test "$no_cache" != 1; then
3590 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3591 fi
3592
3593 if test "$wxUSE_TIMER" = yes; then
3594 echo "$ac_t""yes" 1>&6
3595 else
3596 echo "$ac_t""no" 1>&6
3597 fi
3598
3599
3600 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3601 echo "configure:3602: checking for --enable-wave" >&5
3602 no_cache=0
3603 # Check whether --enable-wave or --disable-wave was given.
3604 if test "${enable_wave+set}" = set; then
3605 enableval="$enable_wave"
3606
3607 if test "$enableval" = yes; then
3608 ac_cv_use_wave='wxUSE_WAVE=yes'
3609 else
3610 ac_cv_use_wave='wxUSE_WAVE=no'
3611 fi
3612
3613 else
3614
3615 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3616 if test "x$LINE" != x ; then
3617 eval "DEFAULT_$LINE"
3618 else
3619 no_cache=1
3620 fi
3621
3622 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3623
3624 fi
3625
3626
3627 eval "$ac_cv_use_wave"
3628 if test "$no_cache" != 1; then
3629 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3630 fi
3631
3632 if test "$wxUSE_WAVE" = yes; then
3633 echo "$ac_t""yes" 1>&6
3634 else
3635 echo "$ac_t""no" 1>&6
3636 fi
3637
3638
3639 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3640 echo "configure:3641: checking for --enable-fraction" >&5
3641 no_cache=0
3642 # Check whether --enable-fraction or --disable-fraction was given.
3643 if test "${enable_fraction+set}" = set; then
3644 enableval="$enable_fraction"
3645
3646 if test "$enableval" = yes; then
3647 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3648 else
3649 ac_cv_use_fraction='wxUSE_FRACTION=no'
3650 fi
3651
3652 else
3653
3654 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3655 if test "x$LINE" != x ; then
3656 eval "DEFAULT_$LINE"
3657 else
3658 no_cache=1
3659 fi
3660
3661 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3662
3663 fi
3664
3665
3666 eval "$ac_cv_use_fraction"
3667 if test "$no_cache" != 1; then
3668 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3669 fi
3670
3671 if test "$wxUSE_FRACTION" = yes; then
3672 echo "$ac_t""yes" 1>&6
3673 else
3674 echo "$ac_t""no" 1>&6
3675 fi
3676
3677
3678 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3679 echo "configure:3680: checking for --enable-dynlib" >&5
3680 no_cache=0
3681 # Check whether --enable-dynlib or --disable-dynlib was given.
3682 if test "${enable_dynlib+set}" = set; then
3683 enableval="$enable_dynlib"
3684
3685 if test "$enableval" = yes; then
3686 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3687 else
3688 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3689 fi
3690
3691 else
3692
3693 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3694 if test "x$LINE" != x ; then
3695 eval "DEFAULT_$LINE"
3696 else
3697 no_cache=1
3698 fi
3699
3700 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3701
3702 fi
3703
3704
3705 eval "$ac_cv_use_dynlib"
3706 if test "$no_cache" != 1; then
3707 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3708 fi
3709
3710 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3711 echo "$ac_t""yes" 1>&6
3712 else
3713 echo "$ac_t""no" 1>&6
3714 fi
3715
3716
3717 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3718 echo "configure:3719: checking for --enable-dynamicloader" >&5
3719 no_cache=0
3720 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3721 if test "${enable_dynamicloader+set}" = set; then
3722 enableval="$enable_dynamicloader"
3723
3724 if test "$enableval" = yes; then
3725 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3726 else
3727 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3728 fi
3729
3730 else
3731
3732 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3733 if test "x$LINE" != x ; then
3734 eval "DEFAULT_$LINE"
3735 else
3736 no_cache=1
3737 fi
3738
3739 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3740
3741 fi
3742
3743
3744 eval "$ac_cv_use_dynamicloader"
3745 if test "$no_cache" != 1; then
3746 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3747 fi
3748
3749 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3750 echo "$ac_t""yes" 1>&6
3751 else
3752 echo "$ac_t""no" 1>&6
3753 fi
3754
3755
3756 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3757 echo "configure:3758: checking for --enable-longlong" >&5
3758 no_cache=0
3759 # Check whether --enable-longlong or --disable-longlong was given.
3760 if test "${enable_longlong+set}" = set; then
3761 enableval="$enable_longlong"
3762
3763 if test "$enableval" = yes; then
3764 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3765 else
3766 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3767 fi
3768
3769 else
3770
3771 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3772 if test "x$LINE" != x ; then
3773 eval "DEFAULT_$LINE"
3774 else
3775 no_cache=1
3776 fi
3777
3778 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3779
3780 fi
3781
3782
3783 eval "$ac_cv_use_longlong"
3784 if test "$no_cache" != 1; then
3785 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3786 fi
3787
3788 if test "$wxUSE_LONGLONG" = yes; then
3789 echo "$ac_t""yes" 1>&6
3790 else
3791 echo "$ac_t""no" 1>&6
3792 fi
3793
3794
3795 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3796 echo "configure:3797: checking for --enable-geometry" >&5
3797 no_cache=0
3798 # Check whether --enable-geometry or --disable-geometry was given.
3799 if test "${enable_geometry+set}" = set; then
3800 enableval="$enable_geometry"
3801
3802 if test "$enableval" = yes; then
3803 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3804 else
3805 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3806 fi
3807
3808 else
3809
3810 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3811 if test "x$LINE" != x ; then
3812 eval "DEFAULT_$LINE"
3813 else
3814 no_cache=1
3815 fi
3816
3817 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3818
3819 fi
3820
3821
3822 eval "$ac_cv_use_geometry"
3823 if test "$no_cache" != 1; then
3824 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3825 fi
3826
3827 if test "$wxUSE_GEOMETRY" = yes; then
3828 echo "$ac_t""yes" 1>&6
3829 else
3830 echo "$ac_t""no" 1>&6
3831 fi
3832
3833
3834 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3835 echo "configure:3836: checking for --enable-log" >&5
3836 no_cache=0
3837 # Check whether --enable-log or --disable-log was given.
3838 if test "${enable_log+set}" = set; then
3839 enableval="$enable_log"
3840
3841 if test "$enableval" = yes; then
3842 ac_cv_use_log='wxUSE_LOG=yes'
3843 else
3844 ac_cv_use_log='wxUSE_LOG=no'
3845 fi
3846
3847 else
3848
3849 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3850 if test "x$LINE" != x ; then
3851 eval "DEFAULT_$LINE"
3852 else
3853 no_cache=1
3854 fi
3855
3856 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3857
3858 fi
3859
3860
3861 eval "$ac_cv_use_log"
3862 if test "$no_cache" != 1; then
3863 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3864 fi
3865
3866 if test "$wxUSE_LOG" = yes; then
3867 echo "$ac_t""yes" 1>&6
3868 else
3869 echo "$ac_t""no" 1>&6
3870 fi
3871
3872
3873 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3874 echo "configure:3875: checking for --enable-streams" >&5
3875 no_cache=0
3876 # Check whether --enable-streams or --disable-streams was given.
3877 if test "${enable_streams+set}" = set; then
3878 enableval="$enable_streams"
3879
3880 if test "$enableval" = yes; then
3881 ac_cv_use_streams='wxUSE_STREAMS=yes'
3882 else
3883 ac_cv_use_streams='wxUSE_STREAMS=no'
3884 fi
3885
3886 else
3887
3888 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3889 if test "x$LINE" != x ; then
3890 eval "DEFAULT_$LINE"
3891 else
3892 no_cache=1
3893 fi
3894
3895 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3896
3897 fi
3898
3899
3900 eval "$ac_cv_use_streams"
3901 if test "$no_cache" != 1; then
3902 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3903 fi
3904
3905 if test "$wxUSE_STREAMS" = yes; then
3906 echo "$ac_t""yes" 1>&6
3907 else
3908 echo "$ac_t""no" 1>&6
3909 fi
3910
3911
3912 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3913 echo "configure:3914: checking for --enable-file" >&5
3914 no_cache=0
3915 # Check whether --enable-file or --disable-file was given.
3916 if test "${enable_file+set}" = set; then
3917 enableval="$enable_file"
3918
3919 if test "$enableval" = yes; then
3920 ac_cv_use_file='wxUSE_FILE=yes'
3921 else
3922 ac_cv_use_file='wxUSE_FILE=no'
3923 fi
3924
3925 else
3926
3927 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3928 if test "x$LINE" != x ; then
3929 eval "DEFAULT_$LINE"
3930 else
3931 no_cache=1
3932 fi
3933
3934 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3935
3936 fi
3937
3938
3939 eval "$ac_cv_use_file"
3940 if test "$no_cache" != 1; then
3941 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3942 fi
3943
3944 if test "$wxUSE_FILE" = yes; then
3945 echo "$ac_t""yes" 1>&6
3946 else
3947 echo "$ac_t""no" 1>&6
3948 fi
3949
3950
3951 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3952 echo "configure:3953: checking for --enable-ffile" >&5
3953 no_cache=0
3954 # Check whether --enable-ffile or --disable-ffile was given.
3955 if test "${enable_ffile+set}" = set; then
3956 enableval="$enable_ffile"
3957
3958 if test "$enableval" = yes; then
3959 ac_cv_use_ffile='wxUSE_FFILE=yes'
3960 else
3961 ac_cv_use_ffile='wxUSE_FFILE=no'
3962 fi
3963
3964 else
3965
3966 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3967 if test "x$LINE" != x ; then
3968 eval "DEFAULT_$LINE"
3969 else
3970 no_cache=1
3971 fi
3972
3973 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3974
3975 fi
3976
3977
3978 eval "$ac_cv_use_ffile"
3979 if test "$no_cache" != 1; then
3980 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3981 fi
3982
3983 if test "$wxUSE_FFILE" = yes; then
3984 echo "$ac_t""yes" 1>&6
3985 else
3986 echo "$ac_t""no" 1>&6
3987 fi
3988
3989
3990 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
3991 echo "configure:3992: checking for --enable-textbuf" >&5
3992 no_cache=0
3993 # Check whether --enable-textbuf or --disable-textbuf was given.
3994 if test "${enable_textbuf+set}" = set; then
3995 enableval="$enable_textbuf"
3996
3997 if test "$enableval" = yes; then
3998 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3999 else
4000 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4001 fi
4002
4003 else
4004
4005 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4006 if test "x$LINE" != x ; then
4007 eval "DEFAULT_$LINE"
4008 else
4009 no_cache=1
4010 fi
4011
4012 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4013
4014 fi
4015
4016
4017 eval "$ac_cv_use_textbuf"
4018 if test "$no_cache" != 1; then
4019 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4020 fi
4021
4022 if test "$wxUSE_TEXTBUFFER" = yes; then
4023 echo "$ac_t""yes" 1>&6
4024 else
4025 echo "$ac_t""no" 1>&6
4026 fi
4027
4028
4029 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
4030 echo "configure:4031: checking for --enable-textfile" >&5
4031 no_cache=0
4032 # Check whether --enable-textfile or --disable-textfile was given.
4033 if test "${enable_textfile+set}" = set; then
4034 enableval="$enable_textfile"
4035
4036 if test "$enableval" = yes; then
4037 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4038 else
4039 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4040 fi
4041
4042 else
4043
4044 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4045 if test "x$LINE" != x ; then
4046 eval "DEFAULT_$LINE"
4047 else
4048 no_cache=1
4049 fi
4050
4051 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4052
4053 fi
4054
4055
4056 eval "$ac_cv_use_textfile"
4057 if test "$no_cache" != 1; then
4058 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4059 fi
4060
4061 if test "$wxUSE_TEXTFILE" = yes; then
4062 echo "$ac_t""yes" 1>&6
4063 else
4064 echo "$ac_t""no" 1>&6
4065 fi
4066
4067
4068 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
4069 echo "configure:4070: checking for --enable-fontmap" >&5
4070 no_cache=0
4071 # Check whether --enable-fontmap or --disable-fontmap was given.
4072 if test "${enable_fontmap+set}" = set; then
4073 enableval="$enable_fontmap"
4074
4075 if test "$enableval" = yes; then
4076 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4077 else
4078 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4079 fi
4080
4081 else
4082
4083 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4084 if test "x$LINE" != x ; then
4085 eval "DEFAULT_$LINE"
4086 else
4087 no_cache=1
4088 fi
4089
4090 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4091
4092 fi
4093
4094
4095 eval "$ac_cv_use_fontmap"
4096 if test "$no_cache" != 1; then
4097 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4098 fi
4099
4100 if test "$wxUSE_FONTMAP" = yes; then
4101 echo "$ac_t""yes" 1>&6
4102 else
4103 echo "$ac_t""no" 1>&6
4104 fi
4105
4106
4107 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
4108 echo "configure:4109: checking for --enable-unicode" >&5
4109 no_cache=0
4110 # Check whether --enable-unicode or --disable-unicode was given.
4111 if test "${enable_unicode+set}" = set; then
4112 enableval="$enable_unicode"
4113
4114 if test "$enableval" = yes; then
4115 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4116 else
4117 ac_cv_use_unicode='wxUSE_UNICODE=no'
4118 fi
4119
4120 else
4121
4122 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4123 if test "x$LINE" != x ; then
4124 eval "DEFAULT_$LINE"
4125 else
4126 no_cache=1
4127 fi
4128
4129 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4130
4131 fi
4132
4133
4134 eval "$ac_cv_use_unicode"
4135 if test "$no_cache" != 1; then
4136 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4137 fi
4138
4139 if test "$wxUSE_UNICODE" = yes; then
4140 echo "$ac_t""yes" 1>&6
4141 else
4142 echo "$ac_t""no" 1>&6
4143 fi
4144
4145
4146 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
4147 echo "configure:4148: checking for --enable-mslu" >&5
4148 no_cache=0
4149 # Check whether --enable-mslu or --disable-mslu was given.
4150 if test "${enable_mslu+set}" = set; then
4151 enableval="$enable_mslu"
4152
4153 if test "$enableval" = yes; then
4154 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4155 else
4156 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4157 fi
4158
4159 else
4160
4161 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4162 if test "x$LINE" != x ; then
4163 eval "DEFAULT_$LINE"
4164 else
4165 no_cache=1
4166 fi
4167
4168 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4169
4170 fi
4171
4172
4173 eval "$ac_cv_use_mslu"
4174 if test "$no_cache" != 1; then
4175 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4176 fi
4177
4178 if test "$wxUSE_UNICODE_MSLU" = yes; then
4179 echo "$ac_t""yes" 1>&6
4180 else
4181 echo "$ac_t""no" 1>&6
4182 fi
4183
4184
4185 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
4186 echo "configure:4187: checking for --enable-wxprintfv" >&5
4187 no_cache=0
4188 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4189 if test "${enable_wxprintfv+set}" = set; then
4190 enableval="$enable_wxprintfv"
4191
4192 if test "$enableval" = yes; then
4193 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4194 else
4195 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4196 fi
4197
4198 else
4199
4200 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4201 if test "x$LINE" != x ; then
4202 eval "DEFAULT_$LINE"
4203 else
4204 no_cache=1
4205 fi
4206
4207 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4208
4209 fi
4210
4211
4212 eval "$ac_cv_use_wxprintfv"
4213 if test "$no_cache" != 1; then
4214 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4215 fi
4216
4217 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4218 echo "$ac_t""yes" 1>&6
4219 else
4220 echo "$ac_t""no" 1>&6
4221 fi
4222
4223
4224 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4225 echo "configure:4226: checking for --enable-std_iostreams" >&5
4226 no_cache=0
4227 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4228 if test "${enable_std_iostreams+set}" = set; then
4229 enableval="$enable_std_iostreams"
4230
4231 if test "$enableval" = yes; then
4232 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4233 else
4234 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4235 fi
4236
4237 else
4238
4239 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4240 if test "x$LINE" != x ; then
4241 eval "DEFAULT_$LINE"
4242 else
4243 no_cache=1
4244 fi
4245
4246 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4247
4248 fi
4249
4250
4251 eval "$ac_cv_use_std_iostreams"
4252 if test "$no_cache" != 1; then
4253 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4254 fi
4255
4256 if test "$wxUSE_STD_IOSTREAM" = yes; then
4257 echo "$ac_t""yes" 1>&6
4258 else
4259 echo "$ac_t""no" 1>&6
4260 fi
4261
4262
4263 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4264 echo "configure:4265: checking for --enable-filesystem" >&5
4265 no_cache=0
4266 # Check whether --enable-filesystem or --disable-filesystem was given.
4267 if test "${enable_filesystem+set}" = set; then
4268 enableval="$enable_filesystem"
4269
4270 if test "$enableval" = yes; then
4271 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4272 else
4273 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4274 fi
4275
4276 else
4277
4278 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4279 if test "x$LINE" != x ; then
4280 eval "DEFAULT_$LINE"
4281 else
4282 no_cache=1
4283 fi
4284
4285 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4286
4287 fi
4288
4289
4290 eval "$ac_cv_use_filesystem"
4291 if test "$no_cache" != 1; then
4292 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4293 fi
4294
4295 if test "$wxUSE_FILESYSTEM" = yes; then
4296 echo "$ac_t""yes" 1>&6
4297 else
4298 echo "$ac_t""no" 1>&6
4299 fi
4300
4301
4302 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4303 echo "configure:4304: checking for --enable-fs_inet" >&5
4304 no_cache=0
4305 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4306 if test "${enable_fs_inet+set}" = set; then
4307 enableval="$enable_fs_inet"
4308
4309 if test "$enableval" = yes; then
4310 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4311 else
4312 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4313 fi
4314
4315 else
4316
4317 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4318 if test "x$LINE" != x ; then
4319 eval "DEFAULT_$LINE"
4320 else
4321 no_cache=1
4322 fi
4323
4324 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4325
4326 fi
4327
4328
4329 eval "$ac_cv_use_fs_inet"
4330 if test "$no_cache" != 1; then
4331 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4332 fi
4333
4334 if test "$wxUSE_FS_INET" = yes; then
4335 echo "$ac_t""yes" 1>&6
4336 else
4337 echo "$ac_t""no" 1>&6
4338 fi
4339
4340
4341 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4342 echo "configure:4343: checking for --enable-fs_zip" >&5
4343 no_cache=0
4344 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4345 if test "${enable_fs_zip+set}" = set; then
4346 enableval="$enable_fs_zip"
4347
4348 if test "$enableval" = yes; then
4349 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4350 else
4351 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4352 fi
4353
4354 else
4355
4356 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4357 if test "x$LINE" != x ; then
4358 eval "DEFAULT_$LINE"
4359 else
4360 no_cache=1
4361 fi
4362
4363 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4364
4365 fi
4366
4367
4368 eval "$ac_cv_use_fs_zip"
4369 if test "$no_cache" != 1; then
4370 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4371 fi
4372
4373 if test "$wxUSE_FS_ZIP" = yes; then
4374 echo "$ac_t""yes" 1>&6
4375 else
4376 echo "$ac_t""no" 1>&6
4377 fi
4378
4379
4380 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4381 echo "configure:4382: checking for --enable-zipstream" >&5
4382 no_cache=0
4383 # Check whether --enable-zipstream or --disable-zipstream was given.
4384 if test "${enable_zipstream+set}" = set; then
4385 enableval="$enable_zipstream"
4386
4387 if test "$enableval" = yes; then
4388 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4389 else
4390 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4391 fi
4392
4393 else
4394
4395 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4396 if test "x$LINE" != x ; then
4397 eval "DEFAULT_$LINE"
4398 else
4399 no_cache=1
4400 fi
4401
4402 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4403
4404 fi
4405
4406
4407 eval "$ac_cv_use_zipstream"
4408 if test "$no_cache" != 1; then
4409 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4410 fi
4411
4412 if test "$wxUSE_ZIPSTREAM" = yes; then
4413 echo "$ac_t""yes" 1>&6
4414 else
4415 echo "$ac_t""no" 1>&6
4416 fi
4417
4418
4419
4420 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4421 echo "configure:4422: checking for --enable-catch_segvs" >&5
4422 no_cache=0
4423 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4424 if test "${enable_catch_segvs+set}" = set; then
4425 enableval="$enable_catch_segvs"
4426
4427 if test "$enableval" = yes; then
4428 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4429 else
4430 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4431 fi
4432
4433 else
4434
4435 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4436 if test "x$LINE" != x ; then
4437 eval "DEFAULT_$LINE"
4438 else
4439 no_cache=1
4440 fi
4441
4442 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4443
4444 fi
4445
4446
4447 eval "$ac_cv_use_catch_segvs"
4448 if test "$no_cache" != 1; then
4449 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4450 fi
4451
4452 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4453 echo "$ac_t""yes" 1>&6
4454 else
4455 echo "$ac_t""no" 1>&6
4456 fi
4457
4458
4459 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4460 echo "configure:4461: checking for --enable-snglinst" >&5
4461 no_cache=0
4462 # Check whether --enable-snglinst or --disable-snglinst was given.
4463 if test "${enable_snglinst+set}" = set; then
4464 enableval="$enable_snglinst"
4465
4466 if test "$enableval" = yes; then
4467 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4468 else
4469 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4470 fi
4471
4472 else
4473
4474 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4475 if test "x$LINE" != x ; then
4476 eval "DEFAULT_$LINE"
4477 else
4478 no_cache=1
4479 fi
4480
4481 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4482
4483 fi
4484
4485
4486 eval "$ac_cv_use_snglinst"
4487 if test "$no_cache" != 1; then
4488 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4489 fi
4490
4491 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4492 echo "$ac_t""yes" 1>&6
4493 else
4494 echo "$ac_t""no" 1>&6
4495 fi
4496
4497
4498
4499 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4500 echo "configure:4501: checking for --enable-mimetype" >&5
4501 no_cache=0
4502 # Check whether --enable-mimetype or --disable-mimetype was given.
4503 if test "${enable_mimetype+set}" = set; then
4504 enableval="$enable_mimetype"
4505
4506 if test "$enableval" = yes; then
4507 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4508 else
4509 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4510 fi
4511
4512 else
4513
4514 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4515 if test "x$LINE" != x ; then
4516 eval "DEFAULT_$LINE"
4517 else
4518 no_cache=1
4519 fi
4520
4521 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4522
4523 fi
4524
4525
4526 eval "$ac_cv_use_mimetype"
4527 if test "$no_cache" != 1; then
4528 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4529 fi
4530
4531 if test "$wxUSE_MIMETYPE" = yes; then
4532 echo "$ac_t""yes" 1>&6
4533 else
4534 echo "$ac_t""no" 1>&6
4535 fi
4536
4537
4538 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4539 echo "configure:4540: checking for --enable-system_options" >&5
4540 no_cache=0
4541 # Check whether --enable-system_options or --disable-system_options was given.
4542 if test "${enable_system_options+set}" = set; then
4543 enableval="$enable_system_options"
4544
4545 if test "$enableval" = yes; then
4546 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4547 else
4548 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4549 fi
4550
4551 else
4552
4553 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4554 if test "x$LINE" != x ; then
4555 eval "DEFAULT_$LINE"
4556 else
4557 no_cache=1
4558 fi
4559
4560 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4561
4562 fi
4563
4564
4565 eval "$ac_cv_use_system_options"
4566 if test "$no_cache" != 1; then
4567 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4568 fi
4569
4570 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4571 echo "$ac_t""yes" 1>&6
4572 else
4573 echo "$ac_t""no" 1>&6
4574 fi
4575
4576
4577
4578
4579 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4580 echo "configure:4581: checking for --enable-threads" >&5
4581 no_cache=0
4582 # Check whether --enable-threads or --disable-threads was given.
4583 if test "${enable_threads+set}" = set; then
4584 enableval="$enable_threads"
4585
4586 if test "$enableval" = yes; then
4587 ac_cv_use_threads='wxUSE_THREADS=yes'
4588 else
4589 ac_cv_use_threads='wxUSE_THREADS=no'
4590 fi
4591
4592 else
4593
4594 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4595 if test "x$LINE" != x ; then
4596 eval "DEFAULT_$LINE"
4597 else
4598 no_cache=1
4599 fi
4600
4601 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4602
4603 fi
4604
4605
4606 eval "$ac_cv_use_threads"
4607 if test "$no_cache" != 1; then
4608 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4609 fi
4610
4611 if test "$wxUSE_THREADS" = yes; then
4612 echo "$ac_t""yes" 1>&6
4613 else
4614 echo "$ac_t""no" 1>&6
4615 fi
4616
4617
4618 if test "$wxUSE_GUI" = "yes"; then
4619
4620
4621
4622 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4623 echo "configure:4624: checking for --enable-docview" >&5
4624 no_cache=0
4625 # Check whether --enable-docview or --disable-docview was given.
4626 if test "${enable_docview+set}" = set; then
4627 enableval="$enable_docview"
4628
4629 if test "$enableval" = yes; then
4630 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4631 else
4632 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4633 fi
4634
4635 else
4636
4637 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4638 if test "x$LINE" != x ; then
4639 eval "DEFAULT_$LINE"
4640 else
4641 no_cache=1
4642 fi
4643
4644 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4645
4646 fi
4647
4648
4649 eval "$ac_cv_use_docview"
4650 if test "$no_cache" != 1; then
4651 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4652 fi
4653
4654 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4655 echo "$ac_t""yes" 1>&6
4656 else
4657 echo "$ac_t""no" 1>&6
4658 fi
4659
4660
4661 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4662 echo "configure:4663: checking for --enable-help" >&5
4663 no_cache=0
4664 # Check whether --enable-help or --disable-help was given.
4665 if test "${enable_help+set}" = set; then
4666 enableval="$enable_help"
4667
4668 if test "$enableval" = yes; then
4669 ac_cv_use_help='wxUSE_HELP=yes'
4670 else
4671 ac_cv_use_help='wxUSE_HELP=no'
4672 fi
4673
4674 else
4675
4676 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4677 if test "x$LINE" != x ; then
4678 eval "DEFAULT_$LINE"
4679 else
4680 no_cache=1
4681 fi
4682
4683 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4684
4685 fi
4686
4687
4688 eval "$ac_cv_use_help"
4689 if test "$no_cache" != 1; then
4690 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4691 fi
4692
4693 if test "$wxUSE_HELP" = yes; then
4694 echo "$ac_t""yes" 1>&6
4695 else
4696 echo "$ac_t""no" 1>&6
4697 fi
4698
4699
4700 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4701 echo "configure:4702: checking for --enable-mshtmlhelp" >&5
4702 no_cache=0
4703 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4704 if test "${enable_mshtmlhelp+set}" = set; then
4705 enableval="$enable_mshtmlhelp"
4706
4707 if test "$enableval" = yes; then
4708 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4709 else
4710 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4711 fi
4712
4713 else
4714
4715 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4716 if test "x$LINE" != x ; then
4717 eval "DEFAULT_$LINE"
4718 else
4719 no_cache=1
4720 fi
4721
4722 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4723
4724 fi
4725
4726
4727 eval "$ac_cv_use_mshtmlhelp"
4728 if test "$no_cache" != 1; then
4729 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4730 fi
4731
4732 if test "$wxUSE_MS_HTML_HELP" = yes; then
4733 echo "$ac_t""yes" 1>&6
4734 else
4735 echo "$ac_t""no" 1>&6
4736 fi
4737
4738
4739 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4740 echo "configure:4741: checking for --enable-html" >&5
4741 no_cache=0
4742 # Check whether --enable-html or --disable-html was given.
4743 if test "${enable_html+set}" = set; then
4744 enableval="$enable_html"
4745
4746 if test "$enableval" = yes; then
4747 ac_cv_use_html='wxUSE_HTML=yes'
4748 else
4749 ac_cv_use_html='wxUSE_HTML=no'
4750 fi
4751
4752 else
4753
4754 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4755 if test "x$LINE" != x ; then
4756 eval "DEFAULT_$LINE"
4757 else
4758 no_cache=1
4759 fi
4760
4761 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4762
4763 fi
4764
4765
4766 eval "$ac_cv_use_html"
4767 if test "$no_cache" != 1; then
4768 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4769 fi
4770
4771 if test "$wxUSE_HTML" = yes; then
4772 echo "$ac_t""yes" 1>&6
4773 else
4774 echo "$ac_t""no" 1>&6
4775 fi
4776
4777
4778 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4779 echo "configure:4780: checking for --enable-htmlhelp" >&5
4780 no_cache=0
4781 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4782 if test "${enable_htmlhelp+set}" = set; then
4783 enableval="$enable_htmlhelp"
4784
4785 if test "$enableval" = yes; then
4786 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4787 else
4788 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4789 fi
4790
4791 else
4792
4793 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4794 if test "x$LINE" != x ; then
4795 eval "DEFAULT_$LINE"
4796 else
4797 no_cache=1
4798 fi
4799
4800 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4801
4802 fi
4803
4804
4805 eval "$ac_cv_use_htmlhelp"
4806 if test "$no_cache" != 1; then
4807 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4808 fi
4809
4810 if test "$wxUSE_WXHTML_HELP" = yes; then
4811 echo "$ac_t""yes" 1>&6
4812 else
4813 echo "$ac_t""no" 1>&6
4814 fi
4815
4816
4817 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4818 echo "configure:4819: checking for --enable-constraints" >&5
4819 no_cache=0
4820 # Check whether --enable-constraints or --disable-constraints was given.
4821 if test "${enable_constraints+set}" = set; then
4822 enableval="$enable_constraints"
4823
4824 if test "$enableval" = yes; then
4825 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4826 else
4827 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4828 fi
4829
4830 else
4831
4832 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4833 if test "x$LINE" != x ; then
4834 eval "DEFAULT_$LINE"
4835 else
4836 no_cache=1
4837 fi
4838
4839 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4840
4841 fi
4842
4843
4844 eval "$ac_cv_use_constraints"
4845 if test "$no_cache" != 1; then
4846 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4847 fi
4848
4849 if test "$wxUSE_CONSTRAINTS" = yes; then
4850 echo "$ac_t""yes" 1>&6
4851 else
4852 echo "$ac_t""no" 1>&6
4853 fi
4854
4855
4856 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4857 echo "configure:4858: checking for --enable-printarch" >&5
4858 no_cache=0
4859 # Check whether --enable-printarch or --disable-printarch was given.
4860 if test "${enable_printarch+set}" = set; then
4861 enableval="$enable_printarch"
4862
4863 if test "$enableval" = yes; then
4864 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4865 else
4866 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4867 fi
4868
4869 else
4870
4871 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4872 if test "x$LINE" != x ; then
4873 eval "DEFAULT_$LINE"
4874 else
4875 no_cache=1
4876 fi
4877
4878 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4879
4880 fi
4881
4882
4883 eval "$ac_cv_use_printarch"
4884 if test "$no_cache" != 1; then
4885 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4886 fi
4887
4888 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4889 echo "$ac_t""yes" 1>&6
4890 else
4891 echo "$ac_t""no" 1>&6
4892 fi
4893
4894
4895 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4896 echo "configure:4897: checking for --enable-mdi" >&5
4897 no_cache=0
4898 # Check whether --enable-mdi or --disable-mdi was given.
4899 if test "${enable_mdi+set}" = set; then
4900 enableval="$enable_mdi"
4901
4902 if test "$enableval" = yes; then
4903 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4904 else
4905 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4906 fi
4907
4908 else
4909
4910 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4911 if test "x$LINE" != x ; then
4912 eval "DEFAULT_$LINE"
4913 else
4914 no_cache=1
4915 fi
4916
4917 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4918
4919 fi
4920
4921
4922 eval "$ac_cv_use_mdi"
4923 if test "$no_cache" != 1; then
4924 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4925 fi
4926
4927 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4928 echo "$ac_t""yes" 1>&6
4929 else
4930 echo "$ac_t""no" 1>&6
4931 fi
4932
4933
4934 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4935 echo "configure:4936: checking for --enable-loggui" >&5
4936 no_cache=0
4937 # Check whether --enable-loggui or --disable-loggui was given.
4938 if test "${enable_loggui+set}" = set; then
4939 enableval="$enable_loggui"
4940
4941 if test "$enableval" = yes; then
4942 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4943 else
4944 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4945 fi
4946
4947 else
4948
4949 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4950 if test "x$LINE" != x ; then
4951 eval "DEFAULT_$LINE"
4952 else
4953 no_cache=1
4954 fi
4955
4956 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4957
4958 fi
4959
4960
4961 eval "$ac_cv_use_loggui"
4962 if test "$no_cache" != 1; then
4963 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4964 fi
4965
4966 if test "$wxUSE_LOGGUI" = yes; then
4967 echo "$ac_t""yes" 1>&6
4968 else
4969 echo "$ac_t""no" 1>&6
4970 fi
4971
4972
4973 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4974 echo "configure:4975: checking for --enable-logwin" >&5
4975 no_cache=0
4976 # Check whether --enable-logwin or --disable-logwin was given.
4977 if test "${enable_logwin+set}" = set; then
4978 enableval="$enable_logwin"
4979
4980 if test "$enableval" = yes; then
4981 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4982 else
4983 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4984 fi
4985
4986 else
4987
4988 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4989 if test "x$LINE" != x ; then
4990 eval "DEFAULT_$LINE"
4991 else
4992 no_cache=1
4993 fi
4994
4995 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4996
4997 fi
4998
4999
5000 eval "$ac_cv_use_logwin"
5001 if test "$no_cache" != 1; then
5002 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5003 fi
5004
5005 if test "$wxUSE_LOGWINDOW" = yes; then
5006 echo "$ac_t""yes" 1>&6
5007 else
5008 echo "$ac_t""no" 1>&6
5009 fi
5010
5011
5012 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
5013 echo "configure:5014: checking for --enable-logdialog" >&5
5014 no_cache=0
5015 # Check whether --enable-logdialog or --disable-logdialog was given.
5016 if test "${enable_logdialog+set}" = set; then
5017 enableval="$enable_logdialog"
5018
5019 if test "$enableval" = yes; then
5020 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5021 else
5022 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5023 fi
5024
5025 else
5026
5027 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5028 if test "x$LINE" != x ; then
5029 eval "DEFAULT_$LINE"
5030 else
5031 no_cache=1
5032 fi
5033
5034 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5035
5036 fi
5037
5038
5039 eval "$ac_cv_use_logdialog"
5040 if test "$no_cache" != 1; then
5041 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5042 fi
5043
5044 if test "$wxUSE_LOGDIALOG" = yes; then
5045 echo "$ac_t""yes" 1>&6
5046 else
5047 echo "$ac_t""no" 1>&6
5048 fi
5049
5050
5051
5052 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
5053 echo "configure:5054: checking for --enable-postscript" >&5
5054 no_cache=0
5055 # Check whether --enable-postscript or --disable-postscript was given.
5056 if test "${enable_postscript+set}" = set; then
5057 enableval="$enable_postscript"
5058
5059 if test "$enableval" = yes; then
5060 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5061 else
5062 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5063 fi
5064
5065 else
5066
5067 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5068 if test "x$LINE" != x ; then
5069 eval "DEFAULT_$LINE"
5070 else
5071 no_cache=1
5072 fi
5073
5074 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5075
5076 fi
5077
5078
5079 eval "$ac_cv_use_postscript"
5080 if test "$no_cache" != 1; then
5081 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5082 fi
5083
5084 if test "$wxUSE_POSTSCRIPT" = yes; then
5085 echo "$ac_t""yes" 1>&6
5086 else
5087 echo "$ac_t""no" 1>&6
5088 fi
5089
5090
5091
5092
5093
5094 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
5095 echo "configure:5096: checking for --enable-prologio" >&5
5096 no_cache=0
5097 # Check whether --enable-prologio or --disable-prologio was given.
5098 if test "${enable_prologio+set}" = set; then
5099 enableval="$enable_prologio"
5100
5101 if test "$enableval" = yes; then
5102 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5103 else
5104 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5105 fi
5106
5107 else
5108
5109 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5110 if test "x$LINE" != x ; then
5111 eval "DEFAULT_$LINE"
5112 else
5113 no_cache=1
5114 fi
5115
5116 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5117
5118 fi
5119
5120
5121 eval "$ac_cv_use_prologio"
5122 if test "$no_cache" != 1; then
5123 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5124 fi
5125
5126 if test "$wxUSE_PROLOGIO" = yes; then
5127 echo "$ac_t""yes" 1>&6
5128 else
5129 echo "$ac_t""no" 1>&6
5130 fi
5131
5132
5133 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
5134 echo "configure:5135: checking for --enable-resources" >&5
5135 no_cache=0
5136 # Check whether --enable-resources or --disable-resources was given.
5137 if test "${enable_resources+set}" = set; then
5138 enableval="$enable_resources"
5139
5140 if test "$enableval" = yes; then
5141 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5142 else
5143 ac_cv_use_resources='wxUSE_RESOURCES=no'
5144 fi
5145
5146 else
5147
5148 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5149 if test "x$LINE" != x ; then
5150 eval "DEFAULT_$LINE"
5151 else
5152 no_cache=1
5153 fi
5154
5155 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5156
5157 fi
5158
5159
5160 eval "$ac_cv_use_resources"
5161 if test "$no_cache" != 1; then
5162 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5163 fi
5164
5165 if test "$wxUSE_RESOURCES" = yes; then
5166 echo "$ac_t""yes" 1>&6
5167 else
5168 echo "$ac_t""no" 1>&6
5169 fi
5170
5171
5172
5173 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
5174 echo "configure:5175: checking for --enable-xresources" >&5
5175 no_cache=0
5176 # Check whether --enable-xresources or --disable-xresources was given.
5177 if test "${enable_xresources+set}" = set; then
5178 enableval="$enable_xresources"
5179
5180 if test "$enableval" = yes; then
5181 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5182 else
5183 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5184 fi
5185
5186 else
5187
5188 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5189 if test "x$LINE" != x ; then
5190 eval "DEFAULT_$LINE"
5191 else
5192 no_cache=1
5193 fi
5194
5195 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5196
5197 fi
5198
5199
5200 eval "$ac_cv_use_xresources"
5201 if test "$no_cache" != 1; then
5202 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5203 fi
5204
5205 if test "$wxUSE_X_RESOURCES" = yes; then
5206 echo "$ac_t""yes" 1>&6
5207 else
5208 echo "$ac_t""no" 1>&6
5209 fi
5210
5211
5212
5213
5214 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
5215 echo "configure:5216: checking for --enable-clipboard" >&5
5216 no_cache=0
5217 # Check whether --enable-clipboard or --disable-clipboard was given.
5218 if test "${enable_clipboard+set}" = set; then
5219 enableval="$enable_clipboard"
5220
5221 if test "$enableval" = yes; then
5222 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5223 else
5224 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5225 fi
5226
5227 else
5228
5229 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5230 if test "x$LINE" != x ; then
5231 eval "DEFAULT_$LINE"
5232 else
5233 no_cache=1
5234 fi
5235
5236 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5237
5238 fi
5239
5240
5241 eval "$ac_cv_use_clipboard"
5242 if test "$no_cache" != 1; then
5243 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5244 fi
5245
5246 if test "$wxUSE_CLIPBOARD" = yes; then
5247 echo "$ac_t""yes" 1>&6
5248 else
5249 echo "$ac_t""no" 1>&6
5250 fi
5251
5252
5253 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5254 echo "configure:5255: checking for --enable-dnd" >&5
5255 no_cache=0
5256 # Check whether --enable-dnd or --disable-dnd was given.
5257 if test "${enable_dnd+set}" = set; then
5258 enableval="$enable_dnd"
5259
5260 if test "$enableval" = yes; then
5261 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5262 else
5263 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5264 fi
5265
5266 else
5267
5268 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5269 if test "x$LINE" != x ; then
5270 eval "DEFAULT_$LINE"
5271 else
5272 no_cache=1
5273 fi
5274
5275 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5276
5277 fi
5278
5279
5280 eval "$ac_cv_use_dnd"
5281 if test "$no_cache" != 1; then
5282 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5283 fi
5284
5285 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5286 echo "$ac_t""yes" 1>&6
5287 else
5288 echo "$ac_t""no" 1>&6
5289 fi
5290
5291
5292 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5293 echo "configure:5294: checking for --enable-metafile" >&5
5294 no_cache=0
5295 # Check whether --enable-metafile or --disable-metafile was given.
5296 if test "${enable_metafile+set}" = set; then
5297 enableval="$enable_metafile"
5298
5299 if test "$enableval" = yes; then
5300 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5301 else
5302 ac_cv_use_metafile='wxUSE_METAFILE=no'
5303 fi
5304
5305 else
5306
5307 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5308 if test "x$LINE" != x ; then
5309 eval "DEFAULT_$LINE"
5310 else
5311 no_cache=1
5312 fi
5313
5314 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5315
5316 fi
5317
5318
5319 eval "$ac_cv_use_metafile"
5320 if test "$no_cache" != 1; then
5321 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5322 fi
5323
5324 if test "$wxUSE_METAFILE" = yes; then
5325 echo "$ac_t""yes" 1>&6
5326 else
5327 echo "$ac_t""no" 1>&6
5328 fi
5329
5330
5331
5332 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5333 echo "configure:5334: checking for --enable-treelayout" >&5
5334 no_cache=0
5335 # Check whether --enable-treelayout or --disable-treelayout was given.
5336 if test "${enable_treelayout+set}" = set; then
5337 enableval="$enable_treelayout"
5338
5339 if test "$enableval" = yes; then
5340 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5341 else
5342 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5343 fi
5344
5345 else
5346
5347 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5348 if test "x$LINE" != x ; then
5349 eval "DEFAULT_$LINE"
5350 else
5351 no_cache=1
5352 fi
5353
5354 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5355
5356 fi
5357
5358
5359 eval "$ac_cv_use_treelayout"
5360 if test "$no_cache" != 1; then
5361 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5362 fi
5363
5364 if test "$wxUSE_TREELAYOUT" = yes; then
5365 echo "$ac_t""yes" 1>&6
5366 else
5367 echo "$ac_t""no" 1>&6
5368 fi
5369
5370
5371
5372
5373 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5374 echo "configure:5375: checking for --enable-controls" >&5
5375 no_cache=0
5376 # Check whether --enable-controls or --disable-controls was given.
5377 if test "${enable_controls+set}" = set; then
5378 enableval="$enable_controls"
5379
5380 if test "$enableval" = yes; then
5381 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5382 else
5383 ac_cv_use_controls='wxUSE_CONTROLS=no'
5384 fi
5385
5386 else
5387
5388 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5389 if test "x$LINE" != x ; then
5390 eval "DEFAULT_$LINE"
5391 else
5392 no_cache=1
5393 fi
5394
5395 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5396
5397 fi
5398
5399
5400 eval "$ac_cv_use_controls"
5401 if test "$no_cache" != 1; then
5402 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5403 fi
5404
5405 if test "$wxUSE_CONTROLS" = yes; then
5406 echo "$ac_t""yes" 1>&6
5407 else
5408 echo "$ac_t""no" 1>&6
5409 fi
5410
5411
5412 if test "$wxUSE_CONTROLS" = "yes"; then
5413 DEFAULT_wxUSE_ACCEL=yes
5414 DEFAULT_wxUSE_BMPBUTTON=yes
5415 DEFAULT_wxUSE_BUTTON=yes
5416 DEFAULT_wxUSE_CALCTRL=no
5417 DEFAULT_wxUSE_CARET=yes
5418 DEFAULT_wxUSE_COMBOBOX=yes
5419 DEFAULT_wxUSE_CHECKBOX=yes
5420 DEFAULT_wxUSE_CHECKLISTBOX=yes
5421 DEFAULT_wxUSE_CHOICE=yes
5422 DEFAULT_wxUSE_GAUGE=yes
5423 DEFAULT_wxUSE_GRID=yes
5424 DEFAULT_wxUSE_NEW_GRID=yes
5425 DEFAULT_wxUSE_IMAGLIST=yes
5426 DEFAULT_wxUSE_LISTBOX=yes
5427 DEFAULT_wxUSE_LISTCTRL=yes
5428 DEFAULT_wxUSE_NOTEBOOK=yes
5429 DEFAULT_wxUSE_PROPSHEET=yes
5430 DEFAULT_wxUSE_RADIOBOX=yes
5431 DEFAULT_wxUSE_RADIOBTN=yes
5432 DEFAULT_wxUSE_SASH=yes
5433 DEFAULT_wxUSE_SCROLLBAR=yes
5434 DEFAULT_wxUSE_SLIDER=yes
5435 DEFAULT_wxUSE_SPINBTN=yes
5436 DEFAULT_wxUSE_SPINCTRL=yes
5437 DEFAULT_wxUSE_SPLITTER=yes
5438 DEFAULT_wxUSE_STATBMP=yes
5439 DEFAULT_wxUSE_STATBOX=yes
5440 DEFAULT_wxUSE_STATLINE=yes
5441 DEFAULT_wxUSE_STATUSBAR=yes
5442 DEFAULT_wxUSE_TAB_DIALOG=yes
5443 DEFAULT_wxUSE_TOGGLEBTN=yes
5444 DEFAULT_wxUSE_TOOLBAR=yes
5445 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5446 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5447 DEFAULT_wxUSE_TOOLTIPS=yes
5448 DEFAULT_wxUSE_TREECTRL=yes
5449 DEFAULT_wxUSE_POPUPWIN=yes
5450 DEFAULT_wxUSE_TIPWINDOW=yes
5451 elif test "$wxUSE_CONTROLS" = "no"; then
5452 DEFAULT_wxUSE_ACCEL=no
5453 DEFAULT_wxUSE_BMPBUTTON=no
5454 DEFAULT_wxUSE_BUTTON=no
5455 DEFAULT_wxUSE_CALCTRL=no
5456 DEFAULT_wxUSE_CARET=no
5457 DEFAULT_wxUSE_COMBOBOX=no
5458 DEFAULT_wxUSE_CHECKBOX=no
5459 DEFAULT_wxUSE_CHECKLISTBOX=no
5460 DEFAULT_wxUSE_CHOICE=no
5461 DEFAULT_wxUSE_GAUGE=no
5462 DEFAULT_wxUSE_GRID=no
5463 DEFAULT_wxUSE_NEW_GRID=no
5464 DEFAULT_wxUSE_IMAGLIST=no
5465 DEFAULT_wxUSE_LISTBOX=no
5466 DEFAULT_wxUSE_LISTCTRL=no
5467 DEFAULT_wxUSE_NOTEBOOK=no
5468 DEFAULT_wxUSE_PROPSHEET=no
5469 DEFAULT_wxUSE_RADIOBOX=no
5470 DEFAULT_wxUSE_RADIOBTN=no
5471 DEFAULT_wxUSE_SASH=no
5472 DEFAULT_wxUSE_SCROLLBAR=no
5473 DEFAULT_wxUSE_SLIDER=no
5474 DEFAULT_wxUSE_SPINBTN=no
5475 DEFAULT_wxUSE_SPINCTRL=no
5476 DEFAULT_wxUSE_SPLITTER=no
5477 DEFAULT_wxUSE_STATBMP=no
5478 DEFAULT_wxUSE_STATBOX=no
5479 DEFAULT_wxUSE_STATLINE=no
5480 DEFAULT_wxUSE_STATUSBAR=no
5481 DEFAULT_wxUSE_TAB_DIALOG=no
5482 DEFAULT_wxUSE_TOGGLEBTN=no
5483 DEFAULT_wxUSE_TOOLBAR=no
5484 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5485 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5486 DEFAULT_wxUSE_TOOLTIPS=no
5487 DEFAULT_wxUSE_TREECTRL=no
5488 DEFAULT_wxUSE_POPUPWIN=no
5489 DEFAULT_wxUSE_TIPWINDOW=no
5490 fi
5491
5492
5493 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5494 echo "configure:5495: checking for --enable-accel" >&5
5495 no_cache=0
5496 # Check whether --enable-accel or --disable-accel was given.
5497 if test "${enable_accel+set}" = set; then
5498 enableval="$enable_accel"
5499
5500 if test "$enableval" = yes; then
5501 ac_cv_use_accel='wxUSE_ACCEL=yes'
5502 else
5503 ac_cv_use_accel='wxUSE_ACCEL=no'
5504 fi
5505
5506 else
5507
5508 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5509 if test "x$LINE" != x ; then
5510 eval "DEFAULT_$LINE"
5511 else
5512 no_cache=1
5513 fi
5514
5515 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5516
5517 fi
5518
5519
5520 eval "$ac_cv_use_accel"
5521 if test "$no_cache" != 1; then
5522 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5523 fi
5524
5525 if test "$wxUSE_ACCEL" = yes; then
5526 echo "$ac_t""yes" 1>&6
5527 else
5528 echo "$ac_t""no" 1>&6
5529 fi
5530
5531
5532 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5533 echo "configure:5534: checking for --enable-button" >&5
5534 no_cache=0
5535 # Check whether --enable-button or --disable-button was given.
5536 if test "${enable_button+set}" = set; then
5537 enableval="$enable_button"
5538
5539 if test "$enableval" = yes; then
5540 ac_cv_use_button='wxUSE_BUTTON=yes'
5541 else
5542 ac_cv_use_button='wxUSE_BUTTON=no'
5543 fi
5544
5545 else
5546
5547 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5548 if test "x$LINE" != x ; then
5549 eval "DEFAULT_$LINE"
5550 else
5551 no_cache=1
5552 fi
5553
5554 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5555
5556 fi
5557
5558
5559 eval "$ac_cv_use_button"
5560 if test "$no_cache" != 1; then
5561 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5562 fi
5563
5564 if test "$wxUSE_BUTTON" = yes; then
5565 echo "$ac_t""yes" 1>&6
5566 else
5567 echo "$ac_t""no" 1>&6
5568 fi
5569
5570
5571 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5572 echo "configure:5573: checking for --enable-bmpbutton" >&5
5573 no_cache=0
5574 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5575 if test "${enable_bmpbutton+set}" = set; then
5576 enableval="$enable_bmpbutton"
5577
5578 if test "$enableval" = yes; then
5579 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5580 else
5581 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5582 fi
5583
5584 else
5585
5586 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5587 if test "x$LINE" != x ; then
5588 eval "DEFAULT_$LINE"
5589 else
5590 no_cache=1
5591 fi
5592
5593 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5594
5595 fi
5596
5597
5598 eval "$ac_cv_use_bmpbutton"
5599 if test "$no_cache" != 1; then
5600 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5601 fi
5602
5603 if test "$wxUSE_BMPBUTTON" = yes; then
5604 echo "$ac_t""yes" 1>&6
5605 else
5606 echo "$ac_t""no" 1>&6
5607 fi
5608
5609
5610 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5611 echo "configure:5612: checking for --enable-calendar" >&5
5612 no_cache=0
5613 # Check whether --enable-calendar or --disable-calendar was given.
5614 if test "${enable_calendar+set}" = set; then
5615 enableval="$enable_calendar"
5616
5617 if test "$enableval" = yes; then
5618 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5619 else
5620 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5621 fi
5622
5623 else
5624
5625 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5626 if test "x$LINE" != x ; then
5627 eval "DEFAULT_$LINE"
5628 else
5629 no_cache=1
5630 fi
5631
5632 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5633
5634 fi
5635
5636
5637 eval "$ac_cv_use_calendar"
5638 if test "$no_cache" != 1; then
5639 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5640 fi
5641
5642 if test "$wxUSE_CALCTRL" = yes; then
5643 echo "$ac_t""yes" 1>&6
5644 else
5645 echo "$ac_t""no" 1>&6
5646 fi
5647
5648
5649 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5650 echo "configure:5651: checking for --enable-caret" >&5
5651 no_cache=0
5652 # Check whether --enable-caret or --disable-caret was given.
5653 if test "${enable_caret+set}" = set; then
5654 enableval="$enable_caret"
5655
5656 if test "$enableval" = yes; then
5657 ac_cv_use_caret='wxUSE_CARET=yes'
5658 else
5659 ac_cv_use_caret='wxUSE_CARET=no'
5660 fi
5661
5662 else
5663
5664 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5665 if test "x$LINE" != x ; then
5666 eval "DEFAULT_$LINE"
5667 else
5668 no_cache=1
5669 fi
5670
5671 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5672
5673 fi
5674
5675
5676 eval "$ac_cv_use_caret"
5677 if test "$no_cache" != 1; then
5678 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5679 fi
5680
5681 if test "$wxUSE_CARET" = yes; then
5682 echo "$ac_t""yes" 1>&6
5683 else
5684 echo "$ac_t""no" 1>&6
5685 fi
5686
5687
5688 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5689 echo "configure:5690: checking for --enable-checkbox" >&5
5690 no_cache=0
5691 # Check whether --enable-checkbox or --disable-checkbox was given.
5692 if test "${enable_checkbox+set}" = set; then
5693 enableval="$enable_checkbox"
5694
5695 if test "$enableval" = yes; then
5696 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5697 else
5698 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5699 fi
5700
5701 else
5702
5703 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5704 if test "x$LINE" != x ; then
5705 eval "DEFAULT_$LINE"
5706 else
5707 no_cache=1
5708 fi
5709
5710 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5711
5712 fi
5713
5714
5715 eval "$ac_cv_use_checkbox"
5716 if test "$no_cache" != 1; then
5717 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5718 fi
5719
5720 if test "$wxUSE_CHECKBOX" = yes; then
5721 echo "$ac_t""yes" 1>&6
5722 else
5723 echo "$ac_t""no" 1>&6
5724 fi
5725
5726
5727 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5728 echo "configure:5729: checking for --enable-checklst" >&5
5729 no_cache=0
5730 # Check whether --enable-checklst or --disable-checklst was given.
5731 if test "${enable_checklst+set}" = set; then
5732 enableval="$enable_checklst"
5733
5734 if test "$enableval" = yes; then
5735 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5736 else
5737 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5738 fi
5739
5740 else
5741
5742 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5743 if test "x$LINE" != x ; then
5744 eval "DEFAULT_$LINE"
5745 else
5746 no_cache=1
5747 fi
5748
5749 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5750
5751 fi
5752
5753
5754 eval "$ac_cv_use_checklst"
5755 if test "$no_cache" != 1; then
5756 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5757 fi
5758
5759 if test "$wxUSE_CHECKLST" = yes; then
5760 echo "$ac_t""yes" 1>&6
5761 else
5762 echo "$ac_t""no" 1>&6
5763 fi
5764
5765
5766 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5767 echo "configure:5768: checking for --enable-choice" >&5
5768 no_cache=0
5769 # Check whether --enable-choice or --disable-choice was given.
5770 if test "${enable_choice+set}" = set; then
5771 enableval="$enable_choice"
5772
5773 if test "$enableval" = yes; then
5774 ac_cv_use_choice='wxUSE_CHOICE=yes'
5775 else
5776 ac_cv_use_choice='wxUSE_CHOICE=no'
5777 fi
5778
5779 else
5780
5781 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5782 if test "x$LINE" != x ; then
5783 eval "DEFAULT_$LINE"
5784 else
5785 no_cache=1
5786 fi
5787
5788 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5789
5790 fi
5791
5792
5793 eval "$ac_cv_use_choice"
5794 if test "$no_cache" != 1; then
5795 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5796 fi
5797
5798 if test "$wxUSE_CHOICE" = yes; then
5799 echo "$ac_t""yes" 1>&6
5800 else
5801 echo "$ac_t""no" 1>&6
5802 fi
5803
5804
5805 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5806 echo "configure:5807: checking for --enable-combobox" >&5
5807 no_cache=0
5808 # Check whether --enable-combobox or --disable-combobox was given.
5809 if test "${enable_combobox+set}" = set; then
5810 enableval="$enable_combobox"
5811
5812 if test "$enableval" = yes; then
5813 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5814 else
5815 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5816 fi
5817
5818 else
5819
5820 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5821 if test "x$LINE" != x ; then
5822 eval "DEFAULT_$LINE"
5823 else
5824 no_cache=1
5825 fi
5826
5827 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5828
5829 fi
5830
5831
5832 eval "$ac_cv_use_combobox"
5833 if test "$no_cache" != 1; then
5834 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5835 fi
5836
5837 if test "$wxUSE_COMBOBOX" = yes; then
5838 echo "$ac_t""yes" 1>&6
5839 else
5840 echo "$ac_t""no" 1>&6
5841 fi
5842
5843
5844 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5845 echo "configure:5846: checking for --enable-gauge" >&5
5846 no_cache=0
5847 # Check whether --enable-gauge or --disable-gauge was given.
5848 if test "${enable_gauge+set}" = set; then
5849 enableval="$enable_gauge"
5850
5851 if test "$enableval" = yes; then
5852 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5853 else
5854 ac_cv_use_gauge='wxUSE_GAUGE=no'
5855 fi
5856
5857 else
5858
5859 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5860 if test "x$LINE" != x ; then
5861 eval "DEFAULT_$LINE"
5862 else
5863 no_cache=1
5864 fi
5865
5866 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5867
5868 fi
5869
5870
5871 eval "$ac_cv_use_gauge"
5872 if test "$no_cache" != 1; then
5873 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5874 fi
5875
5876 if test "$wxUSE_GAUGE" = yes; then
5877 echo "$ac_t""yes" 1>&6
5878 else
5879 echo "$ac_t""no" 1>&6
5880 fi
5881
5882
5883 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5884 echo "configure:5885: checking for --enable-grid" >&5
5885 no_cache=0
5886 # Check whether --enable-grid or --disable-grid was given.
5887 if test "${enable_grid+set}" = set; then
5888 enableval="$enable_grid"
5889
5890 if test "$enableval" = yes; then
5891 ac_cv_use_grid='wxUSE_GRID=yes'
5892 else
5893 ac_cv_use_grid='wxUSE_GRID=no'
5894 fi
5895
5896 else
5897
5898 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5899 if test "x$LINE" != x ; then
5900 eval "DEFAULT_$LINE"
5901 else
5902 no_cache=1
5903 fi
5904
5905 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5906
5907 fi
5908
5909
5910 eval "$ac_cv_use_grid"
5911 if test "$no_cache" != 1; then
5912 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5913 fi
5914
5915 if test "$wxUSE_GRID" = yes; then
5916 echo "$ac_t""yes" 1>&6
5917 else
5918 echo "$ac_t""no" 1>&6
5919 fi
5920
5921
5922 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5923 echo "configure:5924: checking for --enable-newgrid" >&5
5924 no_cache=0
5925 # Check whether --enable-newgrid or --disable-newgrid was given.
5926 if test "${enable_newgrid+set}" = set; then
5927 enableval="$enable_newgrid"
5928
5929 if test "$enableval" = yes; then
5930 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5931 else
5932 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5933 fi
5934
5935 else
5936
5937 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5938 if test "x$LINE" != x ; then
5939 eval "DEFAULT_$LINE"
5940 else
5941 no_cache=1
5942 fi
5943
5944 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5945
5946 fi
5947
5948
5949 eval "$ac_cv_use_newgrid"
5950 if test "$no_cache" != 1; then
5951 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5952 fi
5953
5954 if test "$wxUSE_NEW_GRID" = yes; then
5955 echo "$ac_t""yes" 1>&6
5956 else
5957 echo "$ac_t""no" 1>&6
5958 fi
5959
5960
5961 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5962 echo "configure:5963: checking for --enable-imaglist" >&5
5963 no_cache=0
5964 # Check whether --enable-imaglist or --disable-imaglist was given.
5965 if test "${enable_imaglist+set}" = set; then
5966 enableval="$enable_imaglist"
5967
5968 if test "$enableval" = yes; then
5969 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5970 else
5971 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5972 fi
5973
5974 else
5975
5976 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5977 if test "x$LINE" != x ; then
5978 eval "DEFAULT_$LINE"
5979 else
5980 no_cache=1
5981 fi
5982
5983 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5984
5985 fi
5986
5987
5988 eval "$ac_cv_use_imaglist"
5989 if test "$no_cache" != 1; then
5990 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5991 fi
5992
5993 if test "$wxUSE_IMAGLIST" = yes; then
5994 echo "$ac_t""yes" 1>&6
5995 else
5996 echo "$ac_t""no" 1>&6
5997 fi
5998
5999
6000 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
6001 echo "configure:6002: checking for --enable-listbox" >&5
6002 no_cache=0
6003 # Check whether --enable-listbox or --disable-listbox was given.
6004 if test "${enable_listbox+set}" = set; then
6005 enableval="$enable_listbox"
6006
6007 if test "$enableval" = yes; then
6008 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6009 else
6010 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6011 fi
6012
6013 else
6014
6015 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6016 if test "x$LINE" != x ; then
6017 eval "DEFAULT_$LINE"
6018 else
6019 no_cache=1
6020 fi
6021
6022 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6023
6024 fi
6025
6026
6027 eval "$ac_cv_use_listbox"
6028 if test "$no_cache" != 1; then
6029 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6030 fi
6031
6032 if test "$wxUSE_LISTBOX" = yes; then
6033 echo "$ac_t""yes" 1>&6
6034 else
6035 echo "$ac_t""no" 1>&6
6036 fi
6037
6038
6039 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
6040 echo "configure:6041: checking for --enable-listctrl" >&5
6041 no_cache=0
6042 # Check whether --enable-listctrl or --disable-listctrl was given.
6043 if test "${enable_listctrl+set}" = set; then
6044 enableval="$enable_listctrl"
6045
6046 if test "$enableval" = yes; then
6047 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6048 else
6049 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6050 fi
6051
6052 else
6053
6054 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6055 if test "x$LINE" != x ; then
6056 eval "DEFAULT_$LINE"
6057 else
6058 no_cache=1
6059 fi
6060
6061 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6062
6063 fi
6064
6065
6066 eval "$ac_cv_use_listctrl"
6067 if test "$no_cache" != 1; then
6068 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6069 fi
6070
6071 if test "$wxUSE_LISTCTRL" = yes; then
6072 echo "$ac_t""yes" 1>&6
6073 else
6074 echo "$ac_t""no" 1>&6
6075 fi
6076
6077
6078 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
6079 echo "configure:6080: checking for --enable-notebook" >&5
6080 no_cache=0
6081 # Check whether --enable-notebook or --disable-notebook was given.
6082 if test "${enable_notebook+set}" = set; then
6083 enableval="$enable_notebook"
6084
6085 if test "$enableval" = yes; then
6086 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6087 else
6088 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6089 fi
6090
6091 else
6092
6093 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6094 if test "x$LINE" != x ; then
6095 eval "DEFAULT_$LINE"
6096 else
6097 no_cache=1
6098 fi
6099
6100 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6101
6102 fi
6103
6104
6105 eval "$ac_cv_use_notebook"
6106 if test "$no_cache" != 1; then
6107 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6108 fi
6109
6110 if test "$wxUSE_NOTEBOOK" = yes; then
6111 echo "$ac_t""yes" 1>&6
6112 else
6113 echo "$ac_t""no" 1>&6
6114 fi
6115
6116
6117 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
6118 echo "configure:6119: checking for --enable-propsheet" >&5
6119 no_cache=0
6120 # Check whether --enable-propsheet or --disable-propsheet was given.
6121 if test "${enable_propsheet+set}" = set; then
6122 enableval="$enable_propsheet"
6123
6124 if test "$enableval" = yes; then
6125 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6126 else
6127 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6128 fi
6129
6130 else
6131
6132 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6133 if test "x$LINE" != x ; then
6134 eval "DEFAULT_$LINE"
6135 else
6136 no_cache=1
6137 fi
6138
6139 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6140
6141 fi
6142
6143
6144 eval "$ac_cv_use_propsheet"
6145 if test "$no_cache" != 1; then
6146 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6147 fi
6148
6149 if test "$wxUSE_PROPSHEET" = yes; then
6150 echo "$ac_t""yes" 1>&6
6151 else
6152 echo "$ac_t""no" 1>&6
6153 fi
6154
6155
6156 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
6157 echo "configure:6158: checking for --enable-radiobox" >&5
6158 no_cache=0
6159 # Check whether --enable-radiobox or --disable-radiobox was given.
6160 if test "${enable_radiobox+set}" = set; then
6161 enableval="$enable_radiobox"
6162
6163 if test "$enableval" = yes; then
6164 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6165 else
6166 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6167 fi
6168
6169 else
6170
6171 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6172 if test "x$LINE" != x ; then
6173 eval "DEFAULT_$LINE"
6174 else
6175 no_cache=1
6176 fi
6177
6178 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6179
6180 fi
6181
6182
6183 eval "$ac_cv_use_radiobox"
6184 if test "$no_cache" != 1; then
6185 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6186 fi
6187
6188 if test "$wxUSE_RADIOBOX" = yes; then
6189 echo "$ac_t""yes" 1>&6
6190 else
6191 echo "$ac_t""no" 1>&6
6192 fi
6193
6194
6195 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
6196 echo "configure:6197: checking for --enable-radiobtn" >&5
6197 no_cache=0
6198 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6199 if test "${enable_radiobtn+set}" = set; then
6200 enableval="$enable_radiobtn"
6201
6202 if test "$enableval" = yes; then
6203 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6204 else
6205 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6206 fi
6207
6208 else
6209
6210 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6211 if test "x$LINE" != x ; then
6212 eval "DEFAULT_$LINE"
6213 else
6214 no_cache=1
6215 fi
6216
6217 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6218
6219 fi
6220
6221
6222 eval "$ac_cv_use_radiobtn"
6223 if test "$no_cache" != 1; then
6224 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6225 fi
6226
6227 if test "$wxUSE_RADIOBTN" = yes; then
6228 echo "$ac_t""yes" 1>&6
6229 else
6230 echo "$ac_t""no" 1>&6
6231 fi
6232
6233
6234 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
6235 echo "configure:6236: checking for --enable-sash" >&5
6236 no_cache=0
6237 # Check whether --enable-sash or --disable-sash was given.
6238 if test "${enable_sash+set}" = set; then
6239 enableval="$enable_sash"
6240
6241 if test "$enableval" = yes; then
6242 ac_cv_use_sash='wxUSE_SASH=yes'
6243 else
6244 ac_cv_use_sash='wxUSE_SASH=no'
6245 fi
6246
6247 else
6248
6249 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6250 if test "x$LINE" != x ; then
6251 eval "DEFAULT_$LINE"
6252 else
6253 no_cache=1
6254 fi
6255
6256 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6257
6258 fi
6259
6260
6261 eval "$ac_cv_use_sash"
6262 if test "$no_cache" != 1; then
6263 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6264 fi
6265
6266 if test "$wxUSE_SASH" = yes; then
6267 echo "$ac_t""yes" 1>&6
6268 else
6269 echo "$ac_t""no" 1>&6
6270 fi
6271
6272
6273 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
6274 echo "configure:6275: checking for --enable-scrollbar" >&5
6275 no_cache=0
6276 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6277 if test "${enable_scrollbar+set}" = set; then
6278 enableval="$enable_scrollbar"
6279
6280 if test "$enableval" = yes; then
6281 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6282 else
6283 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6284 fi
6285
6286 else
6287
6288 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6289 if test "x$LINE" != x ; then
6290 eval "DEFAULT_$LINE"
6291 else
6292 no_cache=1
6293 fi
6294
6295 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6296
6297 fi
6298
6299
6300 eval "$ac_cv_use_scrollbar"
6301 if test "$no_cache" != 1; then
6302 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6303 fi
6304
6305 if test "$wxUSE_SCROLLBAR" = yes; then
6306 echo "$ac_t""yes" 1>&6
6307 else
6308 echo "$ac_t""no" 1>&6
6309 fi
6310
6311
6312 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6313 echo "configure:6314: checking for --enable-slider" >&5
6314 no_cache=0
6315 # Check whether --enable-slider or --disable-slider was given.
6316 if test "${enable_slider+set}" = set; then
6317 enableval="$enable_slider"
6318
6319 if test "$enableval" = yes; then
6320 ac_cv_use_slider='wxUSE_SLIDER=yes'
6321 else
6322 ac_cv_use_slider='wxUSE_SLIDER=no'
6323 fi
6324
6325 else
6326
6327 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6328 if test "x$LINE" != x ; then
6329 eval "DEFAULT_$LINE"
6330 else
6331 no_cache=1
6332 fi
6333
6334 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6335
6336 fi
6337
6338
6339 eval "$ac_cv_use_slider"
6340 if test "$no_cache" != 1; then
6341 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6342 fi
6343
6344 if test "$wxUSE_SLIDER" = yes; then
6345 echo "$ac_t""yes" 1>&6
6346 else
6347 echo "$ac_t""no" 1>&6
6348 fi
6349
6350
6351 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6352 echo "configure:6353: checking for --enable-spinbtn" >&5
6353 no_cache=0
6354 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6355 if test "${enable_spinbtn+set}" = set; then
6356 enableval="$enable_spinbtn"
6357
6358 if test "$enableval" = yes; then
6359 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6360 else
6361 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6362 fi
6363
6364 else
6365
6366 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6367 if test "x$LINE" != x ; then
6368 eval "DEFAULT_$LINE"
6369 else
6370 no_cache=1
6371 fi
6372
6373 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6374
6375 fi
6376
6377
6378 eval "$ac_cv_use_spinbtn"
6379 if test "$no_cache" != 1; then
6380 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6381 fi
6382
6383 if test "$wxUSE_SPINBTN" = yes; then
6384 echo "$ac_t""yes" 1>&6
6385 else
6386 echo "$ac_t""no" 1>&6
6387 fi
6388
6389
6390 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6391 echo "configure:6392: checking for --enable-spinctrl" >&5
6392 no_cache=0
6393 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6394 if test "${enable_spinctrl+set}" = set; then
6395 enableval="$enable_spinctrl"
6396
6397 if test "$enableval" = yes; then
6398 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6399 else
6400 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6401 fi
6402
6403 else
6404
6405 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6406 if test "x$LINE" != x ; then
6407 eval "DEFAULT_$LINE"
6408 else
6409 no_cache=1
6410 fi
6411
6412 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6413
6414 fi
6415
6416
6417 eval "$ac_cv_use_spinctrl"
6418 if test "$no_cache" != 1; then
6419 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6420 fi
6421
6422 if test "$wxUSE_SPINCTRL" = yes; then
6423 echo "$ac_t""yes" 1>&6
6424 else
6425 echo "$ac_t""no" 1>&6
6426 fi
6427
6428
6429 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6430 echo "configure:6431: checking for --enable-splitter" >&5
6431 no_cache=0
6432 # Check whether --enable-splitter or --disable-splitter was given.
6433 if test "${enable_splitter+set}" = set; then
6434 enableval="$enable_splitter"
6435
6436 if test "$enableval" = yes; then
6437 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6438 else
6439 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6440 fi
6441
6442 else
6443
6444 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6445 if test "x$LINE" != x ; then
6446 eval "DEFAULT_$LINE"
6447 else
6448 no_cache=1
6449 fi
6450
6451 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6452
6453 fi
6454
6455
6456 eval "$ac_cv_use_splitter"
6457 if test "$no_cache" != 1; then
6458 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6459 fi
6460
6461 if test "$wxUSE_SPLITTER" = yes; then
6462 echo "$ac_t""yes" 1>&6
6463 else
6464 echo "$ac_t""no" 1>&6
6465 fi
6466
6467
6468 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6469 echo "configure:6470: checking for --enable-statbmp" >&5
6470 no_cache=0
6471 # Check whether --enable-statbmp or --disable-statbmp was given.
6472 if test "${enable_statbmp+set}" = set; then
6473 enableval="$enable_statbmp"
6474
6475 if test "$enableval" = yes; then
6476 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6477 else
6478 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6479 fi
6480
6481 else
6482
6483 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6484 if test "x$LINE" != x ; then
6485 eval "DEFAULT_$LINE"
6486 else
6487 no_cache=1
6488 fi
6489
6490 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6491
6492 fi
6493
6494
6495 eval "$ac_cv_use_statbmp"
6496 if test "$no_cache" != 1; then
6497 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6498 fi
6499
6500 if test "$wxUSE_STATBMP" = yes; then
6501 echo "$ac_t""yes" 1>&6
6502 else
6503 echo "$ac_t""no" 1>&6
6504 fi
6505
6506
6507 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6508 echo "configure:6509: checking for --enable-statbox" >&5
6509 no_cache=0
6510 # Check whether --enable-statbox or --disable-statbox was given.
6511 if test "${enable_statbox+set}" = set; then
6512 enableval="$enable_statbox"
6513
6514 if test "$enableval" = yes; then
6515 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6516 else
6517 ac_cv_use_statbox='wxUSE_STATBOX=no'
6518 fi
6519
6520 else
6521
6522 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6523 if test "x$LINE" != x ; then
6524 eval "DEFAULT_$LINE"
6525 else
6526 no_cache=1
6527 fi
6528
6529 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6530
6531 fi
6532
6533
6534 eval "$ac_cv_use_statbox"
6535 if test "$no_cache" != 1; then
6536 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6537 fi
6538
6539 if test "$wxUSE_STATBOX" = yes; then
6540 echo "$ac_t""yes" 1>&6
6541 else
6542 echo "$ac_t""no" 1>&6
6543 fi
6544
6545
6546 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6547 echo "configure:6548: checking for --enable-statline" >&5
6548 no_cache=0
6549 # Check whether --enable-statline or --disable-statline was given.
6550 if test "${enable_statline+set}" = set; then
6551 enableval="$enable_statline"
6552
6553 if test "$enableval" = yes; then
6554 ac_cv_use_statline='wxUSE_STATLINE=yes'
6555 else
6556 ac_cv_use_statline='wxUSE_STATLINE=no'
6557 fi
6558
6559 else
6560
6561 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6562 if test "x$LINE" != x ; then
6563 eval "DEFAULT_$LINE"
6564 else
6565 no_cache=1
6566 fi
6567
6568 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6569
6570 fi
6571
6572
6573 eval "$ac_cv_use_statline"
6574 if test "$no_cache" != 1; then
6575 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6576 fi
6577
6578 if test "$wxUSE_STATLINE" = yes; then
6579 echo "$ac_t""yes" 1>&6
6580 else
6581 echo "$ac_t""no" 1>&6
6582 fi
6583
6584
6585 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6586 echo "configure:6587: checking for --enable-stattext" >&5
6587 no_cache=0
6588 # Check whether --enable-stattext or --disable-stattext was given.
6589 if test "${enable_stattext+set}" = set; then
6590 enableval="$enable_stattext"
6591
6592 if test "$enableval" = yes; then
6593 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6594 else
6595 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6596 fi
6597
6598 else
6599
6600 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6601 if test "x$LINE" != x ; then
6602 eval "DEFAULT_$LINE"
6603 else
6604 no_cache=1
6605 fi
6606
6607 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6608
6609 fi
6610
6611
6612 eval "$ac_cv_use_stattext"
6613 if test "$no_cache" != 1; then
6614 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6615 fi
6616
6617 if test "$wxUSE_STATTEXT" = yes; then
6618 echo "$ac_t""yes" 1>&6
6619 else
6620 echo "$ac_t""no" 1>&6
6621 fi
6622
6623
6624 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6625 echo "configure:6626: checking for --enable-statusbar" >&5
6626 no_cache=0
6627 # Check whether --enable-statusbar or --disable-statusbar was given.
6628 if test "${enable_statusbar+set}" = set; then
6629 enableval="$enable_statusbar"
6630
6631 if test "$enableval" = yes; then
6632 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6633 else
6634 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6635 fi
6636
6637 else
6638
6639 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6640 if test "x$LINE" != x ; then
6641 eval "DEFAULT_$LINE"
6642 else
6643 no_cache=1
6644 fi
6645
6646 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6647
6648 fi
6649
6650
6651 eval "$ac_cv_use_statusbar"
6652 if test "$no_cache" != 1; then
6653 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6654 fi
6655
6656 if test "$wxUSE_STATUSBAR" = yes; then
6657 echo "$ac_t""yes" 1>&6
6658 else
6659 echo "$ac_t""no" 1>&6
6660 fi
6661
6662
6663 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6664 echo "configure:6665: checking for --enable-tabdialog" >&5
6665 no_cache=0
6666 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6667 if test "${enable_tabdialog+set}" = set; then
6668 enableval="$enable_tabdialog"
6669
6670 if test "$enableval" = yes; then
6671 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6672 else
6673 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6674 fi
6675
6676 else
6677
6678 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6679 if test "x$LINE" != x ; then
6680 eval "DEFAULT_$LINE"
6681 else
6682 no_cache=1
6683 fi
6684
6685 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6686
6687 fi
6688
6689
6690 eval "$ac_cv_use_tabdialog"
6691 if test "$no_cache" != 1; then
6692 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6693 fi
6694
6695 if test "$wxUSE_TABDIALOG" = yes; then
6696 echo "$ac_t""yes" 1>&6
6697 else
6698 echo "$ac_t""no" 1>&6
6699 fi
6700
6701
6702 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6703 echo "configure:6704: checking for --enable-textctrl" >&5
6704 no_cache=0
6705 # Check whether --enable-textctrl or --disable-textctrl was given.
6706 if test "${enable_textctrl+set}" = set; then
6707 enableval="$enable_textctrl"
6708
6709 if test "$enableval" = yes; then
6710 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6711 else
6712 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6713 fi
6714
6715 else
6716
6717 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6718 if test "x$LINE" != x ; then
6719 eval "DEFAULT_$LINE"
6720 else
6721 no_cache=1
6722 fi
6723
6724 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6725
6726 fi
6727
6728
6729 eval "$ac_cv_use_textctrl"
6730 if test "$no_cache" != 1; then
6731 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6732 fi
6733
6734 if test "$wxUSE_TEXTCTRL" = yes; then
6735 echo "$ac_t""yes" 1>&6
6736 else
6737 echo "$ac_t""no" 1>&6
6738 fi
6739
6740
6741 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6742 echo "configure:6743: checking for --enable-togglebtn" >&5
6743 no_cache=0
6744 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6745 if test "${enable_togglebtn+set}" = set; then
6746 enableval="$enable_togglebtn"
6747
6748 if test "$enableval" = yes; then
6749 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6750 else
6751 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6752 fi
6753
6754 else
6755
6756 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6757 if test "x$LINE" != x ; then
6758 eval "DEFAULT_$LINE"
6759 else
6760 no_cache=1
6761 fi
6762
6763 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6764
6765 fi
6766
6767
6768 eval "$ac_cv_use_togglebtn"
6769 if test "$no_cache" != 1; then
6770 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6771 fi
6772
6773 if test "$wxUSE_TOGGLEBTN" = yes; then
6774 echo "$ac_t""yes" 1>&6
6775 else
6776 echo "$ac_t""no" 1>&6
6777 fi
6778
6779
6780 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6781 echo "configure:6782: checking for --enable-toolbar" >&5
6782 no_cache=0
6783 # Check whether --enable-toolbar or --disable-toolbar was given.
6784 if test "${enable_toolbar+set}" = set; then
6785 enableval="$enable_toolbar"
6786
6787 if test "$enableval" = yes; then
6788 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6789 else
6790 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6791 fi
6792
6793 else
6794
6795 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6796 if test "x$LINE" != x ; then
6797 eval "DEFAULT_$LINE"
6798 else
6799 no_cache=1
6800 fi
6801
6802 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6803
6804 fi
6805
6806
6807 eval "$ac_cv_use_toolbar"
6808 if test "$no_cache" != 1; then
6809 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6810 fi
6811
6812 if test "$wxUSE_TOOLBAR" = yes; then
6813 echo "$ac_t""yes" 1>&6
6814 else
6815 echo "$ac_t""no" 1>&6
6816 fi
6817
6818
6819 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6820 echo "configure:6821: checking for --enable-tbarnative" >&5
6821 no_cache=0
6822 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6823 if test "${enable_tbarnative+set}" = set; then
6824 enableval="$enable_tbarnative"
6825
6826 if test "$enableval" = yes; then
6827 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6828 else
6829 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6830 fi
6831
6832 else
6833
6834 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6835 if test "x$LINE" != x ; then
6836 eval "DEFAULT_$LINE"
6837 else
6838 no_cache=1
6839 fi
6840
6841 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6842
6843 fi
6844
6845
6846 eval "$ac_cv_use_tbarnative"
6847 if test "$no_cache" != 1; then
6848 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6849 fi
6850
6851 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6852 echo "$ac_t""yes" 1>&6
6853 else
6854 echo "$ac_t""no" 1>&6
6855 fi
6856
6857
6858 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6859 echo "configure:6860: checking for --enable-tbarsmpl" >&5
6860 no_cache=0
6861 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6862 if test "${enable_tbarsmpl+set}" = set; then
6863 enableval="$enable_tbarsmpl"
6864
6865 if test "$enableval" = yes; then
6866 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6867 else
6868 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6869 fi
6870
6871 else
6872
6873 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6874 if test "x$LINE" != x ; then
6875 eval "DEFAULT_$LINE"
6876 else
6877 no_cache=1
6878 fi
6879
6880 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6881
6882 fi
6883
6884
6885 eval "$ac_cv_use_tbarsmpl"
6886 if test "$no_cache" != 1; then
6887 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6888 fi
6889
6890 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6891 echo "$ac_t""yes" 1>&6
6892 else
6893 echo "$ac_t""no" 1>&6
6894 fi
6895
6896
6897 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6898 echo "configure:6899: checking for --enable-treectrl" >&5
6899 no_cache=0
6900 # Check whether --enable-treectrl or --disable-treectrl was given.
6901 if test "${enable_treectrl+set}" = set; then
6902 enableval="$enable_treectrl"
6903
6904 if test "$enableval" = yes; then
6905 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6906 else
6907 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6908 fi
6909
6910 else
6911
6912 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6913 if test "x$LINE" != x ; then
6914 eval "DEFAULT_$LINE"
6915 else
6916 no_cache=1
6917 fi
6918
6919 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6920
6921 fi
6922
6923
6924 eval "$ac_cv_use_treectrl"
6925 if test "$no_cache" != 1; then
6926 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6927 fi
6928
6929 if test "$wxUSE_TREECTRL" = yes; then
6930 echo "$ac_t""yes" 1>&6
6931 else
6932 echo "$ac_t""no" 1>&6
6933 fi
6934
6935
6936 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
6937 echo "configure:6938: checking for --enable-tipwindow" >&5
6938 no_cache=0
6939 # Check whether --enable-tipwindow or --disable-tipwindow was given.
6940 if test "${enable_tipwindow+set}" = set; then
6941 enableval="$enable_tipwindow"
6942
6943 if test "$enableval" = yes; then
6944 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
6945 else
6946 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
6947 fi
6948
6949 else
6950
6951 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
6952 if test "x$LINE" != x ; then
6953 eval "DEFAULT_$LINE"
6954 else
6955 no_cache=1
6956 fi
6957
6958 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
6959
6960 fi
6961
6962
6963 eval "$ac_cv_use_tipwindow"
6964 if test "$no_cache" != 1; then
6965 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
6966 fi
6967
6968 if test "$wxUSE_TIPWINDOW" = yes; then
6969 echo "$ac_t""yes" 1>&6
6970 else
6971 echo "$ac_t""no" 1>&6
6972 fi
6973
6974
6975 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
6976 echo "configure:6977: checking for --enable-popupwin" >&5
6977 no_cache=0
6978 # Check whether --enable-popupwin or --disable-popupwin was given.
6979 if test "${enable_popupwin+set}" = set; then
6980 enableval="$enable_popupwin"
6981
6982 if test "$enableval" = yes; then
6983 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6984 else
6985 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6986 fi
6987
6988 else
6989
6990 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6991 if test "x$LINE" != x ; then
6992 eval "DEFAULT_$LINE"
6993 else
6994 no_cache=1
6995 fi
6996
6997 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6998
6999 fi
7000
7001
7002 eval "$ac_cv_use_popupwin"
7003 if test "$no_cache" != 1; then
7004 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7005 fi
7006
7007 if test "$wxUSE_POPUPWIN" = yes; then
7008 echo "$ac_t""yes" 1>&6
7009 else
7010 echo "$ac_t""no" 1>&6
7011 fi
7012
7013
7014
7015
7016 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
7017 echo "configure:7018: checking for --enable-commondlg" >&5
7018 no_cache=0
7019 # Check whether --enable-commondlg or --disable-commondlg was given.
7020 if test "${enable_commondlg+set}" = set; then
7021 enableval="$enable_commondlg"
7022
7023 if test "$enableval" = yes; then
7024 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7025 else
7026 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7027 fi
7028
7029 else
7030
7031 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7032 if test "x$LINE" != x ; then
7033 eval "DEFAULT_$LINE"
7034 else
7035 no_cache=1
7036 fi
7037
7038 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7039
7040 fi
7041
7042
7043 eval "$ac_cv_use_commondlg"
7044 if test "$no_cache" != 1; then
7045 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7046 fi
7047
7048 if test "$wxUSE_COMMONDLGS" = yes; then
7049 echo "$ac_t""yes" 1>&6
7050 else
7051 echo "$ac_t""no" 1>&6
7052 fi
7053
7054
7055 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
7056 echo "configure:7057: checking for --enable-choicedlg" >&5
7057 no_cache=0
7058 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7059 if test "${enable_choicedlg+set}" = set; then
7060 enableval="$enable_choicedlg"
7061
7062 if test "$enableval" = yes; then
7063 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7064 else
7065 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7066 fi
7067
7068 else
7069
7070 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7071 if test "x$LINE" != x ; then
7072 eval "DEFAULT_$LINE"
7073 else
7074 no_cache=1
7075 fi
7076
7077 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7078
7079 fi
7080
7081
7082 eval "$ac_cv_use_choicedlg"
7083 if test "$no_cache" != 1; then
7084 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7085 fi
7086
7087 if test "$wxUSE_CHOICEDLG" = yes; then
7088 echo "$ac_t""yes" 1>&6
7089 else
7090 echo "$ac_t""no" 1>&6
7091 fi
7092
7093
7094 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
7095 echo "configure:7096: checking for --enable-coldlg" >&5
7096 no_cache=0
7097 # Check whether --enable-coldlg or --disable-coldlg was given.
7098 if test "${enable_coldlg+set}" = set; then
7099 enableval="$enable_coldlg"
7100
7101 if test "$enableval" = yes; then
7102 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7103 else
7104 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7105 fi
7106
7107 else
7108
7109 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7110 if test "x$LINE" != x ; then
7111 eval "DEFAULT_$LINE"
7112 else
7113 no_cache=1
7114 fi
7115
7116 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7117
7118 fi
7119
7120
7121 eval "$ac_cv_use_coldlg"
7122 if test "$no_cache" != 1; then
7123 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7124 fi
7125
7126 if test "$wxUSE_COLOURDLG" = yes; then
7127 echo "$ac_t""yes" 1>&6
7128 else
7129 echo "$ac_t""no" 1>&6
7130 fi
7131
7132
7133 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7134 echo "configure:7135: checking for --enable-filedlg" >&5
7135 no_cache=0
7136 # Check whether --enable-filedlg or --disable-filedlg was given.
7137 if test "${enable_filedlg+set}" = set; then
7138 enableval="$enable_filedlg"
7139
7140 if test "$enableval" = yes; then
7141 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7142 else
7143 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7144 fi
7145
7146 else
7147
7148 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7149 if test "x$LINE" != x ; then
7150 eval "DEFAULT_$LINE"
7151 else
7152 no_cache=1
7153 fi
7154
7155 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7156
7157 fi
7158
7159
7160 eval "$ac_cv_use_filedlg"
7161 if test "$no_cache" != 1; then
7162 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7163 fi
7164
7165 if test "$wxUSE_FILEDLG" = yes; then
7166 echo "$ac_t""yes" 1>&6
7167 else
7168 echo "$ac_t""no" 1>&6
7169 fi
7170
7171
7172 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
7173 echo "configure:7174: checking for --enable-finddlg" >&5
7174 no_cache=0
7175 # Check whether --enable-finddlg or --disable-finddlg was given.
7176 if test "${enable_finddlg+set}" = set; then
7177 enableval="$enable_finddlg"
7178
7179 if test "$enableval" = yes; then
7180 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7181 else
7182 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7183 fi
7184
7185 else
7186
7187 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7188 if test "x$LINE" != x ; then
7189 eval "DEFAULT_$LINE"
7190 else
7191 no_cache=1
7192 fi
7193
7194 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7195
7196 fi
7197
7198
7199 eval "$ac_cv_use_finddlg"
7200 if test "$no_cache" != 1; then
7201 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7202 fi
7203
7204 if test "$wxUSE_FINDREPLDLG" = yes; then
7205 echo "$ac_t""yes" 1>&6
7206 else
7207 echo "$ac_t""no" 1>&6
7208 fi
7209
7210
7211 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7212 echo "configure:7213: checking for --enable-fontdlg" >&5
7213 no_cache=0
7214 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7215 if test "${enable_fontdlg+set}" = set; then
7216 enableval="$enable_fontdlg"
7217
7218 if test "$enableval" = yes; then
7219 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7220 else
7221 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7222 fi
7223
7224 else
7225
7226 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7227 if test "x$LINE" != x ; then
7228 eval "DEFAULT_$LINE"
7229 else
7230 no_cache=1
7231 fi
7232
7233 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7234
7235 fi
7236
7237
7238 eval "$ac_cv_use_fontdlg"
7239 if test "$no_cache" != 1; then
7240 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7241 fi
7242
7243 if test "$wxUSE_FONTDLG" = yes; then
7244 echo "$ac_t""yes" 1>&6
7245 else
7246 echo "$ac_t""no" 1>&6
7247 fi
7248
7249
7250 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7251 echo "configure:7252: checking for --enable-dirdlg" >&5
7252 no_cache=0
7253 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7254 if test "${enable_dirdlg+set}" = set; then
7255 enableval="$enable_dirdlg"
7256
7257 if test "$enableval" = yes; then
7258 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7259 else
7260 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7261 fi
7262
7263 else
7264
7265 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7266 if test "x$LINE" != x ; then
7267 eval "DEFAULT_$LINE"
7268 else
7269 no_cache=1
7270 fi
7271
7272 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7273
7274 fi
7275
7276
7277 eval "$ac_cv_use_dirdlg"
7278 if test "$no_cache" != 1; then
7279 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7280 fi
7281
7282 if test "$wxUSE_DIRDLG" = yes; then
7283 echo "$ac_t""yes" 1>&6
7284 else
7285 echo "$ac_t""no" 1>&6
7286 fi
7287
7288
7289 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7290 echo "configure:7291: checking for --enable-msgdlg" >&5
7291 no_cache=0
7292 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7293 if test "${enable_msgdlg+set}" = set; then
7294 enableval="$enable_msgdlg"
7295
7296 if test "$enableval" = yes; then
7297 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7298 else
7299 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7300 fi
7301
7302 else
7303
7304 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7305 if test "x$LINE" != x ; then
7306 eval "DEFAULT_$LINE"
7307 else
7308 no_cache=1
7309 fi
7310
7311 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7312
7313 fi
7314
7315
7316 eval "$ac_cv_use_msgdlg"
7317 if test "$no_cache" != 1; then
7318 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7319 fi
7320
7321 if test "$wxUSE_MSGDLG" = yes; then
7322 echo "$ac_t""yes" 1>&6
7323 else
7324 echo "$ac_t""no" 1>&6
7325 fi
7326
7327
7328 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7329 echo "configure:7330: checking for --enable-numberdlg" >&5
7330 no_cache=0
7331 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7332 if test "${enable_numberdlg+set}" = set; then
7333 enableval="$enable_numberdlg"
7334
7335 if test "$enableval" = yes; then
7336 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7337 else
7338 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7339 fi
7340
7341 else
7342
7343 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7344 if test "x$LINE" != x ; then
7345 eval "DEFAULT_$LINE"
7346 else
7347 no_cache=1
7348 fi
7349
7350 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7351
7352 fi
7353
7354
7355 eval "$ac_cv_use_numberdlg"
7356 if test "$no_cache" != 1; then
7357 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7358 fi
7359
7360 if test "$wxUSE_NUMBERDLG" = yes; then
7361 echo "$ac_t""yes" 1>&6
7362 else
7363 echo "$ac_t""no" 1>&6
7364 fi
7365
7366
7367 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7368 echo "configure:7369: checking for --enable-splash" >&5
7369 no_cache=0
7370 # Check whether --enable-splash or --disable-splash was given.
7371 if test "${enable_splash+set}" = set; then
7372 enableval="$enable_splash"
7373
7374 if test "$enableval" = yes; then
7375 ac_cv_use_splash='wxUSE_SPLASH=yes'
7376 else
7377 ac_cv_use_splash='wxUSE_SPLASH=no'
7378 fi
7379
7380 else
7381
7382 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7383 if test "x$LINE" != x ; then
7384 eval "DEFAULT_$LINE"
7385 else
7386 no_cache=1
7387 fi
7388
7389 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7390
7391 fi
7392
7393
7394 eval "$ac_cv_use_splash"
7395 if test "$no_cache" != 1; then
7396 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7397 fi
7398
7399 if test "$wxUSE_SPLASH" = yes; then
7400 echo "$ac_t""yes" 1>&6
7401 else
7402 echo "$ac_t""no" 1>&6
7403 fi
7404
7405
7406 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7407 echo "configure:7408: checking for --enable-textdlg" >&5
7408 no_cache=0
7409 # Check whether --enable-textdlg or --disable-textdlg was given.
7410 if test "${enable_textdlg+set}" = set; then
7411 enableval="$enable_textdlg"
7412
7413 if test "$enableval" = yes; then
7414 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7415 else
7416 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7417 fi
7418
7419 else
7420
7421 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7422 if test "x$LINE" != x ; then
7423 eval "DEFAULT_$LINE"
7424 else
7425 no_cache=1
7426 fi
7427
7428 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7429
7430 fi
7431
7432
7433 eval "$ac_cv_use_textdlg"
7434 if test "$no_cache" != 1; then
7435 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7436 fi
7437
7438 if test "$wxUSE_TEXTDLG" = yes; then
7439 echo "$ac_t""yes" 1>&6
7440 else
7441 echo "$ac_t""no" 1>&6
7442 fi
7443
7444
7445 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7446 echo "configure:7447: checking for --enable-tipdlg" >&5
7447 no_cache=0
7448 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7449 if test "${enable_tipdlg+set}" = set; then
7450 enableval="$enable_tipdlg"
7451
7452 if test "$enableval" = yes; then
7453 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7454 else
7455 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7456 fi
7457
7458 else
7459
7460 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7461 if test "x$LINE" != x ; then
7462 eval "DEFAULT_$LINE"
7463 else
7464 no_cache=1
7465 fi
7466
7467 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7468
7469 fi
7470
7471
7472 eval "$ac_cv_use_tipdlg"
7473 if test "$no_cache" != 1; then
7474 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7475 fi
7476
7477 if test "$wxUSE_STARTUP_TIPS" = yes; then
7478 echo "$ac_t""yes" 1>&6
7479 else
7480 echo "$ac_t""no" 1>&6
7481 fi
7482
7483
7484 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7485 echo "configure:7486: checking for --enable-progressdlg" >&5
7486 no_cache=0
7487 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7488 if test "${enable_progressdlg+set}" = set; then
7489 enableval="$enable_progressdlg"
7490
7491 if test "$enableval" = yes; then
7492 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7493 else
7494 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7495 fi
7496
7497 else
7498
7499 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7500 if test "x$LINE" != x ; then
7501 eval "DEFAULT_$LINE"
7502 else
7503 no_cache=1
7504 fi
7505
7506 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7507
7508 fi
7509
7510
7511 eval "$ac_cv_use_progressdlg"
7512 if test "$no_cache" != 1; then
7513 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7514 fi
7515
7516 if test "$wxUSE_PROGRESSDLG" = yes; then
7517 echo "$ac_t""yes" 1>&6
7518 else
7519 echo "$ac_t""no" 1>&6
7520 fi
7521
7522
7523 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7524 echo "configure:7525: checking for --enable-wizarddlg" >&5
7525 no_cache=0
7526 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7527 if test "${enable_wizarddlg+set}" = set; then
7528 enableval="$enable_wizarddlg"
7529
7530 if test "$enableval" = yes; then
7531 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7532 else
7533 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7534 fi
7535
7536 else
7537
7538 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7539 if test "x$LINE" != x ; then
7540 eval "DEFAULT_$LINE"
7541 else
7542 no_cache=1
7543 fi
7544
7545 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7546
7547 fi
7548
7549
7550 eval "$ac_cv_use_wizarddlg"
7551 if test "$no_cache" != 1; then
7552 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7553 fi
7554
7555 if test "$wxUSE_WIZARDDLG" = yes; then
7556 echo "$ac_t""yes" 1>&6
7557 else
7558 echo "$ac_t""no" 1>&6
7559 fi
7560
7561
7562
7563
7564 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7565 echo "configure:7566: checking for --enable-menus" >&5
7566 no_cache=0
7567 # Check whether --enable-menus or --disable-menus was given.
7568 if test "${enable_menus+set}" = set; then
7569 enableval="$enable_menus"
7570
7571 if test "$enableval" = yes; then
7572 ac_cv_use_menus='wxUSE_MENUS=yes'
7573 else
7574 ac_cv_use_menus='wxUSE_MENUS=no'
7575 fi
7576
7577 else
7578
7579 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7580 if test "x$LINE" != x ; then
7581 eval "DEFAULT_$LINE"
7582 else
7583 no_cache=1
7584 fi
7585
7586 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7587
7588 fi
7589
7590
7591 eval "$ac_cv_use_menus"
7592 if test "$no_cache" != 1; then
7593 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7594 fi
7595
7596 if test "$wxUSE_MENUS" = yes; then
7597 echo "$ac_t""yes" 1>&6
7598 else
7599 echo "$ac_t""no" 1>&6
7600 fi
7601
7602
7603 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7604 echo "configure:7605: checking for --enable-miniframe" >&5
7605 no_cache=0
7606 # Check whether --enable-miniframe or --disable-miniframe was given.
7607 if test "${enable_miniframe+set}" = set; then
7608 enableval="$enable_miniframe"
7609
7610 if test "$enableval" = yes; then
7611 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7612 else
7613 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7614 fi
7615
7616 else
7617
7618 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7619 if test "x$LINE" != x ; then
7620 eval "DEFAULT_$LINE"
7621 else
7622 no_cache=1
7623 fi
7624
7625 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7626
7627 fi
7628
7629
7630 eval "$ac_cv_use_miniframe"
7631 if test "$no_cache" != 1; then
7632 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7633 fi
7634
7635 if test "$wxUSE_MINIFRAME" = yes; then
7636 echo "$ac_t""yes" 1>&6
7637 else
7638 echo "$ac_t""no" 1>&6
7639 fi
7640
7641
7642 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7643 echo "configure:7644: checking for --enable-tooltips" >&5
7644 no_cache=0
7645 # Check whether --enable-tooltips or --disable-tooltips was given.
7646 if test "${enable_tooltips+set}" = set; then
7647 enableval="$enable_tooltips"
7648
7649 if test "$enableval" = yes; then
7650 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7651 else
7652 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7653 fi
7654
7655 else
7656
7657 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7658 if test "x$LINE" != x ; then
7659 eval "DEFAULT_$LINE"
7660 else
7661 no_cache=1
7662 fi
7663
7664 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7665
7666 fi
7667
7668
7669 eval "$ac_cv_use_tooltips"
7670 if test "$no_cache" != 1; then
7671 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7672 fi
7673
7674 if test "$wxUSE_TOOLTIPS" = yes; then
7675 echo "$ac_t""yes" 1>&6
7676 else
7677 echo "$ac_t""no" 1>&6
7678 fi
7679
7680
7681 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7682 echo "configure:7683: checking for --enable-splines" >&5
7683 no_cache=0
7684 # Check whether --enable-splines or --disable-splines was given.
7685 if test "${enable_splines+set}" = set; then
7686 enableval="$enable_splines"
7687
7688 if test "$enableval" = yes; then
7689 ac_cv_use_splines='wxUSE_SPLINES=yes'
7690 else
7691 ac_cv_use_splines='wxUSE_SPLINES=no'
7692 fi
7693
7694 else
7695
7696 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7697 if test "x$LINE" != x ; then
7698 eval "DEFAULT_$LINE"
7699 else
7700 no_cache=1
7701 fi
7702
7703 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7704
7705 fi
7706
7707
7708 eval "$ac_cv_use_splines"
7709 if test "$no_cache" != 1; then
7710 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7711 fi
7712
7713 if test "$wxUSE_SPLINES" = yes; then
7714 echo "$ac_t""yes" 1>&6
7715 else
7716 echo "$ac_t""no" 1>&6
7717 fi
7718
7719
7720 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7721 echo "configure:7722: checking for --enable-validators" >&5
7722 no_cache=0
7723 # Check whether --enable-validators or --disable-validators was given.
7724 if test "${enable_validators+set}" = set; then
7725 enableval="$enable_validators"
7726
7727 if test "$enableval" = yes; then
7728 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7729 else
7730 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7731 fi
7732
7733 else
7734
7735 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7736 if test "x$LINE" != x ; then
7737 eval "DEFAULT_$LINE"
7738 else
7739 no_cache=1
7740 fi
7741
7742 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7743
7744 fi
7745
7746
7747 eval "$ac_cv_use_validators"
7748 if test "$no_cache" != 1; then
7749 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7750 fi
7751
7752 if test "$wxUSE_VALIDATORS" = yes; then
7753 echo "$ac_t""yes" 1>&6
7754 else
7755 echo "$ac_t""no" 1>&6
7756 fi
7757
7758
7759 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7760 echo "configure:7761: checking for --enable-busyinfo" >&5
7761 no_cache=0
7762 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7763 if test "${enable_busyinfo+set}" = set; then
7764 enableval="$enable_busyinfo"
7765
7766 if test "$enableval" = yes; then
7767 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7768 else
7769 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7770 fi
7771
7772 else
7773
7774 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7775 if test "x$LINE" != x ; then
7776 eval "DEFAULT_$LINE"
7777 else
7778 no_cache=1
7779 fi
7780
7781 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7782
7783 fi
7784
7785
7786 eval "$ac_cv_use_busyinfo"
7787 if test "$no_cache" != 1; then
7788 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7789 fi
7790
7791 if test "$wxUSE_BUSYINFO" = yes; then
7792 echo "$ac_t""yes" 1>&6
7793 else
7794 echo "$ac_t""no" 1>&6
7795 fi
7796
7797
7798 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7799 echo "configure:7800: checking for --enable-joystick" >&5
7800 no_cache=0
7801 # Check whether --enable-joystick or --disable-joystick was given.
7802 if test "${enable_joystick+set}" = set; then
7803 enableval="$enable_joystick"
7804
7805 if test "$enableval" = yes; then
7806 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7807 else
7808 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7809 fi
7810
7811 else
7812
7813 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7814 if test "x$LINE" != x ; then
7815 eval "DEFAULT_$LINE"
7816 else
7817 no_cache=1
7818 fi
7819
7820 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7821
7822 fi
7823
7824
7825 eval "$ac_cv_use_joystick"
7826 if test "$no_cache" != 1; then
7827 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7828 fi
7829
7830 if test "$wxUSE_JOYSTICK" = yes; then
7831 echo "$ac_t""yes" 1>&6
7832 else
7833 echo "$ac_t""no" 1>&6
7834 fi
7835
7836
7837 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7838 echo "configure:7839: checking for --enable-metafile" >&5
7839 no_cache=0
7840 # Check whether --enable-metafile or --disable-metafile was given.
7841 if test "${enable_metafile+set}" = set; then
7842 enableval="$enable_metafile"
7843
7844 if test "$enableval" = yes; then
7845 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7846 else
7847 ac_cv_use_metafile='wxUSE_METAFILE=no'
7848 fi
7849
7850 else
7851
7852 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7853 if test "x$LINE" != x ; then
7854 eval "DEFAULT_$LINE"
7855 else
7856 no_cache=1
7857 fi
7858
7859 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7860
7861 fi
7862
7863
7864 eval "$ac_cv_use_metafile"
7865 if test "$no_cache" != 1; then
7866 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7867 fi
7868
7869 if test "$wxUSE_METAFILE" = yes; then
7870 echo "$ac_t""yes" 1>&6
7871 else
7872 echo "$ac_t""no" 1>&6
7873 fi
7874
7875
7876 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
7877 echo "configure:7878: checking for --enable-dragimage" >&5
7878 no_cache=0
7879 # Check whether --enable-dragimage or --disable-dragimage was given.
7880 if test "${enable_dragimage+set}" = set; then
7881 enableval="$enable_dragimage"
7882
7883 if test "$enableval" = yes; then
7884 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7885 else
7886 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7887 fi
7888
7889 else
7890
7891 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7892 if test "x$LINE" != x ; then
7893 eval "DEFAULT_$LINE"
7894 else
7895 no_cache=1
7896 fi
7897
7898 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7899
7900 fi
7901
7902
7903 eval "$ac_cv_use_dragimage"
7904 if test "$no_cache" != 1; then
7905 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7906 fi
7907
7908 if test "$wxUSE_DRAGIMAGE" = yes; then
7909 echo "$ac_t""yes" 1>&6
7910 else
7911 echo "$ac_t""no" 1>&6
7912 fi
7913
7914
7915
7916
7917 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
7918 echo "configure:7919: checking for --enable-palette" >&5
7919 no_cache=0
7920 # Check whether --enable-palette or --disable-palette was given.
7921 if test "${enable_palette+set}" = set; then
7922 enableval="$enable_palette"
7923
7924 if test "$enableval" = yes; then
7925 ac_cv_use_palette='wxUSE_PALETTE=yes'
7926 else
7927 ac_cv_use_palette='wxUSE_PALETTE=no'
7928 fi
7929
7930 else
7931
7932 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
7933 if test "x$LINE" != x ; then
7934 eval "DEFAULT_$LINE"
7935 else
7936 no_cache=1
7937 fi
7938
7939 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
7940
7941 fi
7942
7943
7944 eval "$ac_cv_use_palette"
7945 if test "$no_cache" != 1; then
7946 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
7947 fi
7948
7949 if test "$wxUSE_PALETTE" = yes; then
7950 echo "$ac_t""yes" 1>&6
7951 else
7952 echo "$ac_t""no" 1>&6
7953 fi
7954
7955
7956 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7957 echo "configure:7958: checking for --enable-image" >&5
7958 no_cache=0
7959 # Check whether --enable-image or --disable-image was given.
7960 if test "${enable_image+set}" = set; then
7961 enableval="$enable_image"
7962
7963 if test "$enableval" = yes; then
7964 ac_cv_use_image='wxUSE_IMAGE=yes'
7965 else
7966 ac_cv_use_image='wxUSE_IMAGE=no'
7967 fi
7968
7969 else
7970
7971 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7972 if test "x$LINE" != x ; then
7973 eval "DEFAULT_$LINE"
7974 else
7975 no_cache=1
7976 fi
7977
7978 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7979
7980 fi
7981
7982
7983 eval "$ac_cv_use_image"
7984 if test "$no_cache" != 1; then
7985 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7986 fi
7987
7988 if test "$wxUSE_IMAGE" = yes; then
7989 echo "$ac_t""yes" 1>&6
7990 else
7991 echo "$ac_t""no" 1>&6
7992 fi
7993
7994
7995 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7996 echo "configure:7997: checking for --enable-gif" >&5
7997 no_cache=0
7998 # Check whether --enable-gif or --disable-gif was given.
7999 if test "${enable_gif+set}" = set; then
8000 enableval="$enable_gif"
8001
8002 if test "$enableval" = yes; then
8003 ac_cv_use_gif='wxUSE_GIF=yes'
8004 else
8005 ac_cv_use_gif='wxUSE_GIF=no'
8006 fi
8007
8008 else
8009
8010 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8011 if test "x$LINE" != x ; then
8012 eval "DEFAULT_$LINE"
8013 else
8014 no_cache=1
8015 fi
8016
8017 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8018
8019 fi
8020
8021
8022 eval "$ac_cv_use_gif"
8023 if test "$no_cache" != 1; then
8024 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8025 fi
8026
8027 if test "$wxUSE_GIF" = yes; then
8028 echo "$ac_t""yes" 1>&6
8029 else
8030 echo "$ac_t""no" 1>&6
8031 fi
8032
8033
8034 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
8035 echo "configure:8036: checking for --enable-pcx" >&5
8036 no_cache=0
8037 # Check whether --enable-pcx or --disable-pcx was given.
8038 if test "${enable_pcx+set}" = set; then
8039 enableval="$enable_pcx"
8040
8041 if test "$enableval" = yes; then
8042 ac_cv_use_pcx='wxUSE_PCX=yes'
8043 else
8044 ac_cv_use_pcx='wxUSE_PCX=no'
8045 fi
8046
8047 else
8048
8049 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8050 if test "x$LINE" != x ; then
8051 eval "DEFAULT_$LINE"
8052 else
8053 no_cache=1
8054 fi
8055
8056 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8057
8058 fi
8059
8060
8061 eval "$ac_cv_use_pcx"
8062 if test "$no_cache" != 1; then
8063 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8064 fi
8065
8066 if test "$wxUSE_PCX" = yes; then
8067 echo "$ac_t""yes" 1>&6
8068 else
8069 echo "$ac_t""no" 1>&6
8070 fi
8071
8072
8073 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8074 echo "configure:8075: checking for --enable-pnm" >&5
8075 no_cache=0
8076 # Check whether --enable-pnm or --disable-pnm was given.
8077 if test "${enable_pnm+set}" = set; then
8078 enableval="$enable_pnm"
8079
8080 if test "$enableval" = yes; then
8081 ac_cv_use_pnm='wxUSE_PNM=yes'
8082 else
8083 ac_cv_use_pnm='wxUSE_PNM=no'
8084 fi
8085
8086 else
8087
8088 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8089 if test "x$LINE" != x ; then
8090 eval "DEFAULT_$LINE"
8091 else
8092 no_cache=1
8093 fi
8094
8095 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8096
8097 fi
8098
8099
8100 eval "$ac_cv_use_pnm"
8101 if test "$no_cache" != 1; then
8102 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8103 fi
8104
8105 if test "$wxUSE_PNM" = yes; then
8106 echo "$ac_t""yes" 1>&6
8107 else
8108 echo "$ac_t""no" 1>&6
8109 fi
8110
8111
8112 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
8113 echo "configure:8114: checking for --enable-xpm" >&5
8114 no_cache=0
8115 # Check whether --enable-xpm or --disable-xpm was given.
8116 if test "${enable_xpm+set}" = set; then
8117 enableval="$enable_xpm"
8118
8119 if test "$enableval" = yes; then
8120 ac_cv_use_xpm='wxUSE_XPM=yes'
8121 else
8122 ac_cv_use_xpm='wxUSE_XPM=no'
8123 fi
8124
8125 else
8126
8127 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8128 if test "x$LINE" != x ; then
8129 eval "DEFAULT_$LINE"
8130 else
8131 no_cache=1
8132 fi
8133
8134 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8135
8136 fi
8137
8138
8139 eval "$ac_cv_use_xpm"
8140 if test "$no_cache" != 1; then
8141 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8142 fi
8143
8144 if test "$wxUSE_XPM" = yes; then
8145 echo "$ac_t""yes" 1>&6
8146 else
8147 echo "$ac_t""no" 1>&6
8148 fi
8149
8150
8151 fi
8152
8153
8154 echo "saving argument cache $wx_arg_cache_file"
8155 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8156
8157
8158
8159 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8160 echo "configure:8161: checking for toolkit" >&5
8161
8162 if test "$wxUSE_GUI" = "yes"; then
8163
8164 if test "$USE_BEOS" = 1; then
8165 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8166 fi
8167
8168 if test "$TOOLKIT_GIVEN" = 1; then
8169 for toolkit in `echo $ALL_TOOLKITS`; do
8170 var=wxUSE_$toolkit
8171 eval "value=\$${var}"
8172 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8173 done
8174 else
8175 for toolkit in `echo $ALL_TOOLKITS`; do
8176 if test "$has_toolkit_in_cache" != 1; then
8177 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8178 else
8179 var=DEFAULT_wxUSE_$toolkit
8180 fi
8181 eval "wxUSE_$toolkit=\$${var}"
8182 done
8183 fi
8184
8185 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8186 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0}`
8187
8188 case "${host}" in
8189 *-pc-os2_emx | *-pc-os2-emx )
8190 # PATH_IFS is autodetected by OS/2's configure (usually ';')
8191 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8192 LEX_STEM="lexyy"
8193 ;;
8194 *)
8195 PATH_IFS=':'
8196 LEX_STEM="lex.yy"
8197 ;;
8198 esac
8199
8200 case "$NUM_TOOLKITS" in
8201 1)
8202 ;;
8203 0)
8204 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8205 ;;
8206 *)
8207 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8208 esac
8209
8210 for toolkit in `echo $ALL_TOOLKITS`; do
8211 var=wxUSE_$toolkit
8212 eval "value=\$${var}"
8213 if test "x$value" != x; then
8214 cache_var=CACHE_$toolkit
8215 eval "cache=\$${cache_var}"
8216 if test "$cache" = 1; then
8217 echo "$var=$value" >> ${wx_arg_cache_file}
8218 fi
8219 if test "$value" = 1; then
8220 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8221 echo "$ac_t""$toolkit_echo" 1>&6
8222 fi
8223 fi
8224 done
8225 else
8226 PATH_IFS=':'
8227 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8228 fi
8229
8230
8231 cat > confcache <<\EOF
8232 # This file is a shell script that caches the results of configure
8233 # tests run on this system so they can be shared between configure
8234 # scripts and configure runs. It is not useful on other systems.
8235 # If it contains results you don't want to keep, you may remove or edit it.
8236 #
8237 # By default, configure uses ./config.cache as the cache file,
8238 # creating it if it does not exist already. You can give configure
8239 # the --cache-file=FILE option to use a different cache file; that is
8240 # what configure does when it calls configure scripts in
8241 # subdirectories, so they share the cache.
8242 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8243 # config.status only pays attention to the cache file if you give it the
8244 # --recheck option to rerun configure.
8245 #
8246 EOF
8247 # The following way of writing the cache mishandles newlines in values,
8248 # but we know of no workaround that is simple, portable, and efficient.
8249 # So, don't put newlines in cache variables' values.
8250 # Ultrix sh set writes to stderr and can't be redirected directly,
8251 # and sets the high bit in the cache file unless we assign to the vars.
8252 (set) 2>&1 |
8253 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8254 *ac_space=\ *)
8255 # `set' does not quote correctly, so add quotes (double-quote substitution
8256 # turns \\\\ into \\, and sed turns \\ into \).
8257 sed -n \
8258 -e "s/'/'\\\\''/g" \
8259 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8260 ;;
8261 *)
8262 # `set' quotes correctly as required by POSIX, so do not add quotes.
8263 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8264 ;;
8265 esac >> confcache
8266 if cmp -s $cache_file confcache; then
8267 :
8268 else
8269 if test -w $cache_file; then
8270 echo "updating cache $cache_file"
8271 cat confcache > $cache_file
8272 else
8273 echo "not updating unwritable cache $cache_file"
8274 fi
8275 fi
8276 rm -f confcache
8277
8278
8279 if test "$build" != "$host" ; then
8280 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then
8281 CC=$host_alias-gcc
8282 CXX=$host_alias-c++
8283 AR=$host_alias-ar
8284 RANLIB=$host_alias-ranlib
8285 DLLTOOL=$host_alias-dlltool
8286 RESCOMP=$host_alias-windres
8287 LD=$host_alias-ld
8288 NM=$host_alias-nm
8289 STRIP=$host_alias-strip
8290 else
8291 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8292 fi
8293 fi
8294
8295 # Extract the first word of "gcc", so it can be a program name with args.
8296 set dummy gcc; ac_word=$2
8297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8298 echo "configure:8299: checking for $ac_word" >&5
8299 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8300 echo $ac_n "(cached) $ac_c" 1>&6
8301 else
8302 if test -n "$CC"; then
8303 ac_cv_prog_CC="$CC" # Let the user override the test.
8304 else
8305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8306 ac_dummy="$PATH"
8307 for ac_dir in $ac_dummy; do
8308 test -z "$ac_dir" && ac_dir=.
8309 if test -f $ac_dir/$ac_word; then
8310 ac_cv_prog_CC="gcc"
8311 break
8312 fi
8313 done
8314 IFS="$ac_save_ifs"
8315 fi
8316 fi
8317 CC="$ac_cv_prog_CC"
8318 if test -n "$CC"; then
8319 echo "$ac_t""$CC" 1>&6
8320 else
8321 echo "$ac_t""no" 1>&6
8322 fi
8323
8324 if test -z "$CC"; then
8325 # Extract the first word of "cc", so it can be a program name with args.
8326 set dummy cc; ac_word=$2
8327 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8328 echo "configure:8329: checking for $ac_word" >&5
8329 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8330 echo $ac_n "(cached) $ac_c" 1>&6
8331 else
8332 if test -n "$CC"; then
8333 ac_cv_prog_CC="$CC" # Let the user override the test.
8334 else
8335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8336 ac_prog_rejected=no
8337 ac_dummy="$PATH"
8338 for ac_dir in $ac_dummy; do
8339 test -z "$ac_dir" && ac_dir=.
8340 if test -f $ac_dir/$ac_word; then
8341 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8342 ac_prog_rejected=yes
8343 continue
8344 fi
8345 ac_cv_prog_CC="cc"
8346 break
8347 fi
8348 done
8349 IFS="$ac_save_ifs"
8350 if test $ac_prog_rejected = yes; then
8351 # We found a bogon in the path, so make sure we never use it.
8352 set dummy $ac_cv_prog_CC
8353 shift
8354 if test $# -gt 0; then
8355 # We chose a different compiler from the bogus one.
8356 # However, it has the same basename, so the bogon will be chosen
8357 # first if we set CC to just the basename; use the full file name.
8358 shift
8359 set dummy "$ac_dir/$ac_word" "$@"
8360 shift
8361 ac_cv_prog_CC="$@"
8362 fi
8363 fi
8364 fi
8365 fi
8366 CC="$ac_cv_prog_CC"
8367 if test -n "$CC"; then
8368 echo "$ac_t""$CC" 1>&6
8369 else
8370 echo "$ac_t""no" 1>&6
8371 fi
8372
8373 if test -z "$CC"; then
8374 case "`uname -s`" in
8375 *win32* | *WIN32*)
8376 # Extract the first word of "cl", so it can be a program name with args.
8377 set dummy cl; ac_word=$2
8378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8379 echo "configure:8380: checking for $ac_word" >&5
8380 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8381 echo $ac_n "(cached) $ac_c" 1>&6
8382 else
8383 if test -n "$CC"; then
8384 ac_cv_prog_CC="$CC" # Let the user override the test.
8385 else
8386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8387 ac_dummy="$PATH"
8388 for ac_dir in $ac_dummy; do
8389 test -z "$ac_dir" && ac_dir=.
8390 if test -f $ac_dir/$ac_word; then
8391 ac_cv_prog_CC="cl"
8392 break
8393 fi
8394 done
8395 IFS="$ac_save_ifs"
8396 fi
8397 fi
8398 CC="$ac_cv_prog_CC"
8399 if test -n "$CC"; then
8400 echo "$ac_t""$CC" 1>&6
8401 else
8402 echo "$ac_t""no" 1>&6
8403 fi
8404 ;;
8405 esac
8406 fi
8407 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8408 fi
8409
8410 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8411 echo "configure:8412: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8412
8413 ac_ext=c
8414 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8415 ac_cpp='$CPP $CPPFLAGS'
8416 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8417 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8418 cross_compiling=$ac_cv_prog_cc_cross
8419
8420 cat > conftest.$ac_ext << EOF
8421
8422 #line 8423 "configure"
8423 #include "confdefs.h"
8424
8425 main(){return(0);}
8426 EOF
8427 if { (eval echo configure:8428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8428 ac_cv_prog_cc_works=yes
8429 # If we can't run a trivial program, we are probably using a cross compiler.
8430 if (./conftest; exit) 2>/dev/null; then
8431 ac_cv_prog_cc_cross=no
8432 else
8433 ac_cv_prog_cc_cross=yes
8434 fi
8435 else
8436 echo "configure: failed program was:" >&5
8437 cat conftest.$ac_ext >&5
8438 ac_cv_prog_cc_works=no
8439 fi
8440 rm -fr conftest*
8441 ac_ext=c
8442 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8443 ac_cpp='$CPP $CPPFLAGS'
8444 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8445 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8446 cross_compiling=$ac_cv_prog_cc_cross
8447
8448 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8449 if test $ac_cv_prog_cc_works = no; then
8450 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8451 fi
8452 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8453 echo "configure:8454: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8454 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8455 cross_compiling=$ac_cv_prog_cc_cross
8456
8457 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8458 echo "configure:8459: checking whether we are using GNU C" >&5
8459 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8460 echo $ac_n "(cached) $ac_c" 1>&6
8461 else
8462 cat > conftest.c <<EOF
8463 #ifdef __GNUC__
8464 yes;
8465 #endif
8466 EOF
8467 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8468 ac_cv_prog_gcc=yes
8469 else
8470 ac_cv_prog_gcc=no
8471 fi
8472 fi
8473
8474 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8475
8476 if test $ac_cv_prog_gcc = yes; then
8477 GCC=yes
8478 else
8479 GCC=
8480 fi
8481
8482 ac_test_CFLAGS="${CFLAGS+set}"
8483 ac_save_CFLAGS="$CFLAGS"
8484 CFLAGS=
8485 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8486 echo "configure:8487: checking whether ${CC-cc} accepts -g" >&5
8487 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8488 echo $ac_n "(cached) $ac_c" 1>&6
8489 else
8490 echo 'void f(){}' > conftest.c
8491 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8492 ac_cv_prog_cc_g=yes
8493 else
8494 ac_cv_prog_cc_g=no
8495 fi
8496 rm -f conftest*
8497
8498 fi
8499
8500 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8501 if test "$ac_test_CFLAGS" = set; then
8502 CFLAGS="$ac_save_CFLAGS"
8503 elif test $ac_cv_prog_cc_g = yes; then
8504 if test "$GCC" = yes; then
8505 CFLAGS="-g -O2"
8506 else
8507 CFLAGS="-g"
8508 fi
8509 else
8510 if test "$GCC" = yes; then
8511 CFLAGS="-O2"
8512 else
8513 CFLAGS=
8514 fi
8515 fi
8516
8517
8518 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8519
8520 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8521 echo "configure:8522: checking how to run the C preprocessor" >&5
8522 # On Suns, sometimes $CPP names a directory.
8523 if test -n "$CPP" && test -d "$CPP"; then
8524 CPP=
8525 fi
8526 if test -z "$CPP"; then
8527 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8528 echo $ac_n "(cached) $ac_c" 1>&6
8529 else
8530 # This must be in double quotes, not single quotes, because CPP may get
8531 # substituted into the Makefile and "${CC-cc}" will confuse make.
8532 CPP="${CC-cc} -E"
8533 # On the NeXT, cc -E runs the code through the compiler's parser,
8534 # not just through cpp.
8535 cat > conftest.$ac_ext <<EOF
8536 #line 8537 "configure"
8537 #include "confdefs.h"
8538 #include <assert.h>
8539 Syntax Error
8540 EOF
8541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8542 { (eval echo configure:8543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8544 if test -z "$ac_err"; then
8545 :
8546 else
8547 echo "$ac_err" >&5
8548 echo "configure: failed program was:" >&5
8549 cat conftest.$ac_ext >&5
8550 rm -rf conftest*
8551 CPP="${CC-cc} -E -traditional-cpp"
8552 cat > conftest.$ac_ext <<EOF
8553 #line 8554 "configure"
8554 #include "confdefs.h"
8555 #include <assert.h>
8556 Syntax Error
8557 EOF
8558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8559 { (eval echo configure:8560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8561 if test -z "$ac_err"; then
8562 :
8563 else
8564 echo "$ac_err" >&5
8565 echo "configure: failed program was:" >&5
8566 cat conftest.$ac_ext >&5
8567 rm -rf conftest*
8568 CPP="${CC-cc} -nologo -E"
8569 cat > conftest.$ac_ext <<EOF
8570 #line 8571 "configure"
8571 #include "confdefs.h"
8572 #include <assert.h>
8573 Syntax Error
8574 EOF
8575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8576 { (eval echo configure:8577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8578 if test -z "$ac_err"; then
8579 :
8580 else
8581 echo "$ac_err" >&5
8582 echo "configure: failed program was:" >&5
8583 cat conftest.$ac_ext >&5
8584 rm -rf conftest*
8585 CPP=/lib/cpp
8586 fi
8587 rm -f conftest*
8588 fi
8589 rm -f conftest*
8590 fi
8591 rm -f conftest*
8592 ac_cv_prog_CPP="$CPP"
8593 fi
8594 CPP="$ac_cv_prog_CPP"
8595 else
8596 ac_cv_prog_CPP="$CPP"
8597 fi
8598 echo "$ac_t""$CPP" 1>&6
8599
8600 if test $ac_cv_prog_gcc = yes; then
8601 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8602 echo "configure:8603: checking whether ${CC-cc} needs -traditional" >&5
8603 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8604 echo $ac_n "(cached) $ac_c" 1>&6
8605 else
8606 ac_pattern="Autoconf.*'x'"
8607 cat > conftest.$ac_ext <<EOF
8608 #line 8609 "configure"
8609 #include "confdefs.h"
8610 #include <sgtty.h>
8611 Autoconf TIOCGETP
8612 EOF
8613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8614 egrep "$ac_pattern" >/dev/null 2>&1; then
8615 rm -rf conftest*
8616 ac_cv_prog_gcc_traditional=yes
8617 else
8618 rm -rf conftest*
8619 ac_cv_prog_gcc_traditional=no
8620 fi
8621 rm -f conftest*
8622
8623
8624 if test $ac_cv_prog_gcc_traditional = no; then
8625 cat > conftest.$ac_ext <<EOF
8626 #line 8627 "configure"
8627 #include "confdefs.h"
8628 #include <termio.h>
8629 Autoconf TCGETA
8630 EOF
8631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8632 egrep "$ac_pattern" >/dev/null 2>&1; then
8633 rm -rf conftest*
8634 ac_cv_prog_gcc_traditional=yes
8635 fi
8636 rm -f conftest*
8637
8638 fi
8639 fi
8640
8641 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8642 if test $ac_cv_prog_gcc_traditional = yes; then
8643 CC="$CC -traditional"
8644 fi
8645 fi
8646
8647
8648
8649 ac_ext=C
8650 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8651 ac_cpp='$CXXCPP $CPPFLAGS'
8652 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8653 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8654 cross_compiling=$ac_cv_prog_cxx_cross
8655
8656
8657 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8658 do
8659 # Extract the first word of "$ac_prog", so it can be a program name with args.
8660 set dummy $ac_prog; ac_word=$2
8661 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8662 echo "configure:8663: checking for $ac_word" >&5
8663 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8664 echo $ac_n "(cached) $ac_c" 1>&6
8665 else
8666 if test -n "$CXX"; then
8667 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8668 else
8669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8670 ac_dummy="$PATH"
8671 for ac_dir in $ac_dummy; do
8672 test -z "$ac_dir" && ac_dir=.
8673 if test -f $ac_dir/$ac_word; then
8674 ac_cv_prog_CXX="$ac_prog"
8675 break
8676 fi
8677 done
8678 IFS="$ac_save_ifs"
8679 fi
8680 fi
8681 CXX="$ac_cv_prog_CXX"
8682 if test -n "$CXX"; then
8683 echo "$ac_t""$CXX" 1>&6
8684 else
8685 echo "$ac_t""no" 1>&6
8686 fi
8687
8688 test -n "$CXX" && break
8689 done
8690 test -n "$CXX" || CXX="gcc"
8691
8692
8693 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8694 echo "configure:8695: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8695
8696 ac_ext=C
8697 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8698 ac_cpp='$CXXCPP $CPPFLAGS'
8699 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8700 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8701 cross_compiling=$ac_cv_prog_cxx_cross
8702
8703 cat > conftest.$ac_ext << EOF
8704
8705 #line 8706 "configure"
8706 #include "confdefs.h"
8707
8708 int main(){return(0);}
8709 EOF
8710 if { (eval echo configure:8711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8711 ac_cv_prog_cxx_works=yes
8712 # If we can't run a trivial program, we are probably using a cross compiler.
8713 if (./conftest; exit) 2>/dev/null; then
8714 ac_cv_prog_cxx_cross=no
8715 else
8716 ac_cv_prog_cxx_cross=yes
8717 fi
8718 else
8719 echo "configure: failed program was:" >&5
8720 cat conftest.$ac_ext >&5
8721 ac_cv_prog_cxx_works=no
8722 fi
8723 rm -fr conftest*
8724 ac_ext=C
8725 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8726 ac_cpp='$CXXCPP $CPPFLAGS'
8727 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8728 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8729 cross_compiling=$ac_cv_prog_cxx_cross
8730
8731 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8732 if test $ac_cv_prog_cxx_works = no; then
8733 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8734 fi
8735 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8736 echo "configure:8737: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
8737 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8738 cross_compiling=$ac_cv_prog_cxx_cross
8739
8740 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8741 echo "configure:8742: checking whether we are using GNU C++" >&5
8742 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8743 echo $ac_n "(cached) $ac_c" 1>&6
8744 else
8745 cat > conftest.C <<EOF
8746 #ifdef __GNUC__
8747 yes;
8748 #endif
8749 EOF
8750 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8751 ac_cv_prog_gxx=yes
8752 else
8753 ac_cv_prog_gxx=no
8754 fi
8755 fi
8756
8757 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
8758
8759 if test $ac_cv_prog_gxx = yes; then
8760 GXX=yes
8761 else
8762 GXX=
8763 fi
8764
8765 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8766 ac_save_CXXFLAGS="$CXXFLAGS"
8767 CXXFLAGS=
8768 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8769 echo "configure:8770: checking whether ${CXX-g++} accepts -g" >&5
8770 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8771 echo $ac_n "(cached) $ac_c" 1>&6
8772 else
8773 echo 'void f(){}' > conftest.cc
8774 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
8775 ac_cv_prog_cxx_g=yes
8776 else
8777 ac_cv_prog_cxx_g=no
8778 fi
8779 rm -f conftest*
8780
8781 fi
8782
8783 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
8784 if test "$ac_test_CXXFLAGS" = set; then
8785 CXXFLAGS="$ac_save_CXXFLAGS"
8786 elif test $ac_cv_prog_cxx_g = yes; then
8787 if test "$GXX" = yes; then
8788 CXXFLAGS="-g -O2"
8789 else
8790 CXXFLAGS="-g"
8791 fi
8792 else
8793 if test "$GXX" = yes; then
8794 CXXFLAGS="-O2"
8795 else
8796 CXXFLAGS=
8797 fi
8798 fi
8799
8800
8801 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8802
8803 ac_ext=c
8804 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8805 ac_cpp='$CPP $CPPFLAGS'
8806 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8807 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8808 cross_compiling=$ac_cv_prog_cc_cross
8809
8810
8811 # Extract the first word of "ranlib", so it can be a program name with args.
8812 set dummy ranlib; ac_word=$2
8813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8814 echo "configure:8815: checking for $ac_word" >&5
8815 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8816 echo $ac_n "(cached) $ac_c" 1>&6
8817 else
8818 if test -n "$RANLIB"; then
8819 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8820 else
8821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8822 ac_dummy="$PATH"
8823 for ac_dir in $ac_dummy; do
8824 test -z "$ac_dir" && ac_dir=.
8825 if test -f $ac_dir/$ac_word; then
8826 ac_cv_prog_RANLIB="ranlib"
8827 break
8828 fi
8829 done
8830 IFS="$ac_save_ifs"
8831 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8832 fi
8833 fi
8834 RANLIB="$ac_cv_prog_RANLIB"
8835 if test -n "$RANLIB"; then
8836 echo "$ac_t""$RANLIB" 1>&6
8837 else
8838 echo "$ac_t""no" 1>&6
8839 fi
8840
8841
8842 # Extract the first word of "ar", so it can be a program name with args.
8843 set dummy ar; ac_word=$2
8844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8845 echo "configure:8846: checking for $ac_word" >&5
8846 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8847 echo $ac_n "(cached) $ac_c" 1>&6
8848 else
8849 if test -n "$AR"; then
8850 ac_cv_prog_AR="$AR" # Let the user override the test.
8851 else
8852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8853 ac_dummy="$PATH"
8854 for ac_dir in $ac_dummy; do
8855 test -z "$ac_dir" && ac_dir=.
8856 if test -f $ac_dir/$ac_word; then
8857 ac_cv_prog_AR="ar"
8858 break
8859 fi
8860 done
8861 IFS="$ac_save_ifs"
8862 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8863 fi
8864 fi
8865 AR="$ac_cv_prog_AR"
8866 if test -n "$AR"; then
8867 echo "$ac_t""$AR" 1>&6
8868 else
8869 echo "$ac_t""no" 1>&6
8870 fi
8871
8872
8873 # Find a good install program. We prefer a C program (faster),
8874 # so one script is as good as another. But avoid the broken or
8875 # incompatible versions:
8876 # SysV /etc/install, /usr/sbin/install
8877 # SunOS /usr/etc/install
8878 # IRIX /sbin/install
8879 # AIX /bin/install
8880 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8881 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8882 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8883 # ./install, which can be erroneously created by make from ./install.sh.
8884 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8885 echo "configure:8886: checking for a BSD compatible install" >&5
8886 if test -z "$INSTALL"; then
8887 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8888 echo $ac_n "(cached) $ac_c" 1>&6
8889 else
8890 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8891 for ac_dir in $PATH; do
8892 # Account for people who put trailing slashes in PATH elements.
8893 case "$ac_dir/" in
8894 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8895 *)
8896 # OSF1 and SCO ODT 3.0 have their own names for install.
8897 # Don't use installbsd from OSF since it installs stuff as root
8898 # by default.
8899 for ac_prog in ginstall scoinst install; do
8900 if test -f $ac_dir/$ac_prog; then
8901 if test $ac_prog = install &&
8902 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8903 # AIX install. It has an incompatible calling convention.
8904 :
8905 else
8906 ac_cv_path_install="$ac_dir/$ac_prog -c"
8907 break 2
8908 fi
8909 fi
8910 done
8911 ;;
8912 esac
8913 done
8914 IFS="$ac_save_IFS"
8915
8916 fi
8917 if test "${ac_cv_path_install+set}" = set; then
8918 INSTALL="$ac_cv_path_install"
8919 else
8920 # As a last resort, use the slow shell script. We don't cache a
8921 # path for INSTALL within a source directory, because that will
8922 # break other packages using the cache if that directory is
8923 # removed, or if the path is relative.
8924 INSTALL="$ac_install_sh"
8925 fi
8926 fi
8927 echo "$ac_t""$INSTALL" 1>&6
8928
8929 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8930 # It thinks the first close brace ends the variable substitution.
8931 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8932
8933 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8934
8935 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8936
8937 case "${host}" in
8938
8939 powerpc-*-darwin* )
8940 INSTALL_PROGRAM="cp -fp"
8941 INSTALL_DATA="cp -fp"
8942 ;;
8943 *)
8944 ;;
8945 esac
8946
8947 # Extract the first word of "strip", so it can be a program name with args.
8948 set dummy strip; ac_word=$2
8949 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8950 echo "configure:8951: checking for $ac_word" >&5
8951 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8952 echo $ac_n "(cached) $ac_c" 1>&6
8953 else
8954 if test -n "$STRIP"; then
8955 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8956 else
8957 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8958 ac_dummy="$PATH"
8959 for ac_dir in $ac_dummy; do
8960 test -z "$ac_dir" && ac_dir=.
8961 if test -f $ac_dir/$ac_word; then
8962 ac_cv_prog_STRIP="strip"
8963 break
8964 fi
8965 done
8966 IFS="$ac_save_ifs"
8967 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8968 fi
8969 fi
8970 STRIP="$ac_cv_prog_STRIP"
8971 if test -n "$STRIP"; then
8972 echo "$ac_t""$STRIP" 1>&6
8973 else
8974 echo "$ac_t""no" 1>&6
8975 fi
8976
8977
8978 echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8979 echo "configure:8980: checking make for VPATH support" >&5
8980 cat - << EOF > confMake
8981 check : file
8982 cp \$? \$@
8983 cp \$? final_file
8984 EOF
8985
8986 if test ! -d sub ; then
8987 mkdir sub
8988 fi
8989 echo dummy > sub/file
8990 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8991 RESULT=$?
8992 rm -f sub/file check final_file confMake
8993 rmdir sub
8994 if test "$RESULT" = 0; then
8995 echo "$ac_t""yes" 1>&6
8996 else
8997 echo "$ac_t""no" 1>&6
8998 { echo "configure: error:
8999 You need a make-utility that is able to use the variable
9000 VPATH correctly.
9001 If your version of make does not support VPATH correctly,
9002 please install GNU-make (possibly as gmake), and start
9003 configure with the following command:
9004 export MAKE=gmake; ./configure for sh-type shells
9005 setenv MAKE gmake; ./configure for csh-type shells
9006 Also please do remember to use gmake in this case every time
9007 you are trying to compile.
9008 " 1>&2; exit 1; }
9009 fi
9010
9011 for ac_prog in 'bison -y' byacc
9012 do
9013 # Extract the first word of "$ac_prog", so it can be a program name with args.
9014 set dummy $ac_prog; ac_word=$2
9015 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9016 echo "configure:9017: checking for $ac_word" >&5
9017 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9018 echo $ac_n "(cached) $ac_c" 1>&6
9019 else
9020 if test -n "$YACC"; then
9021 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9022 else
9023 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9024 ac_dummy="$PATH"
9025 for ac_dir in $ac_dummy; do
9026 test -z "$ac_dir" && ac_dir=.
9027 if test -f $ac_dir/$ac_word; then
9028 ac_cv_prog_YACC="$ac_prog"
9029 break
9030 fi
9031 done
9032 IFS="$ac_save_ifs"
9033 fi
9034 fi
9035 YACC="$ac_cv_prog_YACC"
9036 if test -n "$YACC"; then
9037 echo "$ac_t""$YACC" 1>&6
9038 else
9039 echo "$ac_t""no" 1>&6
9040 fi
9041
9042 test -n "$YACC" && break
9043 done
9044 test -n "$YACC" || YACC="yacc"
9045
9046
9047 # Extract the first word of "flex", so it can be a program name with args.
9048 set dummy flex; ac_word=$2
9049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9050 echo "configure:9051: checking for $ac_word" >&5
9051 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9052 echo $ac_n "(cached) $ac_c" 1>&6
9053 else
9054 if test -n "$LEX"; then
9055 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9056 else
9057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9058 ac_dummy="$PATH"
9059 for ac_dir in $ac_dummy; do
9060 test -z "$ac_dir" && ac_dir=.
9061 if test -f $ac_dir/$ac_word; then
9062 ac_cv_prog_LEX="flex"
9063 break
9064 fi
9065 done
9066 IFS="$ac_save_ifs"
9067 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9068 fi
9069 fi
9070 LEX="$ac_cv_prog_LEX"
9071 if test -n "$LEX"; then
9072 echo "$ac_t""$LEX" 1>&6
9073 else
9074 echo "$ac_t""no" 1>&6
9075 fi
9076
9077 if test -z "$LEXLIB"
9078 then
9079 case "$LEX" in
9080 flex*) ac_lib=fl ;;
9081 *) ac_lib=l ;;
9082 esac
9083 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9084 echo "configure:9085: checking for yywrap in -l$ac_lib" >&5
9085 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9086 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9087 echo $ac_n "(cached) $ac_c" 1>&6
9088 else
9089 ac_save_LIBS="$LIBS"
9090 LIBS="-l$ac_lib $LIBS"
9091 cat > conftest.$ac_ext <<EOF
9092 #line 9093 "configure"
9093 #include "confdefs.h"
9094 /* Override any gcc2 internal prototype to avoid an error. */
9095 /* We use char because int might match the return type of a gcc2
9096 builtin and then its argument prototype would still apply. */
9097 char yywrap();
9098
9099 int main() {
9100 yywrap()
9101 ; return 0; }
9102 EOF
9103 if { (eval echo configure:9104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9104 rm -rf conftest*
9105 eval "ac_cv_lib_$ac_lib_var=yes"
9106 else
9107 echo "configure: failed program was:" >&5
9108 cat conftest.$ac_ext >&5
9109 rm -rf conftest*
9110 eval "ac_cv_lib_$ac_lib_var=no"
9111 fi
9112 rm -f conftest*
9113 LIBS="$ac_save_LIBS"
9114
9115 fi
9116 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9117 echo "$ac_t""yes" 1>&6
9118 LEXLIB="-l$ac_lib"
9119 else
9120 echo "$ac_t""no" 1>&6
9121 fi
9122
9123 fi
9124
9125
9126 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9127 echo "configure:9128: checking whether ln -s works" >&5
9128 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9129 echo $ac_n "(cached) $ac_c" 1>&6
9130 else
9131 rm -f conftestdata
9132 if ln -s X conftestdata 2>/dev/null
9133 then
9134 rm -f conftestdata
9135 ac_cv_prog_LN_S="ln -s"
9136 else
9137 ac_cv_prog_LN_S=ln
9138 fi
9139 fi
9140 LN_S="$ac_cv_prog_LN_S"
9141 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9142 echo "$ac_t""yes" 1>&6
9143 else
9144 echo "$ac_t""no" 1>&6
9145 fi
9146
9147
9148
9149 SEARCH_INCLUDE="\
9150 /usr/local/include \
9151 \
9152 /usr/Motif-1.2/include \
9153 /usr/Motif-2.1/include \
9154 \
9155 /usr/include/Motif1.2 \
9156 /opt/xpm/include/X11 \
9157 /opt/GBxpm/include/ \
9158 /opt/GBxpm/X11/include/ \
9159 \
9160 /usr/Motif1.2/include \
9161 /usr/dt/include \
9162 /usr/openwin/include \
9163 \
9164 /usr/include/Xm \
9165 \
9166 /usr/X11R6/include \
9167 /usr/X11R6.4/include \
9168 /usr/X11R5/include \
9169 /usr/X11R4/include \
9170 \
9171 /usr/include/X11R6 \
9172 /usr/include/X11R5 \
9173 /usr/include/X11R4 \
9174 \
9175 /usr/local/X11R6/include \
9176 /usr/local/X11R5/include \
9177 /usr/local/X11R4/include \
9178 \
9179 /usr/local/include/X11R6 \
9180 /usr/local/include/X11R5 \
9181 /usr/local/include/X11R4 \
9182 \
9183 /usr/X11/include \
9184 /usr/include/X11 \
9185 /usr/local/X11/include \
9186 /usr/local/include/X11 \
9187 \
9188 /usr/X386/include \
9189 /usr/x386/include \
9190 /usr/XFree86/include/X11 \
9191 \
9192 X:/XFree86/include \
9193 X:/XFree86/include/X11 \
9194 \
9195 /usr/include/gtk \
9196 /usr/local/include/gtk \
9197 /usr/include/glib \
9198 /usr/local/include/glib \
9199 \
9200 /usr/include/qt \
9201 /usr/local/include/qt \
9202 \
9203 /usr/include/windows \
9204 /usr/include/wine \
9205 /usr/local/include/wine \
9206 \
9207 /usr/unsupported/include \
9208 /usr/athena/include \
9209 /usr/local/x11r5/include \
9210 /usr/lpp/Xamples/include \
9211 \
9212 /usr/openwin/share/include \
9213 \
9214 /usr/include"
9215
9216 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
9217
9218
9219 cat > confcache <<\EOF
9220 # This file is a shell script that caches the results of configure
9221 # tests run on this system so they can be shared between configure
9222 # scripts and configure runs. It is not useful on other systems.
9223 # If it contains results you don't want to keep, you may remove or edit it.
9224 #
9225 # By default, configure uses ./config.cache as the cache file,
9226 # creating it if it does not exist already. You can give configure
9227 # the --cache-file=FILE option to use a different cache file; that is
9228 # what configure does when it calls configure scripts in
9229 # subdirectories, so they share the cache.
9230 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9231 # config.status only pays attention to the cache file if you give it the
9232 # --recheck option to rerun configure.
9233 #
9234 EOF
9235 # The following way of writing the cache mishandles newlines in values,
9236 # but we know of no workaround that is simple, portable, and efficient.
9237 # So, don't put newlines in cache variables' values.
9238 # Ultrix sh set writes to stderr and can't be redirected directly,
9239 # and sets the high bit in the cache file unless we assign to the vars.
9240 (set) 2>&1 |
9241 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9242 *ac_space=\ *)
9243 # `set' does not quote correctly, so add quotes (double-quote substitution
9244 # turns \\\\ into \\, and sed turns \\ into \).
9245 sed -n \
9246 -e "s/'/'\\\\''/g" \
9247 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9248 ;;
9249 *)
9250 # `set' quotes correctly as required by POSIX, so do not add quotes.
9251 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9252 ;;
9253 esac >> confcache
9254 if cmp -s $cache_file confcache; then
9255 :
9256 else
9257 if test -w $cache_file; then
9258 echo "updating cache $cache_file"
9259 cat confcache > $cache_file
9260 else
9261 echo "not updating unwritable cache $cache_file"
9262 fi
9263 fi
9264 rm -f confcache
9265
9266
9267
9268
9269 REGEX_INCLUDE=
9270 if test "$wxUSE_REGEX" != "no"; then
9271 cat >> confdefs.h <<\EOF
9272 #define wxUSE_REGEX 1
9273 EOF
9274
9275
9276 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
9277 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
9278 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
9279 echo "configure:9280: checking for regex.h" >&5
9280 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9281 echo $ac_n "(cached) $ac_c" 1>&6
9282 else
9283 cat > conftest.$ac_ext <<EOF
9284 #line 9285 "configure"
9285 #include "confdefs.h"
9286 #include <regex.h>
9287 EOF
9288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9289 { (eval echo configure:9290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9291 if test -z "$ac_err"; then
9292 rm -rf conftest*
9293 eval "ac_cv_header_$ac_safe=yes"
9294 else
9295 echo "$ac_err" >&5
9296 echo "configure: failed program was:" >&5
9297 cat conftest.$ac_ext >&5
9298 rm -rf conftest*
9299 eval "ac_cv_header_$ac_safe=no"
9300 fi
9301 rm -f conftest*
9302 fi
9303 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9304 echo "$ac_t""yes" 1>&6
9305 for ac_func in regcomp
9306 do
9307 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9308 echo "configure:9309: checking for $ac_func" >&5
9309 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9310 echo $ac_n "(cached) $ac_c" 1>&6
9311 else
9312 cat > conftest.$ac_ext <<EOF
9313 #line 9314 "configure"
9314 #include "confdefs.h"
9315 /* System header to define __stub macros and hopefully few prototypes,
9316 which can conflict with char $ac_func(); below. */
9317 #include <assert.h>
9318 /* Override any gcc2 internal prototype to avoid an error. */
9319 /* We use char because int might match the return type of a gcc2
9320 builtin and then its argument prototype would still apply. */
9321 char $ac_func();
9322
9323 int main() {
9324
9325 /* The GNU C library defines this for functions which it implements
9326 to always fail with ENOSYS. Some functions are actually named
9327 something starting with __ and the normal name is an alias. */
9328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9329 choke me
9330 #else
9331 $ac_func();
9332 #endif
9333
9334 ; return 0; }
9335 EOF
9336 if { (eval echo configure:9337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9337 rm -rf conftest*
9338 eval "ac_cv_func_$ac_func=yes"
9339 else
9340 echo "configure: failed program was:" >&5
9341 cat conftest.$ac_ext >&5
9342 rm -rf conftest*
9343 eval "ac_cv_func_$ac_func=no"
9344 fi
9345 rm -f conftest*
9346 fi
9347
9348 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9349 echo "$ac_t""yes" 1>&6
9350 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9351 cat >> confdefs.h <<EOF
9352 #define $ac_tr_func 1
9353 EOF
9354
9355 else
9356 echo "$ac_t""no" 1>&6
9357 fi
9358 done
9359
9360 else
9361 echo "$ac_t""no" 1>&6
9362 fi
9363
9364
9365 if test "x$ac_cv_func_regcomp" != "xyes"; then
9366 if test "$wxUSE_REGEX" = "sys" ; then
9367 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9368 else
9369 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
9370 wxUSE_REGEX=builtin
9371 fi
9372 else
9373 wxUSE_REGEX=sys
9374 fi
9375 fi
9376
9377 if test "$wxUSE_REGEX" = "builtin" ; then
9378 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9379 fi
9380 fi
9381
9382
9383 ZLIB_INCLUDE=
9384 ZLIB_LINK=
9385 if test "$wxUSE_ZLIB" != "no" ; then
9386 cat >> confdefs.h <<\EOF
9387 #define wxUSE_ZLIB 1
9388 EOF
9389
9390
9391 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9392 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9393 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
9394 echo "configure:9395: checking for zlib.h" >&5
9395 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9396 echo $ac_n "(cached) $ac_c" 1>&6
9397 else
9398 cat > conftest.$ac_ext <<EOF
9399 #line 9400 "configure"
9400 #include "confdefs.h"
9401 #include <zlib.h>
9402 EOF
9403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9404 { (eval echo configure:9405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9406 if test -z "$ac_err"; then
9407 rm -rf conftest*
9408 eval "ac_cv_header_$ac_safe=yes"
9409 else
9410 echo "$ac_err" >&5
9411 echo "configure: failed program was:" >&5
9412 cat conftest.$ac_ext >&5
9413 rm -rf conftest*
9414 eval "ac_cv_header_$ac_safe=no"
9415 fi
9416 rm -f conftest*
9417 fi
9418 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9419 echo "$ac_t""yes" 1>&6
9420 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9421 echo "configure:9422: checking for deflate in -lz" >&5
9422 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9424 echo $ac_n "(cached) $ac_c" 1>&6
9425 else
9426 ac_save_LIBS="$LIBS"
9427 LIBS="-lz $LIBS"
9428 cat > conftest.$ac_ext <<EOF
9429 #line 9430 "configure"
9430 #include "confdefs.h"
9431 /* Override any gcc2 internal prototype to avoid an error. */
9432 /* We use char because int might match the return type of a gcc2
9433 builtin and then its argument prototype would still apply. */
9434 char deflate();
9435
9436 int main() {
9437 deflate()
9438 ; return 0; }
9439 EOF
9440 if { (eval echo configure:9441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9441 rm -rf conftest*
9442 eval "ac_cv_lib_$ac_lib_var=yes"
9443 else
9444 echo "configure: failed program was:" >&5
9445 cat conftest.$ac_ext >&5
9446 rm -rf conftest*
9447 eval "ac_cv_lib_$ac_lib_var=no"
9448 fi
9449 rm -f conftest*
9450 LIBS="$ac_save_LIBS"
9451
9452 fi
9453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9454 echo "$ac_t""yes" 1>&6
9455 ZLIB_LINK=" -lz"
9456 else
9457 echo "$ac_t""no" 1>&6
9458 fi
9459
9460 else
9461 echo "$ac_t""no" 1>&6
9462 fi
9463
9464
9465 if test "x$ZLIB_LINK" = "x" ; then
9466 if test "$wxUSE_ZLIB" = "sys" ; then
9467 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9468 else
9469 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
9470 wxUSE_ZLIB=builtin
9471 fi
9472 else
9473 wxUSE_ZLIB=sys
9474 fi
9475 fi
9476
9477 if test "$wxUSE_ZLIB" = "builtin" ; then
9478 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9479 fi
9480 fi
9481
9482
9483 PNG_INCLUDE=
9484 PNG_LINK=
9485 if test "$wxUSE_LIBPNG" != "no" ; then
9486 cat >> confdefs.h <<\EOF
9487 #define wxUSE_LIBPNG 1
9488 EOF
9489
9490
9491 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
9492 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
9493 wxUSE_LIBPNG=builtin
9494 fi
9495
9496 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9497 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9498 echo $ac_n "checking for png.h""... $ac_c" 1>&6
9499 echo "configure:9500: checking for png.h" >&5
9500 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9501 echo $ac_n "(cached) $ac_c" 1>&6
9502 else
9503 cat > conftest.$ac_ext <<EOF
9504 #line 9505 "configure"
9505 #include "confdefs.h"
9506 #include <png.h>
9507 EOF
9508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9509 { (eval echo configure:9510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9510 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9511 if test -z "$ac_err"; then
9512 rm -rf conftest*
9513 eval "ac_cv_header_$ac_safe=yes"
9514 else
9515 echo "$ac_err" >&5
9516 echo "configure: failed program was:" >&5
9517 cat conftest.$ac_ext >&5
9518 rm -rf conftest*
9519 eval "ac_cv_header_$ac_safe=no"
9520 fi
9521 rm -f conftest*
9522 fi
9523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9524 echo "$ac_t""yes" 1>&6
9525 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
9526 echo "configure:9527: checking for png_check_sig in -lpng" >&5
9527 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9528 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9529 echo $ac_n "(cached) $ac_c" 1>&6
9530 else
9531 ac_save_LIBS="$LIBS"
9532 LIBS="-lpng -lz -lm $LIBS"
9533 cat > conftest.$ac_ext <<EOF
9534 #line 9535 "configure"
9535 #include "confdefs.h"
9536 /* Override any gcc2 internal prototype to avoid an error. */
9537 /* We use char because int might match the return type of a gcc2
9538 builtin and then its argument prototype would still apply. */
9539 char png_check_sig();
9540
9541 int main() {
9542 png_check_sig()
9543 ; return 0; }
9544 EOF
9545 if { (eval echo configure:9546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9546 rm -rf conftest*
9547 eval "ac_cv_lib_$ac_lib_var=yes"
9548 else
9549 echo "configure: failed program was:" >&5
9550 cat conftest.$ac_ext >&5
9551 rm -rf conftest*
9552 eval "ac_cv_lib_$ac_lib_var=no"
9553 fi
9554 rm -f conftest*
9555 LIBS="$ac_save_LIBS"
9556
9557 fi
9558 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9559 echo "$ac_t""yes" 1>&6
9560 PNG_LINK=" -lpng"
9561 else
9562 echo "$ac_t""no" 1>&6
9563 fi
9564
9565
9566 else
9567 echo "$ac_t""no" 1>&6
9568 fi
9569
9570
9571 if test "x$PNG_LINK" = "x" ; then
9572 if test "$wxUSE_LIBPNG" = "sys" ; then
9573 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9574 else
9575 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
9576 wxUSE_LIBPNG=builtin
9577 fi
9578 else
9579 wxUSE_LIBPNG=yes
9580 fi
9581 fi
9582
9583 if test "$wxUSE_LIBPNG" = "builtin" ; then
9584 PNG_INCLUDE="-I\${top_srcdir}/src/png"
9585 fi
9586
9587 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
9588 fi
9589
9590
9591 JPEG_INCLUDE=
9592 JPEG_LINK=
9593 if test "$wxUSE_LIBJPEG" != "no" ; then
9594 cat >> confdefs.h <<\EOF
9595 #define wxUSE_LIBJPEG 1
9596 EOF
9597
9598
9599 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9600 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
9601 echo "configure:9602: checking for jpeglib.h" >&5
9602 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
9603 echo $ac_n "(cached) $ac_c" 1>&6
9604 else
9605 cat > conftest.$ac_ext <<EOF
9606 #line 9607 "configure"
9607 #include "confdefs.h"
9608
9609 #undef HAVE_STDLIB_H
9610 #include <stdio.h>
9611 #include <jpeglib.h>
9612
9613 int main() {
9614
9615
9616 ; return 0; }
9617 EOF
9618 if { (eval echo configure:9619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9619 rm -rf conftest*
9620 ac_cv_header_jpeglib_h=yes
9621 else
9622 echo "configure: failed program was:" >&5
9623 cat conftest.$ac_ext >&5
9624 rm -rf conftest*
9625 ac_cv_header_jpeglib_h=no
9626
9627 fi
9628 rm -f conftest*
9629
9630 fi
9631
9632 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9633
9634 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9635 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
9636 echo "configure:9637: checking for jpeg_read_header in -ljpeg" >&5
9637 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9639 echo $ac_n "(cached) $ac_c" 1>&6
9640 else
9641 ac_save_LIBS="$LIBS"
9642 LIBS="-ljpeg $LIBS"
9643 cat > conftest.$ac_ext <<EOF
9644 #line 9645 "configure"
9645 #include "confdefs.h"
9646 /* Override any gcc2 internal prototype to avoid an error. */
9647 /* We use char because int might match the return type of a gcc2
9648 builtin and then its argument prototype would still apply. */
9649 char jpeg_read_header();
9650
9651 int main() {
9652 jpeg_read_header()
9653 ; return 0; }
9654 EOF
9655 if { (eval echo configure:9656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9656 rm -rf conftest*
9657 eval "ac_cv_lib_$ac_lib_var=yes"
9658 else
9659 echo "configure: failed program was:" >&5
9660 cat conftest.$ac_ext >&5
9661 rm -rf conftest*
9662 eval "ac_cv_lib_$ac_lib_var=no"
9663 fi
9664 rm -f conftest*
9665 LIBS="$ac_save_LIBS"
9666
9667 fi
9668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9669 echo "$ac_t""yes" 1>&6
9670 JPEG_LINK=" -ljpeg"
9671 else
9672 echo "$ac_t""no" 1>&6
9673 fi
9674
9675 fi
9676
9677 if test "x$JPEG_LINK" = "x" ; then
9678 if test "$wxUSE_LIBJPEG" = "sys" ; then
9679 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
9680 else
9681 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
9682 wxUSE_LIBJPEG=builtin
9683 fi
9684 else
9685 wxUSE_LIBJPEG=sys
9686 fi
9687 fi
9688
9689 if test "$wxUSE_LIBJPEG" = "builtin" ; then
9690 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
9691 fi
9692 fi
9693
9694
9695 TIFF_INCLUDE=
9696 TIFF_LINK=
9697 if test "$wxUSE_LIBTIFF" != "no" ; then
9698 cat >> confdefs.h <<\EOF
9699 #define wxUSE_LIBTIFF 1
9700 EOF
9701
9702
9703 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
9704 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
9705 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
9706 echo "configure:9707: checking for tiffio.h" >&5
9707 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9708 echo $ac_n "(cached) $ac_c" 1>&6
9709 else
9710 cat > conftest.$ac_ext <<EOF
9711 #line 9712 "configure"
9712 #include "confdefs.h"
9713 #include <tiffio.h>
9714 EOF
9715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9716 { (eval echo configure:9717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9717 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9718 if test -z "$ac_err"; then
9719 rm -rf conftest*
9720 eval "ac_cv_header_$ac_safe=yes"
9721 else
9722 echo "$ac_err" >&5
9723 echo "configure: failed program was:" >&5
9724 cat conftest.$ac_ext >&5
9725 rm -rf conftest*
9726 eval "ac_cv_header_$ac_safe=no"
9727 fi
9728 rm -f conftest*
9729 fi
9730 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9731 echo "$ac_t""yes" 1>&6
9732 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
9733 echo "configure:9734: checking for TIFFError in -ltiff" >&5
9734 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
9735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9736 echo $ac_n "(cached) $ac_c" 1>&6
9737 else
9738 ac_save_LIBS="$LIBS"
9739 LIBS="-ltiff -lm $LIBS"
9740 cat > conftest.$ac_ext <<EOF
9741 #line 9742 "configure"
9742 #include "confdefs.h"
9743 /* Override any gcc2 internal prototype to avoid an error. */
9744 /* We use char because int might match the return type of a gcc2
9745 builtin and then its argument prototype would still apply. */
9746 char TIFFError();
9747
9748 int main() {
9749 TIFFError()
9750 ; return 0; }
9751 EOF
9752 if { (eval echo configure:9753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9753 rm -rf conftest*
9754 eval "ac_cv_lib_$ac_lib_var=yes"
9755 else
9756 echo "configure: failed program was:" >&5
9757 cat conftest.$ac_ext >&5
9758 rm -rf conftest*
9759 eval "ac_cv_lib_$ac_lib_var=no"
9760 fi
9761 rm -f conftest*
9762 LIBS="$ac_save_LIBS"
9763
9764 fi
9765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9766 echo "$ac_t""yes" 1>&6
9767 TIFF_LINK=" -ltiff"
9768 else
9769 echo "$ac_t""no" 1>&6
9770 fi
9771
9772
9773 else
9774 echo "$ac_t""no" 1>&6
9775 fi
9776
9777
9778 if test "x$TIFF_LINK" = "x" ; then
9779 if test "$wxUSE_LIBTIFF" = "sys" ; then
9780 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
9781 else
9782 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
9783 wxUSE_LIBTIFF=builtin
9784 fi
9785 else
9786 wxUSE_LIBTIFF=sys
9787 fi
9788 fi
9789
9790 if test "$wxUSE_LIBTIFF" = "builtin" ; then
9791 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
9792 fi
9793 fi
9794
9795
9796 FREETYPE_INCLUDE=
9797 FREETYPE_LINK=
9798 if test "$wxUSE_FREETYPE" != "no" ; then
9799 cat >> confdefs.h <<\EOF
9800 #define wxUSE_FREETYPE 1
9801 EOF
9802
9803
9804 if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then
9805 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
9806 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
9807 echo "configure:9808: checking for freetype.h" >&5
9808 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9809 echo $ac_n "(cached) $ac_c" 1>&6
9810 else
9811 cat > conftest.$ac_ext <<EOF
9812 #line 9813 "configure"
9813 #include "confdefs.h"
9814 #include <freetype.h>
9815 EOF
9816 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9817 { (eval echo configure:9818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9818 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9819 if test -z "$ac_err"; then
9820 rm -rf conftest*
9821 eval "ac_cv_header_$ac_safe=yes"
9822 else
9823 echo "$ac_err" >&5
9824 echo "configure: failed program was:" >&5
9825 cat conftest.$ac_ext >&5
9826 rm -rf conftest*
9827 eval "ac_cv_header_$ac_safe=no"
9828 fi
9829 rm -f conftest*
9830 fi
9831 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9832 echo "$ac_t""yes" 1>&6
9833 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
9834 echo "configure:9835: checking for FT_Render_Glyph in -lfreetype" >&5
9835 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
9836 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9837 echo $ac_n "(cached) $ac_c" 1>&6
9838 else
9839 ac_save_LIBS="$LIBS"
9840 LIBS="-lfreetype -lm $LIBS"
9841 cat > conftest.$ac_ext <<EOF
9842 #line 9843 "configure"
9843 #include "confdefs.h"
9844 /* Override any gcc2 internal prototype to avoid an error. */
9845 /* We use char because int might match the return type of a gcc2
9846 builtin and then its argument prototype would still apply. */
9847 char FT_Render_Glyph();
9848
9849 int main() {
9850 FT_Render_Glyph()
9851 ; return 0; }
9852 EOF
9853 if { (eval echo configure:9854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9854 rm -rf conftest*
9855 eval "ac_cv_lib_$ac_lib_var=yes"
9856 else
9857 echo "configure: failed program was:" >&5
9858 cat conftest.$ac_ext >&5
9859 rm -rf conftest*
9860 eval "ac_cv_lib_$ac_lib_var=no"
9861 fi
9862 rm -f conftest*
9863 LIBS="$ac_save_LIBS"
9864
9865 fi
9866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9867 echo "$ac_t""yes" 1>&6
9868 FREETYPE_LINK=" -lfreetype"
9869 else
9870 echo "$ac_t""no" 1>&6
9871 fi
9872
9873
9874 else
9875 echo "$ac_t""no" 1>&6
9876 fi
9877
9878
9879 if test "x$FREETYPE_LINK" = "x" ; then
9880 if test "$wxUSE_FREETYPE" = "sys" ; then
9881 { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; }
9882 else
9883 echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2
9884 wxUSE_FREETYPE=builtin
9885 fi
9886 else
9887 wxUSE_FREETYPE=sys
9888 fi
9889 fi
9890
9891 if test "$wxUSE_FREETYPE" = "builtin" ; then
9892 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
9893 fi
9894 fi
9895
9896
9897 AFMINSTALL=
9898
9899 TOOLKIT=
9900 TOOLKIT_INCLUDE=
9901 WIDGET_SET=
9902
9903 if test "$USE_WIN32" = 1 ; then
9904 for ac_hdr in w32api.h
9905 do
9906 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9907 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9908 echo "configure:9909: checking for $ac_hdr" >&5
9909 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9910 echo $ac_n "(cached) $ac_c" 1>&6
9911 else
9912 cat > conftest.$ac_ext <<EOF
9913 #line 9914 "configure"
9914 #include "confdefs.h"
9915 #include <$ac_hdr>
9916 EOF
9917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9918 { (eval echo configure:9919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9920 if test -z "$ac_err"; then
9921 rm -rf conftest*
9922 eval "ac_cv_header_$ac_safe=yes"
9923 else
9924 echo "$ac_err" >&5
9925 echo "configure: failed program was:" >&5
9926 cat conftest.$ac_ext >&5
9927 rm -rf conftest*
9928 eval "ac_cv_header_$ac_safe=no"
9929 fi
9930 rm -f conftest*
9931 fi
9932 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9933 echo "$ac_t""yes" 1>&6
9934 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9935 cat >> confdefs.h <<EOF
9936 #define $ac_tr_hdr 1
9937 EOF
9938
9939 else
9940 echo "$ac_t""no" 1>&6
9941 fi
9942 done
9943
9944 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9945 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
9946 echo "configure:9947: checking for windows.h" >&5
9947 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9948 echo $ac_n "(cached) $ac_c" 1>&6
9949 else
9950 cat > conftest.$ac_ext <<EOF
9951 #line 9952 "configure"
9952 #include "confdefs.h"
9953 #include <windows.h>
9954 EOF
9955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9956 { (eval echo configure:9957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9958 if test -z "$ac_err"; then
9959 rm -rf conftest*
9960 eval "ac_cv_header_$ac_safe=yes"
9961 else
9962 echo "$ac_err" >&5
9963 echo "configure: failed program was:" >&5
9964 cat conftest.$ac_ext >&5
9965 rm -rf conftest*
9966 eval "ac_cv_header_$ac_safe=no"
9967 fi
9968 rm -f conftest*
9969 fi
9970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9971 echo "$ac_t""yes" 1>&6
9972 :
9973 else
9974 echo "$ac_t""no" 1>&6
9975
9976 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9977
9978 fi
9979
9980
9981 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
9982 echo "configure:9983: checking if w32api has good enough MSIE support" >&5
9983 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
9984 echo $ac_n "(cached) $ac_c" 1>&6
9985 else
9986
9987 cat > conftest.$ac_ext <<EOF
9988 #line 9989 "configure"
9989 #include "confdefs.h"
9990 #include <w32api.h>
9991 int main() {
9992
9993 #define wxCHECK_W32API_VERSION( major, minor ) \
9994 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
9995 && ( ( __W32API_MAJOR_VERSION > (major) ) \
9996 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
9997
9998 #if !wxCHECK_W32API_VERSION(1,1)
9999 #error You need w32api 1.1 or newer
10000 #endif
10001
10002 ; return 0; }
10003 EOF
10004 if { (eval echo configure:10005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10005 rm -rf conftest*
10006
10007 wx_cv_w32api_win32_ie=yes
10008
10009 else
10010 echo "configure: failed program was:" >&5
10011 cat conftest.$ac_ext >&5
10012 rm -rf conftest*
10013
10014 wx_cv_w32api_win32_ie=no
10015
10016 fi
10017 rm -f conftest*
10018
10019 fi
10020
10021 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
10022 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
10023 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
10024 fi
10025
10026 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
10027
10028 case "${host}" in
10029 *-*-cygwin* )
10030 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
10031 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
10032 esac
10033
10034 if test "$wxUSE_ODBC" = "yes" ; then
10035 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
10036 fi
10037
10038 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
10039 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
10040 fi
10041
10042 if test "$wxUSE_GUI" = "yes"; then
10043 USE_GUI=1
10044
10045 GUI_TK_LIBRARY=
10046
10047 WXGTK12=
10048 WXGTK127=
10049 WXGTK20=
10050
10051 if test "$wxUSE_MSW" = 1 ; then
10052 TOOLKIT=MSW
10053 GUIDIST=MSW_DIST
10054
10055 case "${host}" in
10056 *-*-mingw32* )
10057 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
10058 esac
10059 fi
10060
10061 if test "$wxUSE_GTK" = 1; then
10062 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
10063 echo "configure:10064: checking for GTK+ version" >&5
10064
10065 gtk_version_cached=1
10066 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
10067 echo $ac_n "(cached) $ac_c" 1>&6
10068 else
10069
10070 gtk_version_cached=0
10071 echo "$ac_t""" 1>&6
10072
10073 GTK_MODULES=
10074 if test "$wxUSE_THREADS" = "yes"; then
10075 GTK_MODULES=gthread
10076 fi
10077
10078 wx_cv_lib_gtk=
10079 if test "x$wxUSE_GTK2" = "xyes"; then
10080 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10081 if test "${with_gtk_prefix+set}" = set; then
10082 withval="$with_gtk_prefix"
10083 gtk_config_prefix="$withval"
10084 else
10085 gtk_config_prefix=""
10086 fi
10087
10088 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10089 if test "${with_gtk_exec_prefix+set}" = set; then
10090 withval="$with_gtk_exec_prefix"
10091 gtk_config_exec_prefix="$withval"
10092 else
10093 gtk_config_exec_prefix=""
10094 fi
10095
10096 # Check whether --enable-gtktest or --disable-gtktest was given.
10097 if test "${enable_gtktest+set}" = set; then
10098 enableval="$enable_gtktest"
10099 :
10100 else
10101 enable_gtktest=yes
10102 fi
10103
10104
10105 for module in . $GTK_MODULES
10106 do
10107 case "$module" in
10108 gthread)
10109 gtk_config_args="$gtk_config_args gthread"
10110 ;;
10111 esac
10112 done
10113
10114 if test x$gtk_config_exec_prefix != x ; then
10115 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10116 if test x${GTK_CONFIG_2_0+set} != xset ; then
10117 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
10118 fi
10119 fi
10120 if test x$gtk_config_prefix != x ; then
10121 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10122 if test x${GTK_CONFIG_2_0+set} != xset ; then
10123 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
10124 fi
10125 fi
10126
10127 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
10128 set dummy gtk-config-2.0; ac_word=$2
10129 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10130 echo "configure:10131: checking for $ac_word" >&5
10131 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
10132 echo $ac_n "(cached) $ac_c" 1>&6
10133 else
10134 case "$GTK_CONFIG_2_0" in
10135 /*)
10136 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
10137 ;;
10138 ?:/*)
10139 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
10140 ;;
10141 *)
10142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10143 ac_dummy="$PATH"
10144 for ac_dir in $ac_dummy; do
10145 test -z "$ac_dir" && ac_dir=.
10146 if test -f $ac_dir/$ac_word; then
10147 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
10148 break
10149 fi
10150 done
10151 IFS="$ac_save_ifs"
10152 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
10153 ;;
10154 esac
10155 fi
10156 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
10157 if test -n "$GTK_CONFIG_2_0"; then
10158 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
10159 else
10160 echo "$ac_t""no" 1>&6
10161 fi
10162
10163 min_gtk_version=1.3.1
10164 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10165 echo "configure:10166: checking for GTK - version >= $min_gtk_version" >&5
10166 no_gtk=""
10167 if test "$GTK_CONFIG_2_0" = "no" ; then
10168 no_gtk=yes
10169 else
10170 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
10171 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
10172 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10173 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10174 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10175 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10176 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10177 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10178 if test "x$enable_gtktest" = "xyes" ; then
10179 ac_save_CFLAGS="$CFLAGS"
10180 ac_save_LIBS="$LIBS"
10181 CFLAGS="$CFLAGS $GTK_CFLAGS"
10182 LIBS="$GTK_LIBS $LIBS"
10183 rm -f conf.gtktest
10184 if test "$cross_compiling" = yes; then
10185 echo $ac_n "cross compiling; assumed OK... $ac_c"
10186 else
10187 cat > conftest.$ac_ext <<EOF
10188 #line 10189 "configure"
10189 #include "confdefs.h"
10190
10191 #include <gtk/gtk.h>
10192 #include <stdio.h>
10193 #include <stdlib.h>
10194
10195 int
10196 main ()
10197 {
10198 int major, minor, micro;
10199 char *tmp_version;
10200
10201 system ("touch conf.gtktest");
10202
10203 /* HP/UX 9 (%@#!) writes to sscanf strings */
10204 tmp_version = g_strdup("$min_gtk_version");
10205 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10206 printf("%s, bad version string\n", "$min_gtk_version");
10207 exit(1);
10208 }
10209
10210 if ((gtk_major_version != $gtk_config_major_version) ||
10211 (gtk_minor_version != $gtk_config_minor_version) ||
10212 (gtk_micro_version != $gtk_config_micro_version))
10213 {
10214 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10215 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10216 gtk_major_version, gtk_minor_version, gtk_micro_version);
10217 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
10218 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10219 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10220 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10221 printf("*** required on your system.\n");
10222 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
10223 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
10224 printf("*** before re-running configure\n");
10225 }
10226 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10227 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10228 (gtk_minor_version != GTK_MINOR_VERSION) ||
10229 (gtk_micro_version != GTK_MICRO_VERSION))
10230 {
10231 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10232 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10233 printf("*** library (version %d.%d.%d)\n",
10234 gtk_major_version, gtk_minor_version, gtk_micro_version);
10235 }
10236 #endif /* defined (GTK_MAJOR_VERSION) ... */
10237 else
10238 {
10239 if ((gtk_major_version > major) ||
10240 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10241 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10242 {
10243 return 0;
10244 }
10245 else
10246 {
10247 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10248 gtk_major_version, gtk_minor_version, gtk_micro_version);
10249 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10250 major, minor, micro);
10251 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10252 printf("***\n");
10253 printf("*** If you have already installed a sufficiently new version, this error\n");
10254 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
10255 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10256 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
10257 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
10258 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10259 printf("*** so that the correct libraries are found at run-time))\n");
10260 }
10261 }
10262 return 1;
10263 }
10264
10265 EOF
10266 if { (eval echo configure:10267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10267 then
10268 :
10269 else
10270 echo "configure: failed program was:" >&5
10271 cat conftest.$ac_ext >&5
10272 rm -fr conftest*
10273 no_gtk=yes
10274 fi
10275 rm -fr conftest*
10276 fi
10277
10278 CFLAGS="$ac_save_CFLAGS"
10279 LIBS="$ac_save_LIBS"
10280 fi
10281 fi
10282 if test "x$no_gtk" = x ; then
10283 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
10284 wx_cv_lib_gtk=2.0
10285 else
10286 echo "$ac_t""no" 1>&6
10287 if test "$GTK_CONFIG_2_0" = "no" ; then
10288 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
10289 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10290 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
10291 echo "*** full path to gtk-config-2.0."
10292 else
10293 if test -f conf.gtktest ; then
10294 :
10295 else
10296 echo "*** Could not run GTK test program, checking why..."
10297 CFLAGS="$CFLAGS $GTK_CFLAGS"
10298 LIBS="$LIBS $GTK_LIBS"
10299 cat > conftest.$ac_ext <<EOF
10300 #line 10301 "configure"
10301 #include "confdefs.h"
10302
10303 #include <gtk/gtk.h>
10304 #include <stdio.h>
10305
10306 int main() {
10307 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10308 ; return 0; }
10309 EOF
10310 if { (eval echo configure:10311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10311 rm -rf conftest*
10312 echo "*** The test program compiled, but did not run. This usually means"
10313 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10314 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10315 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10316 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10317 echo "*** is required on your system"
10318 echo "***"
10319 echo "*** If you have an old version installed, it is best to remove it, although"
10320 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10321 echo "***"
10322 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10323 echo "*** came with the system with the command"
10324 echo "***"
10325 echo "*** rpm --erase --nodeps gtk gtk-devel"
10326 else
10327 echo "configure: failed program was:" >&5
10328 cat conftest.$ac_ext >&5
10329 rm -rf conftest*
10330 echo "*** The test program failed to compile or link. See the file config.log for the"
10331 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10332 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10333 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
10334 fi
10335 rm -f conftest*
10336 CFLAGS="$ac_save_CFLAGS"
10337 LIBS="$ac_save_LIBS"
10338 fi
10339 fi
10340 GTK_CFLAGS=""
10341 GTK_LIBS=""
10342 :
10343 fi
10344
10345
10346 rm -f conf.gtktest
10347
10348 fi
10349
10350 if test -z "$wx_cv_lib_gtk"; then
10351 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10352 if test "${with_gtk_prefix+set}" = set; then
10353 withval="$with_gtk_prefix"
10354 gtk_config_prefix="$withval"
10355 else
10356 gtk_config_prefix=""
10357 fi
10358
10359 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10360 if test "${with_gtk_exec_prefix+set}" = set; then
10361 withval="$with_gtk_exec_prefix"
10362 gtk_config_exec_prefix="$withval"
10363 else
10364 gtk_config_exec_prefix=""
10365 fi
10366
10367 # Check whether --enable-gtktest or --disable-gtktest was given.
10368 if test "${enable_gtktest+set}" = set; then
10369 enableval="$enable_gtktest"
10370 :
10371 else
10372 enable_gtktest=yes
10373 fi
10374
10375
10376 for module in . $GTK_MODULES
10377 do
10378 case "$module" in
10379 gthread)
10380 gtk_config_args="$gtk_config_args gthread"
10381 ;;
10382 esac
10383 done
10384
10385 if test x$gtk_config_exec_prefix != x ; then
10386 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10387 if test x${GTK_CONFIG+set} != xset ; then
10388 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10389 fi
10390 fi
10391 if test x$gtk_config_prefix != x ; then
10392 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10393 if test x${GTK_CONFIG+set} != xset ; then
10394 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10395 fi
10396 fi
10397
10398 # Extract the first word of "gtk-config", so it can be a program name with args.
10399 set dummy gtk-config; ac_word=$2
10400 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10401 echo "configure:10402: checking for $ac_word" >&5
10402 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10403 echo $ac_n "(cached) $ac_c" 1>&6
10404 else
10405 case "$GTK_CONFIG" in
10406 /*)
10407 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10408 ;;
10409 ?:/*)
10410 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10411 ;;
10412 *)
10413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10414 ac_dummy="$PATH"
10415 for ac_dir in $ac_dummy; do
10416 test -z "$ac_dir" && ac_dir=.
10417 if test -f $ac_dir/$ac_word; then
10418 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10419 break
10420 fi
10421 done
10422 IFS="$ac_save_ifs"
10423 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10424 ;;
10425 esac
10426 fi
10427 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10428 if test -n "$GTK_CONFIG"; then
10429 echo "$ac_t""$GTK_CONFIG" 1>&6
10430 else
10431 echo "$ac_t""no" 1>&6
10432 fi
10433
10434 min_gtk_version=1.2.7
10435 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10436 echo "configure:10437: checking for GTK - version >= $min_gtk_version" >&5
10437 no_gtk=""
10438 if test "$GTK_CONFIG" = "no" ; then
10439 no_gtk=yes
10440 else
10441 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10442 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10443 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10444 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10445 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10446 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10447 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10448 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10449 if test "x$enable_gtktest" = "xyes" ; then
10450 ac_save_CFLAGS="$CFLAGS"
10451 ac_save_LIBS="$LIBS"
10452 CFLAGS="$CFLAGS $GTK_CFLAGS"
10453 LIBS="$GTK_LIBS $LIBS"
10454 rm -f conf.gtktest
10455 if test "$cross_compiling" = yes; then
10456 echo $ac_n "cross compiling; assumed OK... $ac_c"
10457 else
10458 cat > conftest.$ac_ext <<EOF
10459 #line 10460 "configure"
10460 #include "confdefs.h"
10461
10462 #include <gtk/gtk.h>
10463 #include <stdio.h>
10464 #include <stdlib.h>
10465
10466 int
10467 main ()
10468 {
10469 int major, minor, micro;
10470 char *tmp_version;
10471
10472 system ("touch conf.gtktest");
10473
10474 /* HP/UX 9 (%@#!) writes to sscanf strings */
10475 tmp_version = g_strdup("$min_gtk_version");
10476 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10477 printf("%s, bad version string\n", "$min_gtk_version");
10478 exit(1);
10479 }
10480
10481 if ((gtk_major_version != $gtk_config_major_version) ||
10482 (gtk_minor_version != $gtk_config_minor_version) ||
10483 (gtk_micro_version != $gtk_config_micro_version))
10484 {
10485 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10486 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10487 gtk_major_version, gtk_minor_version, gtk_micro_version);
10488 printf ("*** was found! If gtk-config was correct, then it is best\n");
10489 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10490 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10491 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10492 printf("*** required on your system.\n");
10493 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10494 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10495 printf("*** before re-running configure\n");
10496 }
10497 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10498 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10499 (gtk_minor_version != GTK_MINOR_VERSION) ||
10500 (gtk_micro_version != GTK_MICRO_VERSION))
10501 {
10502 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10503 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10504 printf("*** library (version %d.%d.%d)\n",
10505 gtk_major_version, gtk_minor_version, gtk_micro_version);
10506 }
10507 #endif /* defined (GTK_MAJOR_VERSION) ... */
10508 else
10509 {
10510 if ((gtk_major_version > major) ||
10511 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10512 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10513 {
10514 return 0;
10515 }
10516 else
10517 {
10518 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10519 gtk_major_version, gtk_minor_version, gtk_micro_version);
10520 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10521 major, minor, micro);
10522 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10523 printf("***\n");
10524 printf("*** If you have already installed a sufficiently new version, this error\n");
10525 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10526 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10527 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10528 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10529 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10530 printf("*** so that the correct libraries are found at run-time))\n");
10531 }
10532 }
10533 return 1;
10534 }
10535
10536 EOF
10537 if { (eval echo configure:10538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10538 then
10539 :
10540 else
10541 echo "configure: failed program was:" >&5
10542 cat conftest.$ac_ext >&5
10543 rm -fr conftest*
10544 no_gtk=yes
10545 fi
10546 rm -fr conftest*
10547 fi
10548
10549 CFLAGS="$ac_save_CFLAGS"
10550 LIBS="$ac_save_LIBS"
10551 fi
10552 fi
10553 if test "x$no_gtk" = x ; then
10554 echo "$ac_t""yes" 1>&6
10555 wx_cv_lib_gtk=1.2.7
10556 else
10557 echo "$ac_t""no" 1>&6
10558 if test "$GTK_CONFIG" = "no" ; then
10559 echo "*** The gtk-config script installed by GTK could not be found"
10560 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10561 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10562 echo "*** full path to gtk-config."
10563 else
10564 if test -f conf.gtktest ; then
10565 :
10566 else
10567 echo "*** Could not run GTK test program, checking why..."
10568 CFLAGS="$CFLAGS $GTK_CFLAGS"
10569 LIBS="$LIBS $GTK_LIBS"
10570 cat > conftest.$ac_ext <<EOF
10571 #line 10572 "configure"
10572 #include "confdefs.h"
10573
10574 #include <gtk/gtk.h>
10575 #include <stdio.h>
10576
10577 int main() {
10578 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10579 ; return 0; }
10580 EOF
10581 if { (eval echo configure:10582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10582 rm -rf conftest*
10583 echo "*** The test program compiled, but did not run. This usually means"
10584 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10585 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10586 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10587 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10588 echo "*** is required on your system"
10589 echo "***"
10590 echo "*** If you have an old version installed, it is best to remove it, although"
10591 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10592 echo "***"
10593 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10594 echo "*** came with the system with the command"
10595 echo "***"
10596 echo "*** rpm --erase --nodeps gtk gtk-devel"
10597 else
10598 echo "configure: failed program was:" >&5
10599 cat conftest.$ac_ext >&5
10600 rm -rf conftest*
10601 echo "*** The test program failed to compile or link. See the file config.log for the"
10602 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10603 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10604 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10605 fi
10606 rm -f conftest*
10607 CFLAGS="$ac_save_CFLAGS"
10608 LIBS="$ac_save_LIBS"
10609 fi
10610 fi
10611 GTK_CFLAGS=""
10612 GTK_LIBS=""
10613 :
10614 fi
10615
10616
10617 rm -f conf.gtktest
10618
10619 fi
10620
10621 if test -z "$wx_cv_lib_gtk"; then
10622 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10623 if test "${with_gtk_prefix+set}" = set; then
10624 withval="$with_gtk_prefix"
10625 gtk_config_prefix="$withval"
10626 else
10627 gtk_config_prefix=""
10628 fi
10629
10630 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10631 if test "${with_gtk_exec_prefix+set}" = set; then
10632 withval="$with_gtk_exec_prefix"
10633 gtk_config_exec_prefix="$withval"
10634 else
10635 gtk_config_exec_prefix=""
10636 fi
10637
10638 # Check whether --enable-gtktest or --disable-gtktest was given.
10639 if test "${enable_gtktest+set}" = set; then
10640 enableval="$enable_gtktest"
10641 :
10642 else
10643 enable_gtktest=yes
10644 fi
10645
10646
10647 for module in . $GTK_MODULES
10648 do
10649 case "$module" in
10650 gthread)
10651 gtk_config_args="$gtk_config_args gthread"
10652 ;;
10653 esac
10654 done
10655
10656 if test x$gtk_config_exec_prefix != x ; then
10657 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10658 if test x${GTK_CONFIG+set} != xset ; then
10659 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10660 fi
10661 fi
10662 if test x$gtk_config_prefix != x ; then
10663 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10664 if test x${GTK_CONFIG+set} != xset ; then
10665 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10666 fi
10667 fi
10668
10669 # Extract the first word of "gtk-config", so it can be a program name with args.
10670 set dummy gtk-config; ac_word=$2
10671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10672 echo "configure:10673: checking for $ac_word" >&5
10673 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10674 echo $ac_n "(cached) $ac_c" 1>&6
10675 else
10676 case "$GTK_CONFIG" in
10677 /*)
10678 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10679 ;;
10680 ?:/*)
10681 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10682 ;;
10683 *)
10684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10685 ac_dummy="$PATH"
10686 for ac_dir in $ac_dummy; do
10687 test -z "$ac_dir" && ac_dir=.
10688 if test -f $ac_dir/$ac_word; then
10689 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10690 break
10691 fi
10692 done
10693 IFS="$ac_save_ifs"
10694 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10695 ;;
10696 esac
10697 fi
10698 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10699 if test -n "$GTK_CONFIG"; then
10700 echo "$ac_t""$GTK_CONFIG" 1>&6
10701 else
10702 echo "$ac_t""no" 1>&6
10703 fi
10704
10705 min_gtk_version=1.2.3
10706 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10707 echo "configure:10708: checking for GTK - version >= $min_gtk_version" >&5
10708 no_gtk=""
10709 if test "$GTK_CONFIG" = "no" ; then
10710 no_gtk=yes
10711 else
10712 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10713 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10714 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10715 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10716 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10717 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10718 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10719 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10720 if test "x$enable_gtktest" = "xyes" ; then
10721 ac_save_CFLAGS="$CFLAGS"
10722 ac_save_LIBS="$LIBS"
10723 CFLAGS="$CFLAGS $GTK_CFLAGS"
10724 LIBS="$GTK_LIBS $LIBS"
10725 rm -f conf.gtktest
10726 if test "$cross_compiling" = yes; then
10727 echo $ac_n "cross compiling; assumed OK... $ac_c"
10728 else
10729 cat > conftest.$ac_ext <<EOF
10730 #line 10731 "configure"
10731 #include "confdefs.h"
10732
10733 #include <gtk/gtk.h>
10734 #include <stdio.h>
10735 #include <stdlib.h>
10736
10737 int
10738 main ()
10739 {
10740 int major, minor, micro;
10741 char *tmp_version;
10742
10743 system ("touch conf.gtktest");
10744
10745 /* HP/UX 9 (%@#!) writes to sscanf strings */
10746 tmp_version = g_strdup("$min_gtk_version");
10747 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10748 printf("%s, bad version string\n", "$min_gtk_version");
10749 exit(1);
10750 }
10751
10752 if ((gtk_major_version != $gtk_config_major_version) ||
10753 (gtk_minor_version != $gtk_config_minor_version) ||
10754 (gtk_micro_version != $gtk_config_micro_version))
10755 {
10756 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10757 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10758 gtk_major_version, gtk_minor_version, gtk_micro_version);
10759 printf ("*** was found! If gtk-config was correct, then it is best\n");
10760 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10761 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10762 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10763 printf("*** required on your system.\n");
10764 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10765 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10766 printf("*** before re-running configure\n");
10767 }
10768 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10769 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10770 (gtk_minor_version != GTK_MINOR_VERSION) ||
10771 (gtk_micro_version != GTK_MICRO_VERSION))
10772 {
10773 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10774 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10775 printf("*** library (version %d.%d.%d)\n",
10776 gtk_major_version, gtk_minor_version, gtk_micro_version);
10777 }
10778 #endif /* defined (GTK_MAJOR_VERSION) ... */
10779 else
10780 {
10781 if ((gtk_major_version > major) ||
10782 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10783 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10784 {
10785 return 0;
10786 }
10787 else
10788 {
10789 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10790 gtk_major_version, gtk_minor_version, gtk_micro_version);
10791 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10792 major, minor, micro);
10793 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10794 printf("***\n");
10795 printf("*** If you have already installed a sufficiently new version, this error\n");
10796 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10797 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10798 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10799 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10800 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10801 printf("*** so that the correct libraries are found at run-time))\n");
10802 }
10803 }
10804 return 1;
10805 }
10806
10807 EOF
10808 if { (eval echo configure:10809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10809 then
10810 :
10811 else
10812 echo "configure: failed program was:" >&5
10813 cat conftest.$ac_ext >&5
10814 rm -fr conftest*
10815 no_gtk=yes
10816 fi
10817 rm -fr conftest*
10818 fi
10819
10820 CFLAGS="$ac_save_CFLAGS"
10821 LIBS="$ac_save_LIBS"
10822 fi
10823 fi
10824 if test "x$no_gtk" = x ; then
10825 echo "$ac_t""yes" 1>&6
10826 wx_cv_lib_gtk=1.2.3
10827 else
10828 echo "$ac_t""no" 1>&6
10829 if test "$GTK_CONFIG" = "no" ; then
10830 echo "*** The gtk-config script installed by GTK could not be found"
10831 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10832 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10833 echo "*** full path to gtk-config."
10834 else
10835 if test -f conf.gtktest ; then
10836 :
10837 else
10838 echo "*** Could not run GTK test program, checking why..."
10839 CFLAGS="$CFLAGS $GTK_CFLAGS"
10840 LIBS="$LIBS $GTK_LIBS"
10841 cat > conftest.$ac_ext <<EOF
10842 #line 10843 "configure"
10843 #include "confdefs.h"
10844
10845 #include <gtk/gtk.h>
10846 #include <stdio.h>
10847
10848 int main() {
10849 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10850 ; return 0; }
10851 EOF
10852 if { (eval echo configure:10853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10853 rm -rf conftest*
10854 echo "*** The test program compiled, but did not run. This usually means"
10855 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10856 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10857 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10858 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10859 echo "*** is required on your system"
10860 echo "***"
10861 echo "*** If you have an old version installed, it is best to remove it, although"
10862 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10863 echo "***"
10864 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10865 echo "*** came with the system with the command"
10866 echo "***"
10867 echo "*** rpm --erase --nodeps gtk gtk-devel"
10868 else
10869 echo "configure: failed program was:" >&5
10870 cat conftest.$ac_ext >&5
10871 rm -rf conftest*
10872 echo "*** The test program failed to compile or link. See the file config.log for the"
10873 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10874 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10875 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10876 fi
10877 rm -f conftest*
10878 CFLAGS="$ac_save_CFLAGS"
10879 LIBS="$ac_save_LIBS"
10880 fi
10881 fi
10882 GTK_CFLAGS=""
10883 GTK_LIBS=""
10884 :
10885 fi
10886
10887
10888 rm -f conf.gtktest
10889
10890 fi
10891
10892 if test -z "$wx_cv_lib_gtk"; then
10893 wx_cv_lib_gtk=none
10894 else
10895 wx_cv_cflags_gtk=$GTK_CFLAGS
10896 wx_cv_libs_gtk=$GTK_LIBS
10897 fi
10898
10899
10900 fi
10901
10902
10903 if test "$gtk_version_cached" = 1; then
10904 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
10905 fi
10906
10907 case "$wx_cv_lib_gtk" in
10908 2.0) WXGTK20=1
10909 ;;
10910 1.2.7) WXGTK127=1
10911 WXGTK12=1
10912 ;;
10913 1.2.3) WXGTK12=1
10914 ;;
10915 *) { echo "configure: error:
10916 Please check that gtk-config is in path, the directory
10917 where GTK+ libraries are installed (returned by
10918 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
10919 equivalent variable and GTK+ is version 1.2.3 or above.
10920 " 1>&2; exit 1; }
10921 ;;
10922 esac
10923
10924 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
10925 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
10926
10927 AFMINSTALL=afminstall
10928 TOOLKIT=GTK
10929 GUIDIST=GTK_DIST
10930
10931 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
10932 echo "configure:10933: checking for gdk_im_open in -lgdk" >&5
10933 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
10934 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10935 echo $ac_n "(cached) $ac_c" 1>&6
10936 else
10937 ac_save_LIBS="$LIBS"
10938 LIBS="-lgdk $LIBS"
10939 cat > conftest.$ac_ext <<EOF
10940 #line 10941 "configure"
10941 #include "confdefs.h"
10942 /* Override any gcc2 internal prototype to avoid an error. */
10943 /* We use char because int might match the return type of a gcc2
10944 builtin and then its argument prototype would still apply. */
10945 char gdk_im_open();
10946
10947 int main() {
10948 gdk_im_open()
10949 ; return 0; }
10950 EOF
10951 if { (eval echo configure:10952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10952 rm -rf conftest*
10953 eval "ac_cv_lib_$ac_lib_var=yes"
10954 else
10955 echo "configure: failed program was:" >&5
10956 cat conftest.$ac_ext >&5
10957 rm -rf conftest*
10958 eval "ac_cv_lib_$ac_lib_var=no"
10959 fi
10960 rm -f conftest*
10961 LIBS="$ac_save_LIBS"
10962
10963 fi
10964 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10965 echo "$ac_t""yes" 1>&6
10966 cat >> confdefs.h <<\EOF
10967 #define HAVE_XIM 1
10968 EOF
10969
10970 else
10971 echo "$ac_t""no" 1>&6
10972 fi
10973
10974 fi
10975
10976 if test "$wxUSE_MGL" = 1; then
10977 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
10978 echo "configure:10979: checking for SciTech MGL library" >&5
10979 if test "x$MGL_ROOT" = x ; then
10980 echo "$ac_t""not found" 1>&6
10981 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
10982 else
10983 echo "$ac_t""$MGL_ROOT" 1>&6
10984 fi
10985
10986 case "${host}" in
10987 *-*-linux* )
10988 mgl_os=linux/gcc/glibc
10989 ;;
10990 *-pc-msdosdjgpp )
10991 mgl_os=dos32/dj2
10992 ;;
10993 *)
10994 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
10995 esac
10996
10997 mgl_lib_type=""
10998
10999 if test "$wxUSE_DEBUG_FLAG" = yes ; then
11000 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
11001 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
11002 mgl_lib_type=debug
11003 fi
11004 fi
11005 if test "x$mgl_lib_type" = x ; then
11006 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
11007 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
11008 mgl_lib_type=release
11009 else
11010 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
11011 fi
11012 fi
11013
11014 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
11015 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
11016
11017 AFMINSTALL=afminstall
11018 TOOLKIT=MGL
11019 GUIDIST=MGL_DIST
11020 fi
11021
11022 if test "$wxUSE_MICROWIN" = 1; then
11023 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
11024 echo "configure:11025: checking for MicroWindows" >&5
11025 if test "x$MICROWINDOWS" = x ; then
11026 echo "$ac_t""not found" 1>&6
11027 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
11028 else
11029 echo "$ac_t""$MICROWINDOWS" 1>&6
11030 fi
11031
11032 if test -f $MICROWINDOWS/lib/libmwin.a; then
11033 echo "$ac_t""MicroWindows' libraries found." 1>&6
11034 else
11035 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
11036 fi
11037
11038 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
11039 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
11040
11041 AFMINSTALL=afminstall
11042 TOOLKIT=MICROWIN
11043 GUIDIST=MICROWIN_DIST
11044
11045 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
11046 fi
11047
11048 if test "$wxUSE_WINE" = 1; then
11049 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11050 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
11051 echo "configure:11052: checking for windows.h" >&5
11052 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11053 echo $ac_n "(cached) $ac_c" 1>&6
11054 else
11055 cat > conftest.$ac_ext <<EOF
11056 #line 11057 "configure"
11057 #include "confdefs.h"
11058 #include <windows.h>
11059 EOF
11060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11061 { (eval echo configure:11062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11063 if test -z "$ac_err"; then
11064 rm -rf conftest*
11065 eval "ac_cv_header_$ac_safe=yes"
11066 else
11067 echo "$ac_err" >&5
11068 echo "configure: failed program was:" >&5
11069 cat conftest.$ac_ext >&5
11070 rm -rf conftest*
11071 eval "ac_cv_header_$ac_safe=no"
11072 fi
11073 rm -f conftest*
11074 fi
11075 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11076 echo "$ac_t""yes" 1>&6
11077 :
11078 else
11079 echo "$ac_t""no" 1>&6
11080
11081 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
11082
11083 fi
11084
11085
11086 xpm_link=
11087 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
11088 echo "configure:11089: checking for Xpm library" >&5
11089
11090 ac_find_libraries=
11091 for ac_dir in $SEARCH_LIB;
11092 do
11093 for ac_extension in a so sl dylib; do
11094 if test -f "$ac_dir/libXpm.$ac_extension"; then
11095 ac_find_libraries=$ac_dir
11096 break 2
11097 fi
11098 done
11099 done
11100
11101 if test "$ac_find_libraries" != "" ; then
11102 GUI_TK_LIBRARY="-L$ac_find_libraries"
11103 xpm_link=" -lXpm"
11104 cat >> confdefs.h <<\EOF
11105 #define wxHAVE_LIB_XPM 1
11106 EOF
11107
11108 echo "$ac_t""found at $ac_find_libraries" 1>&6
11109 else
11110 echo "$ac_t""no" 1>&6
11111 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
11112 fi
11113
11114 mesa_link=
11115 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
11116 echo "configure:11117: checking for Mesa library" >&5
11117
11118 ac_find_libraries=
11119 for ac_dir in $SEARCH_LIB;
11120 do
11121 for ac_extension in a so sl dylib; do
11122 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
11123 ac_find_libraries=$ac_dir
11124 break 2
11125 fi
11126 done
11127 done
11128
11129 if test "$ac_find_libraries" != "" ; then
11130 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
11131 mesa_link=" -lMesaGL"
11132 echo "$ac_t""found at $ac_find_libraries" 1>&6
11133 else
11134 { echo "configure: error: no" 1>&2; exit 1; }
11135 fi
11136
11137 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
11138 TOOLKIT=MSW
11139 GUIDIST=MSW_DIST
11140 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
11141 fi
11142
11143 if test "$wxUSE_MOTIF" = 1; then
11144 # If we find X, set shell vars x_includes and x_libraries to the
11145 # paths, otherwise set no_x=yes.
11146 # Uses ac_ vars as temps to allow command line to override cache and checks.
11147 # --without-x overrides everything else, but does not touch the cache.
11148 echo $ac_n "checking for X""... $ac_c" 1>&6
11149 echo "configure:11150: checking for X" >&5
11150
11151 # Check whether --with-x or --without-x was given.
11152 if test "${with_x+set}" = set; then
11153 withval="$with_x"
11154 :
11155 fi
11156
11157 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11158 if test "x$with_x" = xno; then
11159 # The user explicitly disabled X.
11160 have_x=disabled
11161 else
11162 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11163 # Both variables are already set.
11164 have_x=yes
11165 else
11166 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
11167 echo $ac_n "(cached) $ac_c" 1>&6
11168 else
11169 # One or both of the vars are not set, and there is no cached value.
11170 ac_x_includes=NO ac_x_libraries=NO
11171 rm -fr conftestdir
11172 if mkdir conftestdir; then
11173 cd conftestdir
11174 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11175 cat > Imakefile <<'EOF'
11176 acfindx:
11177 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11178 EOF
11179 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11180 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11181 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11182 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11183 for ac_extension in a so sl; do
11184 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11185 test -f $ac_im_libdir/libX11.$ac_extension; then
11186 ac_im_usrlibdir=$ac_im_libdir; break
11187 fi
11188 done
11189 # Screen out bogus values from the imake configuration. They are
11190 # bogus both because they are the default anyway, and because
11191 # using them would break gcc on systems where it needs fixed includes.
11192 case "$ac_im_incroot" in
11193 /usr/include) ;;
11194 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
11195 esac
11196 case "$ac_im_usrlibdir" in
11197 /usr/lib | /lib) ;;
11198 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
11199 esac
11200 fi
11201 cd ..
11202 rm -fr conftestdir
11203 fi
11204
11205 if test "$ac_x_includes" = NO; then
11206 # Guess where to find include files, by looking for this one X11 .h file.
11207 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
11208
11209 # First, try using that file with no special directory specified.
11210 cat > conftest.$ac_ext <<EOF
11211 #line 11212 "configure"
11212 #include "confdefs.h"
11213 #include <$x_direct_test_include>
11214 EOF
11215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11216 { (eval echo configure:11217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11218 if test -z "$ac_err"; then
11219 rm -rf conftest*
11220 # We can compile using X headers with no special include directory.
11221 ac_x_includes=
11222 else
11223 echo "$ac_err" >&5
11224 echo "configure: failed program was:" >&5
11225 cat conftest.$ac_ext >&5
11226 rm -rf conftest*
11227 # Look for the header file in a standard set of common directories.
11228 # Check X11 before X11Rn because it is often a symlink to the current release.
11229 for ac_dir in \
11230 /usr/X11/include \
11231 /usr/X11R6/include \
11232 /usr/X11R5/include \
11233 /usr/X11R4/include \
11234 \
11235 /usr/include/X11 \
11236 /usr/include/X11R6 \
11237 /usr/include/X11R5 \
11238 /usr/include/X11R4 \
11239 \
11240 /usr/local/X11/include \
11241 /usr/local/X11R6/include \
11242 /usr/local/X11R5/include \
11243 /usr/local/X11R4/include \
11244 \
11245 /usr/local/include/X11 \
11246 /usr/local/include/X11R6 \
11247 /usr/local/include/X11R5 \
11248 /usr/local/include/X11R4 \
11249 \
11250 /usr/X386/include \
11251 /usr/x386/include \
11252 /usr/XFree86/include/X11 \
11253 \
11254 /usr/include \
11255 /usr/local/include \
11256 /usr/unsupported/include \
11257 /usr/athena/include \
11258 /usr/local/x11r5/include \
11259 /usr/lpp/Xamples/include \
11260 \
11261 /usr/openwin/include \
11262 /usr/openwin/share/include \
11263 ; \
11264 do
11265 if test -r "$ac_dir/$x_direct_test_include"; then
11266 ac_x_includes=$ac_dir
11267 break
11268 fi
11269 done
11270 fi
11271 rm -f conftest*
11272 fi # $ac_x_includes = NO
11273
11274 if test "$ac_x_libraries" = NO; then
11275 # Check for the libraries.
11276
11277 test -z "$x_direct_test_library" && x_direct_test_library=Xt
11278 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11279
11280 # See if we find them without any special options.
11281 # Don't add to $LIBS permanently.
11282 ac_save_LIBS="$LIBS"
11283 LIBS="-l$x_direct_test_library $LIBS"
11284 cat > conftest.$ac_ext <<EOF
11285 #line 11286 "configure"
11286 #include "confdefs.h"
11287
11288 int main() {
11289 ${x_direct_test_function}()
11290 ; return 0; }
11291 EOF
11292 if { (eval echo configure:11293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11293 rm -rf conftest*
11294 LIBS="$ac_save_LIBS"
11295 # We can link X programs with no special library path.
11296 ac_x_libraries=
11297 else
11298 echo "configure: failed program was:" >&5
11299 cat conftest.$ac_ext >&5
11300 rm -rf conftest*
11301 LIBS="$ac_save_LIBS"
11302 # First see if replacing the include by lib works.
11303 # Check X11 before X11Rn because it is often a symlink to the current release.
11304 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11305 /usr/X11/lib \
11306 /usr/X11R6/lib \
11307 /usr/X11R5/lib \
11308 /usr/X11R4/lib \
11309 \
11310 /usr/lib/X11 \
11311 /usr/lib/X11R6 \
11312 /usr/lib/X11R5 \
11313 /usr/lib/X11R4 \
11314 \
11315 /usr/local/X11/lib \
11316 /usr/local/X11R6/lib \
11317 /usr/local/X11R5/lib \
11318 /usr/local/X11R4/lib \
11319 \
11320 /usr/local/lib/X11 \
11321 /usr/local/lib/X11R6 \
11322 /usr/local/lib/X11R5 \
11323 /usr/local/lib/X11R4 \
11324 \
11325 /usr/X386/lib \
11326 /usr/x386/lib \
11327 /usr/XFree86/lib/X11 \
11328 \
11329 /usr/lib \
11330 /usr/local/lib \
11331 /usr/unsupported/lib \
11332 /usr/athena/lib \
11333 /usr/local/x11r5/lib \
11334 /usr/lpp/Xamples/lib \
11335 /lib/usr/lib/X11 \
11336 \
11337 /usr/openwin/lib \
11338 /usr/openwin/share/lib \
11339 ; \
11340 do
11341 for ac_extension in a so sl; do
11342 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
11343 ac_x_libraries=$ac_dir
11344 break 2
11345 fi
11346 done
11347 done
11348 fi
11349 rm -f conftest*
11350 fi # $ac_x_libraries = NO
11351
11352 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
11353 # Didn't find X anywhere. Cache the known absence of X.
11354 ac_cv_have_x="have_x=no"
11355 else
11356 # Record where we found X for the cache.
11357 ac_cv_have_x="have_x=yes \
11358 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11359 fi
11360 fi
11361 fi
11362 eval "$ac_cv_have_x"
11363 fi # $with_x != no
11364
11365 if test "$have_x" != yes; then
11366 echo "$ac_t""$have_x" 1>&6
11367 no_x=yes
11368 else
11369 # If each of the values was on the command line, it overrides each guess.
11370 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11371 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11372 # Update the cache value to reflect the command line values.
11373 ac_cv_have_x="have_x=yes \
11374 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11375 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
11376 fi
11377
11378 if test "$no_x" = yes; then
11379 # Not all programs may use this symbol, but it does not hurt to define it.
11380 cat >> confdefs.h <<\EOF
11381 #define X_DISPLAY_MISSING 1
11382 EOF
11383
11384 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11385 else
11386 if test -n "$x_includes"; then
11387 X_CFLAGS="$X_CFLAGS -I$x_includes"
11388 fi
11389
11390 # It would also be nice to do this for all -L options, not just this one.
11391 if test -n "$x_libraries"; then
11392 X_LIBS="$X_LIBS -L$x_libraries"
11393 # For Solaris; some versions of Sun CC require a space after -R and
11394 # others require no space. Words are not sufficient . . . .
11395 case "`(uname -sr) 2>/dev/null`" in
11396 "SunOS 5"*)
11397 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
11398 echo "configure:11399: checking whether -R must be followed by a space" >&5
11399 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
11400 cat > conftest.$ac_ext <<EOF
11401 #line 11402 "configure"
11402 #include "confdefs.h"
11403
11404 int main() {
11405
11406 ; return 0; }
11407 EOF
11408 if { (eval echo configure:11409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11409 rm -rf conftest*
11410 ac_R_nospace=yes
11411 else
11412 echo "configure: failed program was:" >&5
11413 cat conftest.$ac_ext >&5
11414 rm -rf conftest*
11415 ac_R_nospace=no
11416 fi
11417 rm -f conftest*
11418 if test $ac_R_nospace = yes; then
11419 echo "$ac_t""no" 1>&6
11420 X_LIBS="$X_LIBS -R$x_libraries"
11421 else
11422 LIBS="$ac_xsave_LIBS -R $x_libraries"
11423 cat > conftest.$ac_ext <<EOF
11424 #line 11425 "configure"
11425 #include "confdefs.h"
11426
11427 int main() {
11428
11429 ; return 0; }
11430 EOF
11431 if { (eval echo configure:11432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11432 rm -rf conftest*
11433 ac_R_space=yes
11434 else
11435 echo "configure: failed program was:" >&5
11436 cat conftest.$ac_ext >&5
11437 rm -rf conftest*
11438 ac_R_space=no
11439 fi
11440 rm -f conftest*
11441 if test $ac_R_space = yes; then
11442 echo "$ac_t""yes" 1>&6
11443 X_LIBS="$X_LIBS -R $x_libraries"
11444 else
11445 echo "$ac_t""neither works" 1>&6
11446 fi
11447 fi
11448 LIBS="$ac_xsave_LIBS"
11449 esac
11450 fi
11451
11452 # Check for system-dependent libraries X programs must link with.
11453 # Do this before checking for the system-independent R6 libraries
11454 # (-lICE), since we may need -lsocket or whatever for X linking.
11455
11456 if test "$ISC" = yes; then
11457 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11458 else
11459 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
11460 # libraries were built with DECnet support. And karl@cs.umb.edu says
11461 # the Alpha needs dnet_stub (dnet does not exist).
11462 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
11463 echo "configure:11464: checking for dnet_ntoa in -ldnet" >&5
11464 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11466 echo $ac_n "(cached) $ac_c" 1>&6
11467 else
11468 ac_save_LIBS="$LIBS"
11469 LIBS="-ldnet $LIBS"
11470 cat > conftest.$ac_ext <<EOF
11471 #line 11472 "configure"
11472 #include "confdefs.h"
11473 /* Override any gcc2 internal prototype to avoid an error. */
11474 /* We use char because int might match the return type of a gcc2
11475 builtin and then its argument prototype would still apply. */
11476 char dnet_ntoa();
11477
11478 int main() {
11479 dnet_ntoa()
11480 ; return 0; }
11481 EOF
11482 if { (eval echo configure:11483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11483 rm -rf conftest*
11484 eval "ac_cv_lib_$ac_lib_var=yes"
11485 else
11486 echo "configure: failed program was:" >&5
11487 cat conftest.$ac_ext >&5
11488 rm -rf conftest*
11489 eval "ac_cv_lib_$ac_lib_var=no"
11490 fi
11491 rm -f conftest*
11492 LIBS="$ac_save_LIBS"
11493
11494 fi
11495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11496 echo "$ac_t""yes" 1>&6
11497 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11498 else
11499 echo "$ac_t""no" 1>&6
11500 fi
11501
11502 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11503 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
11504 echo "configure:11505: checking for dnet_ntoa in -ldnet_stub" >&5
11505 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11506 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11507 echo $ac_n "(cached) $ac_c" 1>&6
11508 else
11509 ac_save_LIBS="$LIBS"
11510 LIBS="-ldnet_stub $LIBS"
11511 cat > conftest.$ac_ext <<EOF
11512 #line 11513 "configure"
11513 #include "confdefs.h"
11514 /* Override any gcc2 internal prototype to avoid an error. */
11515 /* We use char because int might match the return type of a gcc2
11516 builtin and then its argument prototype would still apply. */
11517 char dnet_ntoa();
11518
11519 int main() {
11520 dnet_ntoa()
11521 ; return 0; }
11522 EOF
11523 if { (eval echo configure:11524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11524 rm -rf conftest*
11525 eval "ac_cv_lib_$ac_lib_var=yes"
11526 else
11527 echo "configure: failed program was:" >&5
11528 cat conftest.$ac_ext >&5
11529 rm -rf conftest*
11530 eval "ac_cv_lib_$ac_lib_var=no"
11531 fi
11532 rm -f conftest*
11533 LIBS="$ac_save_LIBS"
11534
11535 fi
11536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11537 echo "$ac_t""yes" 1>&6
11538 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
11539 else
11540 echo "$ac_t""no" 1>&6
11541 fi
11542
11543 fi
11544
11545 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11546 # to get the SysV transport functions.
11547 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
11548 # needs -lnsl.
11549 # The nsl library prevents programs from opening the X display
11550 # on Irix 5.2, according to dickey@clark.net.
11551 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
11552 echo "configure:11553: checking for gethostbyname" >&5
11553 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
11554 echo $ac_n "(cached) $ac_c" 1>&6
11555 else
11556 cat > conftest.$ac_ext <<EOF
11557 #line 11558 "configure"
11558 #include "confdefs.h"
11559 /* System header to define __stub macros and hopefully few prototypes,
11560 which can conflict with char gethostbyname(); below. */
11561 #include <assert.h>
11562 /* Override any gcc2 internal prototype to avoid an error. */
11563 /* We use char because int might match the return type of a gcc2
11564 builtin and then its argument prototype would still apply. */
11565 char gethostbyname();
11566
11567 int main() {
11568
11569 /* The GNU C library defines this for functions which it implements
11570 to always fail with ENOSYS. Some functions are actually named
11571 something starting with __ and the normal name is an alias. */
11572 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11573 choke me
11574 #else
11575 gethostbyname();
11576 #endif
11577
11578 ; return 0; }
11579 EOF
11580 if { (eval echo configure:11581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11581 rm -rf conftest*
11582 eval "ac_cv_func_gethostbyname=yes"
11583 else
11584 echo "configure: failed program was:" >&5
11585 cat conftest.$ac_ext >&5
11586 rm -rf conftest*
11587 eval "ac_cv_func_gethostbyname=no"
11588 fi
11589 rm -f conftest*
11590 fi
11591
11592 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
11593 echo "$ac_t""yes" 1>&6
11594 :
11595 else
11596 echo "$ac_t""no" 1>&6
11597 fi
11598
11599 if test $ac_cv_func_gethostbyname = no; then
11600 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
11601 echo "configure:11602: checking for gethostbyname in -lnsl" >&5
11602 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
11603 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11604 echo $ac_n "(cached) $ac_c" 1>&6
11605 else
11606 ac_save_LIBS="$LIBS"
11607 LIBS="-lnsl $LIBS"
11608 cat > conftest.$ac_ext <<EOF
11609 #line 11610 "configure"
11610 #include "confdefs.h"
11611 /* Override any gcc2 internal prototype to avoid an error. */
11612 /* We use char because int might match the return type of a gcc2
11613 builtin and then its argument prototype would still apply. */
11614 char gethostbyname();
11615
11616 int main() {
11617 gethostbyname()
11618 ; return 0; }
11619 EOF
11620 if { (eval echo configure:11621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11621 rm -rf conftest*
11622 eval "ac_cv_lib_$ac_lib_var=yes"
11623 else
11624 echo "configure: failed program was:" >&5
11625 cat conftest.$ac_ext >&5
11626 rm -rf conftest*
11627 eval "ac_cv_lib_$ac_lib_var=no"
11628 fi
11629 rm -f conftest*
11630 LIBS="$ac_save_LIBS"
11631
11632 fi
11633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11634 echo "$ac_t""yes" 1>&6
11635 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11636 else
11637 echo "$ac_t""no" 1>&6
11638 fi
11639
11640 fi
11641
11642 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11643 # socket/setsockopt and other routines are undefined under SCO ODT
11644 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
11645 # on later versions), says simon@lia.di.epfl.ch: it contains
11646 # gethostby* variants that don't use the nameserver (or something).
11647 # -lsocket must be given before -lnsl if both are needed.
11648 # We assume that if connect needs -lnsl, so does gethostbyname.
11649 echo $ac_n "checking for connect""... $ac_c" 1>&6
11650 echo "configure:11651: checking for connect" >&5
11651 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11652 echo $ac_n "(cached) $ac_c" 1>&6
11653 else
11654 cat > conftest.$ac_ext <<EOF
11655 #line 11656 "configure"
11656 #include "confdefs.h"
11657 /* System header to define __stub macros and hopefully few prototypes,
11658 which can conflict with char connect(); below. */
11659 #include <assert.h>
11660 /* Override any gcc2 internal prototype to avoid an error. */
11661 /* We use char because int might match the return type of a gcc2
11662 builtin and then its argument prototype would still apply. */
11663 char connect();
11664
11665 int main() {
11666
11667 /* The GNU C library defines this for functions which it implements
11668 to always fail with ENOSYS. Some functions are actually named
11669 something starting with __ and the normal name is an alias. */
11670 #if defined (__stub_connect) || defined (__stub___connect)
11671 choke me
11672 #else
11673 connect();
11674 #endif
11675
11676 ; return 0; }
11677 EOF
11678 if { (eval echo configure:11679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11679 rm -rf conftest*
11680 eval "ac_cv_func_connect=yes"
11681 else
11682 echo "configure: failed program was:" >&5
11683 cat conftest.$ac_ext >&5
11684 rm -rf conftest*
11685 eval "ac_cv_func_connect=no"
11686 fi
11687 rm -f conftest*
11688 fi
11689
11690 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11691 echo "$ac_t""yes" 1>&6
11692 :
11693 else
11694 echo "$ac_t""no" 1>&6
11695 fi
11696
11697 if test $ac_cv_func_connect = no; then
11698 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
11699 echo "configure:11700: checking for connect in -lsocket" >&5
11700 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11701 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11702 echo $ac_n "(cached) $ac_c" 1>&6
11703 else
11704 ac_save_LIBS="$LIBS"
11705 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
11706 cat > conftest.$ac_ext <<EOF
11707 #line 11708 "configure"
11708 #include "confdefs.h"
11709 /* Override any gcc2 internal prototype to avoid an error. */
11710 /* We use char because int might match the return type of a gcc2
11711 builtin and then its argument prototype would still apply. */
11712 char connect();
11713
11714 int main() {
11715 connect()
11716 ; return 0; }
11717 EOF
11718 if { (eval echo configure:11719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11719 rm -rf conftest*
11720 eval "ac_cv_lib_$ac_lib_var=yes"
11721 else
11722 echo "configure: failed program was:" >&5
11723 cat conftest.$ac_ext >&5
11724 rm -rf conftest*
11725 eval "ac_cv_lib_$ac_lib_var=no"
11726 fi
11727 rm -f conftest*
11728 LIBS="$ac_save_LIBS"
11729
11730 fi
11731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11732 echo "$ac_t""yes" 1>&6
11733 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
11734 else
11735 echo "$ac_t""no" 1>&6
11736 fi
11737
11738 fi
11739
11740 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
11741 echo $ac_n "checking for remove""... $ac_c" 1>&6
11742 echo "configure:11743: checking for remove" >&5
11743 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
11744 echo $ac_n "(cached) $ac_c" 1>&6
11745 else
11746 cat > conftest.$ac_ext <<EOF
11747 #line 11748 "configure"
11748 #include "confdefs.h"
11749 /* System header to define __stub macros and hopefully few prototypes,
11750 which can conflict with char remove(); below. */
11751 #include <assert.h>
11752 /* Override any gcc2 internal prototype to avoid an error. */
11753 /* We use char because int might match the return type of a gcc2
11754 builtin and then its argument prototype would still apply. */
11755 char remove();
11756
11757 int main() {
11758
11759 /* The GNU C library defines this for functions which it implements
11760 to always fail with ENOSYS. Some functions are actually named
11761 something starting with __ and the normal name is an alias. */
11762 #if defined (__stub_remove) || defined (__stub___remove)
11763 choke me
11764 #else
11765 remove();
11766 #endif
11767
11768 ; return 0; }
11769 EOF
11770 if { (eval echo configure:11771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11771 rm -rf conftest*
11772 eval "ac_cv_func_remove=yes"
11773 else
11774 echo "configure: failed program was:" >&5
11775 cat conftest.$ac_ext >&5
11776 rm -rf conftest*
11777 eval "ac_cv_func_remove=no"
11778 fi
11779 rm -f conftest*
11780 fi
11781
11782 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
11783 echo "$ac_t""yes" 1>&6
11784 :
11785 else
11786 echo "$ac_t""no" 1>&6
11787 fi
11788
11789 if test $ac_cv_func_remove = no; then
11790 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
11791 echo "configure:11792: checking for remove in -lposix" >&5
11792 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
11793 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11794 echo $ac_n "(cached) $ac_c" 1>&6
11795 else
11796 ac_save_LIBS="$LIBS"
11797 LIBS="-lposix $LIBS"
11798 cat > conftest.$ac_ext <<EOF
11799 #line 11800 "configure"
11800 #include "confdefs.h"
11801 /* Override any gcc2 internal prototype to avoid an error. */
11802 /* We use char because int might match the return type of a gcc2
11803 builtin and then its argument prototype would still apply. */
11804 char remove();
11805
11806 int main() {
11807 remove()
11808 ; return 0; }
11809 EOF
11810 if { (eval echo configure:11811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11811 rm -rf conftest*
11812 eval "ac_cv_lib_$ac_lib_var=yes"
11813 else
11814 echo "configure: failed program was:" >&5
11815 cat conftest.$ac_ext >&5
11816 rm -rf conftest*
11817 eval "ac_cv_lib_$ac_lib_var=no"
11818 fi
11819 rm -f conftest*
11820 LIBS="$ac_save_LIBS"
11821
11822 fi
11823 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11824 echo "$ac_t""yes" 1>&6
11825 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
11826 else
11827 echo "$ac_t""no" 1>&6
11828 fi
11829
11830 fi
11831
11832 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
11833 echo $ac_n "checking for shmat""... $ac_c" 1>&6
11834 echo "configure:11835: checking for shmat" >&5
11835 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
11836 echo $ac_n "(cached) $ac_c" 1>&6
11837 else
11838 cat > conftest.$ac_ext <<EOF
11839 #line 11840 "configure"
11840 #include "confdefs.h"
11841 /* System header to define __stub macros and hopefully few prototypes,
11842 which can conflict with char shmat(); below. */
11843 #include <assert.h>
11844 /* Override any gcc2 internal prototype to avoid an error. */
11845 /* We use char because int might match the return type of a gcc2
11846 builtin and then its argument prototype would still apply. */
11847 char shmat();
11848
11849 int main() {
11850
11851 /* The GNU C library defines this for functions which it implements
11852 to always fail with ENOSYS. Some functions are actually named
11853 something starting with __ and the normal name is an alias. */
11854 #if defined (__stub_shmat) || defined (__stub___shmat)
11855 choke me
11856 #else
11857 shmat();
11858 #endif
11859
11860 ; return 0; }
11861 EOF
11862 if { (eval echo configure:11863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11863 rm -rf conftest*
11864 eval "ac_cv_func_shmat=yes"
11865 else
11866 echo "configure: failed program was:" >&5
11867 cat conftest.$ac_ext >&5
11868 rm -rf conftest*
11869 eval "ac_cv_func_shmat=no"
11870 fi
11871 rm -f conftest*
11872 fi
11873
11874 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
11875 echo "$ac_t""yes" 1>&6
11876 :
11877 else
11878 echo "$ac_t""no" 1>&6
11879 fi
11880
11881 if test $ac_cv_func_shmat = no; then
11882 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
11883 echo "configure:11884: checking for shmat in -lipc" >&5
11884 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
11885 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11886 echo $ac_n "(cached) $ac_c" 1>&6
11887 else
11888 ac_save_LIBS="$LIBS"
11889 LIBS="-lipc $LIBS"
11890 cat > conftest.$ac_ext <<EOF
11891 #line 11892 "configure"
11892 #include "confdefs.h"
11893 /* Override any gcc2 internal prototype to avoid an error. */
11894 /* We use char because int might match the return type of a gcc2
11895 builtin and then its argument prototype would still apply. */
11896 char shmat();
11897
11898 int main() {
11899 shmat()
11900 ; return 0; }
11901 EOF
11902 if { (eval echo configure:11903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11903 rm -rf conftest*
11904 eval "ac_cv_lib_$ac_lib_var=yes"
11905 else
11906 echo "configure: failed program was:" >&5
11907 cat conftest.$ac_ext >&5
11908 rm -rf conftest*
11909 eval "ac_cv_lib_$ac_lib_var=no"
11910 fi
11911 rm -f conftest*
11912 LIBS="$ac_save_LIBS"
11913
11914 fi
11915 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11916 echo "$ac_t""yes" 1>&6
11917 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
11918 else
11919 echo "$ac_t""no" 1>&6
11920 fi
11921
11922 fi
11923 fi
11924
11925 # Check for libraries that X11R6 Xt/Xaw programs need.
11926 ac_save_LDFLAGS="$LDFLAGS"
11927 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11928 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11929 # check for ICE first), but we must link in the order -lSM -lICE or
11930 # we get undefined symbols. So assume we have SM if we have ICE.
11931 # These have to be linked with before -lX11, unlike the other
11932 # libraries we check for below, so use a different variable.
11933 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
11934 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
11935 echo "configure:11936: checking for IceConnectionNumber in -lICE" >&5
11936 ac_lib_var=`echo ICE'_'IceConnectionNumber | 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="-lICE $X_EXTRA_LIBS $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 IceConnectionNumber();
11949
11950 int main() {
11951 IceConnectionNumber()
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_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
11970 else
11971 echo "$ac_t""no" 1>&6
11972 fi
11973
11974 LDFLAGS="$ac_save_LDFLAGS"
11975
11976 fi
11977
11978
11979 if test "$no_x" = "yes"; then
11980 { echo "configure: error: X11 not found" 1>&2; exit 1; }
11981 fi
11982
11983 GUI_TK_LIBRARY="$X_LIBS"
11984 TOOLKIT_INCLUDE="$X_CFLAGS"
11985 AFMINSTALL=afminstall
11986 COMPILED_X_PROGRAM=0
11987
11988 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
11989 echo "configure:11990: checking for Motif/Lesstif headers" >&5
11990
11991 ac_find_includes=
11992 for ac_dir in $SEARCH_INCLUDE;
11993 do
11994 if test -f "$ac_dir/Xm/Xm.h"; then
11995 ac_find_includes=$ac_dir
11996 break
11997 fi
11998 done
11999
12000 if test "$ac_find_includes" != "" ; then
12001 echo "$ac_t""found $ac_find_includes" 1>&6
12002 else
12003 cat > conftest.$ac_ext <<EOF
12004 #line 12005 "configure"
12005 #include "confdefs.h"
12006
12007 #include <Xm/Xm.h>
12008
12009 int main() {
12010
12011 int version;
12012 version = xmUseVersion;
12013
12014 ; return 0; }
12015 EOF
12016 if { (eval echo configure:12017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12017 rm -rf conftest*
12018
12019 echo "$ac_t""found in default search path" 1>&6
12020 COMPILED_X_PROGRAM=1
12021
12022 else
12023 echo "configure: failed program was:" >&5
12024 cat conftest.$ac_ext >&5
12025 rm -rf conftest*
12026
12027 echo "$ac_t""no" 1>&6
12028 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
12029
12030
12031 fi
12032 rm -f conftest*
12033 fi
12034
12035 if test "$COMPILED_X_PROGRAM" = 0; then
12036 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
12037 echo "configure:12038: checking for Motif/Lesstif library" >&5
12038
12039 ac_find_libraries=
12040 for ac_dir in $SEARCH_LIB;
12041 do
12042 for ac_extension in a so sl dylib; do
12043 if test -f "$ac_dir/libXm.$ac_extension"; then
12044 ac_find_libraries=$ac_dir
12045 break 2
12046 fi
12047 done
12048 done
12049
12050 if test "$ac_find_libraries" != "" ; then
12051
12052 ac_path_to_include=$ac_find_includes
12053 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
12054 result=$?
12055 if test $result = 0; then
12056 ac_path_to_include=""
12057 else
12058 ac_path_to_include=" -I$ac_find_includes"
12059 fi
12060
12061
12062 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12063 result=$?
12064 if test $result = 0; then
12065 ac_path_to_link=""
12066 else
12067 ac_path_to_link=" -L$ac_find_libraries"
12068 fi
12069
12070
12071 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
12072 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
12073 echo "$ac_t""found at $ac_find_libraries" 1>&6
12074 else
12075 cat > conftest.$ac_ext <<EOF
12076 #line 12077 "configure"
12077 #include "confdefs.h"
12078
12079 #include <Xm/Xm.h>
12080
12081 int main() {
12082
12083 int version;
12084 version = xmUseVersion;
12085
12086 ; return 0; }
12087 EOF
12088 if { (eval echo configure:12089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12089 rm -rf conftest*
12090
12091 echo "$ac_t""found in default search path" 1>&6
12092 COMPILED_X_PROGRAM=1
12093
12094 else
12095 echo "configure: failed program was:" >&5
12096 cat conftest.$ac_ext >&5
12097 rm -rf conftest*
12098
12099 echo "$ac_t""no" 1>&6
12100 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
12101
12102
12103 fi
12104 rm -f conftest*
12105 fi
12106 fi
12107
12108 xpm_link=
12109 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
12110 echo "configure:12111: checking for Xpm library" >&5
12111
12112 ac_find_libraries=
12113 for ac_dir in $SEARCH_LIB;
12114 do
12115 for ac_extension in a so sl dylib; do
12116 if test -f "$ac_dir/libXpm.$ac_extension"; then
12117 ac_find_libraries=$ac_dir
12118 break 2
12119 fi
12120 done
12121 done
12122
12123 if test "$ac_find_libraries" != "" ; then
12124
12125 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12126 result=$?
12127 if test $result = 0; then
12128 ac_path_to_link=""
12129 else
12130 ac_path_to_link=" -L$ac_find_libraries"
12131 fi
12132
12133 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
12134 xpm_link=" -lXpm"
12135 cat >> confdefs.h <<\EOF
12136 #define wxHAVE_LIB_XPM 1
12137 EOF
12138
12139 echo "$ac_t""found at $ac_find_libraries" 1>&6
12140 else
12141 cat > conftest.$ac_ext <<EOF
12142 #line 12143 "configure"
12143 #include "confdefs.h"
12144
12145 #include <X11/xpm.h>
12146
12147 int main() {
12148
12149 int version;
12150 version = XpmLibraryVersion();
12151
12152 ; return 0; }
12153 EOF
12154 if { (eval echo configure:12155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12155 rm -rf conftest*
12156
12157 xpm_link=" -lXpm"
12158 cat >> confdefs.h <<\EOF
12159 #define wxHAVE_LIB_XPM 1
12160 EOF
12161
12162 echo "$ac_t""found in default search path" 1>&6
12163 COMPILED_X_PROGRAM=0
12164
12165 else
12166 echo "configure: failed program was:" >&5
12167 cat conftest.$ac_ext >&5
12168 rm -rf conftest*
12169
12170 echo "$ac_t""no" 1>&6
12171 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12172
12173
12174 fi
12175 rm -f conftest*
12176 fi
12177
12178 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
12179 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
12180 TOOLKIT=MOTIF
12181 GUIDIST=MOTIF_DIST
12182 fi
12183
12184 if test "$wxUSE_MAC" = 1; then
12185 if test "$wxUSE_PRECOMP" = "yes"; then
12186 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12187 fi
12188 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
12189 CFLAGS="$CFLAGS -fpascal-strings"
12190 CXXFLAGS="$CXXFLAGS -fpascal-strings"
12191 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -DTARGET_CARBON"
12192
12193 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
12194 TOOLKIT=MAC
12195 GUIDIST=MACX_DIST
12196 fi
12197
12198 if test "$wxUSE_PM" = 1; then
12199 TOOLKIT=PM
12200 GUIDIST=GTK_DIST
12201 fi
12202
12203 if test "$TOOLKIT" = "PM" ; then
12204 TOOLKIT_DIR="os2"
12205 else
12206 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
12207 fi
12208
12209 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
12210
12211 if test "$wxUSE_UNIVERSAL" = "yes"; then
12212 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
12213 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
12214 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
12215 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
12216 WIDGET_SET=univ
12217 else
12218 ALL_OBJECTS="\$(GUIOBJS)"
12219 fi
12220
12221 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
12222
12223 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
12224 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
12225 fi
12226
12227 if test "$wxUSE_HTML" = "yes"; then
12228 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
12229 fi
12230
12231 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
12232 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
12233 fi
12234 if test "$wxUSE_LIBJPEG" = "builtin" ; then
12235 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
12236 fi
12237 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12238 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
12239 fi
12240 if test "$wxUSE_LIBPNG" = "builtin" ; then
12241 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
12242 fi
12243 if test "$wxUSE_FREETYPE" = "builtin" ; then
12244 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
12245 fi
12246
12247 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
12248 DISTDIR="wx\$(TOOLKIT)"
12249 else
12250 USE_GUI=0
12251
12252 TOOLKIT_DIR="base"
12253
12254 if test "$USE_WIN32" = 1 ; then
12255 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
12256 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
12257
12258 TOOLKIT="MSW"
12259 else
12260 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
12261 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
12262 fi
12263
12264 PORT_FILES="\${top_srcdir}/src/files.lst"
12265
12266 GUIDIST="BASE_DIST"
12267 DISTDIR="wxBase"
12268 fi
12269
12270 if test "$wxUSE_REGEX" = "builtin" ; then
12271 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
12272 fi
12273 if test "$wxUSE_ZLIB" = "builtin" ; then
12274 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
12275 fi
12276
12277 if test "$wxUSE_OPENGL" = "yes"; then
12278 if test "$wxUSE_MAC" = 1; then
12279 OPENGL_LIBS="-framework OpenGL -framework AGL"
12280 else
12281
12282 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
12283 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
12284 echo "configure:12285: checking for GL/gl.h" >&5
12285 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12286 echo $ac_n "(cached) $ac_c" 1>&6
12287 else
12288 cat > conftest.$ac_ext <<EOF
12289 #line 12290 "configure"
12290 #include "confdefs.h"
12291 #include <GL/gl.h>
12292 EOF
12293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12294 { (eval echo configure:12295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12296 if test -z "$ac_err"; then
12297 rm -rf conftest*
12298 eval "ac_cv_header_$ac_safe=yes"
12299 else
12300 echo "$ac_err" >&5
12301 echo "configure: failed program was:" >&5
12302 cat conftest.$ac_ext >&5
12303 rm -rf conftest*
12304 eval "ac_cv_header_$ac_safe=no"
12305 fi
12306 rm -f conftest*
12307 fi
12308 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12309 echo "$ac_t""yes" 1>&6
12310
12311 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
12312 echo "configure:12313: checking for -lGL" >&5
12313
12314 ac_find_libraries=
12315 for ac_dir in $SEARCH_LIB;
12316 do
12317 for ac_extension in a so sl dylib; do
12318 if test -f "$ac_dir/libGL.$ac_extension"; then
12319 ac_find_libraries=$ac_dir
12320 break 2
12321 fi
12322 done
12323 done
12324
12325 if test "$ac_find_libraries" != "" ; then
12326
12327 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12328 result=$?
12329 if test $result = 0; then
12330 ac_path_to_link=""
12331 else
12332 ac_path_to_link=" -L$ac_find_libraries"
12333 fi
12334
12335 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12336 OPENGL_LIBS="-lGL -lGLU"
12337 echo "$ac_t""yes" 1>&6
12338 else
12339 echo "$ac_t""no" 1>&6
12340 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
12341 echo "configure:12342: checking for -lMesaGL" >&5
12342
12343 ac_find_libraries=
12344 for ac_dir in $SEARCH_LIB;
12345 do
12346 for ac_extension in a so sl dylib; do
12347 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
12348 ac_find_libraries=$ac_dir
12349 break 2
12350 fi
12351 done
12352 done
12353
12354 if test "$ac_find_libraries" != "" ; then
12355
12356 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12357 result=$?
12358 if test $result = 0; then
12359 ac_path_to_link=""
12360 else
12361 ac_path_to_link=" -L$ac_find_libraries"
12362 fi
12363
12364 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12365 OPENGL_LIBS="-lMesaGL -lMesaGLU"
12366 echo "$ac_t""yes" 1>&6
12367 else
12368 echo "$ac_t""no" 1>&6
12369 fi
12370 fi
12371
12372 else
12373 echo "$ac_t""no" 1>&6
12374 fi
12375
12376
12377
12378 # AC_CHECK_HEADER(GL/gl.h,
12379 # [
12380 # AC_CHECK_LIB(GL, glFlush,
12381 # [
12382 # OPENGL_LIBS="-lGL -lGLU"
12383 # ],
12384 # [
12385 # AC_CHECK_LIB(MesaGL, glFlush,
12386 # [
12387 # OPENGL_LIBS="-lMesaGL -lMesaGLU"
12388 # ],
12389 # [],
12390 # [-lm])
12391 # ],
12392 # [-lm])
12393 # ])
12394
12395 if test "x$OPENGL_LIBS" = "x"; then
12396 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
12397 fi
12398 fi
12399
12400 if test "$wxUSE_OPENGL" = "yes"; then
12401 cat >> confdefs.h <<\EOF
12402 #define wxUSE_OPENGL 1
12403 EOF
12404
12405 cat >> confdefs.h <<\EOF
12406 #define wxUSE_GLCANVAS 1
12407 EOF
12408
12409 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
12410 fi
12411 fi
12412
12413 if test -z "$TOOLKIT_VPATH" ; then
12414 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
12415 fi
12416
12417 if test -n "$TOOLKIT" ; then
12418 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
12419 fi
12420
12421 lib_unicode_suffix=
12422 if test "$wxUSE_UNICODE" = "yes"; then
12423 lib_unicode_suffix=u
12424 fi
12425
12426 lib_debug_suffix=
12427 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
12428 lib_debug_suffix=d
12429 fi
12430
12431 TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
12432 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
12433
12434 if test "$cross_compiling" = "yes"; then
12435 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
12436 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
12437 fi
12438
12439 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
12440 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
12441
12442 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12443 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12444
12445 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
12446 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
12447 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
12448 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
12449
12450 WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
12451 WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
12452
12453 case "${host}" in
12454 *-*-cygwin* | *-*-mingw32* )
12455
12456
12457
12458 if test "$cross_compiling" != "yes"; then
12459 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12460 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12461 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
12462 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
12463 else
12464 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
12465 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
12466 fi
12467
12468 esac
12469
12470 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
12471 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
12472
12473 WXCONFIG_LIBS="-l${WX_LIBRARY}"
12474 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
12475
12476 if test "$wxUSE_OPENGL" = "yes"; then
12477 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
12478 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
12479 fi
12480
12481
12482
12483 if test "$wxUSE_SHARED" = "yes"; then
12484
12485 if test "$wxUSE_OPENGL" = "yes"; then
12486 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
12487 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
12488 else
12489 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
12490 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
12491 fi
12492
12493 if test "$GCC" = "yes"; then
12494 PIC_FLAG="-fPIC"
12495 fi
12496
12497 SHARED_LD="${CXX} -shared -o"
12498
12499 case "${host}" in
12500 *-hp-hpux* )
12501 if test "$GCC" != "yes"; then
12502 LDFLAGS="$LDFLAGS -L/usr/lib"
12503
12504 SHARED_LD="${CXX} -b -o"
12505 PIC_FLAG="+Z"
12506 fi
12507
12508 if test "$wxUSE_OPENGL" = "yes"; then
12509 WX_ALL_INSTALLED="preinstall_gl"
12510 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
12511 else
12512 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
12513 fi
12514 ;;
12515
12516 *-*-linux* )
12517 if test "$GCC" != "yes"; then
12518 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
12519 echo "configure:12520: checking for Intel compiler" >&5
12520 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
12521 echo $ac_n "(cached) $ac_c" 1>&6
12522 else
12523
12524 cat > conftest.$ac_ext <<EOF
12525 #line 12526 "configure"
12526 #include "confdefs.h"
12527
12528 int main() {
12529
12530 #ifndef __INTEL_COMPILER
12531 #error Not icc
12532 #endif
12533
12534 ; return 0; }
12535 EOF
12536 if { (eval echo configure:12537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12537 rm -rf conftest*
12538 wx_cv_prog_icc=yes
12539 else
12540 echo "configure: failed program was:" >&5
12541 cat conftest.$ac_ext >&5
12542 rm -rf conftest*
12543 wx_cv_prog_icc=no
12544
12545 fi
12546 rm -f conftest*
12547
12548 fi
12549
12550 echo "$ac_t""$wx_cv_prog_icc" 1>&6
12551 if test "$wx_cv_prog_icc" = "yes"; then
12552 PIC_FLAG="-KPIC"
12553 fi
12554 fi
12555
12556 if test "$wxUSE_SONAME" = "yes" ; then
12557 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
12558 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
12559 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
12560 fi
12561 ;;
12562
12563 *-*-solaris2* )
12564 if test "$GCC" = yes ; then
12565 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
12566 else
12567 SHARED_LD="${CXX} -G -o"
12568 PIC_FLAG="-KPIC"
12569 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
12570 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}"
12571 fi
12572 ;;
12573
12574 *-*-darwin* )
12575 CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
12576 CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
12577 SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
12578 PIC_FLAG="-dynamic -fPIC"
12579 ;;
12580
12581 *-*-aix* )
12582 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
12583 ;;
12584
12585 *-*-cygwin* | *-*-mingw32* )
12586
12587 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
12588
12589 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
12590 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
12591
12592 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
12593
12594 if test "$wxUSE_OPENGL" = "yes"; then
12595 WX_ALL_INSTALLED="preinstall_gl"
12596 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
12597 else
12598 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
12599 fi
12600 ;;
12601
12602 *-pc-os2_emx | *-pc-os2-emx )
12603 wxUSE_SHARED=no
12604 ;;
12605
12606 *-*-beos* )
12607 SHARED_LD="${LD} -shared -o"
12608 ;;
12609
12610 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
12611 *-*-sunos4* | \
12612 *-*-irix5* | *-*-irix6* | \
12613 *-*-osf* | \
12614 *-*-dgux5* | \
12615 *-*-sysv5* )
12616 ;;
12617
12618 *)
12619 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
12620 esac
12621
12622 if test "x$WX_TARGET_LIBRARY" = "x"; then
12623 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
12624 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
12625 fi
12626
12627 WX_TARGET_LIBRARY_TYPE="so"
12628 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
12629 fi
12630
12631 if test "$wxUSE_SHARED" = "no"; then
12632
12633 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
12634 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12635 fi
12636
12637 if test "$wxUSE_MAC" = 1; then
12638 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12639 fi
12640
12641 if test "$wxUSE_OPENGL" = "yes"; then
12642 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
12643 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
12644 else
12645 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
12646 fi
12647
12648 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
12649 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
12650
12651 WX_TARGET_LIBRARY_TYPE="a"
12652 INSTALL_LIBRARY='$(INSTALL_DATA)'
12653 fi
12654
12655 if test "$wxUSE_MAC" = 1; then
12656 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
12657 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
12658 # Extract the first word of "Rez", so it can be a program name with args.
12659 set dummy Rez; ac_word=$2
12660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12661 echo "configure:12662: checking for $ac_word" >&5
12662 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
12663 echo $ac_n "(cached) $ac_c" 1>&6
12664 else
12665 if test -n "$RESCOMP"; then
12666 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
12667 else
12668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12669 ac_dummy="$PATH"
12670 for ac_dir in $ac_dummy; do
12671 test -z "$ac_dir" && ac_dir=.
12672 if test -f $ac_dir/$ac_word; then
12673 ac_cv_prog_RESCOMP="Rez"
12674 break
12675 fi
12676 done
12677 IFS="$ac_save_ifs"
12678 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
12679 fi
12680 fi
12681 RESCOMP="$ac_cv_prog_RESCOMP"
12682 if test -n "$RESCOMP"; then
12683 echo "$ac_t""$RESCOMP" 1>&6
12684 else
12685 echo "$ac_t""no" 1>&6
12686 fi
12687
12688 # Extract the first word of "DeRez", so it can be a program name with args.
12689 set dummy DeRez; ac_word=$2
12690 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12691 echo "configure:12692: checking for $ac_word" >&5
12692 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
12693 echo $ac_n "(cached) $ac_c" 1>&6
12694 else
12695 if test -n "$DEREZ"; then
12696 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
12697 else
12698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12699 ac_dummy="$PATH"
12700 for ac_dir in $ac_dummy; do
12701 test -z "$ac_dir" && ac_dir=.
12702 if test -f $ac_dir/$ac_word; then
12703 ac_cv_prog_DEREZ="DeRez"
12704 break
12705 fi
12706 done
12707 IFS="$ac_save_ifs"
12708 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
12709 fi
12710 fi
12711 DEREZ="$ac_cv_prog_DEREZ"
12712 if test -n "$DEREZ"; then
12713 echo "$ac_t""$DEREZ" 1>&6
12714 else
12715 echo "$ac_t""no" 1>&6
12716 fi
12717
12718 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
12719 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
12720 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
12721 fi
12722
12723
12724 if test "$wxUSE_MAC" != 1; then
12725 for ac_hdr in strings.h
12726 do
12727 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12728 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12729 echo "configure:12730: checking for $ac_hdr" >&5
12730 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12731 echo $ac_n "(cached) $ac_c" 1>&6
12732 else
12733 cat > conftest.$ac_ext <<EOF
12734 #line 12735 "configure"
12735 #include "confdefs.h"
12736 #include <$ac_hdr>
12737 EOF
12738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12739 { (eval echo configure:12740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12740 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12741 if test -z "$ac_err"; then
12742 rm -rf conftest*
12743 eval "ac_cv_header_$ac_safe=yes"
12744 else
12745 echo "$ac_err" >&5
12746 echo "configure: failed program was:" >&5
12747 cat conftest.$ac_ext >&5
12748 rm -rf conftest*
12749 eval "ac_cv_header_$ac_safe=no"
12750 fi
12751 rm -f conftest*
12752 fi
12753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12754 echo "$ac_t""yes" 1>&6
12755 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12756 cat >> confdefs.h <<EOF
12757 #define $ac_tr_hdr 1
12758 EOF
12759
12760 else
12761 echo "$ac_t""no" 1>&6
12762 fi
12763 done
12764
12765 fi
12766
12767 for ac_hdr in stdlib.h
12768 do
12769 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12770 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12771 echo "configure:12772: checking for $ac_hdr" >&5
12772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12773 echo $ac_n "(cached) $ac_c" 1>&6
12774 else
12775 cat > conftest.$ac_ext <<EOF
12776 #line 12777 "configure"
12777 #include "confdefs.h"
12778 #include <$ac_hdr>
12779 EOF
12780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12781 { (eval echo configure:12782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12783 if test -z "$ac_err"; then
12784 rm -rf conftest*
12785 eval "ac_cv_header_$ac_safe=yes"
12786 else
12787 echo "$ac_err" >&5
12788 echo "configure: failed program was:" >&5
12789 cat conftest.$ac_ext >&5
12790 rm -rf conftest*
12791 eval "ac_cv_header_$ac_safe=no"
12792 fi
12793 rm -f conftest*
12794 fi
12795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12796 echo "$ac_t""yes" 1>&6
12797 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12798 cat >> confdefs.h <<EOF
12799 #define $ac_tr_hdr 1
12800 EOF
12801
12802 else
12803 echo "$ac_t""no" 1>&6
12804 fi
12805 done
12806
12807 for ac_hdr in malloc.h
12808 do
12809 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12810 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12811 echo "configure:12812: checking for $ac_hdr" >&5
12812 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12813 echo $ac_n "(cached) $ac_c" 1>&6
12814 else
12815 cat > conftest.$ac_ext <<EOF
12816 #line 12817 "configure"
12817 #include "confdefs.h"
12818 #include <$ac_hdr>
12819 EOF
12820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12821 { (eval echo configure:12822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12823 if test -z "$ac_err"; then
12824 rm -rf conftest*
12825 eval "ac_cv_header_$ac_safe=yes"
12826 else
12827 echo "$ac_err" >&5
12828 echo "configure: failed program was:" >&5
12829 cat conftest.$ac_ext >&5
12830 rm -rf conftest*
12831 eval "ac_cv_header_$ac_safe=no"
12832 fi
12833 rm -f conftest*
12834 fi
12835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12836 echo "$ac_t""yes" 1>&6
12837 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12838 cat >> confdefs.h <<EOF
12839 #define $ac_tr_hdr 1
12840 EOF
12841
12842 else
12843 echo "$ac_t""no" 1>&6
12844 fi
12845 done
12846
12847 for ac_hdr in unistd.h
12848 do
12849 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12850 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12851 echo "configure:12852: checking for $ac_hdr" >&5
12852 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12853 echo $ac_n "(cached) $ac_c" 1>&6
12854 else
12855 cat > conftest.$ac_ext <<EOF
12856 #line 12857 "configure"
12857 #include "confdefs.h"
12858 #include <$ac_hdr>
12859 EOF
12860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12861 { (eval echo configure:12862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12863 if test -z "$ac_err"; then
12864 rm -rf conftest*
12865 eval "ac_cv_header_$ac_safe=yes"
12866 else
12867 echo "$ac_err" >&5
12868 echo "configure: failed program was:" >&5
12869 cat conftest.$ac_ext >&5
12870 rm -rf conftest*
12871 eval "ac_cv_header_$ac_safe=no"
12872 fi
12873 rm -f conftest*
12874 fi
12875 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12876 echo "$ac_t""yes" 1>&6
12877 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12878 cat >> confdefs.h <<EOF
12879 #define $ac_tr_hdr 1
12880 EOF
12881
12882 else
12883 echo "$ac_t""no" 1>&6
12884 fi
12885 done
12886
12887 for ac_hdr in wchar.h
12888 do
12889 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12890 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12891 echo "configure:12892: checking for $ac_hdr" >&5
12892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12893 echo $ac_n "(cached) $ac_c" 1>&6
12894 else
12895 cat > conftest.$ac_ext <<EOF
12896 #line 12897 "configure"
12897 #include "confdefs.h"
12898 #include <$ac_hdr>
12899 EOF
12900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12901 { (eval echo configure:12902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12903 if test -z "$ac_err"; then
12904 rm -rf conftest*
12905 eval "ac_cv_header_$ac_safe=yes"
12906 else
12907 echo "$ac_err" >&5
12908 echo "configure: failed program was:" >&5
12909 cat conftest.$ac_ext >&5
12910 rm -rf conftest*
12911 eval "ac_cv_header_$ac_safe=no"
12912 fi
12913 rm -f conftest*
12914 fi
12915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12916 echo "$ac_t""yes" 1>&6
12917 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12918 cat >> confdefs.h <<EOF
12919 #define $ac_tr_hdr 1
12920 EOF
12921
12922 else
12923 echo "$ac_t""no" 1>&6
12924 fi
12925 done
12926
12927 for ac_hdr in wcstr.h
12928 do
12929 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12930 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12931 echo "configure:12932: checking for $ac_hdr" >&5
12932 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12933 echo $ac_n "(cached) $ac_c" 1>&6
12934 else
12935 cat > conftest.$ac_ext <<EOF
12936 #line 12937 "configure"
12937 #include "confdefs.h"
12938 #include <$ac_hdr>
12939 EOF
12940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12941 { (eval echo configure:12942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12943 if test -z "$ac_err"; then
12944 rm -rf conftest*
12945 eval "ac_cv_header_$ac_safe=yes"
12946 else
12947 echo "$ac_err" >&5
12948 echo "configure: failed program was:" >&5
12949 cat conftest.$ac_ext >&5
12950 rm -rf conftest*
12951 eval "ac_cv_header_$ac_safe=no"
12952 fi
12953 rm -f conftest*
12954 fi
12955 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12956 echo "$ac_t""yes" 1>&6
12957 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12958 cat >> confdefs.h <<EOF
12959 #define $ac_tr_hdr 1
12960 EOF
12961
12962 else
12963 echo "$ac_t""no" 1>&6
12964 fi
12965 done
12966
12967 for ac_hdr in wctype.h
12968 do
12969 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12970 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12971 echo "configure:12972: checking for $ac_hdr" >&5
12972 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12973 echo $ac_n "(cached) $ac_c" 1>&6
12974 else
12975 cat > conftest.$ac_ext <<EOF
12976 #line 12977 "configure"
12977 #include "confdefs.h"
12978 #include <$ac_hdr>
12979 EOF
12980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12981 { (eval echo configure:12982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12983 if test -z "$ac_err"; then
12984 rm -rf conftest*
12985 eval "ac_cv_header_$ac_safe=yes"
12986 else
12987 echo "$ac_err" >&5
12988 echo "configure: failed program was:" >&5
12989 cat conftest.$ac_ext >&5
12990 rm -rf conftest*
12991 eval "ac_cv_header_$ac_safe=no"
12992 fi
12993 rm -f conftest*
12994 fi
12995 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12996 echo "$ac_t""yes" 1>&6
12997 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12998 cat >> confdefs.h <<EOF
12999 #define $ac_tr_hdr 1
13000 EOF
13001
13002 else
13003 echo "$ac_t""no" 1>&6
13004 fi
13005 done
13006
13007 for ac_hdr in fnmatch.h
13008 do
13009 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13010 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13011 echo "configure:13012: checking for $ac_hdr" >&5
13012 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13013 echo $ac_n "(cached) $ac_c" 1>&6
13014 else
13015 cat > conftest.$ac_ext <<EOF
13016 #line 13017 "configure"
13017 #include "confdefs.h"
13018 #include <$ac_hdr>
13019 EOF
13020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13021 { (eval echo configure:13022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13022 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13023 if test -z "$ac_err"; then
13024 rm -rf conftest*
13025 eval "ac_cv_header_$ac_safe=yes"
13026 else
13027 echo "$ac_err" >&5
13028 echo "configure: failed program was:" >&5
13029 cat conftest.$ac_ext >&5
13030 rm -rf conftest*
13031 eval "ac_cv_header_$ac_safe=no"
13032 fi
13033 rm -f conftest*
13034 fi
13035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13036 echo "$ac_t""yes" 1>&6
13037 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13038 cat >> confdefs.h <<EOF
13039 #define $ac_tr_hdr 1
13040 EOF
13041
13042 else
13043 echo "$ac_t""no" 1>&6
13044 fi
13045 done
13046
13047 for ac_hdr in iconv.h
13048 do
13049 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13050 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13051 echo "configure:13052: checking for $ac_hdr" >&5
13052 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13053 echo $ac_n "(cached) $ac_c" 1>&6
13054 else
13055 cat > conftest.$ac_ext <<EOF
13056 #line 13057 "configure"
13057 #include "confdefs.h"
13058 #include <$ac_hdr>
13059 EOF
13060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13061 { (eval echo configure:13062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13063 if test -z "$ac_err"; then
13064 rm -rf conftest*
13065 eval "ac_cv_header_$ac_safe=yes"
13066 else
13067 echo "$ac_err" >&5
13068 echo "configure: failed program was:" >&5
13069 cat conftest.$ac_ext >&5
13070 rm -rf conftest*
13071 eval "ac_cv_header_$ac_safe=no"
13072 fi
13073 rm -f conftest*
13074 fi
13075 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13076 echo "$ac_t""yes" 1>&6
13077 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13078 cat >> confdefs.h <<EOF
13079 #define $ac_tr_hdr 1
13080 EOF
13081
13082 else
13083 echo "$ac_t""no" 1>&6
13084 fi
13085 done
13086
13087 for ac_hdr in langinfo.h
13088 do
13089 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13090 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13091 echo "configure:13092: checking for $ac_hdr" >&5
13092 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13093 echo $ac_n "(cached) $ac_c" 1>&6
13094 else
13095 cat > conftest.$ac_ext <<EOF
13096 #line 13097 "configure"
13097 #include "confdefs.h"
13098 #include <$ac_hdr>
13099 EOF
13100 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13101 { (eval echo configure:13102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13102 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13103 if test -z "$ac_err"; then
13104 rm -rf conftest*
13105 eval "ac_cv_header_$ac_safe=yes"
13106 else
13107 echo "$ac_err" >&5
13108 echo "configure: failed program was:" >&5
13109 cat conftest.$ac_ext >&5
13110 rm -rf conftest*
13111 eval "ac_cv_header_$ac_safe=no"
13112 fi
13113 rm -f conftest*
13114 fi
13115 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13116 echo "$ac_t""yes" 1>&6
13117 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13118 cat >> confdefs.h <<EOF
13119 #define $ac_tr_hdr 1
13120 EOF
13121
13122 else
13123 echo "$ac_t""no" 1>&6
13124 fi
13125 done
13126
13127
13128 if test "$wxUSE_GUI" = "yes"; then
13129 if test "$wxUSE_UNIX" = "yes"; then
13130 for ac_hdr in X11/XKBlib.h
13131 do
13132 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13133 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13134 echo "configure:13135: checking for $ac_hdr" >&5
13135 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13136 echo $ac_n "(cached) $ac_c" 1>&6
13137 else
13138 cat > conftest.$ac_ext <<EOF
13139 #line 13140 "configure"
13140 #include "confdefs.h"
13141 #include <$ac_hdr>
13142 EOF
13143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13144 { (eval echo configure:13145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13146 if test -z "$ac_err"; then
13147 rm -rf conftest*
13148 eval "ac_cv_header_$ac_safe=yes"
13149 else
13150 echo "$ac_err" >&5
13151 echo "configure: failed program was:" >&5
13152 cat conftest.$ac_ext >&5
13153 rm -rf conftest*
13154 eval "ac_cv_header_$ac_safe=no"
13155 fi
13156 rm -f conftest*
13157 fi
13158 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13159 echo "$ac_t""yes" 1>&6
13160 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13161 cat >> confdefs.h <<EOF
13162 #define $ac_tr_hdr 1
13163 EOF
13164
13165 else
13166 echo "$ac_t""no" 1>&6
13167 fi
13168 done
13169
13170 fi
13171 fi
13172
13173
13174 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13175 echo "configure:13176: checking for ANSI C header files" >&5
13176 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
13177 echo $ac_n "(cached) $ac_c" 1>&6
13178 else
13179 cat > conftest.$ac_ext <<EOF
13180 #line 13181 "configure"
13181 #include "confdefs.h"
13182 #include <stdlib.h>
13183 #include <stdarg.h>
13184 #include <string.h>
13185 #include <float.h>
13186 EOF
13187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13188 { (eval echo configure:13189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13190 if test -z "$ac_err"; then
13191 rm -rf conftest*
13192 ac_cv_header_stdc=yes
13193 else
13194 echo "$ac_err" >&5
13195 echo "configure: failed program was:" >&5
13196 cat conftest.$ac_ext >&5
13197 rm -rf conftest*
13198 ac_cv_header_stdc=no
13199 fi
13200 rm -f conftest*
13201
13202 if test $ac_cv_header_stdc = yes; then
13203 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13204 cat > conftest.$ac_ext <<EOF
13205 #line 13206 "configure"
13206 #include "confdefs.h"
13207 #include <string.h>
13208 EOF
13209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13210 egrep "memchr" >/dev/null 2>&1; then
13211 :
13212 else
13213 rm -rf conftest*
13214 ac_cv_header_stdc=no
13215 fi
13216 rm -f conftest*
13217
13218 fi
13219
13220 if test $ac_cv_header_stdc = yes; then
13221 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13222 cat > conftest.$ac_ext <<EOF
13223 #line 13224 "configure"
13224 #include "confdefs.h"
13225 #include <stdlib.h>
13226 EOF
13227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13228 egrep "free" >/dev/null 2>&1; then
13229 :
13230 else
13231 rm -rf conftest*
13232 ac_cv_header_stdc=no
13233 fi
13234 rm -f conftest*
13235
13236 fi
13237
13238 if test $ac_cv_header_stdc = yes; then
13239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13240 if test "$cross_compiling" = yes; then
13241 :
13242 else
13243 cat > conftest.$ac_ext <<EOF
13244 #line 13245 "configure"
13245 #include "confdefs.h"
13246 #include <ctype.h>
13247 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13248 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13249 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13250 int main () { int i; for (i = 0; i < 256; i++)
13251 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13252 exit (0); }
13253
13254 EOF
13255 if { (eval echo configure:13256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13256 then
13257 :
13258 else
13259 echo "configure: failed program was:" >&5
13260 cat conftest.$ac_ext >&5
13261 rm -fr conftest*
13262 ac_cv_header_stdc=no
13263 fi
13264 rm -fr conftest*
13265 fi
13266
13267 fi
13268 fi
13269
13270 echo "$ac_t""$ac_cv_header_stdc" 1>&6
13271 if test $ac_cv_header_stdc = yes; then
13272 cat >> confdefs.h <<\EOF
13273 #define STDC_HEADERS 1
13274 EOF
13275
13276 fi
13277
13278 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13279 echo "configure:13280: checking for mode_t" >&5
13280 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
13281 echo $ac_n "(cached) $ac_c" 1>&6
13282 else
13283 cat > conftest.$ac_ext <<EOF
13284 #line 13285 "configure"
13285 #include "confdefs.h"
13286 #include <sys/types.h>
13287 #if STDC_HEADERS
13288 #include <stdlib.h>
13289 #include <stddef.h>
13290 #endif
13291 EOF
13292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13293 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13294 rm -rf conftest*
13295 ac_cv_type_mode_t=yes
13296 else
13297 rm -rf conftest*
13298 ac_cv_type_mode_t=no
13299 fi
13300 rm -f conftest*
13301
13302 fi
13303 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
13304 if test $ac_cv_type_mode_t = no; then
13305 cat >> confdefs.h <<\EOF
13306 #define mode_t int
13307 EOF
13308
13309 fi
13310
13311 echo $ac_n "checking for off_t""... $ac_c" 1>&6
13312 echo "configure:13313: checking for off_t" >&5
13313 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
13314 echo $ac_n "(cached) $ac_c" 1>&6
13315 else
13316 cat > conftest.$ac_ext <<EOF
13317 #line 13318 "configure"
13318 #include "confdefs.h"
13319 #include <sys/types.h>
13320 #if STDC_HEADERS
13321 #include <stdlib.h>
13322 #include <stddef.h>
13323 #endif
13324 EOF
13325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13326 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13327 rm -rf conftest*
13328 ac_cv_type_off_t=yes
13329 else
13330 rm -rf conftest*
13331 ac_cv_type_off_t=no
13332 fi
13333 rm -f conftest*
13334
13335 fi
13336 echo "$ac_t""$ac_cv_type_off_t" 1>&6
13337 if test $ac_cv_type_off_t = no; then
13338 cat >> confdefs.h <<\EOF
13339 #define off_t long
13340 EOF
13341
13342 fi
13343
13344 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
13345 echo "configure:13346: checking for pid_t" >&5
13346 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
13347 echo $ac_n "(cached) $ac_c" 1>&6
13348 else
13349 cat > conftest.$ac_ext <<EOF
13350 #line 13351 "configure"
13351 #include "confdefs.h"
13352 #include <sys/types.h>
13353 #if STDC_HEADERS
13354 #include <stdlib.h>
13355 #include <stddef.h>
13356 #endif
13357 EOF
13358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13359 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13360 rm -rf conftest*
13361 ac_cv_type_pid_t=yes
13362 else
13363 rm -rf conftest*
13364 ac_cv_type_pid_t=no
13365 fi
13366 rm -f conftest*
13367
13368 fi
13369 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
13370 if test $ac_cv_type_pid_t = no; then
13371 cat >> confdefs.h <<\EOF
13372 #define pid_t int
13373 EOF
13374
13375 fi
13376
13377 echo $ac_n "checking for size_t""... $ac_c" 1>&6
13378 echo "configure:13379: checking for size_t" >&5
13379 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
13380 echo $ac_n "(cached) $ac_c" 1>&6
13381 else
13382 cat > conftest.$ac_ext <<EOF
13383 #line 13384 "configure"
13384 #include "confdefs.h"
13385 #include <sys/types.h>
13386 #if STDC_HEADERS
13387 #include <stdlib.h>
13388 #include <stddef.h>
13389 #endif
13390 EOF
13391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13392 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13393 rm -rf conftest*
13394 ac_cv_type_size_t=yes
13395 else
13396 rm -rf conftest*
13397 ac_cv_type_size_t=no
13398 fi
13399 rm -f conftest*
13400
13401 fi
13402 echo "$ac_t""$ac_cv_type_size_t" 1>&6
13403 if test $ac_cv_type_size_t = no; then
13404 cat >> confdefs.h <<\EOF
13405 #define size_t unsigned
13406 EOF
13407
13408 fi
13409
13410 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
13411 echo "configure:13412: checking for uid_t in sys/types.h" >&5
13412 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
13413 echo $ac_n "(cached) $ac_c" 1>&6
13414 else
13415 cat > conftest.$ac_ext <<EOF
13416 #line 13417 "configure"
13417 #include "confdefs.h"
13418 #include <sys/types.h>
13419 EOF
13420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13421 egrep "uid_t" >/dev/null 2>&1; then
13422 rm -rf conftest*
13423 ac_cv_type_uid_t=yes
13424 else
13425 rm -rf conftest*
13426 ac_cv_type_uid_t=no
13427 fi
13428 rm -f conftest*
13429
13430 fi
13431
13432 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
13433 if test $ac_cv_type_uid_t = no; then
13434 cat >> confdefs.h <<\EOF
13435 #define uid_t int
13436 EOF
13437
13438 cat >> confdefs.h <<\EOF
13439 #define gid_t int
13440 EOF
13441
13442 fi
13443
13444
13445 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
13446 echo "configure:13447: checking for wchar_t" >&5
13447 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
13448 echo $ac_n "(cached) $ac_c" 1>&6
13449 else
13450
13451 cat > conftest.$ac_ext <<EOF
13452 #line 13453 "configure"
13453 #include "confdefs.h"
13454
13455 #ifdef HAVE_WCHAR_H
13456 # ifdef __CYGWIN__
13457 # include <stddef.h>
13458 # endif
13459 # include <wchar.h>
13460 #endif
13461 #ifdef HAVE_STDLIB_H
13462 # include <stdlib.h>
13463 #endif
13464
13465 int main() {
13466
13467 wchar_t wc, *ws;
13468 wc = L'a';
13469 ws = L"Hello, world!";
13470
13471 ; return 0; }
13472 EOF
13473 if { (eval echo configure:13474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13474 rm -rf conftest*
13475 wx_cv_type_wchar_t=yes
13476 else
13477 echo "configure: failed program was:" >&5
13478 cat conftest.$ac_ext >&5
13479 rm -rf conftest*
13480 wx_cv_type_wchar_t=no
13481
13482 fi
13483 rm -f conftest*
13484
13485 fi
13486
13487 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
13488
13489 if test "$wx_cv_type_wchar_t" = "yes"; then
13490 cat >> confdefs.h <<\EOF
13491 #define wxUSE_WCHAR_T 1
13492 EOF
13493
13494 fi
13495
13496
13497 ac_ext=C
13498 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13499 ac_cpp='$CXXCPP $CPPFLAGS'
13500 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13501 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13502 cross_compiling=$ac_cv_prog_cxx_cross
13503
13504 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
13505 echo "configure:13506: checking if size_t is unsigned int" >&5
13506 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
13507 echo $ac_n "(cached) $ac_c" 1>&6
13508 else
13509 cat > conftest.$ac_ext <<EOF
13510 #line 13511 "configure"
13511 #include "confdefs.h"
13512 #include <stddef.h>
13513 int main() {
13514
13515 return 0; }
13516
13517 struct Foo { void foo(size_t); void foo(unsigned int); };
13518
13519 int bar() {
13520
13521 ; return 0; }
13522 EOF
13523 if { (eval echo configure:13524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13524 rm -rf conftest*
13525 wx_cv_size_t_is_uint=no
13526 else
13527 echo "configure: failed program was:" >&5
13528 cat conftest.$ac_ext >&5
13529 rm -rf conftest*
13530 wx_cv_size_t_is_uint=yes
13531
13532 fi
13533 rm -f conftest*
13534
13535 fi
13536
13537 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
13538
13539 if test "$wx_cv_size_t_is_uint" = "yes"; then
13540 cat >> confdefs.h <<\EOF
13541 #define wxSIZE_T_IS_UINT 1
13542 EOF
13543
13544 else
13545 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
13546 echo "configure:13547: checking if size_t is unsigned long" >&5
13547 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
13548 echo $ac_n "(cached) $ac_c" 1>&6
13549 else
13550 cat > conftest.$ac_ext <<EOF
13551 #line 13552 "configure"
13552 #include "confdefs.h"
13553 #include <stddef.h>
13554 int main() {
13555
13556 return 0; }
13557
13558 struct Foo { void foo(size_t); void foo(unsigned long); };
13559
13560 int bar() {
13561
13562 ; return 0; }
13563 EOF
13564 if { (eval echo configure:13565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13565 rm -rf conftest*
13566 wx_cv_size_t_is_ulong=no
13567 else
13568 echo "configure: failed program was:" >&5
13569 cat conftest.$ac_ext >&5
13570 rm -rf conftest*
13571 wx_cv_size_t_is_ulong=yes
13572
13573 fi
13574 rm -f conftest*
13575
13576 fi
13577
13578 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
13579
13580 if test "$wx_cv_size_t_is_ulong" = "yes"; then
13581 cat >> confdefs.h <<\EOF
13582 #define wxSIZE_T_IS_ULONG 1
13583 EOF
13584
13585 fi
13586 fi
13587
13588 ac_ext=c
13589 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13590 ac_cpp='$CPP $CPPFLAGS'
13591 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13592 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13593 cross_compiling=$ac_cv_prog_cc_cross
13594
13595
13596
13597 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
13598 echo "configure:13599: checking for pw_gecos in struct passwd" >&5
13599 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
13600 echo $ac_n "(cached) $ac_c" 1>&6
13601 else
13602
13603 cat > conftest.$ac_ext <<EOF
13604 #line 13605 "configure"
13605 #include "confdefs.h"
13606 #include <pwd.h>
13607 int main() {
13608
13609 char *p;
13610 struct passwd *pw;
13611 p = pw->pw_gecos;
13612
13613 ; return 0; }
13614 EOF
13615 if { (eval echo configure:13616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13616 rm -rf conftest*
13617
13618 wx_cv_struct_pw_gecos=yes
13619
13620 else
13621 echo "configure: failed program was:" >&5
13622 cat conftest.$ac_ext >&5
13623 rm -rf conftest*
13624
13625 wx_cv_struct_pw_gecos=no
13626
13627
13628 fi
13629 rm -f conftest*
13630
13631
13632 fi
13633
13634 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
13635
13636 if test "$wx_cv_struct_pw_gecos" = "yes"; then
13637 cat >> confdefs.h <<\EOF
13638 #define HAVE_PW_GECOS 1
13639 EOF
13640
13641 fi
13642
13643
13644 echo $ac_n "checking for working const""... $ac_c" 1>&6
13645 echo "configure:13646: checking for working const" >&5
13646 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
13647 echo $ac_n "(cached) $ac_c" 1>&6
13648 else
13649 cat > conftest.$ac_ext <<EOF
13650 #line 13651 "configure"
13651 #include "confdefs.h"
13652
13653 int main() {
13654
13655 /* Ultrix mips cc rejects this. */
13656 typedef int charset[2]; const charset x = {0,0};
13657 /* SunOS 4.1.1 cc rejects this. */
13658 char const *const *ccp;
13659 char **p;
13660 /* NEC SVR4.0.2 mips cc rejects this. */
13661 struct point {int x, y;};
13662 static struct point const zero = {0,0};
13663 /* AIX XL C 1.02.0.0 rejects this.
13664 It does not let you subtract one const X* pointer from another in an arm
13665 of an if-expression whose if-part is not a constant expression */
13666 const char *g = "string";
13667 ccp = &g + (g ? g-g : 0);
13668 /* HPUX 7.0 cc rejects these. */
13669 ++ccp;
13670 p = (char**) ccp;
13671 ccp = (char const *const *) p;
13672 { /* SCO 3.2v4 cc rejects this. */
13673 char *t;
13674 char const *s = 0 ? (char *) 0 : (char const *) 0;
13675
13676 *t++ = 0;
13677 }
13678 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13679 int x[] = {25, 17};
13680 const int *foo = &x[0];
13681 ++foo;
13682 }
13683 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13684 typedef const int *iptr;
13685 iptr p = 0;
13686 ++p;
13687 }
13688 { /* AIX XL C 1.02.0.0 rejects this saying
13689 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13690 struct s { int j; const int *ap[3]; };
13691 struct s *b; b->j = 5;
13692 }
13693 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13694 const int foo = 10;
13695 }
13696
13697 ; return 0; }
13698 EOF
13699 if { (eval echo configure:13700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13700 rm -rf conftest*
13701 ac_cv_c_const=yes
13702 else
13703 echo "configure: failed program was:" >&5
13704 cat conftest.$ac_ext >&5
13705 rm -rf conftest*
13706 ac_cv_c_const=no
13707 fi
13708 rm -f conftest*
13709 fi
13710
13711 echo "$ac_t""$ac_cv_c_const" 1>&6
13712 if test $ac_cv_c_const = no; then
13713 cat >> confdefs.h <<\EOF
13714 #define const
13715 EOF
13716
13717 fi
13718
13719 echo $ac_n "checking for inline""... $ac_c" 1>&6
13720 echo "configure:13721: checking for inline" >&5
13721 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
13722 echo $ac_n "(cached) $ac_c" 1>&6
13723 else
13724 ac_cv_c_inline=no
13725 for ac_kw in inline __inline__ __inline; do
13726 cat > conftest.$ac_ext <<EOF
13727 #line 13728 "configure"
13728 #include "confdefs.h"
13729
13730 int main() {
13731 } int $ac_kw foo() {
13732 ; return 0; }
13733 EOF
13734 if { (eval echo configure:13735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13735 rm -rf conftest*
13736 ac_cv_c_inline=$ac_kw; break
13737 else
13738 echo "configure: failed program was:" >&5
13739 cat conftest.$ac_ext >&5
13740 fi
13741 rm -f conftest*
13742 done
13743
13744 fi
13745
13746 echo "$ac_t""$ac_cv_c_inline" 1>&6
13747 case "$ac_cv_c_inline" in
13748 inline | yes) ;;
13749 no) cat >> confdefs.h <<\EOF
13750 #define inline
13751 EOF
13752 ;;
13753 *) cat >> confdefs.h <<EOF
13754 #define inline $ac_cv_c_inline
13755 EOF
13756 ;;
13757 esac
13758
13759
13760 echo $ac_n "checking size of char""... $ac_c" 1>&6
13761 echo "configure:13762: checking size of char" >&5
13762 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
13763 echo $ac_n "(cached) $ac_c" 1>&6
13764 else
13765 if test "$cross_compiling" = yes; then
13766 ac_cv_sizeof_char=1
13767 else
13768 cat > conftest.$ac_ext <<EOF
13769 #line 13770 "configure"
13770 #include "confdefs.h"
13771 #include <stdio.h>
13772 main()
13773 {
13774 FILE *f=fopen("conftestval", "w");
13775 if (!f) exit(1);
13776 fprintf(f, "%d\n", sizeof(char));
13777 exit(0);
13778 }
13779 EOF
13780 if { (eval echo configure:13781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13781 then
13782 ac_cv_sizeof_char=`cat conftestval`
13783 else
13784 echo "configure: failed program was:" >&5
13785 cat conftest.$ac_ext >&5
13786 rm -fr conftest*
13787 ac_cv_sizeof_char=0
13788 fi
13789 rm -fr conftest*
13790 fi
13791
13792 fi
13793 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
13794 cat >> confdefs.h <<EOF
13795 #define SIZEOF_CHAR $ac_cv_sizeof_char
13796 EOF
13797
13798
13799 echo $ac_n "checking size of short""... $ac_c" 1>&6
13800 echo "configure:13801: checking size of short" >&5
13801 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
13802 echo $ac_n "(cached) $ac_c" 1>&6
13803 else
13804 if test "$cross_compiling" = yes; then
13805 ac_cv_sizeof_short=2
13806 else
13807 cat > conftest.$ac_ext <<EOF
13808 #line 13809 "configure"
13809 #include "confdefs.h"
13810 #include <stdio.h>
13811 main()
13812 {
13813 FILE *f=fopen("conftestval", "w");
13814 if (!f) exit(1);
13815 fprintf(f, "%d\n", sizeof(short));
13816 exit(0);
13817 }
13818 EOF
13819 if { (eval echo configure:13820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13820 then
13821 ac_cv_sizeof_short=`cat conftestval`
13822 else
13823 echo "configure: failed program was:" >&5
13824 cat conftest.$ac_ext >&5
13825 rm -fr conftest*
13826 ac_cv_sizeof_short=0
13827 fi
13828 rm -fr conftest*
13829 fi
13830
13831 fi
13832 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
13833 cat >> confdefs.h <<EOF
13834 #define SIZEOF_SHORT $ac_cv_sizeof_short
13835 EOF
13836
13837
13838 echo $ac_n "checking size of int *""... $ac_c" 1>&6
13839 echo "configure:13840: checking size of int *" >&5
13840 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
13841 echo $ac_n "(cached) $ac_c" 1>&6
13842 else
13843 if test "$cross_compiling" = yes; then
13844 ac_cv_sizeof_int_p=4
13845 else
13846 cat > conftest.$ac_ext <<EOF
13847 #line 13848 "configure"
13848 #include "confdefs.h"
13849 #include <stdio.h>
13850 main()
13851 {
13852 FILE *f=fopen("conftestval", "w");
13853 if (!f) exit(1);
13854 fprintf(f, "%d\n", sizeof(int *));
13855 exit(0);
13856 }
13857 EOF
13858 if { (eval echo configure:13859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13859 then
13860 ac_cv_sizeof_int_p=`cat conftestval`
13861 else
13862 echo "configure: failed program was:" >&5
13863 cat conftest.$ac_ext >&5
13864 rm -fr conftest*
13865 ac_cv_sizeof_int_p=0
13866 fi
13867 rm -fr conftest*
13868 fi
13869
13870 fi
13871 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
13872 cat >> confdefs.h <<EOF
13873 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
13874 EOF
13875
13876
13877 echo $ac_n "checking size of int""... $ac_c" 1>&6
13878 echo "configure:13879: checking size of int" >&5
13879 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
13880 echo $ac_n "(cached) $ac_c" 1>&6
13881 else
13882 if test "$cross_compiling" = yes; then
13883 ac_cv_sizeof_int=4
13884 else
13885 cat > conftest.$ac_ext <<EOF
13886 #line 13887 "configure"
13887 #include "confdefs.h"
13888 #include <stdio.h>
13889 main()
13890 {
13891 FILE *f=fopen("conftestval", "w");
13892 if (!f) exit(1);
13893 fprintf(f, "%d\n", sizeof(int));
13894 exit(0);
13895 }
13896 EOF
13897 if { (eval echo configure:13898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13898 then
13899 ac_cv_sizeof_int=`cat conftestval`
13900 else
13901 echo "configure: failed program was:" >&5
13902 cat conftest.$ac_ext >&5
13903 rm -fr conftest*
13904 ac_cv_sizeof_int=0
13905 fi
13906 rm -fr conftest*
13907 fi
13908
13909 fi
13910 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
13911 cat >> confdefs.h <<EOF
13912 #define SIZEOF_INT $ac_cv_sizeof_int
13913 EOF
13914
13915
13916 echo $ac_n "checking size of long""... $ac_c" 1>&6
13917 echo "configure:13918: checking size of long" >&5
13918 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
13919 echo $ac_n "(cached) $ac_c" 1>&6
13920 else
13921 if test "$cross_compiling" = yes; then
13922 ac_cv_sizeof_long=4
13923 else
13924 cat > conftest.$ac_ext <<EOF
13925 #line 13926 "configure"
13926 #include "confdefs.h"
13927 #include <stdio.h>
13928 main()
13929 {
13930 FILE *f=fopen("conftestval", "w");
13931 if (!f) exit(1);
13932 fprintf(f, "%d\n", sizeof(long));
13933 exit(0);
13934 }
13935 EOF
13936 if { (eval echo configure:13937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13937 then
13938 ac_cv_sizeof_long=`cat conftestval`
13939 else
13940 echo "configure: failed program was:" >&5
13941 cat conftest.$ac_ext >&5
13942 rm -fr conftest*
13943 ac_cv_sizeof_long=0
13944 fi
13945 rm -fr conftest*
13946 fi
13947
13948 fi
13949 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
13950 cat >> confdefs.h <<EOF
13951 #define SIZEOF_LONG $ac_cv_sizeof_long
13952 EOF
13953
13954
13955 echo $ac_n "checking size of long long""... $ac_c" 1>&6
13956 echo "configure:13957: checking size of long long" >&5
13957 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
13958 echo $ac_n "(cached) $ac_c" 1>&6
13959 else
13960 if test "$cross_compiling" = yes; then
13961 ac_cv_sizeof_long_long=0
13962 else
13963 cat > conftest.$ac_ext <<EOF
13964 #line 13965 "configure"
13965 #include "confdefs.h"
13966 #include <stdio.h>
13967 main()
13968 {
13969 FILE *f=fopen("conftestval", "w");
13970 if (!f) exit(1);
13971 fprintf(f, "%d\n", sizeof(long long));
13972 exit(0);
13973 }
13974 EOF
13975 if { (eval echo configure:13976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13976 then
13977 ac_cv_sizeof_long_long=`cat conftestval`
13978 else
13979 echo "configure: failed program was:" >&5
13980 cat conftest.$ac_ext >&5
13981 rm -fr conftest*
13982 ac_cv_sizeof_long_long=0
13983 fi
13984 rm -fr conftest*
13985 fi
13986
13987 fi
13988 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
13989 cat >> confdefs.h <<EOF
13990 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13991 EOF
13992
13993
13994
13995 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
13996 echo "configure:13997: checking size of wchar_t" >&5
13997 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
13998 echo $ac_n "(cached) $ac_c" 1>&6
13999 else
14000
14001 if test "$cross_compiling" = yes; then
14002 wx_cv_sizeof_wchar_t=4
14003
14004 else
14005 cat > conftest.$ac_ext <<EOF
14006 #line 14007 "configure"
14007 #include "confdefs.h"
14008
14009 #ifdef HAVE_WCHAR_H
14010 # ifdef __CYGWIN__
14011 # include <stddef.h>
14012 # endif
14013 # include <wchar.h>
14014 #endif
14015 #ifdef HAVE_STDLIB_H
14016 # include <stdlib.h>
14017 #endif
14018 #include <stdio.h>
14019 int main()
14020 {
14021 FILE *f=fopen("conftestval", "w");
14022 if (!f) exit(1);
14023 fprintf(f, "%i", sizeof(wchar_t));
14024 exit(0);
14025 }
14026
14027 EOF
14028 if { (eval echo configure:14029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14029 then
14030 wx_cv_sizeof_wchar_t=`cat conftestval`
14031 else
14032 echo "configure: failed program was:" >&5
14033 cat conftest.$ac_ext >&5
14034 rm -fr conftest*
14035 wx_cv_sizeof_wchar_t=0
14036 fi
14037 rm -fr conftest*
14038 fi
14039
14040
14041 fi
14042
14043 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
14044
14045 cat >> confdefs.h <<EOF
14046 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
14047 EOF
14048
14049
14050 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14051 echo "configure:14052: checking whether byte ordering is bigendian" >&5
14052 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
14053 echo $ac_n "(cached) $ac_c" 1>&6
14054 else
14055 ac_cv_c_bigendian=unknown
14056 # See if sys/param.h defines the BYTE_ORDER macro.
14057 cat > conftest.$ac_ext <<EOF
14058 #line 14059 "configure"
14059 #include "confdefs.h"
14060 #include <sys/types.h>
14061 #include <sys/param.h>
14062 int main() {
14063
14064 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14065 bogus endian macros
14066 #endif
14067 ; return 0; }
14068 EOF
14069 if { (eval echo configure:14070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14070 rm -rf conftest*
14071 # It does; now see whether it defined to BIG_ENDIAN or not.
14072 cat > conftest.$ac_ext <<EOF
14073 #line 14074 "configure"
14074 #include "confdefs.h"
14075 #include <sys/types.h>
14076 #include <sys/param.h>
14077 int main() {
14078
14079 #if BYTE_ORDER != BIG_ENDIAN
14080 not big endian
14081 #endif
14082 ; return 0; }
14083 EOF
14084 if { (eval echo configure:14085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14085 rm -rf conftest*
14086 ac_cv_c_bigendian=yes
14087 else
14088 echo "configure: failed program was:" >&5
14089 cat conftest.$ac_ext >&5
14090 rm -rf conftest*
14091 ac_cv_c_bigendian=no
14092 fi
14093 rm -f conftest*
14094 else
14095 echo "configure: failed program was:" >&5
14096 cat conftest.$ac_ext >&5
14097 fi
14098 rm -f conftest*
14099 if test $ac_cv_c_bigendian = unknown; then
14100 if test "$cross_compiling" = yes; then
14101 ac_cv_c_bigendian=unknown
14102 else
14103 cat > conftest.$ac_ext <<EOF
14104 #line 14105 "configure"
14105 #include "confdefs.h"
14106 main () {
14107 /* Are we little or big endian? From Harbison&Steele. */
14108 union
14109 {
14110 long l;
14111 char c[sizeof (long)];
14112 } u;
14113 u.l = 1;
14114 exit (u.c[sizeof (long) - 1] == 1);
14115 }
14116 EOF
14117 if { (eval echo configure:14118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14118 then
14119 ac_cv_c_bigendian=no
14120 else
14121 echo "configure: failed program was:" >&5
14122 cat conftest.$ac_ext >&5
14123 rm -fr conftest*
14124 ac_cv_c_bigendian=yes
14125 fi
14126 rm -fr conftest*
14127 fi
14128
14129 fi
14130 fi
14131
14132 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14133 if test $ac_cv_c_bigendian = unknown; then
14134 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
14135 fi
14136 if test $ac_cv_c_bigendian = yes; then
14137 cat >> confdefs.h <<\EOF
14138 #define WORDS_BIGENDIAN 1
14139 EOF
14140
14141 fi
14142
14143
14144 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
14145 echo "configure:14146: checking how to run the C++ preprocessor" >&5
14146 if test -z "$CXXCPP"; then
14147 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
14148 echo $ac_n "(cached) $ac_c" 1>&6
14149 else
14150 ac_ext=C
14151 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14152 ac_cpp='$CXXCPP $CPPFLAGS'
14153 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14154 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14155 cross_compiling=$ac_cv_prog_cxx_cross
14156 CXXCPP="${CXX-g++} -E"
14157 cat > conftest.$ac_ext <<EOF
14158 #line 14159 "configure"
14159 #include "confdefs.h"
14160 #include <stdlib.h>
14161 EOF
14162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14163 { (eval echo configure:14164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14165 if test -z "$ac_err"; then
14166 :
14167 else
14168 echo "$ac_err" >&5
14169 echo "configure: failed program was:" >&5
14170 cat conftest.$ac_ext >&5
14171 rm -rf conftest*
14172 CXXCPP=/lib/cpp
14173 fi
14174 rm -f conftest*
14175 ac_cv_prog_CXXCPP="$CXXCPP"
14176 ac_ext=C
14177 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14178 ac_cpp='$CXXCPP $CPPFLAGS'
14179 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14180 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14181 cross_compiling=$ac_cv_prog_cxx_cross
14182 fi
14183 fi
14184 CXXCPP="$ac_cv_prog_CXXCPP"
14185 echo "$ac_t""$CXXCPP" 1>&6
14186
14187
14188 if test "$cross_compiling" = "yes"; then
14189 cat >> confdefs.h <<\EOF
14190 #define wxUSE_IOSTREAMH 1
14191 EOF
14192
14193 else
14194
14195 ac_ext=C
14196 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14197 ac_cpp='$CXXCPP $CPPFLAGS'
14198 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14199 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14200 cross_compiling=$ac_cv_prog_cxx_cross
14201
14202
14203 for ac_hdr in iostream
14204 do
14205 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14206 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14207 echo "configure:14208: checking for $ac_hdr" >&5
14208 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14209 echo $ac_n "(cached) $ac_c" 1>&6
14210 else
14211 cat > conftest.$ac_ext <<EOF
14212 #line 14213 "configure"
14213 #include "confdefs.h"
14214 #include <$ac_hdr>
14215 EOF
14216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14217 { (eval echo configure:14218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14219 if test -z "$ac_err"; then
14220 rm -rf conftest*
14221 eval "ac_cv_header_$ac_safe=yes"
14222 else
14223 echo "$ac_err" >&5
14224 echo "configure: failed program was:" >&5
14225 cat conftest.$ac_ext >&5
14226 rm -rf conftest*
14227 eval "ac_cv_header_$ac_safe=no"
14228 fi
14229 rm -f conftest*
14230 fi
14231 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14232 echo "$ac_t""yes" 1>&6
14233 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14234 cat >> confdefs.h <<EOF
14235 #define $ac_tr_hdr 1
14236 EOF
14237
14238 else
14239 echo "$ac_t""no" 1>&6
14240 fi
14241 done
14242
14243
14244 if test "$ac_cv_header_iostream" = "yes" ; then
14245 :
14246 else
14247 cat >> confdefs.h <<\EOF
14248 #define wxUSE_IOSTREAMH 1
14249 EOF
14250
14251 fi
14252
14253 ac_ext=c
14254 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14255 ac_cpp='$CPP $CPPFLAGS'
14256 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14257 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14258 cross_compiling=$ac_cv_prog_cc_cross
14259
14260 fi
14261
14262
14263
14264 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
14265 echo "configure:14266: checking if C++ compiler supports bool" >&5
14266 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
14267 echo $ac_n "(cached) $ac_c" 1>&6
14268 else
14269
14270
14271 ac_ext=C
14272 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14273 ac_cpp='$CXXCPP $CPPFLAGS'
14274 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14275 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14276 cross_compiling=$ac_cv_prog_cxx_cross
14277
14278
14279 cat > conftest.$ac_ext <<EOF
14280 #line 14281 "configure"
14281 #include "confdefs.h"
14282
14283
14284 int main() {
14285
14286 bool b = true;
14287
14288 return 0;
14289
14290 ; return 0; }
14291 EOF
14292 if { (eval echo configure:14293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14293 rm -rf conftest*
14294
14295 wx_cv_cpp_bool=yes
14296
14297 else
14298 echo "configure: failed program was:" >&5
14299 cat conftest.$ac_ext >&5
14300 rm -rf conftest*
14301
14302 wx_cv_cpp_bool=no
14303
14304
14305 fi
14306 rm -f conftest*
14307
14308 ac_ext=c
14309 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14310 ac_cpp='$CPP $CPPFLAGS'
14311 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14312 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14313 cross_compiling=$ac_cv_prog_cc_cross
14314
14315
14316 fi
14317
14318 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
14319
14320 if test "$wx_cv_cpp_bool" = "yes"; then
14321 cat >> confdefs.h <<\EOF
14322 #define HAVE_BOOL 1
14323 EOF
14324
14325 fi
14326
14327
14328
14329 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
14330 echo "configure:14331: checking for wcslen in -lc" >&5
14331 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
14332 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14333 echo $ac_n "(cached) $ac_c" 1>&6
14334 else
14335 ac_save_LIBS="$LIBS"
14336 LIBS="-lc $LIBS"
14337 cat > conftest.$ac_ext <<EOF
14338 #line 14339 "configure"
14339 #include "confdefs.h"
14340 /* Override any gcc2 internal prototype to avoid an error. */
14341 /* We use char because int might match the return type of a gcc2
14342 builtin and then its argument prototype would still apply. */
14343 char wcslen();
14344
14345 int main() {
14346 wcslen()
14347 ; return 0; }
14348 EOF
14349 if { (eval echo configure:14350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14350 rm -rf conftest*
14351 eval "ac_cv_lib_$ac_lib_var=yes"
14352 else
14353 echo "configure: failed program was:" >&5
14354 cat conftest.$ac_ext >&5
14355 rm -rf conftest*
14356 eval "ac_cv_lib_$ac_lib_var=no"
14357 fi
14358 rm -f conftest*
14359 LIBS="$ac_save_LIBS"
14360
14361 fi
14362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14363 echo "$ac_t""yes" 1>&6
14364
14365 cat >> confdefs.h <<\EOF
14366 #define HAVE_WCSLEN 1
14367 EOF
14368
14369 WCHAR_LINK=
14370
14371 else
14372 echo "$ac_t""no" 1>&6
14373
14374 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
14375 echo "configure:14376: checking for wcslen in -lw" >&5
14376 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
14377 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14378 echo $ac_n "(cached) $ac_c" 1>&6
14379 else
14380 ac_save_LIBS="$LIBS"
14381 LIBS="-lw $LIBS"
14382 cat > conftest.$ac_ext <<EOF
14383 #line 14384 "configure"
14384 #include "confdefs.h"
14385 /* Override any gcc2 internal prototype to avoid an error. */
14386 /* We use char because int might match the return type of a gcc2
14387 builtin and then its argument prototype would still apply. */
14388 char wcslen();
14389
14390 int main() {
14391 wcslen()
14392 ; return 0; }
14393 EOF
14394 if { (eval echo configure:14395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14395 rm -rf conftest*
14396 eval "ac_cv_lib_$ac_lib_var=yes"
14397 else
14398 echo "configure: failed program was:" >&5
14399 cat conftest.$ac_ext >&5
14400 rm -rf conftest*
14401 eval "ac_cv_lib_$ac_lib_var=no"
14402 fi
14403 rm -f conftest*
14404 LIBS="$ac_save_LIBS"
14405
14406 fi
14407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14408 echo "$ac_t""yes" 1>&6
14409
14410 cat >> confdefs.h <<\EOF
14411 #define HAVE_WCSLEN 1
14412 EOF
14413
14414 WCHAR_LINK=" -lw"
14415
14416 else
14417 echo "$ac_t""no" 1>&6
14418
14419 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
14420 echo "configure:14421: checking for wcslen in -lmsvcrt" >&5
14421 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
14422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14423 echo $ac_n "(cached) $ac_c" 1>&6
14424 else
14425 ac_save_LIBS="$LIBS"
14426 LIBS="-lmsvcrt $LIBS"
14427 cat > conftest.$ac_ext <<EOF
14428 #line 14429 "configure"
14429 #include "confdefs.h"
14430 /* Override any gcc2 internal prototype to avoid an error. */
14431 /* We use char because int might match the return type of a gcc2
14432 builtin and then its argument prototype would still apply. */
14433 char wcslen();
14434
14435 int main() {
14436 wcslen()
14437 ; return 0; }
14438 EOF
14439 if { (eval echo configure:14440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14440 rm -rf conftest*
14441 eval "ac_cv_lib_$ac_lib_var=yes"
14442 else
14443 echo "configure: failed program was:" >&5
14444 cat conftest.$ac_ext >&5
14445 rm -rf conftest*
14446 eval "ac_cv_lib_$ac_lib_var=no"
14447 fi
14448 rm -f conftest*
14449 LIBS="$ac_save_LIBS"
14450
14451 fi
14452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14453 echo "$ac_t""yes" 1>&6
14454
14455 cat >> confdefs.h <<\EOF
14456 #define HAVE_WCSLEN 1
14457 EOF
14458
14459 WCHAR_LINK=
14460
14461 else
14462 echo "$ac_t""no" 1>&6
14463 fi
14464
14465
14466 fi
14467
14468
14469 fi
14470
14471
14472 for ac_func in wcsrtombs
14473 do
14474 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14475 echo "configure:14476: checking for $ac_func" >&5
14476 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14477 echo $ac_n "(cached) $ac_c" 1>&6
14478 else
14479 cat > conftest.$ac_ext <<EOF
14480 #line 14481 "configure"
14481 #include "confdefs.h"
14482 /* System header to define __stub macros and hopefully few prototypes,
14483 which can conflict with char $ac_func(); below. */
14484 #include <assert.h>
14485 /* Override any gcc2 internal prototype to avoid an error. */
14486 /* We use char because int might match the return type of a gcc2
14487 builtin and then its argument prototype would still apply. */
14488 char $ac_func();
14489
14490 int main() {
14491
14492 /* The GNU C library defines this for functions which it implements
14493 to always fail with ENOSYS. Some functions are actually named
14494 something starting with __ and the normal name is an alias. */
14495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14496 choke me
14497 #else
14498 $ac_func();
14499 #endif
14500
14501 ; return 0; }
14502 EOF
14503 if { (eval echo configure:14504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14504 rm -rf conftest*
14505 eval "ac_cv_func_$ac_func=yes"
14506 else
14507 echo "configure: failed program was:" >&5
14508 cat conftest.$ac_ext >&5
14509 rm -rf conftest*
14510 eval "ac_cv_func_$ac_func=no"
14511 fi
14512 rm -f conftest*
14513 fi
14514
14515 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14516 echo "$ac_t""yes" 1>&6
14517 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14518 cat >> confdefs.h <<EOF
14519 #define $ac_tr_func 1
14520 EOF
14521
14522 else
14523 echo "$ac_t""no" 1>&6
14524 fi
14525 done
14526
14527
14528 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
14529 echo "configure:14530: checking for vprintf" >&5
14530 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
14531 echo $ac_n "(cached) $ac_c" 1>&6
14532 else
14533 cat > conftest.$ac_ext <<EOF
14534 #line 14535 "configure"
14535 #include "confdefs.h"
14536 /* System header to define __stub macros and hopefully few prototypes,
14537 which can conflict with char vprintf(); below. */
14538 #include <assert.h>
14539 /* Override any gcc2 internal prototype to avoid an error. */
14540 /* We use char because int might match the return type of a gcc2
14541 builtin and then its argument prototype would still apply. */
14542 char vprintf();
14543
14544 int main() {
14545
14546 /* The GNU C library defines this for functions which it implements
14547 to always fail with ENOSYS. Some functions are actually named
14548 something starting with __ and the normal name is an alias. */
14549 #if defined (__stub_vprintf) || defined (__stub___vprintf)
14550 choke me
14551 #else
14552 vprintf();
14553 #endif
14554
14555 ; return 0; }
14556 EOF
14557 if { (eval echo configure:14558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14558 rm -rf conftest*
14559 eval "ac_cv_func_vprintf=yes"
14560 else
14561 echo "configure: failed program was:" >&5
14562 cat conftest.$ac_ext >&5
14563 rm -rf conftest*
14564 eval "ac_cv_func_vprintf=no"
14565 fi
14566 rm -f conftest*
14567 fi
14568
14569 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
14570 echo "$ac_t""yes" 1>&6
14571 cat >> confdefs.h <<\EOF
14572 #define HAVE_VPRINTF 1
14573 EOF
14574
14575 else
14576 echo "$ac_t""no" 1>&6
14577 fi
14578
14579 if test "$ac_cv_func_vprintf" != yes; then
14580 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
14581 echo "configure:14582: checking for _doprnt" >&5
14582 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
14583 echo $ac_n "(cached) $ac_c" 1>&6
14584 else
14585 cat > conftest.$ac_ext <<EOF
14586 #line 14587 "configure"
14587 #include "confdefs.h"
14588 /* System header to define __stub macros and hopefully few prototypes,
14589 which can conflict with char _doprnt(); below. */
14590 #include <assert.h>
14591 /* Override any gcc2 internal prototype to avoid an error. */
14592 /* We use char because int might match the return type of a gcc2
14593 builtin and then its argument prototype would still apply. */
14594 char _doprnt();
14595
14596 int main() {
14597
14598 /* The GNU C library defines this for functions which it implements
14599 to always fail with ENOSYS. Some functions are actually named
14600 something starting with __ and the normal name is an alias. */
14601 #if defined (__stub__doprnt) || defined (__stub____doprnt)
14602 choke me
14603 #else
14604 _doprnt();
14605 #endif
14606
14607 ; return 0; }
14608 EOF
14609 if { (eval echo configure:14610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14610 rm -rf conftest*
14611 eval "ac_cv_func__doprnt=yes"
14612 else
14613 echo "configure: failed program was:" >&5
14614 cat conftest.$ac_ext >&5
14615 rm -rf conftest*
14616 eval "ac_cv_func__doprnt=no"
14617 fi
14618 rm -f conftest*
14619 fi
14620
14621 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
14622 echo "$ac_t""yes" 1>&6
14623 cat >> confdefs.h <<\EOF
14624 #define HAVE_DOPRNT 1
14625 EOF
14626
14627 else
14628 echo "$ac_t""no" 1>&6
14629 fi
14630
14631 fi
14632
14633
14634
14635
14636
14637
14638 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
14639 echo "configure:14640: checking for vsnprintf" >&5
14640 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
14641 echo $ac_n "(cached) $ac_c" 1>&6
14642 else
14643
14644 cat > conftest.$ac_ext <<EOF
14645 #line 14646 "configure"
14646 #include "confdefs.h"
14647
14648 #include <stdio.h>
14649 #include <stdarg.h>
14650
14651 int main() {
14652
14653 int wx_test_vsnprintf(const char *, ...);
14654
14655 wx_test_vsnprintf("%s");
14656 return 0;
14657 }
14658
14659 int wx_test_vsnprintf(const char *fmt, ...)
14660 {
14661 char *s;
14662
14663 va_list argp;
14664 va_start(argp, fmt);
14665 vsnprintf(s, 42, fmt, argp);
14666 va_end(argp);
14667
14668 ; return 0; }
14669 EOF
14670 if { (eval echo configure:14671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14671 rm -rf conftest*
14672
14673 wx_cv_func_vsnprintf=yes
14674
14675 else
14676 echo "configure: failed program was:" >&5
14677 cat conftest.$ac_ext >&5
14678 rm -rf conftest*
14679
14680 cat > conftest.$ac_ext <<EOF
14681 #line 14682 "configure"
14682 #include "confdefs.h"
14683
14684 #include <stdio.h>
14685 #include <stdarg.h>
14686
14687 int main() {
14688
14689 int wx_test_vsnprintf(const char *, ...);
14690
14691 wx_test_vsnprintf("%s");
14692 return 0;
14693 }
14694
14695 int wx_test_vsnprintf(const char *fmt, ...)
14696 {
14697 char *s;
14698
14699 va_list argp;
14700 va_start(argp, fmt);
14701 _vsnprintf(s, 42, fmt, argp);
14702 va_end(argp);
14703
14704 ; return 0; }
14705 EOF
14706 if { (eval echo configure:14707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14707 rm -rf conftest*
14708
14709 wx_cv_func_vsnprintf=yes
14710
14711 else
14712 echo "configure: failed program was:" >&5
14713 cat conftest.$ac_ext >&5
14714 rm -rf conftest*
14715
14716 wx_cv_func_vsnprintf=no
14717
14718 fi
14719 rm -f conftest*
14720
14721 fi
14722 rm -f conftest*
14723
14724 fi
14725
14726 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
14727
14728 if test "$wx_cv_func_vsnprintf" = yes; then
14729 cat >> confdefs.h <<\EOF
14730 #define HAVE_VSNPRINTF 1
14731 EOF
14732
14733 else
14734 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
14735 fi
14736
14737 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
14738 echo "configure:14739: checking for vsscanf" >&5
14739 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
14740 echo $ac_n "(cached) $ac_c" 1>&6
14741 else
14742
14743 cat > conftest.$ac_ext <<EOF
14744 #line 14745 "configure"
14745 #include "confdefs.h"
14746
14747 #include <stdio.h>
14748 #include <stdarg.h>
14749
14750 int main() {
14751
14752 int wx_test_vsscanf(const char *, ...);
14753
14754 wx_test_vsscanf("%d");
14755 return 0;
14756 }
14757
14758 int wx_test_vsscanf(const char *fmt, ...)
14759 {
14760 va_list argp;
14761 va_start(argp, fmt);
14762 vsscanf("42", fmt, argp);
14763 va_end(argp);
14764
14765 ; return 0; }
14766 EOF
14767 if { (eval echo configure:14768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14768 rm -rf conftest*
14769
14770 wx_cv_func_vsscanf=yes
14771
14772 else
14773 echo "configure: failed program was:" >&5
14774 cat conftest.$ac_ext >&5
14775 rm -rf conftest*
14776
14777 wx_cv_func_vsscanf=no
14778
14779 fi
14780 rm -f conftest*
14781
14782 fi
14783
14784 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
14785
14786 if test "$wx_cv_func_vsscanf" = yes; then
14787 cat >> confdefs.h <<\EOF
14788 #define HAVE_VSSCANF 1
14789 EOF
14790
14791 fi
14792
14793 if test "$TOOLKIT" != "MSW"; then
14794
14795
14796
14797 ac_ext=C
14798 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14799 ac_cpp='$CXXCPP $CPPFLAGS'
14800 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14801 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14802 cross_compiling=$ac_cv_prog_cxx_cross
14803
14804 echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
14805 echo "configure:14806: checking if iconv() takes char**" >&5
14806 if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
14807 echo $ac_n "(cached) $ac_c" 1>&6
14808 else
14809
14810 cat > conftest.$ac_ext <<EOF
14811 #line 14812 "configure"
14812 #include "confdefs.h"
14813 #include <iconv.h>
14814 int main() {
14815
14816 char **inbuf, **outbuf;
14817 iconv_t cd;
14818 size_t insz, outsz;
14819 iconv(cd, inbuf, &insz, outbuf, &outsz);
14820
14821 ; return 0; }
14822 EOF
14823 if { (eval echo configure:14824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14824 rm -rf conftest*
14825 wx_cv_iconv_takes_char=yes
14826 else
14827 echo "configure: failed program was:" >&5
14828 cat conftest.$ac_ext >&5
14829 rm -rf conftest*
14830 wx_cv_iconv_takes_char=no
14831 fi
14832 rm -f conftest*
14833
14834 fi
14835
14836 echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
14837 ac_ext=c
14838 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14839 ac_cpp='$CPP $CPPFLAGS'
14840 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14841 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14842 cross_compiling=$ac_cv_prog_cc_cross
14843
14844 if test "$wx_cv_iconv_takes_char" = yes ; then
14845 cat >> confdefs.h <<\EOF
14846 #define WX_ICONV_TAKES_CHAR 1
14847 EOF
14848
14849 fi
14850
14851
14852 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
14853 for ac_func in sigaction
14854 do
14855 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14856 echo "configure:14857: checking for $ac_func" >&5
14857 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14858 echo $ac_n "(cached) $ac_c" 1>&6
14859 else
14860 cat > conftest.$ac_ext <<EOF
14861 #line 14862 "configure"
14862 #include "confdefs.h"
14863 /* System header to define __stub macros and hopefully few prototypes,
14864 which can conflict with char $ac_func(); below. */
14865 #include <assert.h>
14866 /* Override any gcc2 internal prototype to avoid an error. */
14867 /* We use char because int might match the return type of a gcc2
14868 builtin and then its argument prototype would still apply. */
14869 char $ac_func();
14870
14871 int main() {
14872
14873 /* The GNU C library defines this for functions which it implements
14874 to always fail with ENOSYS. Some functions are actually named
14875 something starting with __ and the normal name is an alias. */
14876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14877 choke me
14878 #else
14879 $ac_func();
14880 #endif
14881
14882 ; return 0; }
14883 EOF
14884 if { (eval echo configure:14885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14885 rm -rf conftest*
14886 eval "ac_cv_func_$ac_func=yes"
14887 else
14888 echo "configure: failed program was:" >&5
14889 cat conftest.$ac_ext >&5
14890 rm -rf conftest*
14891 eval "ac_cv_func_$ac_func=no"
14892 fi
14893 rm -f conftest*
14894 fi
14895
14896 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14897 echo "$ac_t""yes" 1>&6
14898 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14899 cat >> confdefs.h <<EOF
14900 #define $ac_tr_func 1
14901 EOF
14902
14903 else
14904 echo "$ac_t""no" 1>&6
14905 fi
14906 done
14907
14908
14909 if test "$ac_cv_func_sigaction" = "no"; then
14910 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
14911 wxUSE_ON_FATAL_EXCEPTION=no
14912 fi
14913
14914 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
14915
14916 ac_ext=C
14917 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14918 ac_cpp='$CXXCPP $CPPFLAGS'
14919 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14920 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14921 cross_compiling=$ac_cv_prog_cxx_cross
14922
14923
14924 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
14925 echo "configure:14926: checking for sa_handler type" >&5
14926 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
14927 echo $ac_n "(cached) $ac_c" 1>&6
14928 else
14929
14930 cat > conftest.$ac_ext <<EOF
14931 #line 14932 "configure"
14932 #include "confdefs.h"
14933 #include <signal.h>
14934 int main() {
14935
14936 extern void testSigHandler(int);
14937
14938 struct sigaction sa;
14939 sa.sa_handler = testSigHandler;
14940
14941 ; return 0; }
14942 EOF
14943 if { (eval echo configure:14944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14944 rm -rf conftest*
14945
14946 wx_cv_type_sa_handler=int
14947
14948 else
14949 echo "configure: failed program was:" >&5
14950 cat conftest.$ac_ext >&5
14951 rm -rf conftest*
14952
14953 wx_cv_type_sa_handler=void
14954
14955 fi
14956 rm -f conftest*
14957
14958 fi
14959
14960 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
14961
14962 ac_ext=c
14963 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14964 ac_cpp='$CPP $CPPFLAGS'
14965 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14966 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14967 cross_compiling=$ac_cv_prog_cc_cross
14968
14969
14970 cat >> confdefs.h <<EOF
14971 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
14972 EOF
14973
14974 fi
14975 fi
14976
14977 for ac_func in vfork
14978 do
14979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14980 echo "configure:14981: checking for $ac_func" >&5
14981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14982 echo $ac_n "(cached) $ac_c" 1>&6
14983 else
14984 cat > conftest.$ac_ext <<EOF
14985 #line 14986 "configure"
14986 #include "confdefs.h"
14987 /* System header to define __stub macros and hopefully few prototypes,
14988 which can conflict with char $ac_func(); below. */
14989 #include <assert.h>
14990 /* Override any gcc2 internal prototype to avoid an error. */
14991 /* We use char because int might match the return type of a gcc2
14992 builtin and then its argument prototype would still apply. */
14993 char $ac_func();
14994
14995 int main() {
14996
14997 /* The GNU C library defines this for functions which it implements
14998 to always fail with ENOSYS. Some functions are actually named
14999 something starting with __ and the normal name is an alias. */
15000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15001 choke me
15002 #else
15003 $ac_func();
15004 #endif
15005
15006 ; return 0; }
15007 EOF
15008 if { (eval echo configure:15009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15009 rm -rf conftest*
15010 eval "ac_cv_func_$ac_func=yes"
15011 else
15012 echo "configure: failed program was:" >&5
15013 cat conftest.$ac_ext >&5
15014 rm -rf conftest*
15015 eval "ac_cv_func_$ac_func=no"
15016 fi
15017 rm -f conftest*
15018 fi
15019
15020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15021 echo "$ac_t""yes" 1>&6
15022 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15023 cat >> confdefs.h <<EOF
15024 #define $ac_tr_func 1
15025 EOF
15026
15027 else
15028 echo "$ac_t""no" 1>&6
15029 fi
15030 done
15031
15032
15033 for ac_func in mkstemp mktemp
15034 do
15035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15036 echo "configure:15037: checking for $ac_func" >&5
15037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15038 echo $ac_n "(cached) $ac_c" 1>&6
15039 else
15040 cat > conftest.$ac_ext <<EOF
15041 #line 15042 "configure"
15042 #include "confdefs.h"
15043 /* System header to define __stub macros and hopefully few prototypes,
15044 which can conflict with char $ac_func(); below. */
15045 #include <assert.h>
15046 /* Override any gcc2 internal prototype to avoid an error. */
15047 /* We use char because int might match the return type of a gcc2
15048 builtin and then its argument prototype would still apply. */
15049 char $ac_func();
15050
15051 int main() {
15052
15053 /* The GNU C library defines this for functions which it implements
15054 to always fail with ENOSYS. Some functions are actually named
15055 something starting with __ and the normal name is an alias. */
15056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15057 choke me
15058 #else
15059 $ac_func();
15060 #endif
15061
15062 ; return 0; }
15063 EOF
15064 if { (eval echo configure:15065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15065 rm -rf conftest*
15066 eval "ac_cv_func_$ac_func=yes"
15067 else
15068 echo "configure: failed program was:" >&5
15069 cat conftest.$ac_ext >&5
15070 rm -rf conftest*
15071 eval "ac_cv_func_$ac_func=no"
15072 fi
15073 rm -f conftest*
15074 fi
15075
15076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15077 echo "$ac_t""yes" 1>&6
15078 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15079 cat >> confdefs.h <<EOF
15080 #define $ac_tr_func 1
15081 EOF
15082 break
15083 else
15084 echo "$ac_t""no" 1>&6
15085 fi
15086 done
15087
15088
15089 echo $ac_n "checking for statfs""... $ac_c" 1>&6
15090 echo "configure:15091: checking for statfs" >&5
15091 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
15092 echo $ac_n "(cached) $ac_c" 1>&6
15093 else
15094 cat > conftest.$ac_ext <<EOF
15095 #line 15096 "configure"
15096 #include "confdefs.h"
15097
15098 #if defined(__BSD__)
15099 #include <sys/param.h>
15100 #include <sys/mount.h>
15101 #else
15102 #include <sys/vfs.h>
15103 #endif
15104
15105 int main() {
15106
15107 long l;
15108 struct statfs fs;
15109 statfs("/", &fs);
15110 l = fs.f_bsize;
15111 l += fs.f_blocks;
15112 l += fs.f_bavail;
15113
15114 ; return 0; }
15115 EOF
15116 if { (eval echo configure:15117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15117 rm -rf conftest*
15118
15119 wx_cv_func_statfs=yes
15120
15121 else
15122 echo "configure: failed program was:" >&5
15123 cat conftest.$ac_ext >&5
15124 rm -rf conftest*
15125
15126 wx_cv_func_statfs=no
15127
15128
15129 fi
15130 rm -f conftest*
15131
15132 fi
15133
15134 echo "$ac_t""$wx_cv_func_statfs" 1>&6
15135
15136 if test "$wx_cv_func_statfs" = "yes"; then
15137 cat >> confdefs.h <<\EOF
15138 #define HAVE_STATFS 1
15139 EOF
15140
15141 else
15142 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
15143 echo "configure:15144: checking for statvfs" >&5
15144 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
15145 echo $ac_n "(cached) $ac_c" 1>&6
15146 else
15147 cat > conftest.$ac_ext <<EOF
15148 #line 15149 "configure"
15149 #include "confdefs.h"
15150
15151 #include <sys/statvfs.h>
15152
15153 int main() {
15154
15155 long l;
15156 struct statvfs fs;
15157 statvfs("/", &fs);
15158 l = fs.f_bsize;
15159 l += fs.f_blocks;
15160 l += fs.f_bavail;
15161
15162 ; return 0; }
15163 EOF
15164 if { (eval echo configure:15165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15165 rm -rf conftest*
15166
15167 wx_cv_func_statvfs=yes
15168
15169 else
15170 echo "configure: failed program was:" >&5
15171 cat conftest.$ac_ext >&5
15172 rm -rf conftest*
15173
15174 wx_cv_func_statvfs=no
15175
15176
15177 fi
15178 rm -f conftest*
15179
15180 fi
15181
15182 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
15183
15184 if test "$wx_cv_func_statvfs" = "yes"; then
15185 cat >> confdefs.h <<\EOF
15186 #define HAVE_STATVFS 1
15187 EOF
15188
15189 else
15190 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
15191 fi
15192 fi
15193
15194 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15195 for ac_func in fcntl flock
15196 do
15197 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15198 echo "configure:15199: checking for $ac_func" >&5
15199 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15200 echo $ac_n "(cached) $ac_c" 1>&6
15201 else
15202 cat > conftest.$ac_ext <<EOF
15203 #line 15204 "configure"
15204 #include "confdefs.h"
15205 /* System header to define __stub macros and hopefully few prototypes,
15206 which can conflict with char $ac_func(); below. */
15207 #include <assert.h>
15208 /* Override any gcc2 internal prototype to avoid an error. */
15209 /* We use char because int might match the return type of a gcc2
15210 builtin and then its argument prototype would still apply. */
15211 char $ac_func();
15212
15213 int main() {
15214
15215 /* The GNU C library defines this for functions which it implements
15216 to always fail with ENOSYS. Some functions are actually named
15217 something starting with __ and the normal name is an alias. */
15218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15219 choke me
15220 #else
15221 $ac_func();
15222 #endif
15223
15224 ; return 0; }
15225 EOF
15226 if { (eval echo configure:15227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15227 rm -rf conftest*
15228 eval "ac_cv_func_$ac_func=yes"
15229 else
15230 echo "configure: failed program was:" >&5
15231 cat conftest.$ac_ext >&5
15232 rm -rf conftest*
15233 eval "ac_cv_func_$ac_func=no"
15234 fi
15235 rm -f conftest*
15236 fi
15237
15238 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15239 echo "$ac_t""yes" 1>&6
15240 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15241 cat >> confdefs.h <<EOF
15242 #define $ac_tr_func 1
15243 EOF
15244 break
15245 else
15246 echo "$ac_t""no" 1>&6
15247 fi
15248 done
15249
15250
15251 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
15252 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
15253 wxUSE_SNGLINST_CHECKER=no
15254 fi
15255 fi
15256
15257 for ac_func in timegm
15258 do
15259 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15260 echo "configure:15261: checking for $ac_func" >&5
15261 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15262 echo $ac_n "(cached) $ac_c" 1>&6
15263 else
15264 cat > conftest.$ac_ext <<EOF
15265 #line 15266 "configure"
15266 #include "confdefs.h"
15267 /* System header to define __stub macros and hopefully few prototypes,
15268 which can conflict with char $ac_func(); below. */
15269 #include <assert.h>
15270 /* Override any gcc2 internal prototype to avoid an error. */
15271 /* We use char because int might match the return type of a gcc2
15272 builtin and then its argument prototype would still apply. */
15273 char $ac_func();
15274
15275 int main() {
15276
15277 /* The GNU C library defines this for functions which it implements
15278 to always fail with ENOSYS. Some functions are actually named
15279 something starting with __ and the normal name is an alias. */
15280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15281 choke me
15282 #else
15283 $ac_func();
15284 #endif
15285
15286 ; return 0; }
15287 EOF
15288 if { (eval echo configure:15289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15289 rm -rf conftest*
15290 eval "ac_cv_func_$ac_func=yes"
15291 else
15292 echo "configure: failed program was:" >&5
15293 cat conftest.$ac_ext >&5
15294 rm -rf conftest*
15295 eval "ac_cv_func_$ac_func=no"
15296 fi
15297 rm -f conftest*
15298 fi
15299
15300 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15301 echo "$ac_t""yes" 1>&6
15302 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15303 cat >> confdefs.h <<EOF
15304 #define $ac_tr_func 1
15305 EOF
15306
15307 else
15308 echo "$ac_t""no" 1>&6
15309 fi
15310 done
15311
15312
15313 for ac_func in putenv setenv
15314 do
15315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15316 echo "configure:15317: checking for $ac_func" >&5
15317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15318 echo $ac_n "(cached) $ac_c" 1>&6
15319 else
15320 cat > conftest.$ac_ext <<EOF
15321 #line 15322 "configure"
15322 #include "confdefs.h"
15323 /* System header to define __stub macros and hopefully few prototypes,
15324 which can conflict with char $ac_func(); below. */
15325 #include <assert.h>
15326 /* Override any gcc2 internal prototype to avoid an error. */
15327 /* We use char because int might match the return type of a gcc2
15328 builtin and then its argument prototype would still apply. */
15329 char $ac_func();
15330
15331 int main() {
15332
15333 /* The GNU C library defines this for functions which it implements
15334 to always fail with ENOSYS. Some functions are actually named
15335 something starting with __ and the normal name is an alias. */
15336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15337 choke me
15338 #else
15339 $ac_func();
15340 #endif
15341
15342 ; return 0; }
15343 EOF
15344 if { (eval echo configure:15345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15345 rm -rf conftest*
15346 eval "ac_cv_func_$ac_func=yes"
15347 else
15348 echo "configure: failed program was:" >&5
15349 cat conftest.$ac_ext >&5
15350 rm -rf conftest*
15351 eval "ac_cv_func_$ac_func=no"
15352 fi
15353 rm -f conftest*
15354 fi
15355
15356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15357 echo "$ac_t""yes" 1>&6
15358 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15359 cat >> confdefs.h <<EOF
15360 #define $ac_tr_func 1
15361 EOF
15362 break
15363 else
15364 echo "$ac_t""no" 1>&6
15365 fi
15366 done
15367
15368
15369 HAVE_SOME_SLEEP_FUNC=0
15370 if test "$USE_BEOS" = 1; then
15371 cat >> confdefs.h <<\EOF
15372 #define HAVE_SLEEP 1
15373 EOF
15374
15375 HAVE_SOME_SLEEP_FUNC=1
15376 fi
15377
15378 if test "$USE_DARWIN" = 1; then
15379 cat >> confdefs.h <<\EOF
15380 #define HAVE_USLEEP 1
15381 EOF
15382
15383 HAVE_SOME_SLEEP_FUNC=1
15384 fi
15385
15386 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
15387 POSIX4_LINK=
15388 for ac_func in nanosleep
15389 do
15390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15391 echo "configure:15392: checking for $ac_func" >&5
15392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15393 echo $ac_n "(cached) $ac_c" 1>&6
15394 else
15395 cat > conftest.$ac_ext <<EOF
15396 #line 15397 "configure"
15397 #include "confdefs.h"
15398 /* System header to define __stub macros and hopefully few prototypes,
15399 which can conflict with char $ac_func(); below. */
15400 #include <assert.h>
15401 /* Override any gcc2 internal prototype to avoid an error. */
15402 /* We use char because int might match the return type of a gcc2
15403 builtin and then its argument prototype would still apply. */
15404 char $ac_func();
15405
15406 int main() {
15407
15408 /* The GNU C library defines this for functions which it implements
15409 to always fail with ENOSYS. Some functions are actually named
15410 something starting with __ and the normal name is an alias. */
15411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15412 choke me
15413 #else
15414 $ac_func();
15415 #endif
15416
15417 ; return 0; }
15418 EOF
15419 if { (eval echo configure:15420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15420 rm -rf conftest*
15421 eval "ac_cv_func_$ac_func=yes"
15422 else
15423 echo "configure: failed program was:" >&5
15424 cat conftest.$ac_ext >&5
15425 rm -rf conftest*
15426 eval "ac_cv_func_$ac_func=no"
15427 fi
15428 rm -f conftest*
15429 fi
15430
15431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15432 echo "$ac_t""yes" 1>&6
15433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15434 cat >> confdefs.h <<EOF
15435 #define $ac_tr_func 1
15436 EOF
15437 cat >> confdefs.h <<\EOF
15438 #define HAVE_NANOSLEEP 1
15439 EOF
15440
15441 else
15442 echo "$ac_t""no" 1>&6
15443 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
15444 echo "configure:15445: checking for nanosleep in -lposix4" >&5
15445 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
15446 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15447 echo $ac_n "(cached) $ac_c" 1>&6
15448 else
15449 ac_save_LIBS="$LIBS"
15450 LIBS="-lposix4 $LIBS"
15451 cat > conftest.$ac_ext <<EOF
15452 #line 15453 "configure"
15453 #include "confdefs.h"
15454 /* Override any gcc2 internal prototype to avoid an error. */
15455 /* We use char because int might match the return type of a gcc2
15456 builtin and then its argument prototype would still apply. */
15457 char nanosleep();
15458
15459 int main() {
15460 nanosleep()
15461 ; return 0; }
15462 EOF
15463 if { (eval echo configure:15464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15464 rm -rf conftest*
15465 eval "ac_cv_lib_$ac_lib_var=yes"
15466 else
15467 echo "configure: failed program was:" >&5
15468 cat conftest.$ac_ext >&5
15469 rm -rf conftest*
15470 eval "ac_cv_lib_$ac_lib_var=no"
15471 fi
15472 rm -f conftest*
15473 LIBS="$ac_save_LIBS"
15474
15475 fi
15476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15477 echo "$ac_t""yes" 1>&6
15478
15479 cat >> confdefs.h <<\EOF
15480 #define HAVE_NANOSLEEP 1
15481 EOF
15482
15483 POSIX4_LINK=" -lposix4"
15484
15485 else
15486 echo "$ac_t""no" 1>&6
15487
15488 for ac_func in usleep
15489 do
15490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15491 echo "configure:15492: checking for $ac_func" >&5
15492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15493 echo $ac_n "(cached) $ac_c" 1>&6
15494 else
15495 cat > conftest.$ac_ext <<EOF
15496 #line 15497 "configure"
15497 #include "confdefs.h"
15498 /* System header to define __stub macros and hopefully few prototypes,
15499 which can conflict with char $ac_func(); below. */
15500 #include <assert.h>
15501 /* Override any gcc2 internal prototype to avoid an error. */
15502 /* We use char because int might match the return type of a gcc2
15503 builtin and then its argument prototype would still apply. */
15504 char $ac_func();
15505
15506 int main() {
15507
15508 /* The GNU C library defines this for functions which it implements
15509 to always fail with ENOSYS. Some functions are actually named
15510 something starting with __ and the normal name is an alias. */
15511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15512 choke me
15513 #else
15514 $ac_func();
15515 #endif
15516
15517 ; return 0; }
15518 EOF
15519 if { (eval echo configure:15520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15520 rm -rf conftest*
15521 eval "ac_cv_func_$ac_func=yes"
15522 else
15523 echo "configure: failed program was:" >&5
15524 cat conftest.$ac_ext >&5
15525 rm -rf conftest*
15526 eval "ac_cv_func_$ac_func=no"
15527 fi
15528 rm -f conftest*
15529 fi
15530
15531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15532 echo "$ac_t""yes" 1>&6
15533 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15534 cat >> confdefs.h <<EOF
15535 #define $ac_tr_func 1
15536 EOF
15537 cat >> confdefs.h <<\EOF
15538 #define HAVE_USLEEP 1
15539 EOF
15540
15541 else
15542 echo "$ac_t""no" 1>&6
15543 echo "configure: warning: wxSleep() function will not work" 1>&2
15544
15545 fi
15546 done
15547
15548
15549
15550 fi
15551
15552
15553
15554 fi
15555 done
15556
15557 fi
15558
15559 for ac_func in uname gethostname
15560 do
15561 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15562 echo "configure:15563: checking for $ac_func" >&5
15563 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15564 echo $ac_n "(cached) $ac_c" 1>&6
15565 else
15566 cat > conftest.$ac_ext <<EOF
15567 #line 15568 "configure"
15568 #include "confdefs.h"
15569 /* System header to define __stub macros and hopefully few prototypes,
15570 which can conflict with char $ac_func(); below. */
15571 #include <assert.h>
15572 /* Override any gcc2 internal prototype to avoid an error. */
15573 /* We use char because int might match the return type of a gcc2
15574 builtin and then its argument prototype would still apply. */
15575 char $ac_func();
15576
15577 int main() {
15578
15579 /* The GNU C library defines this for functions which it implements
15580 to always fail with ENOSYS. Some functions are actually named
15581 something starting with __ and the normal name is an alias. */
15582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15583 choke me
15584 #else
15585 $ac_func();
15586 #endif
15587
15588 ; return 0; }
15589 EOF
15590 if { (eval echo configure:15591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15591 rm -rf conftest*
15592 eval "ac_cv_func_$ac_func=yes"
15593 else
15594 echo "configure: failed program was:" >&5
15595 cat conftest.$ac_ext >&5
15596 rm -rf conftest*
15597 eval "ac_cv_func_$ac_func=no"
15598 fi
15599 rm -f conftest*
15600 fi
15601
15602 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15603 echo "$ac_t""yes" 1>&6
15604 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15605 cat >> confdefs.h <<EOF
15606 #define $ac_tr_func 1
15607 EOF
15608 break
15609 else
15610 echo "$ac_t""no" 1>&6
15611 fi
15612 done
15613
15614
15615
15616 ac_ext=C
15617 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15618 ac_cpp='$CXXCPP $CPPFLAGS'
15619 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15620 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15621 cross_compiling=$ac_cv_prog_cxx_cross
15622
15623
15624 for ac_func in strtok_r
15625 do
15626 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15627 echo "configure:15628: checking for $ac_func" >&5
15628 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15629 echo $ac_n "(cached) $ac_c" 1>&6
15630 else
15631 cat > conftest.$ac_ext <<EOF
15632 #line 15633 "configure"
15633 #include "confdefs.h"
15634 /* System header to define __stub macros and hopefully few prototypes,
15635 which can conflict with char $ac_func(); below. */
15636 #include <assert.h>
15637 /* Override any gcc2 internal prototype to avoid an error. */
15638 #ifdef __cplusplus
15639 extern "C"
15640 #endif
15641 /* We use char because int might match the return type of a gcc2
15642 builtin and then its argument prototype would still apply. */
15643 char $ac_func();
15644
15645 int main() {
15646
15647 /* The GNU C library defines this for functions which it implements
15648 to always fail with ENOSYS. Some functions are actually named
15649 something starting with __ and the normal name is an alias. */
15650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15651 choke me
15652 #else
15653 $ac_func();
15654 #endif
15655
15656 ; return 0; }
15657 EOF
15658 if { (eval echo configure:15659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15659 rm -rf conftest*
15660 eval "ac_cv_func_$ac_func=yes"
15661 else
15662 echo "configure: failed program was:" >&5
15663 cat conftest.$ac_ext >&5
15664 rm -rf conftest*
15665 eval "ac_cv_func_$ac_func=no"
15666 fi
15667 rm -f conftest*
15668 fi
15669
15670 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15671 echo "$ac_t""yes" 1>&6
15672 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15673 cat >> confdefs.h <<EOF
15674 #define $ac_tr_func 1
15675 EOF
15676
15677 else
15678 echo "$ac_t""no" 1>&6
15679 fi
15680 done
15681
15682
15683 ac_ext=c
15684 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15685 ac_cpp='$CPP $CPPFLAGS'
15686 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15687 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15688 cross_compiling=$ac_cv_prog_cc_cross
15689
15690
15691 INET_LINK=
15692 for ac_func in inet_addr
15693 do
15694 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15695 echo "configure:15696: checking for $ac_func" >&5
15696 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15697 echo $ac_n "(cached) $ac_c" 1>&6
15698 else
15699 cat > conftest.$ac_ext <<EOF
15700 #line 15701 "configure"
15701 #include "confdefs.h"
15702 /* System header to define __stub macros and hopefully few prototypes,
15703 which can conflict with char $ac_func(); below. */
15704 #include <assert.h>
15705 /* Override any gcc2 internal prototype to avoid an error. */
15706 /* We use char because int might match the return type of a gcc2
15707 builtin and then its argument prototype would still apply. */
15708 char $ac_func();
15709
15710 int main() {
15711
15712 /* The GNU C library defines this for functions which it implements
15713 to always fail with ENOSYS. Some functions are actually named
15714 something starting with __ and the normal name is an alias. */
15715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15716 choke me
15717 #else
15718 $ac_func();
15719 #endif
15720
15721 ; return 0; }
15722 EOF
15723 if { (eval echo configure:15724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15724 rm -rf conftest*
15725 eval "ac_cv_func_$ac_func=yes"
15726 else
15727 echo "configure: failed program was:" >&5
15728 cat conftest.$ac_ext >&5
15729 rm -rf conftest*
15730 eval "ac_cv_func_$ac_func=no"
15731 fi
15732 rm -f conftest*
15733 fi
15734
15735 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15736 echo "$ac_t""yes" 1>&6
15737 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15738 cat >> confdefs.h <<EOF
15739 #define $ac_tr_func 1
15740 EOF
15741 cat >> confdefs.h <<\EOF
15742 #define HAVE_INET_ADDR 1
15743 EOF
15744
15745 else
15746 echo "$ac_t""no" 1>&6
15747 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
15748 echo "configure:15749: checking for inet_addr in -lnsl" >&5
15749 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
15750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15751 echo $ac_n "(cached) $ac_c" 1>&6
15752 else
15753 ac_save_LIBS="$LIBS"
15754 LIBS="-lnsl $LIBS"
15755 cat > conftest.$ac_ext <<EOF
15756 #line 15757 "configure"
15757 #include "confdefs.h"
15758 /* Override any gcc2 internal prototype to avoid an error. */
15759 /* We use char because int might match the return type of a gcc2
15760 builtin and then its argument prototype would still apply. */
15761 char inet_addr();
15762
15763 int main() {
15764 inet_addr()
15765 ; return 0; }
15766 EOF
15767 if { (eval echo configure:15768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15768 rm -rf conftest*
15769 eval "ac_cv_lib_$ac_lib_var=yes"
15770 else
15771 echo "configure: failed program was:" >&5
15772 cat conftest.$ac_ext >&5
15773 rm -rf conftest*
15774 eval "ac_cv_lib_$ac_lib_var=no"
15775 fi
15776 rm -f conftest*
15777 LIBS="$ac_save_LIBS"
15778
15779 fi
15780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15781 echo "$ac_t""yes" 1>&6
15782 INET_LINK="nsl"
15783 else
15784 echo "$ac_t""no" 1>&6
15785 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
15786 echo "configure:15787: checking for inet_addr in -lresolv" >&5
15787 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
15788 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15789 echo $ac_n "(cached) $ac_c" 1>&6
15790 else
15791 ac_save_LIBS="$LIBS"
15792 LIBS="-lresolv $LIBS"
15793 cat > conftest.$ac_ext <<EOF
15794 #line 15795 "configure"
15795 #include "confdefs.h"
15796 /* Override any gcc2 internal prototype to avoid an error. */
15797 /* We use char because int might match the return type of a gcc2
15798 builtin and then its argument prototype would still apply. */
15799 char inet_addr();
15800
15801 int main() {
15802 inet_addr()
15803 ; return 0; }
15804 EOF
15805 if { (eval echo configure:15806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15806 rm -rf conftest*
15807 eval "ac_cv_lib_$ac_lib_var=yes"
15808 else
15809 echo "configure: failed program was:" >&5
15810 cat conftest.$ac_ext >&5
15811 rm -rf conftest*
15812 eval "ac_cv_lib_$ac_lib_var=no"
15813 fi
15814 rm -f conftest*
15815 LIBS="$ac_save_LIBS"
15816
15817 fi
15818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15819 echo "$ac_t""yes" 1>&6
15820 INET_LINK="resolv"
15821
15822 else
15823 echo "$ac_t""no" 1>&6
15824 fi
15825
15826
15827 fi
15828
15829
15830
15831 fi
15832 done
15833
15834
15835 for ac_func in inet_aton
15836 do
15837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15838 echo "configure:15839: checking for $ac_func" >&5
15839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15840 echo $ac_n "(cached) $ac_c" 1>&6
15841 else
15842 cat > conftest.$ac_ext <<EOF
15843 #line 15844 "configure"
15844 #include "confdefs.h"
15845 /* System header to define __stub macros and hopefully few prototypes,
15846 which can conflict with char $ac_func(); below. */
15847 #include <assert.h>
15848 /* Override any gcc2 internal prototype to avoid an error. */
15849 /* We use char because int might match the return type of a gcc2
15850 builtin and then its argument prototype would still apply. */
15851 char $ac_func();
15852
15853 int main() {
15854
15855 /* The GNU C library defines this for functions which it implements
15856 to always fail with ENOSYS. Some functions are actually named
15857 something starting with __ and the normal name is an alias. */
15858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15859 choke me
15860 #else
15861 $ac_func();
15862 #endif
15863
15864 ; return 0; }
15865 EOF
15866 if { (eval echo configure:15867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15867 rm -rf conftest*
15868 eval "ac_cv_func_$ac_func=yes"
15869 else
15870 echo "configure: failed program was:" >&5
15871 cat conftest.$ac_ext >&5
15872 rm -rf conftest*
15873 eval "ac_cv_func_$ac_func=no"
15874 fi
15875 rm -f conftest*
15876 fi
15877
15878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15879 echo "$ac_t""yes" 1>&6
15880 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15881 cat >> confdefs.h <<EOF
15882 #define $ac_tr_func 1
15883 EOF
15884 cat >> confdefs.h <<\EOF
15885 #define HAVE_INET_ATON 1
15886 EOF
15887
15888 else
15889 echo "$ac_t""no" 1>&6
15890 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
15891 echo "configure:15892: checking for inet_aton in -l$INET_LINK" >&5
15892 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
15893 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15894 echo $ac_n "(cached) $ac_c" 1>&6
15895 else
15896 ac_save_LIBS="$LIBS"
15897 LIBS="-l$INET_LINK $LIBS"
15898 cat > conftest.$ac_ext <<EOF
15899 #line 15900 "configure"
15900 #include "confdefs.h"
15901 /* Override any gcc2 internal prototype to avoid an error. */
15902 /* We use char because int might match the return type of a gcc2
15903 builtin and then its argument prototype would still apply. */
15904 char inet_aton();
15905
15906 int main() {
15907 inet_aton()
15908 ; return 0; }
15909 EOF
15910 if { (eval echo configure:15911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15911 rm -rf conftest*
15912 eval "ac_cv_lib_$ac_lib_var=yes"
15913 else
15914 echo "configure: failed program was:" >&5
15915 cat conftest.$ac_ext >&5
15916 rm -rf conftest*
15917 eval "ac_cv_lib_$ac_lib_var=no"
15918 fi
15919 rm -f conftest*
15920 LIBS="$ac_save_LIBS"
15921
15922 fi
15923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15924 echo "$ac_t""yes" 1>&6
15925 cat >> confdefs.h <<\EOF
15926 #define HAVE_INET_ATON 1
15927 EOF
15928
15929 else
15930 echo "$ac_t""no" 1>&6
15931 fi
15932
15933
15934 fi
15935 done
15936
15937
15938 if test "x$INET_LINK" != "x"; then
15939 cat >> confdefs.h <<\EOF
15940 #define HAVE_INET_ADDR 1
15941 EOF
15942
15943 INET_LINK=" -l$INET_LINK"
15944 fi
15945
15946 fi
15947
15948
15949 cat > confcache <<\EOF
15950 # This file is a shell script that caches the results of configure
15951 # tests run on this system so they can be shared between configure
15952 # scripts and configure runs. It is not useful on other systems.
15953 # If it contains results you don't want to keep, you may remove or edit it.
15954 #
15955 # By default, configure uses ./config.cache as the cache file,
15956 # creating it if it does not exist already. You can give configure
15957 # the --cache-file=FILE option to use a different cache file; that is
15958 # what configure does when it calls configure scripts in
15959 # subdirectories, so they share the cache.
15960 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15961 # config.status only pays attention to the cache file if you give it the
15962 # --recheck option to rerun configure.
15963 #
15964 EOF
15965 # The following way of writing the cache mishandles newlines in values,
15966 # but we know of no workaround that is simple, portable, and efficient.
15967 # So, don't put newlines in cache variables' values.
15968 # Ultrix sh set writes to stderr and can't be redirected directly,
15969 # and sets the high bit in the cache file unless we assign to the vars.
15970 (set) 2>&1 |
15971 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15972 *ac_space=\ *)
15973 # `set' does not quote correctly, so add quotes (double-quote substitution
15974 # turns \\\\ into \\, and sed turns \\ into \).
15975 sed -n \
15976 -e "s/'/'\\\\''/g" \
15977 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15978 ;;
15979 *)
15980 # `set' quotes correctly as required by POSIX, so do not add quotes.
15981 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15982 ;;
15983 esac >> confcache
15984 if cmp -s $cache_file confcache; then
15985 :
15986 else
15987 if test -w $cache_file; then
15988 echo "updating cache $cache_file"
15989 cat confcache > $cache_file
15990 else
15991 echo "not updating unwritable cache $cache_file"
15992 fi
15993 fi
15994 rm -f confcache
15995
15996
15997
15998 if test "$TOOLKIT" != "MSW"; then
15999
16000
16001 THREADS_LINK=
16002 THREADS_OBJ=
16003 CODE_GEN_FLAGS=
16004 CODE_GEN_FLAGS_CXX=
16005
16006 if test "$wxUSE_THREADS" = "yes" ; then
16007 if test "$wxUSE_WINE" = 1 ; then
16008 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
16009 wxUSE_THREADS="no"
16010 elif test "$USE_BEOS" = 1; then
16011 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
16012 wxUSE_THREADS="no"
16013 fi
16014 fi
16015
16016 if test "$wxUSE_THREADS" = "yes" ; then
16017
16018 if test "$USE_AIX" = 1; then
16019 THREADS_LIB=pthreads
16020 else
16021 THREADS_LIB=pthread
16022 fi
16023
16024 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
16025 echo "configure:16026: checking for pthread_create in -l$THREADS_LIB" >&5
16026 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
16027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16028 echo $ac_n "(cached) $ac_c" 1>&6
16029 else
16030 ac_save_LIBS="$LIBS"
16031 LIBS="-l$THREADS_LIB $LIBS"
16032 cat > conftest.$ac_ext <<EOF
16033 #line 16034 "configure"
16034 #include "confdefs.h"
16035 /* Override any gcc2 internal prototype to avoid an error. */
16036 /* We use char because int might match the return type of a gcc2
16037 builtin and then its argument prototype would still apply. */
16038 char pthread_create();
16039
16040 int main() {
16041 pthread_create()
16042 ; return 0; }
16043 EOF
16044 if { (eval echo configure:16045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16045 rm -rf conftest*
16046 eval "ac_cv_lib_$ac_lib_var=yes"
16047 else
16048 echo "configure: failed program was:" >&5
16049 cat conftest.$ac_ext >&5
16050 rm -rf conftest*
16051 eval "ac_cv_lib_$ac_lib_var=no"
16052 fi
16053 rm -f conftest*
16054 LIBS="$ac_save_LIBS"
16055
16056 fi
16057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16058 echo "$ac_t""yes" 1>&6
16059
16060 THREADS_OBJ="threadpsx.lo"
16061 THREADS_LINK=$THREADS_LIB
16062
16063 else
16064 echo "$ac_t""no" 1>&6
16065
16066 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
16067 echo "configure:16068: checking for pthread_create in -lc_r" >&5
16068 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
16069 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16070 echo $ac_n "(cached) $ac_c" 1>&6
16071 else
16072 ac_save_LIBS="$LIBS"
16073 LIBS="-lc_r $LIBS"
16074 cat > conftest.$ac_ext <<EOF
16075 #line 16076 "configure"
16076 #include "confdefs.h"
16077 /* Override any gcc2 internal prototype to avoid an error. */
16078 /* We use char because int might match the return type of a gcc2
16079 builtin and then its argument prototype would still apply. */
16080 char pthread_create();
16081
16082 int main() {
16083 pthread_create()
16084 ; return 0; }
16085 EOF
16086 if { (eval echo configure:16087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16087 rm -rf conftest*
16088 eval "ac_cv_lib_$ac_lib_var=yes"
16089 else
16090 echo "configure: failed program was:" >&5
16091 cat conftest.$ac_ext >&5
16092 rm -rf conftest*
16093 eval "ac_cv_lib_$ac_lib_var=no"
16094 fi
16095 rm -f conftest*
16096 LIBS="$ac_save_LIBS"
16097
16098 fi
16099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16100 echo "$ac_t""yes" 1>&6
16101
16102 THREADS_OBJ="threadpsx.lo"
16103 THREADS_LINK="c_r"
16104
16105 else
16106 echo "$ac_t""no" 1>&6
16107
16108 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
16109 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
16110 echo "configure:16111: checking for sys/prctl.h" >&5
16111 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16112 echo $ac_n "(cached) $ac_c" 1>&6
16113 else
16114 cat > conftest.$ac_ext <<EOF
16115 #line 16116 "configure"
16116 #include "confdefs.h"
16117 #include <sys/prctl.h>
16118 EOF
16119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16120 { (eval echo configure:16121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16122 if test -z "$ac_err"; then
16123 rm -rf conftest*
16124 eval "ac_cv_header_$ac_safe=yes"
16125 else
16126 echo "$ac_err" >&5
16127 echo "configure: failed program was:" >&5
16128 cat conftest.$ac_ext >&5
16129 rm -rf conftest*
16130 eval "ac_cv_header_$ac_safe=no"
16131 fi
16132 rm -f conftest*
16133 fi
16134 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16135 echo "$ac_t""yes" 1>&6
16136
16137 THREADS_OBJ="threadsgi.lo"
16138
16139 else
16140 echo "$ac_t""no" 1>&6
16141 fi
16142
16143
16144 fi
16145
16146
16147 fi
16148
16149
16150 if test -z "$THREADS_OBJ" ; then
16151 wxUSE_THREADS=no
16152 echo "configure: warning: No thread support on this system... disabled" 1>&2
16153 fi
16154 fi
16155
16156 if test "$wxUSE_THREADS" = "yes" ; then
16157 for ac_func in thr_setconcurrency
16158 do
16159 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16160 echo "configure:16161: checking for $ac_func" >&5
16161 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16162 echo $ac_n "(cached) $ac_c" 1>&6
16163 else
16164 cat > conftest.$ac_ext <<EOF
16165 #line 16166 "configure"
16166 #include "confdefs.h"
16167 /* System header to define __stub macros and hopefully few prototypes,
16168 which can conflict with char $ac_func(); below. */
16169 #include <assert.h>
16170 /* Override any gcc2 internal prototype to avoid an error. */
16171 /* We use char because int might match the return type of a gcc2
16172 builtin and then its argument prototype would still apply. */
16173 char $ac_func();
16174
16175 int main() {
16176
16177 /* The GNU C library defines this for functions which it implements
16178 to always fail with ENOSYS. Some functions are actually named
16179 something starting with __ and the normal name is an alias. */
16180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16181 choke me
16182 #else
16183 $ac_func();
16184 #endif
16185
16186 ; return 0; }
16187 EOF
16188 if { (eval echo configure:16189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16189 rm -rf conftest*
16190 eval "ac_cv_func_$ac_func=yes"
16191 else
16192 echo "configure: failed program was:" >&5
16193 cat conftest.$ac_ext >&5
16194 rm -rf conftest*
16195 eval "ac_cv_func_$ac_func=no"
16196 fi
16197 rm -f conftest*
16198 fi
16199
16200 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16201 echo "$ac_t""yes" 1>&6
16202 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16203 cat >> confdefs.h <<EOF
16204 #define $ac_tr_func 1
16205 EOF
16206
16207 else
16208 echo "$ac_t""no" 1>&6
16209 fi
16210 done
16211
16212
16213
16214 for ac_hdr in sched.h
16215 do
16216 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16217 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16218 echo "configure:16219: checking for $ac_hdr" >&5
16219 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16220 echo $ac_n "(cached) $ac_c" 1>&6
16221 else
16222 cat > conftest.$ac_ext <<EOF
16223 #line 16224 "configure"
16224 #include "confdefs.h"
16225 #include <$ac_hdr>
16226 EOF
16227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16228 { (eval echo configure:16229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16230 if test -z "$ac_err"; then
16231 rm -rf conftest*
16232 eval "ac_cv_header_$ac_safe=yes"
16233 else
16234 echo "$ac_err" >&5
16235 echo "configure: failed program was:" >&5
16236 cat conftest.$ac_ext >&5
16237 rm -rf conftest*
16238 eval "ac_cv_header_$ac_safe=no"
16239 fi
16240 rm -f conftest*
16241 fi
16242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16243 echo "$ac_t""yes" 1>&6
16244 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16245 cat >> confdefs.h <<EOF
16246 #define $ac_tr_hdr 1
16247 EOF
16248
16249 else
16250 echo "$ac_t""no" 1>&6
16251 fi
16252 done
16253
16254
16255 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
16256 echo "configure:16257: checking for sched_yield in -l$THREADS_LINK" >&5
16257 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
16258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16259 echo $ac_n "(cached) $ac_c" 1>&6
16260 else
16261 ac_save_LIBS="$LIBS"
16262 LIBS="-l$THREADS_LINK $LIBS"
16263 cat > conftest.$ac_ext <<EOF
16264 #line 16265 "configure"
16265 #include "confdefs.h"
16266 /* Override any gcc2 internal prototype to avoid an error. */
16267 /* We use char because int might match the return type of a gcc2
16268 builtin and then its argument prototype would still apply. */
16269 char sched_yield();
16270
16271 int main() {
16272 sched_yield()
16273 ; return 0; }
16274 EOF
16275 if { (eval echo configure:16276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16276 rm -rf conftest*
16277 eval "ac_cv_lib_$ac_lib_var=yes"
16278 else
16279 echo "configure: failed program was:" >&5
16280 cat conftest.$ac_ext >&5
16281 rm -rf conftest*
16282 eval "ac_cv_lib_$ac_lib_var=no"
16283 fi
16284 rm -f conftest*
16285 LIBS="$ac_save_LIBS"
16286
16287 fi
16288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16289 echo "$ac_t""yes" 1>&6
16290 cat >> confdefs.h <<\EOF
16291 #define HAVE_SCHED_YIELD 1
16292 EOF
16293
16294 else
16295 echo "$ac_t""no" 1>&6
16296 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
16297 echo "configure:16298: checking for sched_yield in -lposix4" >&5
16298 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
16299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16300 echo $ac_n "(cached) $ac_c" 1>&6
16301 else
16302 ac_save_LIBS="$LIBS"
16303 LIBS="-lposix4 $LIBS"
16304 cat > conftest.$ac_ext <<EOF
16305 #line 16306 "configure"
16306 #include "confdefs.h"
16307 /* Override any gcc2 internal prototype to avoid an error. */
16308 /* We use char because int might match the return type of a gcc2
16309 builtin and then its argument prototype would still apply. */
16310 char sched_yield();
16311
16312 int main() {
16313 sched_yield()
16314 ; return 0; }
16315 EOF
16316 if { (eval echo configure:16317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16317 rm -rf conftest*
16318 eval "ac_cv_lib_$ac_lib_var=yes"
16319 else
16320 echo "configure: failed program was:" >&5
16321 cat conftest.$ac_ext >&5
16322 rm -rf conftest*
16323 eval "ac_cv_lib_$ac_lib_var=no"
16324 fi
16325 rm -f conftest*
16326 LIBS="$ac_save_LIBS"
16327
16328 fi
16329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16330 echo "$ac_t""yes" 1>&6
16331 cat >> confdefs.h <<\EOF
16332 #define HAVE_SCHED_YIELD 1
16333 EOF
16334 POSIX4_LINK=" -lposix4"
16335 else
16336 echo "$ac_t""no" 1>&6
16337 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
16338
16339 fi
16340
16341
16342 fi
16343
16344
16345 HAVE_PRIOR_FUNCS=0
16346 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
16347 echo "configure:16348: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
16348 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
16349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16350 echo $ac_n "(cached) $ac_c" 1>&6
16351 else
16352 ac_save_LIBS="$LIBS"
16353 LIBS="-l$THREADS_LINK $LIBS"
16354 cat > conftest.$ac_ext <<EOF
16355 #line 16356 "configure"
16356 #include "confdefs.h"
16357 /* Override any gcc2 internal prototype to avoid an error. */
16358 /* We use char because int might match the return type of a gcc2
16359 builtin and then its argument prototype would still apply. */
16360 char pthread_attr_getschedpolicy();
16361
16362 int main() {
16363 pthread_attr_getschedpolicy()
16364 ; return 0; }
16365 EOF
16366 if { (eval echo configure:16367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16367 rm -rf conftest*
16368 eval "ac_cv_lib_$ac_lib_var=yes"
16369 else
16370 echo "configure: failed program was:" >&5
16371 cat conftest.$ac_ext >&5
16372 rm -rf conftest*
16373 eval "ac_cv_lib_$ac_lib_var=no"
16374 fi
16375 rm -f conftest*
16376 LIBS="$ac_save_LIBS"
16377
16378 fi
16379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16380 echo "$ac_t""yes" 1>&6
16381 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
16382 echo "configure:16383: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
16383 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
16384 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16385 echo $ac_n "(cached) $ac_c" 1>&6
16386 else
16387 ac_save_LIBS="$LIBS"
16388 LIBS="-l$THREADS_LINK $LIBS"
16389 cat > conftest.$ac_ext <<EOF
16390 #line 16391 "configure"
16391 #include "confdefs.h"
16392 /* Override any gcc2 internal prototype to avoid an error. */
16393 /* We use char because int might match the return type of a gcc2
16394 builtin and then its argument prototype would still apply. */
16395 char pthread_attr_setschedparam();
16396
16397 int main() {
16398 pthread_attr_setschedparam()
16399 ; return 0; }
16400 EOF
16401 if { (eval echo configure:16402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16402 rm -rf conftest*
16403 eval "ac_cv_lib_$ac_lib_var=yes"
16404 else
16405 echo "configure: failed program was:" >&5
16406 cat conftest.$ac_ext >&5
16407 rm -rf conftest*
16408 eval "ac_cv_lib_$ac_lib_var=no"
16409 fi
16410 rm -f conftest*
16411 LIBS="$ac_save_LIBS"
16412
16413 fi
16414 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16415 echo "$ac_t""yes" 1>&6
16416 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
16417 echo "configure:16418: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
16418 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
16419 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16420 echo $ac_n "(cached) $ac_c" 1>&6
16421 else
16422 ac_save_LIBS="$LIBS"
16423 LIBS="-l$THREADS_LINK $LIBS"
16424 cat > conftest.$ac_ext <<EOF
16425 #line 16426 "configure"
16426 #include "confdefs.h"
16427 /* Override any gcc2 internal prototype to avoid an error. */
16428 /* We use char because int might match the return type of a gcc2
16429 builtin and then its argument prototype would still apply. */
16430 char sched_get_priority_max();
16431
16432 int main() {
16433 sched_get_priority_max()
16434 ; return 0; }
16435 EOF
16436 if { (eval echo configure:16437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16437 rm -rf conftest*
16438 eval "ac_cv_lib_$ac_lib_var=yes"
16439 else
16440 echo "configure: failed program was:" >&5
16441 cat conftest.$ac_ext >&5
16442 rm -rf conftest*
16443 eval "ac_cv_lib_$ac_lib_var=no"
16444 fi
16445 rm -f conftest*
16446 LIBS="$ac_save_LIBS"
16447
16448 fi
16449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16450 echo "$ac_t""yes" 1>&6
16451 HAVE_PRIOR_FUNCS=1
16452 else
16453 echo "$ac_t""no" 1>&6
16454 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
16455 echo "configure:16456: checking for sched_get_priority_max in -lposix4" >&5
16456 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
16457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16458 echo $ac_n "(cached) $ac_c" 1>&6
16459 else
16460 ac_save_LIBS="$LIBS"
16461 LIBS="-lposix4 $LIBS"
16462 cat > conftest.$ac_ext <<EOF
16463 #line 16464 "configure"
16464 #include "confdefs.h"
16465 /* Override any gcc2 internal prototype to avoid an error. */
16466 /* We use char because int might match the return type of a gcc2
16467 builtin and then its argument prototype would still apply. */
16468 char sched_get_priority_max();
16469
16470 int main() {
16471 sched_get_priority_max()
16472 ; return 0; }
16473 EOF
16474 if { (eval echo configure:16475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16475 rm -rf conftest*
16476 eval "ac_cv_lib_$ac_lib_var=yes"
16477 else
16478 echo "configure: failed program was:" >&5
16479 cat conftest.$ac_ext >&5
16480 rm -rf conftest*
16481 eval "ac_cv_lib_$ac_lib_var=no"
16482 fi
16483 rm -f conftest*
16484 LIBS="$ac_save_LIBS"
16485
16486 fi
16487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16488 echo "$ac_t""yes" 1>&6
16489
16490 HAVE_PRIOR_FUNCS=1
16491 POSIX4_LINK=" -lposix4"
16492
16493 else
16494 echo "$ac_t""no" 1>&6
16495 fi
16496
16497
16498 fi
16499
16500
16501 else
16502 echo "$ac_t""no" 1>&6
16503 fi
16504
16505
16506 else
16507 echo "$ac_t""no" 1>&6
16508 fi
16509
16510
16511 if test "$HAVE_PRIOR_FUNCS" = 1; then
16512 cat >> confdefs.h <<\EOF
16513 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
16514 EOF
16515
16516 else
16517 echo "configure: warning: Setting thread priority will not work" 1>&2
16518 fi
16519
16520 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
16521 echo "configure:16522: checking for pthread_cancel in -l$THREADS_LINK" >&5
16522 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
16523 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16524 echo $ac_n "(cached) $ac_c" 1>&6
16525 else
16526 ac_save_LIBS="$LIBS"
16527 LIBS="-l$THREADS_LINK $LIBS"
16528 cat > conftest.$ac_ext <<EOF
16529 #line 16530 "configure"
16530 #include "confdefs.h"
16531 /* Override any gcc2 internal prototype to avoid an error. */
16532 /* We use char because int might match the return type of a gcc2
16533 builtin and then its argument prototype would still apply. */
16534 char pthread_cancel();
16535
16536 int main() {
16537 pthread_cancel()
16538 ; return 0; }
16539 EOF
16540 if { (eval echo configure:16541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16541 rm -rf conftest*
16542 eval "ac_cv_lib_$ac_lib_var=yes"
16543 else
16544 echo "configure: failed program was:" >&5
16545 cat conftest.$ac_ext >&5
16546 rm -rf conftest*
16547 eval "ac_cv_lib_$ac_lib_var=no"
16548 fi
16549 rm -f conftest*
16550 LIBS="$ac_save_LIBS"
16551
16552 fi
16553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16554 echo "$ac_t""yes" 1>&6
16555 cat >> confdefs.h <<\EOF
16556 #define HAVE_PTHREAD_CANCEL 1
16557 EOF
16558
16559 else
16560 echo "$ac_t""no" 1>&6
16561 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
16562 fi
16563
16564
16565 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
16566 echo "configure:16567: checking for pthread_cleanup_push/pop" >&5
16567 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
16568 echo $ac_n "(cached) $ac_c" 1>&6
16569 else
16570
16571 cat > conftest.$ac_ext <<EOF
16572 #line 16573 "configure"
16573 #include "confdefs.h"
16574 #include <pthread.h>
16575 int main() {
16576
16577 pthread_cleanup_push(NULL, NULL);
16578 pthread_cleanup_pop(0);
16579
16580 ; return 0; }
16581 EOF
16582 if { (eval echo configure:16583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16583 rm -rf conftest*
16584
16585 wx_cv_func_pthread_cleanup_push=yes
16586
16587 else
16588 echo "configure: failed program was:" >&5
16589 cat conftest.$ac_ext >&5
16590 rm -rf conftest*
16591
16592 wx_cv_func_pthread_cleanup_push=no
16593
16594 fi
16595 rm -f conftest*
16596
16597 fi
16598
16599 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
16600
16601 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
16602 cat >> confdefs.h <<\EOF
16603 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
16604 EOF
16605
16606 fi
16607
16608
16609 if test "x$wx_lib_glibc21" = "xyes"; then
16610 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
16611 fi
16612
16613 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
16614 echo "configure:16615: checking for pthread_mutexattr_t" >&5
16615 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
16616 echo $ac_n "(cached) $ac_c" 1>&6
16617 else
16618
16619 cat > conftest.$ac_ext <<EOF
16620 #line 16621 "configure"
16621 #include "confdefs.h"
16622 #include <pthread.h>
16623 int main() {
16624
16625 pthread_mutexattr_t attr;
16626 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
16627
16628 ; return 0; }
16629 EOF
16630 if { (eval echo configure:16631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16631 rm -rf conftest*
16632
16633 wx_cv_type_pthread_mutexattr_t=yes
16634
16635 else
16636 echo "configure: failed program was:" >&5
16637 cat conftest.$ac_ext >&5
16638 rm -rf conftest*
16639
16640 wx_cv_type_pthread_mutexattr_t=no
16641
16642
16643 fi
16644 rm -f conftest*
16645
16646 fi
16647
16648 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
16649
16650 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
16651 cat >> confdefs.h <<\EOF
16652 #define HAVE_PTHREAD_MUTEXATTR_T 1
16653 EOF
16654
16655 else
16656 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
16657 echo "configure:16658: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
16658 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
16659 echo $ac_n "(cached) $ac_c" 1>&6
16660 else
16661
16662 cat > conftest.$ac_ext <<EOF
16663 #line 16664 "configure"
16664 #include "confdefs.h"
16665 #include <pthread.h>
16666 int main() {
16667
16668 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
16669
16670 ; return 0; }
16671 EOF
16672 if { (eval echo configure:16673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16673 rm -rf conftest*
16674
16675 wx_cv_type_pthread_rec_mutex_init=yes
16676
16677 else
16678 echo "configure: failed program was:" >&5
16679 cat conftest.$ac_ext >&5
16680 rm -rf conftest*
16681
16682 wx_cv_type_pthread_rec_mutex_init=no
16683
16684
16685 fi
16686 rm -f conftest*
16687
16688 fi
16689
16690 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
16691 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
16692 cat >> confdefs.h <<\EOF
16693 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
16694 EOF
16695
16696 else
16697 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
16698 fi
16699 fi
16700
16701 THREADS_LINK=" -l$THREADS_LINK"
16702
16703 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
16704 CPPFLAGS="$CFLAGS -mt"
16705 CXXFLAGS="$CXXFLAGS -mt"
16706 LDFLAGS="$LDFLAGS -mt"
16707 fi
16708 fi
16709
16710 fi
16711
16712 if test "$wxUSE_THREADS" = "yes"; then
16713 cat >> confdefs.h <<\EOF
16714 #define wxUSE_THREADS 1
16715 EOF
16716
16717
16718 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG"
16719
16720 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
16721 else
16722 if test "$ac_cv_func_strtok_r" = "yes"; then
16723 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
16724 echo "configure:16725: checking if -D_REENTRANT is needed" >&5
16725 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
16726 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
16727 echo "$ac_t""yes" 1>&6
16728 else
16729 echo "$ac_t""no" 1>&6
16730 fi
16731 fi
16732 fi
16733
16734 if test "$WXGTK20" = 1 ; then
16735 cat >> confdefs.h <<EOF
16736 #define __WXGTK20__ $WXGTK20
16737 EOF
16738
16739 WXGTK12=1
16740 fi
16741
16742 if test "$WXGTK12" = 1 ; then
16743 cat >> confdefs.h <<EOF
16744 #define __WXGTK12__ $WXGTK12
16745 EOF
16746
16747 fi
16748
16749 if test "$WXGTK127" = 1 ; then
16750 cat >> confdefs.h <<EOF
16751 #define __WXGTK127__ $WXGTK127
16752 EOF
16753
16754 fi
16755
16756 WXDEBUG=
16757
16758 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
16759 WXDEBUG="-g"
16760 wxUSE_OPTIMISE=no
16761 fi
16762
16763 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
16764 wxUSE_DEBUG_INFO=yes
16765 WXDEBUG="-ggdb"
16766 fi
16767
16768 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
16769 cat >> confdefs.h <<\EOF
16770 #define WXDEBUG 1
16771 EOF
16772
16773 WXDEBUG_DEFINE="-D__WXDEBUG__"
16774 else
16775 if test "$wxUSE_GTK" = 1 ; then
16776 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
16777 fi
16778 fi
16779
16780 if test "$wxUSE_MEM_TRACING" = "yes" ; then
16781 cat >> confdefs.h <<\EOF
16782 #define wxUSE_MEMORY_TRACING 1
16783 EOF
16784
16785 cat >> confdefs.h <<\EOF
16786 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
16787 EOF
16788
16789 cat >> confdefs.h <<\EOF
16790 #define wxUSE_DEBUG_NEW_ALWAYS 1
16791 EOF
16792
16793 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
16794 fi
16795
16796 if test "$wxUSE_DMALLOC" = "yes" ; then
16797 DMALLOC_LIBS="-ldmalloc"
16798 fi
16799
16800 PROFILE=
16801 if test "$wxUSE_PROFILE" = "yes" ; then
16802 PROFILE=" -pg"
16803 fi
16804
16805 if test "$GCC" = "yes" ; then
16806 if test "$wxUSE_NO_RTTI" = "yes" ; then
16807 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
16808 fi
16809 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
16810 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
16811 fi
16812 if test "$wxUSE_PERMISSIVE" = "yes" ; then
16813 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
16814 fi
16815 if test "$USE_WIN32" = 1 ; then
16816 # I'm not even really sure what this was ever added to solve,
16817 # but someone added it for mingw native builds, so I guess
16818 # they had a reason, right??
16819 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
16820 fi
16821 fi
16822
16823
16824 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
16825 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
16826 if test "$wxUSE_OPTIMISE" = "no" ; then
16827 OPTIMISE=
16828 else
16829 if test "$GCC" = yes ; then
16830 OPTIMISE="-O2"
16831 case "${host}" in
16832 i586-*-*|i686-*-* )
16833 OPTIMISE="${OPTIMISE} "
16834 ;;
16835 esac
16836 else
16837 OPTIMISE="-O"
16838 fi
16839 fi
16840
16841 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
16842 cat >> confdefs.h <<\EOF
16843 #define WXWIN_COMPATIBILITY_2 1
16844 EOF
16845
16846
16847 WXWIN_COMPATIBILITY_2_2="yes"
16848 fi
16849
16850 if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
16851 cat >> confdefs.h <<\EOF
16852 #define WXWIN_COMPATIBILITY_2_2 1
16853 EOF
16854
16855 fi
16856
16857
16858 if test "$wxUSE_GUI" = "yes"; then
16859 cat >> confdefs.h <<\EOF
16860 #define wxUSE_GUI 1
16861 EOF
16862
16863
16864 else
16865 cat >> confdefs.h <<\EOF
16866 #define wxUSE_NOGUI 1
16867 EOF
16868
16869 fi
16870
16871
16872 if test "$wxUSE_UNIX" = "yes"; then
16873 cat >> confdefs.h <<\EOF
16874 #define wxUSE_UNIX 1
16875 EOF
16876
16877 fi
16878
16879
16880 if test "$wxUSE_APPLE_IEEE" = "yes"; then
16881 cat >> confdefs.h <<\EOF
16882 #define wxUSE_APPLE_IEEE 1
16883 EOF
16884
16885 fi
16886
16887 if test "$wxUSE_TIMER" = "yes"; then
16888 cat >> confdefs.h <<\EOF
16889 #define wxUSE_TIMER 1
16890 EOF
16891
16892 fi
16893
16894 if test "$wxUSE_WAVE" = "yes"; then
16895 cat >> confdefs.h <<\EOF
16896 #define wxUSE_WAVE 1
16897 EOF
16898
16899 fi
16900
16901 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
16902 cat >> confdefs.h <<\EOF
16903 #define wxUSE_CMDLINE_PARSER 1
16904 EOF
16905
16906 fi
16907
16908 if test "$wxUSE_STOPWATCH" = "yes"; then
16909 cat >> confdefs.h <<\EOF
16910 #define wxUSE_STOPWATCH 1
16911 EOF
16912
16913 fi
16914
16915 if test "$wxUSE_DATETIME" = "yes"; then
16916 cat >> confdefs.h <<\EOF
16917 #define wxUSE_DATETIME 1
16918 EOF
16919
16920 fi
16921
16922 if test "$wxUSE_TIMEDATE" = "yes"; then
16923 cat >> confdefs.h <<\EOF
16924 #define wxUSE_TIMEDATE 1
16925 EOF
16926
16927 fi
16928
16929 if test "$wxUSE_FILE" = "yes"; then
16930 cat >> confdefs.h <<\EOF
16931 #define wxUSE_FILE 1
16932 EOF
16933
16934 fi
16935
16936 if test "$wxUSE_FFILE" = "yes"; then
16937 cat >> confdefs.h <<\EOF
16938 #define wxUSE_FFILE 1
16939 EOF
16940
16941 fi
16942
16943 if test "$wxUSE_FILESYSTEM" = "yes"; then
16944 cat >> confdefs.h <<\EOF
16945 #define wxUSE_FILESYSTEM 1
16946 EOF
16947
16948 fi
16949
16950 if test "$wxUSE_FS_INET" = "yes"; then
16951 cat >> confdefs.h <<\EOF
16952 #define wxUSE_FS_INET 1
16953 EOF
16954
16955 fi
16956
16957 if test "$wxUSE_FS_ZIP" = "yes"; then
16958 cat >> confdefs.h <<\EOF
16959 #define wxUSE_FS_ZIP 1
16960 EOF
16961
16962 fi
16963
16964 if test "$wxUSE_ZIPSTREAM" = "yes"; then
16965 cat >> confdefs.h <<\EOF
16966 #define wxUSE_ZIPSTREAM 1
16967 EOF
16968
16969 fi
16970
16971 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16972 cat >> confdefs.h <<\EOF
16973 #define wxUSE_ON_FATAL_EXCEPTION 1
16974 EOF
16975
16976 fi
16977
16978 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16979 cat >> confdefs.h <<\EOF
16980 #define wxUSE_SNGLINST_CHECKER 1
16981 EOF
16982
16983 fi
16984
16985 if test "$wxUSE_BUSYINFO" = "yes"; then
16986 cat >> confdefs.h <<\EOF
16987 #define wxUSE_BUSYINFO 1
16988 EOF
16989
16990 fi
16991
16992 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
16993 cat >> confdefs.h <<\EOF
16994 #define wxUSE_STD_IOSTREAM 1
16995 EOF
16996
16997 fi
16998
16999 if test "$wxUSE_TEXTBUFFER" = "yes"; then
17000 cat >> confdefs.h <<\EOF
17001 #define wxUSE_TEXTBUFFER 1
17002 EOF
17003
17004 fi
17005
17006 if test "$wxUSE_TEXTFILE" = "yes"; then
17007 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
17008 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
17009 else
17010 cat >> confdefs.h <<\EOF
17011 #define wxUSE_TEXTFILE 1
17012 EOF
17013
17014 fi
17015 fi
17016
17017 if test "$wxUSE_CONFIG" = "yes" ; then
17018 if test "$wxUSE_TEXTFILE" != "yes"; then
17019 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
17020 else
17021 cat >> confdefs.h <<\EOF
17022 #define wxUSE_CONFIG 1
17023 EOF
17024
17025 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
17026 fi
17027 fi
17028
17029 if test "$wxUSE_INTL" = "yes" ; then
17030 if test "$wxUSE_FILE" != "yes"; then
17031 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
17032 else
17033 cat >> confdefs.h <<\EOF
17034 #define wxUSE_INTL 1
17035 EOF
17036
17037 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
17038 GUIDIST="$GUIDIST INTL_DIST"
17039 fi
17040 fi
17041
17042 if test "$wxUSE_LOG" = "yes"; then
17043 cat >> confdefs.h <<\EOF
17044 #define wxUSE_LOG 1
17045 EOF
17046
17047
17048 if test "$wxUSE_LOGGUI" = "yes"; then
17049 cat >> confdefs.h <<\EOF
17050 #define wxUSE_LOGGUI 1
17051 EOF
17052
17053 fi
17054
17055 if test "$wxUSE_LOGWINDOW" = "yes"; then
17056 cat >> confdefs.h <<\EOF
17057 #define wxUSE_LOGWINDOW 1
17058 EOF
17059
17060 fi
17061
17062 if test "$wxUSE_LOGDIALOG" = "yes"; then
17063 cat >> confdefs.h <<\EOF
17064 #define wxUSE_LOG_DIALOG 1
17065 EOF
17066
17067 fi
17068 fi
17069
17070 if test "$wxUSE_LONGLONG" = "yes"; then
17071 cat >> confdefs.h <<\EOF
17072 #define wxUSE_LONGLONG 1
17073 EOF
17074
17075 fi
17076
17077 if test "$wxUSE_GEOMETRY" = "yes"; then
17078 cat >> confdefs.h <<\EOF
17079 #define wxUSE_GEOMETRY 1
17080 EOF
17081
17082 fi
17083
17084 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
17085 cat >> confdefs.h <<\EOF
17086 #define wxUSE_DIALUP_MANAGER 1
17087 EOF
17088
17089 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
17090 fi
17091
17092 if test "$wxUSE_STREAMS" = "yes" ; then
17093 cat >> confdefs.h <<\EOF
17094 #define wxUSE_STREAMS 1
17095 EOF
17096
17097 fi
17098
17099
17100 if test "$wxUSE_DATETIME" = "yes"; then
17101 for ac_func in strptime
17102 do
17103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17104 echo "configure:17105: checking for $ac_func" >&5
17105 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17106 echo $ac_n "(cached) $ac_c" 1>&6
17107 else
17108 cat > conftest.$ac_ext <<EOF
17109 #line 17110 "configure"
17110 #include "confdefs.h"
17111 /* System header to define __stub macros and hopefully few prototypes,
17112 which can conflict with char $ac_func(); below. */
17113 #include <assert.h>
17114 /* Override any gcc2 internal prototype to avoid an error. */
17115 /* We use char because int might match the return type of a gcc2
17116 builtin and then its argument prototype would still apply. */
17117 char $ac_func();
17118
17119 int main() {
17120
17121 /* The GNU C library defines this for functions which it implements
17122 to always fail with ENOSYS. Some functions are actually named
17123 something starting with __ and the normal name is an alias. */
17124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17125 choke me
17126 #else
17127 $ac_func();
17128 #endif
17129
17130 ; return 0; }
17131 EOF
17132 if { (eval echo configure:17133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17133 rm -rf conftest*
17134 eval "ac_cv_func_$ac_func=yes"
17135 else
17136 echo "configure: failed program was:" >&5
17137 cat conftest.$ac_ext >&5
17138 rm -rf conftest*
17139 eval "ac_cv_func_$ac_func=no"
17140 fi
17141 rm -f conftest*
17142 fi
17143
17144 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17145 echo "$ac_t""yes" 1>&6
17146 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17147 cat >> confdefs.h <<EOF
17148 #define $ac_tr_func 1
17149 EOF
17150
17151 else
17152 echo "$ac_t""no" 1>&6
17153 fi
17154 done
17155
17156
17157 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
17158 echo "configure:17159: checking for timezone variable in <time.h>" >&5
17159 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
17160 echo $ac_n "(cached) $ac_c" 1>&6
17161 else
17162
17163 cat > conftest.$ac_ext <<EOF
17164 #line 17165 "configure"
17165 #include "confdefs.h"
17166
17167 #include <time.h>
17168
17169 int main() {
17170
17171 int tz;
17172 tz = timezone;
17173
17174 ; return 0; }
17175 EOF
17176 if { (eval echo configure:17177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17177 rm -rf conftest*
17178
17179 wx_cv_var_timezone=timezone
17180
17181 else
17182 echo "configure: failed program was:" >&5
17183 cat conftest.$ac_ext >&5
17184 rm -rf conftest*
17185
17186 cat > conftest.$ac_ext <<EOF
17187 #line 17188 "configure"
17188 #include "confdefs.h"
17189
17190 #include <time.h>
17191
17192 int main() {
17193
17194 int tz;
17195 tz = _timezone;
17196
17197 ; return 0; }
17198 EOF
17199 if { (eval echo configure:17200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17200 rm -rf conftest*
17201
17202 wx_cv_var_timezone=_timezone
17203
17204 else
17205 echo "configure: failed program was:" >&5
17206 cat conftest.$ac_ext >&5
17207 rm -rf conftest*
17208
17209 cat > conftest.$ac_ext <<EOF
17210 #line 17211 "configure"
17211 #include "confdefs.h"
17212
17213 #include <time.h>
17214
17215 int main() {
17216
17217 int tz;
17218 tz = __timezone;
17219
17220 ; return 0; }
17221 EOF
17222 if { (eval echo configure:17223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17223 rm -rf conftest*
17224
17225 wx_cv_var_timezone=__timezone
17226
17227 else
17228 echo "configure: failed program was:" >&5
17229 cat conftest.$ac_ext >&5
17230 rm -rf conftest*
17231
17232 if test "$USE_DOS" = 0 ; then
17233 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
17234 fi
17235
17236
17237 fi
17238 rm -f conftest*
17239
17240
17241 fi
17242 rm -f conftest*
17243
17244
17245 fi
17246 rm -f conftest*
17247
17248
17249 fi
17250
17251 echo "$ac_t""$wx_cv_var_timezone" 1>&6
17252
17253 if test "x$wx_cv_var_timezone" != x ; then
17254 cat >> confdefs.h <<EOF
17255 #define WX_TIMEZONE $wx_cv_var_timezone
17256 EOF
17257
17258 fi
17259
17260 for ac_func in localtime
17261 do
17262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17263 echo "configure:17264: checking for $ac_func" >&5
17264 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17265 echo $ac_n "(cached) $ac_c" 1>&6
17266 else
17267 cat > conftest.$ac_ext <<EOF
17268 #line 17269 "configure"
17269 #include "confdefs.h"
17270 /* System header to define __stub macros and hopefully few prototypes,
17271 which can conflict with char $ac_func(); below. */
17272 #include <assert.h>
17273 /* Override any gcc2 internal prototype to avoid an error. */
17274 /* We use char because int might match the return type of a gcc2
17275 builtin and then its argument prototype would still apply. */
17276 char $ac_func();
17277
17278 int main() {
17279
17280 /* The GNU C library defines this for functions which it implements
17281 to always fail with ENOSYS. Some functions are actually named
17282 something starting with __ and the normal name is an alias. */
17283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17284 choke me
17285 #else
17286 $ac_func();
17287 #endif
17288
17289 ; return 0; }
17290 EOF
17291 if { (eval echo configure:17292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17292 rm -rf conftest*
17293 eval "ac_cv_func_$ac_func=yes"
17294 else
17295 echo "configure: failed program was:" >&5
17296 cat conftest.$ac_ext >&5
17297 rm -rf conftest*
17298 eval "ac_cv_func_$ac_func=no"
17299 fi
17300 rm -f conftest*
17301 fi
17302
17303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17304 echo "$ac_t""yes" 1>&6
17305 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17306 cat >> confdefs.h <<EOF
17307 #define $ac_tr_func 1
17308 EOF
17309
17310 else
17311 echo "$ac_t""no" 1>&6
17312 fi
17313 done
17314
17315
17316 if test "$ac_cv_func_localtime" = "yes"; then
17317 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
17318 echo "configure:17319: checking for tm_gmtoff in struct tm" >&5
17319 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
17320 echo $ac_n "(cached) $ac_c" 1>&6
17321 else
17322
17323 cat > conftest.$ac_ext <<EOF
17324 #line 17325 "configure"
17325 #include "confdefs.h"
17326
17327 #include <time.h>
17328
17329 int main() {
17330
17331 struct tm tm;
17332 tm.tm_gmtoff++;
17333
17334 ; return 0; }
17335 EOF
17336 if { (eval echo configure:17337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17337 rm -rf conftest*
17338
17339 wx_cv_struct_tm_has_gmtoff=yes
17340
17341 else
17342 echo "configure: failed program was:" >&5
17343 cat conftest.$ac_ext >&5
17344 rm -rf conftest*
17345 wx_cv_struct_tm_has_gmtoff=no
17346
17347 fi
17348 rm -f conftest*
17349
17350 fi
17351
17352 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
17353 fi
17354
17355 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
17356 cat >> confdefs.h <<\EOF
17357 #define WX_GMTOFF_IN_TM 1
17358 EOF
17359
17360 fi
17361
17362 for ac_func in gettimeofday ftime
17363 do
17364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17365 echo "configure:17366: checking for $ac_func" >&5
17366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17367 echo $ac_n "(cached) $ac_c" 1>&6
17368 else
17369 cat > conftest.$ac_ext <<EOF
17370 #line 17371 "configure"
17371 #include "confdefs.h"
17372 /* System header to define __stub macros and hopefully few prototypes,
17373 which can conflict with char $ac_func(); below. */
17374 #include <assert.h>
17375 /* Override any gcc2 internal prototype to avoid an error. */
17376 /* We use char because int might match the return type of a gcc2
17377 builtin and then its argument prototype would still apply. */
17378 char $ac_func();
17379
17380 int main() {
17381
17382 /* The GNU C library defines this for functions which it implements
17383 to always fail with ENOSYS. Some functions are actually named
17384 something starting with __ and the normal name is an alias. */
17385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17386 choke me
17387 #else
17388 $ac_func();
17389 #endif
17390
17391 ; return 0; }
17392 EOF
17393 if { (eval echo configure:17394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17394 rm -rf conftest*
17395 eval "ac_cv_func_$ac_func=yes"
17396 else
17397 echo "configure: failed program was:" >&5
17398 cat conftest.$ac_ext >&5
17399 rm -rf conftest*
17400 eval "ac_cv_func_$ac_func=no"
17401 fi
17402 rm -f conftest*
17403 fi
17404
17405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17406 echo "$ac_t""yes" 1>&6
17407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17408 cat >> confdefs.h <<EOF
17409 #define $ac_tr_func 1
17410 EOF
17411 break
17412 else
17413 echo "$ac_t""no" 1>&6
17414 fi
17415 done
17416
17417
17418 if test "$ac_cv_func_gettimeofday" = "yes"; then
17419 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
17420 echo "configure:17421: checking whether gettimeofday takes two arguments" >&5
17421 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
17422 echo $ac_n "(cached) $ac_c" 1>&6
17423 else
17424
17425
17426 ac_ext=C
17427 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17428 ac_cpp='$CXXCPP $CPPFLAGS'
17429 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17430 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17431 cross_compiling=$ac_cv_prog_cxx_cross
17432
17433
17434 cat > conftest.$ac_ext <<EOF
17435 #line 17436 "configure"
17436 #include "confdefs.h"
17437
17438 #include <sys/time.h>
17439 #include <unistd.h>
17440
17441 int main() {
17442
17443 struct timeval tv;
17444 gettimeofday(&tv, NULL);
17445
17446 ; return 0; }
17447 EOF
17448 if { (eval echo configure:17449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17449 rm -rf conftest*
17450 wx_cv_func_gettimeofday_has_2_args=yes
17451 else
17452 echo "configure: failed program was:" >&5
17453 cat conftest.$ac_ext >&5
17454 rm -rf conftest*
17455 cat > conftest.$ac_ext <<EOF
17456 #line 17457 "configure"
17457 #include "confdefs.h"
17458
17459 #include <sys/time.h>
17460 #include <unistd.h>
17461
17462 int main() {
17463
17464 struct timeval tv;
17465 gettimeofday(&tv);
17466
17467 ; return 0; }
17468 EOF
17469 if { (eval echo configure:17470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17470 rm -rf conftest*
17471 wx_cv_func_gettimeofday_has_2_args=no
17472 else
17473 echo "configure: failed program was:" >&5
17474 cat conftest.$ac_ext >&5
17475 rm -rf conftest*
17476
17477 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
17478 wx_cv_func_gettimeofday_has_2_args=unknown
17479
17480
17481 fi
17482 rm -f conftest*
17483
17484 fi
17485 rm -f conftest*
17486 ac_ext=c
17487 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17488 ac_cpp='$CPP $CPPFLAGS'
17489 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17490 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17491 cross_compiling=$ac_cv_prog_cc_cross
17492
17493
17494 fi
17495
17496 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
17497
17498 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
17499 cat >> confdefs.h <<\EOF
17500 #define WX_GETTIMEOFDAY_NO_TZ 1
17501 EOF
17502
17503 fi
17504 fi
17505
17506 cat >> confdefs.h <<\EOF
17507 #define wxUSE_TIMEDATE 1
17508 EOF
17509
17510 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
17511 fi
17512
17513
17514 if test "$TOOLKIT" != "MSW"; then
17515
17516 if test "$wxUSE_SOCKETS" = "yes"; then
17517 echo $ac_n "checking for socket""... $ac_c" 1>&6
17518 echo "configure:17519: checking for socket" >&5
17519 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
17520 echo $ac_n "(cached) $ac_c" 1>&6
17521 else
17522 cat > conftest.$ac_ext <<EOF
17523 #line 17524 "configure"
17524 #include "confdefs.h"
17525 /* System header to define __stub macros and hopefully few prototypes,
17526 which can conflict with char socket(); below. */
17527 #include <assert.h>
17528 /* Override any gcc2 internal prototype to avoid an error. */
17529 /* We use char because int might match the return type of a gcc2
17530 builtin and then its argument prototype would still apply. */
17531 char socket();
17532
17533 int main() {
17534
17535 /* The GNU C library defines this for functions which it implements
17536 to always fail with ENOSYS. Some functions are actually named
17537 something starting with __ and the normal name is an alias. */
17538 #if defined (__stub_socket) || defined (__stub___socket)
17539 choke me
17540 #else
17541 socket();
17542 #endif
17543
17544 ; return 0; }
17545 EOF
17546 if { (eval echo configure:17547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17547 rm -rf conftest*
17548 eval "ac_cv_func_socket=yes"
17549 else
17550 echo "configure: failed program was:" >&5
17551 cat conftest.$ac_ext >&5
17552 rm -rf conftest*
17553 eval "ac_cv_func_socket=no"
17554 fi
17555 rm -f conftest*
17556 fi
17557
17558 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
17559 echo "$ac_t""yes" 1>&6
17560 :
17561 else
17562 echo "$ac_t""no" 1>&6
17563 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
17564 echo "configure:17565: checking for socket in -lsocket" >&5
17565 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
17566 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17567 echo $ac_n "(cached) $ac_c" 1>&6
17568 else
17569 ac_save_LIBS="$LIBS"
17570 LIBS="-lsocket $LIBS"
17571 cat > conftest.$ac_ext <<EOF
17572 #line 17573 "configure"
17573 #include "confdefs.h"
17574 /* Override any gcc2 internal prototype to avoid an error. */
17575 /* We use char because int might match the return type of a gcc2
17576 builtin and then its argument prototype would still apply. */
17577 char socket();
17578
17579 int main() {
17580 socket()
17581 ; return 0; }
17582 EOF
17583 if { (eval echo configure:17584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17584 rm -rf conftest*
17585 eval "ac_cv_lib_$ac_lib_var=yes"
17586 else
17587 echo "configure: failed program was:" >&5
17588 cat conftest.$ac_ext >&5
17589 rm -rf conftest*
17590 eval "ac_cv_lib_$ac_lib_var=no"
17591 fi
17592 rm -f conftest*
17593 LIBS="$ac_save_LIBS"
17594
17595 fi
17596 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17597 echo "$ac_t""yes" 1>&6
17598 INET_LINK="$INET_LINK -lsocket"
17599 else
17600 echo "$ac_t""no" 1>&6
17601
17602 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
17603 wxUSE_SOCKETS=no
17604
17605
17606 fi
17607
17608
17609 fi
17610
17611 fi
17612
17613
17614 if test "$wxUSE_SOCKETS" = "yes" ; then
17615 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
17616 echo "configure:17617: checking what is the type of the third argument of getsockname" >&5
17617 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
17618 echo $ac_n "(cached) $ac_c" 1>&6
17619 else
17620
17621
17622 ac_ext=C
17623 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17624 ac_cpp='$CXXCPP $CPPFLAGS'
17625 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17626 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17627 cross_compiling=$ac_cv_prog_cxx_cross
17628
17629
17630 cat > conftest.$ac_ext <<EOF
17631 #line 17632 "configure"
17632 #include "confdefs.h"
17633
17634 #include <sys/types.h>
17635 #include <sys/socket.h>
17636
17637 int main() {
17638
17639 socklen_t len;
17640 getsockname(0, 0, &len);
17641
17642 ; return 0; }
17643 EOF
17644 if { (eval echo configure:17645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17645 rm -rf conftest*
17646 wx_cv_type_getsockname3=socklen_t
17647 else
17648 echo "configure: failed program was:" >&5
17649 cat conftest.$ac_ext >&5
17650 rm -rf conftest*
17651 cat > conftest.$ac_ext <<EOF
17652 #line 17653 "configure"
17653 #include "confdefs.h"
17654
17655 #include <sys/types.h>
17656 #include <sys/socket.h>
17657
17658 int main() {
17659
17660 size_t len;
17661 getsockname(0, 0, &len);
17662
17663 ; return 0; }
17664 EOF
17665 if { (eval echo configure:17666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17666 rm -rf conftest*
17667 wx_cv_type_getsockname3=size_t
17668 else
17669 echo "configure: failed program was:" >&5
17670 cat conftest.$ac_ext >&5
17671 rm -rf conftest*
17672 cat > conftest.$ac_ext <<EOF
17673 #line 17674 "configure"
17674 #include "confdefs.h"
17675
17676 #include <sys/types.h>
17677 #include <sys/socket.h>
17678
17679 int main() {
17680
17681 int len;
17682 getsockname(0, 0, &len);
17683
17684 ; return 0; }
17685 EOF
17686 if { (eval echo configure:17687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17687 rm -rf conftest*
17688 wx_cv_type_getsockname3=int
17689 else
17690 echo "configure: failed program was:" >&5
17691 cat conftest.$ac_ext >&5
17692 rm -rf conftest*
17693 wx_cv_type_getsockname3=unknown
17694
17695 fi
17696 rm -f conftest*
17697
17698 fi
17699 rm -f conftest*
17700
17701 fi
17702 rm -f conftest*
17703
17704 ac_ext=c
17705 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17706 ac_cpp='$CPP $CPPFLAGS'
17707 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17708 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17709 cross_compiling=$ac_cv_prog_cc_cross
17710
17711
17712 fi
17713
17714 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
17715
17716 if test "$wx_cv_type_getsockname3" = "unknown"; then
17717 wxUSE_SOCKETS=no
17718 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
17719 else
17720 cat >> confdefs.h <<EOF
17721 #define SOCKLEN_T $wx_cv_type_getsockname3
17722 EOF
17723
17724 fi
17725 fi
17726 fi
17727
17728 if test "$wxUSE_SOCKETS" = "yes" ; then
17729 cat >> confdefs.h <<\EOF
17730 #define wxUSE_SOCKETS 1
17731 EOF
17732
17733 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
17734 fi
17735
17736
17737 if test "$wxUSE_GUI" = "yes"; then
17738
17739 if test "$TOOLKIT" = "MAC"; then
17740 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
17741 wxUSE_JOYSTICK=no
17742 fi
17743 if test "$TOOLKIT" = "MOTIF"; then
17744 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
17745 wxUSE_JOYSTICK=no
17746 fi
17747
17748 if test "$TOOLKIT" != "MSW"; then
17749 if test "$wxUSE_JOYSTICK" = "yes"; then
17750 for ac_hdr in linux/joystick.h
17751 do
17752 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17753 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17754 echo "configure:17755: checking for $ac_hdr" >&5
17755 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17756 echo $ac_n "(cached) $ac_c" 1>&6
17757 else
17758 cat > conftest.$ac_ext <<EOF
17759 #line 17760 "configure"
17760 #include "confdefs.h"
17761 #include <$ac_hdr>
17762 EOF
17763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17764 { (eval echo configure:17765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17766 if test -z "$ac_err"; then
17767 rm -rf conftest*
17768 eval "ac_cv_header_$ac_safe=yes"
17769 else
17770 echo "$ac_err" >&5
17771 echo "configure: failed program was:" >&5
17772 cat conftest.$ac_ext >&5
17773 rm -rf conftest*
17774 eval "ac_cv_header_$ac_safe=no"
17775 fi
17776 rm -f conftest*
17777 fi
17778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17779 echo "$ac_t""yes" 1>&6
17780 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17781 cat >> confdefs.h <<EOF
17782 #define $ac_tr_hdr 1
17783 EOF
17784
17785 else
17786 echo "$ac_t""no" 1>&6
17787 fi
17788 done
17789
17790 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
17791 wxUSE_JOYSTICK=no
17792 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
17793 fi
17794 fi
17795 fi
17796
17797 if test "$wxUSE_JOYSTICK" = "yes"; then
17798 cat >> confdefs.h <<\EOF
17799 #define wxUSE_JOYSTICK 1
17800 EOF
17801
17802 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
17803 fi
17804 fi
17805
17806
17807 if test "$TOOLKIT" != "MSW"; then
17808
17809 HAVE_DL_FUNCS=0
17810 HAVE_SHL_FUNCS=0
17811 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
17812 if test "$USE_DARWIN" = 1; then
17813 HAVE_DL_FUNCS=1
17814 else
17815 for ac_func in dlopen
17816 do
17817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17818 echo "configure:17819: checking for $ac_func" >&5
17819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17820 echo $ac_n "(cached) $ac_c" 1>&6
17821 else
17822 cat > conftest.$ac_ext <<EOF
17823 #line 17824 "configure"
17824 #include "confdefs.h"
17825 /* System header to define __stub macros and hopefully few prototypes,
17826 which can conflict with char $ac_func(); below. */
17827 #include <assert.h>
17828 /* Override any gcc2 internal prototype to avoid an error. */
17829 /* We use char because int might match the return type of a gcc2
17830 builtin and then its argument prototype would still apply. */
17831 char $ac_func();
17832
17833 int main() {
17834
17835 /* The GNU C library defines this for functions which it implements
17836 to always fail with ENOSYS. Some functions are actually named
17837 something starting with __ and the normal name is an alias. */
17838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17839 choke me
17840 #else
17841 $ac_func();
17842 #endif
17843
17844 ; return 0; }
17845 EOF
17846 if { (eval echo configure:17847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17847 rm -rf conftest*
17848 eval "ac_cv_func_$ac_func=yes"
17849 else
17850 echo "configure: failed program was:" >&5
17851 cat conftest.$ac_ext >&5
17852 rm -rf conftest*
17853 eval "ac_cv_func_$ac_func=no"
17854 fi
17855 rm -f conftest*
17856 fi
17857
17858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17859 echo "$ac_t""yes" 1>&6
17860 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17861 cat >> confdefs.h <<EOF
17862 #define $ac_tr_func 1
17863 EOF
17864
17865 cat >> confdefs.h <<\EOF
17866 #define HAVE_DLOPEN 1
17867 EOF
17868
17869 HAVE_DL_FUNCS=1
17870
17871 else
17872 echo "$ac_t""no" 1>&6
17873 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
17874 echo "configure:17875: checking for dlopen in -ldl" >&5
17875 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
17876 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17877 echo $ac_n "(cached) $ac_c" 1>&6
17878 else
17879 ac_save_LIBS="$LIBS"
17880 LIBS="-ldl $LIBS"
17881 cat > conftest.$ac_ext <<EOF
17882 #line 17883 "configure"
17883 #include "confdefs.h"
17884 /* Override any gcc2 internal prototype to avoid an error. */
17885 /* We use char because int might match the return type of a gcc2
17886 builtin and then its argument prototype would still apply. */
17887 char dlopen();
17888
17889 int main() {
17890 dlopen()
17891 ; return 0; }
17892 EOF
17893 if { (eval echo configure:17894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17894 rm -rf conftest*
17895 eval "ac_cv_lib_$ac_lib_var=yes"
17896 else
17897 echo "configure: failed program was:" >&5
17898 cat conftest.$ac_ext >&5
17899 rm -rf conftest*
17900 eval "ac_cv_lib_$ac_lib_var=no"
17901 fi
17902 rm -f conftest*
17903 LIBS="$ac_save_LIBS"
17904
17905 fi
17906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17907 echo "$ac_t""yes" 1>&6
17908
17909 cat >> confdefs.h <<\EOF
17910 #define HAVE_DLOPEN 1
17911 EOF
17912
17913 HAVE_DL_FUNCS=1
17914 DL_LINK=" -ldl$DL_LINK"
17915
17916 else
17917 echo "$ac_t""no" 1>&6
17918
17919 for ac_func in shl_load
17920 do
17921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17922 echo "configure:17923: checking for $ac_func" >&5
17923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17924 echo $ac_n "(cached) $ac_c" 1>&6
17925 else
17926 cat > conftest.$ac_ext <<EOF
17927 #line 17928 "configure"
17928 #include "confdefs.h"
17929 /* System header to define __stub macros and hopefully few prototypes,
17930 which can conflict with char $ac_func(); below. */
17931 #include <assert.h>
17932 /* Override any gcc2 internal prototype to avoid an error. */
17933 /* We use char because int might match the return type of a gcc2
17934 builtin and then its argument prototype would still apply. */
17935 char $ac_func();
17936
17937 int main() {
17938
17939 /* The GNU C library defines this for functions which it implements
17940 to always fail with ENOSYS. Some functions are actually named
17941 something starting with __ and the normal name is an alias. */
17942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17943 choke me
17944 #else
17945 $ac_func();
17946 #endif
17947
17948 ; return 0; }
17949 EOF
17950 if { (eval echo configure:17951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17951 rm -rf conftest*
17952 eval "ac_cv_func_$ac_func=yes"
17953 else
17954 echo "configure: failed program was:" >&5
17955 cat conftest.$ac_ext >&5
17956 rm -rf conftest*
17957 eval "ac_cv_func_$ac_func=no"
17958 fi
17959 rm -f conftest*
17960 fi
17961
17962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17963 echo "$ac_t""yes" 1>&6
17964 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17965 cat >> confdefs.h <<EOF
17966 #define $ac_tr_func 1
17967 EOF
17968
17969 cat >> confdefs.h <<\EOF
17970 #define HAVE_SHL_LOAD 1
17971 EOF
17972
17973 HAVE_SHL_FUNCS=1
17974
17975 else
17976 echo "$ac_t""no" 1>&6
17977 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
17978 echo "configure:17979: checking for dld in -lshl_load" >&5
17979 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
17980 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17981 echo $ac_n "(cached) $ac_c" 1>&6
17982 else
17983 ac_save_LIBS="$LIBS"
17984 LIBS="-lshl_load $LIBS"
17985 cat > conftest.$ac_ext <<EOF
17986 #line 17987 "configure"
17987 #include "confdefs.h"
17988 /* Override any gcc2 internal prototype to avoid an error. */
17989 /* We use char because int might match the return type of a gcc2
17990 builtin and then its argument prototype would still apply. */
17991 char dld();
17992
17993 int main() {
17994 dld()
17995 ; return 0; }
17996 EOF
17997 if { (eval echo configure:17998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17998 rm -rf conftest*
17999 eval "ac_cv_lib_$ac_lib_var=yes"
18000 else
18001 echo "configure: failed program was:" >&5
18002 cat conftest.$ac_ext >&5
18003 rm -rf conftest*
18004 eval "ac_cv_lib_$ac_lib_var=no"
18005 fi
18006 rm -f conftest*
18007 LIBS="$ac_save_LIBS"
18008
18009 fi
18010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18011 echo "$ac_t""yes" 1>&6
18012
18013 HAVE_SHL_FUNCS=1
18014 DL_LINK=" -ldld$DL_LINK"
18015
18016 else
18017 echo "$ac_t""no" 1>&6
18018 fi
18019
18020
18021 fi
18022 done
18023
18024
18025 fi
18026
18027
18028 fi
18029 done
18030
18031
18032 if test "$HAVE_DL_FUNCS" = 1; then
18033 for ac_func in dlerror
18034 do
18035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18036 echo "configure:18037: checking for $ac_func" >&5
18037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18038 echo $ac_n "(cached) $ac_c" 1>&6
18039 else
18040 cat > conftest.$ac_ext <<EOF
18041 #line 18042 "configure"
18042 #include "confdefs.h"
18043 /* System header to define __stub macros and hopefully few prototypes,
18044 which can conflict with char $ac_func(); below. */
18045 #include <assert.h>
18046 /* Override any gcc2 internal prototype to avoid an error. */
18047 /* We use char because int might match the return type of a gcc2
18048 builtin and then its argument prototype would still apply. */
18049 char $ac_func();
18050
18051 int main() {
18052
18053 /* The GNU C library defines this for functions which it implements
18054 to always fail with ENOSYS. Some functions are actually named
18055 something starting with __ and the normal name is an alias. */
18056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18057 choke me
18058 #else
18059 $ac_func();
18060 #endif
18061
18062 ; return 0; }
18063 EOF
18064 if { (eval echo configure:18065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18065 rm -rf conftest*
18066 eval "ac_cv_func_$ac_func=yes"
18067 else
18068 echo "configure: failed program was:" >&5
18069 cat conftest.$ac_ext >&5
18070 rm -rf conftest*
18071 eval "ac_cv_func_$ac_func=no"
18072 fi
18073 rm -f conftest*
18074 fi
18075
18076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18077 echo "$ac_t""yes" 1>&6
18078 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18079 cat >> confdefs.h <<EOF
18080 #define $ac_tr_func 1
18081 EOF
18082 cat >> confdefs.h <<\EOF
18083 #define HAVE_DLERROR 1
18084 EOF
18085
18086 else
18087 echo "$ac_t""no" 1>&6
18088 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
18089 echo "configure:18090: checking for dlerror in -ldl" >&5
18090 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
18091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18092 echo $ac_n "(cached) $ac_c" 1>&6
18093 else
18094 ac_save_LIBS="$LIBS"
18095 LIBS="-ldl $LIBS"
18096 cat > conftest.$ac_ext <<EOF
18097 #line 18098 "configure"
18098 #include "confdefs.h"
18099 /* Override any gcc2 internal prototype to avoid an error. */
18100 /* We use char because int might match the return type of a gcc2
18101 builtin and then its argument prototype would still apply. */
18102 char dlerror();
18103
18104 int main() {
18105 dlerror()
18106 ; return 0; }
18107 EOF
18108 if { (eval echo configure:18109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18109 rm -rf conftest*
18110 eval "ac_cv_lib_$ac_lib_var=yes"
18111 else
18112 echo "configure: failed program was:" >&5
18113 cat conftest.$ac_ext >&5
18114 rm -rf conftest*
18115 eval "ac_cv_lib_$ac_lib_var=no"
18116 fi
18117 rm -f conftest*
18118 LIBS="$ac_save_LIBS"
18119
18120 fi
18121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18122 echo "$ac_t""yes" 1>&6
18123 cat >> confdefs.h <<\EOF
18124 #define HAVE_DLERROR 1
18125 EOF
18126
18127 else
18128 echo "$ac_t""no" 1>&6
18129 fi
18130
18131 fi
18132 done
18133
18134 fi
18135 fi
18136
18137 if test "$HAVE_DL_FUNCS" = 0; then
18138 if test "$HAVE_SHL_FUNCS" = 0; then
18139 if test "$USE_UNIX" = 1; then
18140 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
18141 wxUSE_DYNAMIC_LOADER=no
18142 wxUSE_DYNLIB_CLASS=no
18143 else
18144 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
18145 fi
18146 fi
18147 fi
18148 fi
18149 fi
18150
18151 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
18152 cat >> confdefs.h <<\EOF
18153 #define wxUSE_DYNAMIC_LOADER 1
18154 EOF
18155
18156 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
18157 cat >> confdefs.h <<\EOF
18158 #define wxUSE_DYNLIB_CLASS 1
18159 EOF
18160
18161 fi
18162
18163
18164 if test "$wxUSE_FONTMAP" = "yes" ; then
18165 cat >> confdefs.h <<\EOF
18166 #define wxUSE_FONTMAP 1
18167 EOF
18168
18169 fi
18170
18171 if test "$wxUSE_UNICODE" = "yes" ; then
18172 cat >> confdefs.h <<\EOF
18173 #define wxUSE_UNICODE 1
18174 EOF
18175
18176
18177 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
18178 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
18179 echo "configure:18180: checking for main in -lunicows" >&5
18180 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
18181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18182 echo $ac_n "(cached) $ac_c" 1>&6
18183 else
18184 ac_save_LIBS="$LIBS"
18185 LIBS="-lunicows $LIBS"
18186 cat > conftest.$ac_ext <<EOF
18187 #line 18188 "configure"
18188 #include "confdefs.h"
18189
18190 int main() {
18191 main()
18192 ; return 0; }
18193 EOF
18194 if { (eval echo configure:18195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18195 rm -rf conftest*
18196 eval "ac_cv_lib_$ac_lib_var=yes"
18197 else
18198 echo "configure: failed program was:" >&5
18199 cat conftest.$ac_ext >&5
18200 rm -rf conftest*
18201 eval "ac_cv_lib_$ac_lib_var=no"
18202 fi
18203 rm -f conftest*
18204 LIBS="$ac_save_LIBS"
18205
18206 fi
18207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18208 echo "$ac_t""yes" 1>&6
18209
18210 cat >> confdefs.h <<\EOF
18211 #define wxUSE_UNICODE_MSLU 1
18212 EOF
18213
18214
18215 else
18216 echo "$ac_t""no" 1>&6
18217
18218 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
18219 Applications will only run on Windows NT/2000/XP!" 1>&2
18220 wxUSE_UNICODE_MSLU=no
18221
18222 fi
18223
18224 fi
18225 fi
18226
18227 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
18228 cat >> confdefs.h <<\EOF
18229 #define wxUSE_EXPERIMENTAL_PRINTF 1
18230 EOF
18231
18232 fi
18233
18234
18235
18236 IODBC_C_SRC=""
18237 if test "$wxUSE_ODBC" = "yes" ; then
18238 cat >> confdefs.h <<\EOF
18239 #define wxUSE_ODBC 1
18240 EOF
18241
18242 WXODBCFLAG="-D_IODBC_"
18243 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
18244 fi
18245
18246
18247 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
18248 cat >> confdefs.h <<\EOF
18249 #define wxUSE_POSTSCRIPT 1
18250 EOF
18251
18252 fi
18253
18254 cat >> confdefs.h <<\EOF
18255 #define wxUSE_AFM_FOR_POSTSCRIPT 1
18256 EOF
18257
18258
18259 cat >> confdefs.h <<\EOF
18260 #define wxUSE_NORMALIZED_PS_FONTS 1
18261 EOF
18262
18263
18264
18265 if test "$wxUSE_CONSTRAINTS" = "yes"; then
18266 cat >> confdefs.h <<\EOF
18267 #define wxUSE_CONSTRAINTS 1
18268 EOF
18269
18270 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
18271 fi
18272
18273 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18274 if test "$wxUSE_UNIVERSAL" = "yes"; then
18275 echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2
18276 wxUSE_MDI_ARCHITECTURE=no
18277 fi
18278
18279 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18280 cat >> confdefs.h <<\EOF
18281 #define wxUSE_MDI_ARCHITECTURE 1
18282 EOF
18283
18284 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
18285 fi
18286 fi
18287
18288 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
18289 cat >> confdefs.h <<\EOF
18290 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
18291 EOF
18292
18293 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
18294 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18295 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
18296 fi
18297 fi
18298
18299 if test "$wxUSE_HELP" = "yes"; then
18300 cat >> confdefs.h <<\EOF
18301 #define wxUSE_HELP 1
18302 EOF
18303
18304 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
18305
18306 if test "$wxUSE_MSW" = 1; then
18307 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
18308 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
18309 echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
18310 echo "configure:18311: checking for htmlhelp.h" >&5
18311 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18312 echo $ac_n "(cached) $ac_c" 1>&6
18313 else
18314 cat > conftest.$ac_ext <<EOF
18315 #line 18316 "configure"
18316 #include "confdefs.h"
18317 #include <htmlhelp.h>
18318 EOF
18319 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18320 { (eval echo configure:18321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18321 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18322 if test -z "$ac_err"; then
18323 rm -rf conftest*
18324 eval "ac_cv_header_$ac_safe=yes"
18325 else
18326 echo "$ac_err" >&5
18327 echo "configure: failed program was:" >&5
18328 cat conftest.$ac_ext >&5
18329 rm -rf conftest*
18330 eval "ac_cv_header_$ac_safe=no"
18331 fi
18332 rm -f conftest*
18333 fi
18334 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18335 echo "$ac_t""yes" 1>&6
18336
18337 cat >> confdefs.h <<\EOF
18338 #define wxUSE_MS_HTML_HELP 1
18339 EOF
18340
18341
18342 else
18343 echo "$ac_t""no" 1>&6
18344
18345 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
18346 wxUSE_MS_HTML_HELP=no
18347
18348 fi
18349
18350 fi
18351 fi
18352
18353 if test "$wxUSE_WXHTML_HELP" = "yes"; then
18354 if test "$wxUSE_HTML" = "yes"; then
18355 cat >> confdefs.h <<\EOF
18356 #define wxUSE_WXHTML_HELP 1
18357 EOF
18358
18359 else
18360 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
18361 wxUSE_WXHTML_HELP=no
18362 fi
18363 fi
18364 fi
18365
18366 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
18367 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18368 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
18369 else
18370 cat >> confdefs.h <<\EOF
18371 #define wxUSE_PRINTING_ARCHITECTURE 1
18372 EOF
18373
18374 fi
18375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
18376 fi
18377
18378 if test "$wxUSE_PROLOGIO" = "yes" ; then
18379 cat >> confdefs.h <<\EOF
18380 #define wxUSE_PROLOGIO 1
18381 EOF
18382
18383 fi
18384
18385 if test "$wxUSE_RESOURCES" = "yes" ; then
18386 cat >> confdefs.h <<\EOF
18387 #define wxUSE_RESOURCES 1
18388 EOF
18389
18390 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
18391 fi
18392
18393 if test "$wxUSE_X_RESOURCES" = "yes"; then
18394 cat >> confdefs.h <<\EOF
18395 #define wxUSE_X_RESOURCES 1
18396 EOF
18397
18398 fi
18399
18400
18401 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
18402 -o "$wxUSE_CLIPBOARD" = "yes" \
18403 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
18404 for ac_hdr in ole2.h
18405 do
18406 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18407 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18408 echo "configure:18409: checking for $ac_hdr" >&5
18409 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18410 echo $ac_n "(cached) $ac_c" 1>&6
18411 else
18412 cat > conftest.$ac_ext <<EOF
18413 #line 18414 "configure"
18414 #include "confdefs.h"
18415 #include <$ac_hdr>
18416 EOF
18417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18418 { (eval echo configure:18419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18420 if test -z "$ac_err"; then
18421 rm -rf conftest*
18422 eval "ac_cv_header_$ac_safe=yes"
18423 else
18424 echo "$ac_err" >&5
18425 echo "configure: failed program was:" >&5
18426 cat conftest.$ac_ext >&5
18427 rm -rf conftest*
18428 eval "ac_cv_header_$ac_safe=no"
18429 fi
18430 rm -f conftest*
18431 fi
18432 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18433 echo "$ac_t""yes" 1>&6
18434 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18435 cat >> confdefs.h <<EOF
18436 #define $ac_tr_hdr 1
18437 EOF
18438
18439 else
18440 echo "$ac_t""no" 1>&6
18441 fi
18442 done
18443
18444
18445 if test "$ac_cv_header_ole2_h" = "yes" ; then
18446 if test "$GCC" = yes ; then
18447 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
18448 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
18449 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
18450 cat >> confdefs.h <<\EOF
18451 #define wxUSE_OLE 1
18452 EOF
18453
18454
18455 fi
18456
18457 cat >> confdefs.h <<\EOF
18458 #define wxUSE_DATAOBJ 1
18459 EOF
18460
18461 else
18462 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
18463
18464 wxUSE_CLIPBOARD=no
18465 wxUSE_DRAG_AND_DROP=no
18466 wxUSE_DATAOBJ=no
18467 fi
18468
18469 if test "$wxUSE_METAFILE" = "yes"; then
18470 cat >> confdefs.h <<\EOF
18471 #define wxUSE_METAFILE 1
18472 EOF
18473
18474
18475 cat >> confdefs.h <<\EOF
18476 #define wxUSE_ENH_METAFILE 1
18477 EOF
18478
18479 fi
18480 fi
18481
18482 if test "$wxUSE_IPC" = "yes"; then
18483 if test "$wxUSE_SOCKETS" != "yes"; then
18484 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
18485 fi
18486
18487 cat >> confdefs.h <<\EOF
18488 #define wxUSE_IPC 1
18489 EOF
18490
18491 fi
18492
18493 if test "$wxUSE_CLIPBOARD" = "yes"; then
18494 cat >> confdefs.h <<\EOF
18495 #define wxUSE_CLIPBOARD 1
18496 EOF
18497
18498
18499 cat >> confdefs.h <<\EOF
18500 #define wxUSE_DATAOBJ 1
18501 EOF
18502
18503 fi
18504
18505 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
18506 if test "$wxUSE_GTK" = 1; then
18507 if test "$WXGTK12" != 1; then
18508 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
18509 wxUSE_DRAG_AND_DROP=no
18510 fi
18511 fi
18512
18513 if test "$wxUSE_MOTIF" = 1; then
18514 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
18515 wxUSE_DRAG_AND_DROP=no
18516 fi
18517
18518 if test "$wxUSE_MAC" = 1; then
18519 echo "configure: warning: Drag and drop not yet supported under Mac OS X... disabled" 1>&2
18520 wxUSE_DRAG_AND_DROP=no
18521 fi
18522
18523 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
18524 cat >> confdefs.h <<\EOF
18525 #define wxUSE_DRAG_AND_DROP 1
18526 EOF
18527
18528 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
18529 fi
18530
18531 fi
18532
18533 if test "$wxUSE_SPLINES" = "yes" ; then
18534 cat >> confdefs.h <<\EOF
18535 #define wxUSE_SPLINES 1
18536 EOF
18537
18538 fi
18539
18540
18541 USES_CONTROLS=0
18542 if test "$wxUSE_CONTROLS" = "yes"; then
18543 USES_CONTROLS=1
18544 fi
18545
18546 if test "$wxUSE_ACCEL" = "yes"; then
18547 cat >> confdefs.h <<\EOF
18548 #define wxUSE_ACCEL 1
18549 EOF
18550
18551 USES_CONTROLS=1
18552 fi
18553
18554 if test "$wxUSE_BUTTON" = "yes"; then
18555 cat >> confdefs.h <<\EOF
18556 #define wxUSE_BUTTON 1
18557 EOF
18558
18559 USES_CONTROLS=1
18560 fi
18561
18562 if test "$wxUSE_BMPBUTTON" = "yes"; then
18563 cat >> confdefs.h <<\EOF
18564 #define wxUSE_BMPBUTTON 1
18565 EOF
18566
18567 USES_CONTROLS=1
18568 fi
18569
18570 if test "$wxUSE_CALCTRL" = "yes"; then
18571 cat >> confdefs.h <<\EOF
18572 #define wxUSE_CALENDARCTRL 1
18573 EOF
18574
18575 USES_CONTROLS=1
18576 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
18577 fi
18578
18579 if test "$wxUSE_CARET" = "yes"; then
18580 cat >> confdefs.h <<\EOF
18581 #define wxUSE_CARET 1
18582 EOF
18583
18584 USES_CONTROLS=1
18585 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
18586 fi
18587
18588 if test "$wxUSE_COMBOBOX" = "yes"; then
18589 cat >> confdefs.h <<\EOF
18590 #define wxUSE_COMBOBOX 1
18591 EOF
18592
18593 USES_CONTROLS=1
18594 fi
18595
18596 if test "$wxUSE_CHOICE" = "yes"; then
18597 cat >> confdefs.h <<\EOF
18598 #define wxUSE_CHOICE 1
18599 EOF
18600
18601 USES_CONTROLS=1
18602 fi
18603
18604 if test "$wxUSE_CHECKBOX" = "yes"; then
18605 cat >> confdefs.h <<\EOF
18606 #define wxUSE_CHECKBOX 1
18607 EOF
18608
18609 USES_CONTROLS=1
18610 fi
18611
18612 if test "$wxUSE_CHECKLST" = "yes"; then
18613 cat >> confdefs.h <<\EOF
18614 #define wxUSE_CHECKLISTBOX 1
18615 EOF
18616
18617 USES_CONTROLS=1
18618 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
18619 fi
18620
18621 if test "$wxUSE_GAUGE" = "yes"; then
18622 cat >> confdefs.h <<\EOF
18623 #define wxUSE_GAUGE 1
18624 EOF
18625
18626 USES_CONTROLS=1
18627 fi
18628
18629 if test "$wxUSE_NEW_GRID" = "yes"; then
18630 wxUSE_GRID="yes"
18631 cat >> confdefs.h <<\EOF
18632 #define wxUSE_NEW_GRID 1
18633 EOF
18634
18635 USES_CONTROLS=1
18636 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
18637 fi
18638
18639 if test "$wxUSE_GRID" = "yes"; then
18640 cat >> confdefs.h <<\EOF
18641 #define wxUSE_GRID 1
18642 EOF
18643
18644 USES_CONTROLS=1
18645 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
18646 fi
18647
18648 if test "$wxUSE_IMAGLIST" = "yes"; then
18649 cat >> confdefs.h <<\EOF
18650 #define wxUSE_IMAGLIST 1
18651 EOF
18652
18653 fi
18654
18655 if test "$wxUSE_LISTBOX" = "yes"; then
18656 cat >> confdefs.h <<\EOF
18657 #define wxUSE_LISTBOX 1
18658 EOF
18659
18660 USES_CONTROLS=1
18661 fi
18662
18663 if test "$wxUSE_LISTCTRL" = "yes"; then
18664 if test "$wxUSE_IMAGLIST" = "yes"; then
18665 cat >> confdefs.h <<\EOF
18666 #define wxUSE_LISTCTRL 1
18667 EOF
18668
18669 USES_CONTROLS=1
18670 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
18671 else
18672 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
18673 fi
18674 fi
18675
18676 if test "$wxUSE_NOTEBOOK" = "yes"; then
18677 cat >> confdefs.h <<\EOF
18678 #define wxUSE_NOTEBOOK 1
18679 EOF
18680
18681 USES_CONTROLS=1
18682 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
18683 fi
18684
18685 if test "$wxUSE_PROPSHEET" = "yes"; then
18686 cat >> confdefs.h <<\EOF
18687 #define wxUSE_PROPSHEET 1
18688 EOF
18689
18690 USES_CONTROLS=1
18691 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
18692 fi
18693
18694 if test "$wxUSE_RADIOBOX" = "yes"; then
18695 cat >> confdefs.h <<\EOF
18696 #define wxUSE_RADIOBOX 1
18697 EOF
18698
18699 USES_CONTROLS=1
18700 fi
18701
18702 if test "$wxUSE_RADIOBTN" = "yes"; then
18703 cat >> confdefs.h <<\EOF
18704 #define wxUSE_RADIOBTN 1
18705 EOF
18706
18707 USES_CONTROLS=1
18708 fi
18709
18710 if test "$wxUSE_SASH" = "yes"; then
18711 cat >> confdefs.h <<\EOF
18712 #define wxUSE_SASH 1
18713 EOF
18714
18715 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
18716 fi
18717
18718 if test "$wxUSE_SCROLLBAR" = "yes"; then
18719 cat >> confdefs.h <<\EOF
18720 #define wxUSE_SCROLLBAR 1
18721 EOF
18722
18723 USES_CONTROLS=1
18724 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
18725 fi
18726
18727 if test "$wxUSE_SLIDER" = "yes"; then
18728 cat >> confdefs.h <<\EOF
18729 #define wxUSE_SLIDER 1
18730 EOF
18731
18732 USES_CONTROLS=1
18733 fi
18734
18735 if test "$wxUSE_SPINBTN" = "yes"; then
18736 cat >> confdefs.h <<\EOF
18737 #define wxUSE_SPINBTN 1
18738 EOF
18739
18740 USES_CONTROLS=1
18741 fi
18742
18743 if test "$wxUSE_SPINCTRL" = "yes"; then
18744 cat >> confdefs.h <<\EOF
18745 #define wxUSE_SPINCTRL 1
18746 EOF
18747
18748 USES_CONTROLS=1
18749 fi
18750
18751 if test "$wxUSE_SPLITTER" = "yes"; then
18752 cat >> confdefs.h <<\EOF
18753 #define wxUSE_SPLITTER 1
18754 EOF
18755
18756 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
18757 fi
18758
18759 if test "$wxUSE_STATBMP" = "yes"; then
18760 cat >> confdefs.h <<\EOF
18761 #define wxUSE_STATBMP 1
18762 EOF
18763
18764 USES_CONTROLS=1
18765 fi
18766
18767 if test "$wxUSE_STATBOX" = "yes"; then
18768 cat >> confdefs.h <<\EOF
18769 #define wxUSE_STATBOX 1
18770 EOF
18771
18772 USES_CONTROLS=1
18773 fi
18774
18775 if test "$wxUSE_STATTEXT" = "yes"; then
18776 cat >> confdefs.h <<\EOF
18777 #define wxUSE_STATTEXT 1
18778 EOF
18779
18780 USES_CONTROLS=1
18781 fi
18782
18783 if test "$wxUSE_STATLINE" = "yes"; then
18784 if test "$wxUSE_WINE" = 1 ; then
18785 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
18786 else
18787 cat >> confdefs.h <<\EOF
18788 #define wxUSE_STATLINE 1
18789 EOF
18790
18791 USES_CONTROLS=1
18792 fi
18793 fi
18794
18795 if test "$wxUSE_STATUSBAR" = "yes"; then
18796 cat >> confdefs.h <<\EOF
18797 #define wxUSE_STATUSBAR 1
18798 EOF
18799
18800 USES_CONTROLS=1
18801
18802 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
18803 fi
18804
18805 if test "$wxUSE_TABDIALOG" = "yes"; then
18806 cat >> confdefs.h <<\EOF
18807 #define wxUSE_TAB_DIALOG 1
18808 EOF
18809
18810 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
18811 fi
18812
18813 if test "$wxUSE_TEXTCTRL" = "yes"; then
18814 cat >> confdefs.h <<\EOF
18815 #define wxUSE_TEXTCTRL 1
18816 EOF
18817
18818 USES_CONTROLS=1
18819 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
18820 fi
18821
18822 if test "$wxUSE_TOGGLEBTN" = "yes"; then
18823 if test "$wxUSE_MAC" = 1; then
18824 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
18825 wxUSE_TOGGLEBTN=no
18826 fi
18827 if test "$wxUSE_UNIVERSAL" = "yes"; then
18828 echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2
18829 wxUSE_TOGGLEBTN=no
18830 fi
18831
18832 if test "$wxUSE_TOGGLEBTN" = "yes"; then
18833 cat >> confdefs.h <<\EOF
18834 #define wxUSE_TOGGLEBTN 1
18835 EOF
18836
18837 USES_CONTROLS=1
18838 fi
18839 fi
18840
18841 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
18842 cat >> confdefs.h <<\EOF
18843 #define wxUSE_TOOLBAR_SIMPLE 1
18844 EOF
18845
18846 wxUSE_TOOLBAR="yes"
18847 USES_CONTROLS=1
18848 fi
18849
18850 if test "$wxUSE_TOOLBAR" = "yes"; then
18851 cat >> confdefs.h <<\EOF
18852 #define wxUSE_TOOLBAR 1
18853 EOF
18854
18855 USES_CONTROLS=1
18856
18857 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
18858 wxUSE_TOOLBAR_NATIVE="yes"
18859 fi
18860
18861 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
18862 cat >> confdefs.h <<\EOF
18863 #define wxUSE_TOOLBAR_NATIVE 1
18864 EOF
18865
18866 USES_CONTROLS=1
18867 fi
18868
18869 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
18870 fi
18871
18872 if test "$wxUSE_TOOLTIPS" = "yes"; then
18873 if test "$wxUSE_MOTIF" = 1; then
18874 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
18875 else
18876 if test "$wxUSE_WINE" = 1; then
18877 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
18878 else
18879 if test "$wxUSE_UNIVERSAL" = "yes"; then
18880 echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2
18881 else
18882 cat >> confdefs.h <<\EOF
18883 #define wxUSE_TOOLTIPS 1
18884 EOF
18885
18886 fi
18887 fi
18888 fi
18889 fi
18890
18891 if test "$wxUSE_TREECTRL" = "yes"; then
18892 if test "$wxUSE_IMAGLIST" = "yes"; then
18893 cat >> confdefs.h <<\EOF
18894 #define wxUSE_TREECTRL 1
18895 EOF
18896
18897 USES_CONTROLS=1
18898 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
18899 else
18900 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
18901 fi
18902 fi
18903
18904 if test "$wxUSE_POPUPWIN" = "yes"; then
18905 if test "$wxUSE_MAC" = 1; then
18906 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
18907 else
18908 if test "$wxUSE_MOTIF" = 1; then
18909 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
18910 else
18911 cat >> confdefs.h <<\EOF
18912 #define wxUSE_POPUPWIN 1
18913 EOF
18914
18915
18916 USES_CONTROLS=1
18917 fi
18918 fi
18919 fi
18920
18921 if test "$wxUSE_TIPWINDOW" = "yes"; then
18922 cat >> confdefs.h <<\EOF
18923 #define wxUSE_TIPWINDOW 1
18924 EOF
18925
18926 fi
18927
18928 if test "$USES_CONTROLS" = 1; then
18929 cat >> confdefs.h <<\EOF
18930 #define wxUSE_CONTROLS 1
18931 EOF
18932
18933 fi
18934
18935
18936 if test "$wxUSE_TREELAYOUT" = "yes"; then
18937 cat >> confdefs.h <<\EOF
18938 #define wxUSE_TREELAYOUT 1
18939 EOF
18940
18941 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
18942 fi
18943
18944 if test "$wxUSE_DRAGIMAGE" = "yes"; then
18945 cat >> confdefs.h <<\EOF
18946 #define wxUSE_DRAGIMAGE 1
18947 EOF
18948
18949 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
18950 fi
18951
18952 if test "$wxUSE_MENUS" = "yes"; then
18953 cat >> confdefs.h <<\EOF
18954 #define wxUSE_MENUS 1
18955 EOF
18956
18957 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
18958 fi
18959
18960 if test "$wxUSE_METAFILE" = "yes"; then
18961 cat >> confdefs.h <<\EOF
18962 #define wxUSE_METAFILE 1
18963 EOF
18964
18965 fi
18966
18967 if test "$wxUSE_MIMETYPE" = "yes"; then
18968 cat >> confdefs.h <<\EOF
18969 #define wxUSE_MIMETYPE 1
18970 EOF
18971
18972 fi
18973
18974 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
18975 cat >> confdefs.h <<\EOF
18976 #define wxUSE_SYSTEM_OPTIONS 1
18977 EOF
18978
18979 fi
18980
18981 if test "$wxUSE_MINIFRAME" = "yes"; then
18982 cat >> confdefs.h <<\EOF
18983 #define wxUSE_MINIFRAME 1
18984 EOF
18985
18986 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
18987 fi
18988
18989 if test "$wxUSE_HTML" = "yes"; then
18990 cat >> confdefs.h <<\EOF
18991 #define wxUSE_HTML 1
18992 EOF
18993
18994 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
18995 fi
18996
18997 if test "$wxUSE_VALIDATORS" = "yes"; then
18998 cat >> confdefs.h <<\EOF
18999 #define wxUSE_VALIDATORS 1
19000 EOF
19001
19002 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
19003 fi
19004
19005 if test "$wxUSE_PALETTE" = "yes" ; then
19006 cat >> confdefs.h <<\EOF
19007 #define wxUSE_PALETTE 1
19008 EOF
19009
19010 fi
19011
19012 if test "$wxUSE_IMAGE" = "yes" ; then
19013 cat >> confdefs.h <<\EOF
19014 #define wxUSE_IMAGE 1
19015 EOF
19016
19017 fi
19018
19019 if test "$wxUSE_GIF" = "yes" ; then
19020 cat >> confdefs.h <<\EOF
19021 #define wxUSE_GIF 1
19022 EOF
19023
19024 fi
19025
19026 if test "$wxUSE_PCX" = "yes" ; then
19027 cat >> confdefs.h <<\EOF
19028 #define wxUSE_PCX 1
19029 EOF
19030
19031 fi
19032
19033 if test "$wxUSE_PNM" = "yes" ; then
19034 cat >> confdefs.h <<\EOF
19035 #define wxUSE_PNM 1
19036 EOF
19037
19038 fi
19039
19040 if test "$wxUSE_XPM" = "yes" ; then
19041 cat >> confdefs.h <<\EOF
19042 #define wxUSE_XPM 1
19043 EOF
19044
19045 fi
19046
19047 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
19048 LIBS=" -lunicows $LIBS"
19049 fi
19050
19051
19052 if test "$wxUSE_CHOICEDLG" = "yes"; then
19053 cat >> confdefs.h <<\EOF
19054 #define wxUSE_CHOICEDLG 1
19055 EOF
19056
19057 fi
19058
19059 if test "$wxUSE_COLOURDLG" = "yes"; then
19060 cat >> confdefs.h <<\EOF
19061 #define wxUSE_COLOURDLG 1
19062 EOF
19063
19064 fi
19065
19066 if test "$wxUSE_FILEDLG" = "yes"; then
19067 cat >> confdefs.h <<\EOF
19068 #define wxUSE_FILEDLG 1
19069 EOF
19070
19071 fi
19072
19073 if test "$wxUSE_FINDREPLDLG" = "yes"; then
19074 cat >> confdefs.h <<\EOF
19075 #define wxUSE_FINDREPLDLG 1
19076 EOF
19077
19078 fi
19079
19080 if test "$wxUSE_FONTDLG" = "yes"; then
19081 cat >> confdefs.h <<\EOF
19082 #define wxUSE_FONTDLG 1
19083 EOF
19084
19085 fi
19086
19087 if test "$wxUSE_DIRDLG" = "yes"; then
19088 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19089 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
19090 else
19091 if test "$wxUSE_TREECTRL" != "yes"; then
19092 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
19093 else
19094 cat >> confdefs.h <<\EOF
19095 #define wxUSE_DIRDLG 1
19096 EOF
19097
19098 fi
19099 fi
19100 fi
19101
19102 if test "$wxUSE_MSGDLG" = "yes"; then
19103 cat >> confdefs.h <<\EOF
19104 #define wxUSE_MSGDLG 1
19105 EOF
19106
19107 fi
19108
19109 if test "$wxUSE_NUMBERDLG" = "yes"; then
19110 cat >> confdefs.h <<\EOF
19111 #define wxUSE_NUMBERDLG 1
19112 EOF
19113
19114 fi
19115
19116 if test "$wxUSE_PROGRESSDLG" = "yes"; then
19117 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19118 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
19119 else
19120 cat >> confdefs.h <<\EOF
19121 #define wxUSE_PROGRESSDLG 1
19122 EOF
19123
19124 fi
19125 fi
19126
19127 if test "$wxUSE_SPLASH" = "yes"; then
19128 cat >> confdefs.h <<\EOF
19129 #define wxUSE_SPLASH 1
19130 EOF
19131
19132 fi
19133
19134 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
19135 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19136 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
19137 else
19138 cat >> confdefs.h <<\EOF
19139 #define wxUSE_STARTUP_TIPS 1
19140 EOF
19141
19142 fi
19143 fi
19144
19145 if test "$wxUSE_TEXTDLG" = "yes"; then
19146 cat >> confdefs.h <<\EOF
19147 #define wxUSE_TEXTDLG 1
19148 EOF
19149
19150 fi
19151
19152 if test "$wxUSE_WIZARDDLG" = "yes"; then
19153 cat >> confdefs.h <<\EOF
19154 #define wxUSE_WIZARDDLG 1
19155 EOF
19156
19157 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
19158 fi
19159
19160
19161 if test "$cross_compiling" = "yes"; then
19162 OSINFO="\"$host\""
19163 else
19164 OSINFO=`uname -s -r -m`
19165 OSINFO="\"$OSINFO\""
19166 fi
19167
19168 cat >> confdefs.h <<EOF
19169 #define WXWIN_OS_DESCRIPTION $OSINFO
19170 EOF
19171
19172
19173
19174 if test "x$prefix" != "xNONE"; then
19175 wxPREFIX=$prefix
19176 else
19177 wxPREFIX=$ac_default_prefix
19178 fi
19179
19180 cat >> confdefs.h <<EOF
19181 #define wxINSTALL_PREFIX "$wxPREFIX"
19182 EOF
19183
19184
19185
19186
19187
19188 if test "$wxUSE_MAC" = 1 ; then
19189 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
19190 fi
19191
19192
19193 LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS"
19194
19195 if test "$wxUSE_GUI" = "yes"; then
19196
19197 LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS"
19198
19199
19200 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
19201 drawing dynamic erase event exec font image \
19202 minimal richedit rotate widgets"
19203
19204 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
19205 else
19206 SAMPLES_SUBDIRS="console"
19207 fi
19208
19209
19210 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
19211 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
19212 $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
19213
19214 if test "$wxUSE_GTK" = 1; then
19215 WXCONFIG_INCLUDE=
19216 else
19217 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
19218 fi
19219
19220 if test "$GXX" = yes ; then
19221 CXXWARNINGS="-Wall"
19222
19223 if test "$wxUSE_NO_DEPS" = "no" ; then
19224 CFLAGS="-MMD $CFLAGS"
19225 CXXFLAGS="-MMD $CXXFLAGS"
19226 fi
19227 fi
19228
19229 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
19230
19231 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
19232 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
19233
19234 LDFLAGS="$LDFLAGS$PROFILE"
19235
19236 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
19323 echo "configure:19324: checking whether ${MAKE-make} sets \${MAKE}" >&5
19324 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
19325 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
19326 echo $ac_n "(cached) $ac_c" 1>&6
19327 else
19328 cat > conftestmake <<\EOF
19329 all:
19330 @echo 'ac_maketemp="${MAKE}"'
19331 EOF
19332 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19333 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
19334 if test -n "$ac_maketemp"; then
19335 eval ac_cv_prog_make_${ac_make}_set=yes
19336 else
19337 eval ac_cv_prog_make_${ac_make}_set=no
19338 fi
19339 rm -f conftestmake
19340 fi
19341 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19342 echo "$ac_t""yes" 1>&6
19343 SET_MAKE=
19344 else
19345 echo "$ac_t""no" 1>&6
19346 SET_MAKE="MAKE=${MAKE-make}"
19347 fi
19348
19349
19350 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
19351 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
19352 fi
19353
19354
19355
19356 if test "$wxUSE_GUI" = "yes"; then
19357 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
19358 wx_cv_path_ifs=$PATH_IFS
19359 wx_cv_program_ext=$PROGRAM_EXT
19360 wx_cv_target_library=$WX_TARGET_LIBRARY
19361 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
19362 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
19363 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
19364 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
19365 subdirs="demos samples utils contrib"
19366
19367 fi
19368
19369 trap '' 1 2 15
19370 cat > confcache <<\EOF
19371 # This file is a shell script that caches the results of configure
19372 # tests run on this system so they can be shared between configure
19373 # scripts and configure runs. It is not useful on other systems.
19374 # If it contains results you don't want to keep, you may remove or edit it.
19375 #
19376 # By default, configure uses ./config.cache as the cache file,
19377 # creating it if it does not exist already. You can give configure
19378 # the --cache-file=FILE option to use a different cache file; that is
19379 # what configure does when it calls configure scripts in
19380 # subdirectories, so they share the cache.
19381 # Giving --cache-file=/dev/null disables caching, for debugging configure.
19382 # config.status only pays attention to the cache file if you give it the
19383 # --recheck option to rerun configure.
19384 #
19385 EOF
19386 # The following way of writing the cache mishandles newlines in values,
19387 # but we know of no workaround that is simple, portable, and efficient.
19388 # So, don't put newlines in cache variables' values.
19389 # Ultrix sh set writes to stderr and can't be redirected directly,
19390 # and sets the high bit in the cache file unless we assign to the vars.
19391 (set) 2>&1 |
19392 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19393 *ac_space=\ *)
19394 # `set' does not quote correctly, so add quotes (double-quote substitution
19395 # turns \\\\ into \\, and sed turns \\ into \).
19396 sed -n \
19397 -e "s/'/'\\\\''/g" \
19398 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19399 ;;
19400 *)
19401 # `set' quotes correctly as required by POSIX, so do not add quotes.
19402 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19403 ;;
19404 esac >> confcache
19405 if cmp -s $cache_file confcache; then
19406 :
19407 else
19408 if test -w $cache_file; then
19409 echo "updating cache $cache_file"
19410 cat confcache > $cache_file
19411 else
19412 echo "not updating unwritable cache $cache_file"
19413 fi
19414 fi
19415 rm -f confcache
19416
19417 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
19418
19419 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19420 # Let make expand exec_prefix.
19421 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19422
19423 # Any assignment to VPATH causes Sun make to only execute
19424 # the first set of double-colon rules, so remove it if not needed.
19425 # If there is a colon in the path, we need to keep it.
19426 if test "x$srcdir" = x.; then
19427 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
19428 fi
19429
19430 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
19431
19432 DEFS=-DHAVE_CONFIG_H
19433
19434 # Without the "./", some shells look in PATH for config.status.
19435 : ${CONFIG_STATUS=./config.status}
19436
19437 echo creating $CONFIG_STATUS
19438 rm -f $CONFIG_STATUS
19439 cat > $CONFIG_STATUS <<EOF
19440 #! /bin/sh
19441 # Generated automatically by configure.
19442 # Run this file to recreate the current configuration.
19443 # This directory was configured as follows,
19444 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19445 #
19446 # $0 $ac_configure_args
19447 #
19448 # Compiler output produced by configure, useful for debugging
19449 # configure, is in ./config.log if it exists.
19450
19451 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
19452 for ac_option
19453 do
19454 case "\$ac_option" in
19455 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19456 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
19457 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
19458 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
19459 echo "$CONFIG_STATUS generated by autoconf version 2.13"
19460 exit 0 ;;
19461 -help | --help | --hel | --he | --h)
19462 echo "\$ac_cs_usage"; exit 0 ;;
19463 *) echo "\$ac_cs_usage"; exit 1 ;;
19464 esac
19465 done
19466
19467 ac_given_srcdir=$srcdir
19468 ac_given_INSTALL="$INSTALL"
19469
19470 trap 'rm -fr `echo "
19471 wx-config
19472 src/make.env
19473 src/makeprog.env
19474 src/makelib.env
19475 Makefile
19476 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
19477 EOF
19478 cat >> $CONFIG_STATUS <<EOF
19479
19480 # Protect against being on the right side of a sed subst in config.status.
19481 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
19482 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
19483 $ac_vpsub
19484 $extrasub
19485 s%@SHELL@%$SHELL%g
19486 s%@CFLAGS@%$CFLAGS%g
19487 s%@CPPFLAGS@%$CPPFLAGS%g
19488 s%@CXXFLAGS@%$CXXFLAGS%g
19489 s%@FFLAGS@%$FFLAGS%g
19490 s%@DEFS@%$DEFS%g
19491 s%@LDFLAGS@%$LDFLAGS%g
19492 s%@LIBS@%$LIBS%g
19493 s%@exec_prefix@%$exec_prefix%g
19494 s%@prefix@%$prefix%g
19495 s%@program_transform_name@%$program_transform_name%g
19496 s%@bindir@%$bindir%g
19497 s%@sbindir@%$sbindir%g
19498 s%@libexecdir@%$libexecdir%g
19499 s%@datadir@%$datadir%g
19500 s%@sysconfdir@%$sysconfdir%g
19501 s%@sharedstatedir@%$sharedstatedir%g
19502 s%@localstatedir@%$localstatedir%g
19503 s%@libdir@%$libdir%g
19504 s%@includedir@%$includedir%g
19505 s%@oldincludedir@%$oldincludedir%g
19506 s%@infodir@%$infodir%g
19507 s%@mandir@%$mandir%g
19508 s%@host@%$host%g
19509 s%@host_alias@%$host_alias%g
19510 s%@host_cpu@%$host_cpu%g
19511 s%@host_vendor@%$host_vendor%g
19512 s%@host_os@%$host_os%g
19513 s%@target@%$target%g
19514 s%@target_alias@%$target_alias%g
19515 s%@target_cpu@%$target_cpu%g
19516 s%@target_vendor@%$target_vendor%g
19517 s%@target_os@%$target_os%g
19518 s%@build@%$build%g
19519 s%@build_alias@%$build_alias%g
19520 s%@build_cpu@%$build_cpu%g
19521 s%@build_vendor@%$build_vendor%g
19522 s%@build_os@%$build_os%g
19523 s%@CC@%$CC%g
19524 s%@CPP@%$CPP%g
19525 s%@CXX@%$CXX%g
19526 s%@RANLIB@%$RANLIB%g
19527 s%@AR@%$AR%g
19528 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
19529 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
19530 s%@INSTALL_DATA@%$INSTALL_DATA%g
19531 s%@STRIP@%$STRIP%g
19532 s%@YACC@%$YACC%g
19533 s%@LEX@%$LEX%g
19534 s%@LEXLIB@%$LEXLIB%g
19535 s%@LN_S@%$LN_S%g
19536 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
19537 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
19538 s%@GTK_LIBS@%$GTK_LIBS%g
19539 s%@GTK_CONFIG@%$GTK_CONFIG%g
19540 s%@X_CFLAGS@%$X_CFLAGS%g
19541 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
19542 s%@X_LIBS@%$X_LIBS%g
19543 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
19544 s%@RESCOMP@%$RESCOMP%g
19545 s%@DEREZ@%$DEREZ%g
19546 s%@CXXCPP@%$CXXCPP%g
19547 s%@LEX_STEM@%$LEX_STEM%g
19548 s%@PATH_IFS@%$PATH_IFS%g
19549 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
19550 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
19551 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
19552 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
19553 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
19554 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
19555 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
19556 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
19557 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
19558 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
19559 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
19560 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
19561 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
19562 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
19563 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
19564 s%@WX_ALL@%$WX_ALL%g
19565 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
19566 s%@SHARED_LD@%$SHARED_LD%g
19567 s%@PIC_FLAG@%$PIC_FLAG%g
19568 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
19569 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
19570 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
19571 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
19572 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
19573 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
19574 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
19575 s%@USE_GUI@%$USE_GUI%g
19576 s%@AFMINSTALL@%$AFMINSTALL%g
19577 s%@TOOLKIT@%$TOOLKIT%g
19578 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
19579 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
19580 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
19581 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
19582 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
19583 s%@cross_compiling@%$cross_compiling%g
19584 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
19585 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
19586 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
19587 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
19588 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
19589 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
19590 s%@GUIDIST@%$GUIDIST%g
19591 s%@PORT_FILES@%$PORT_FILES%g
19592 s%@DISTDIR@%$DISTDIR%g
19593 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
19594 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
19595 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
19596 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
19597 s%@EXTRADEFS@%$EXTRADEFS%g
19598 s%@RESFLAGS@%$RESFLAGS%g
19599 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
19600 s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
19601 s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
19602 s%@LIBWXMACRES@%$LIBWXMACRES%g
19603 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
19604 s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
19605 s%@DLLTOOL@%$DLLTOOL%g
19606 s%@AS@%$AS%g
19607 s%@NM@%$NM%g
19608 s%@LD@%$LD%g
19609 s%@MAKEINFO@%$MAKEINFO%g
19610 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
19611 s%@SET_MAKE@%$SET_MAKE%g
19612 s%@subdirs@%$subdirs%g
19613
19614 CEOF
19615 EOF
19616
19617 cat >> $CONFIG_STATUS <<\EOF
19618
19619 # Split the substitutions into bite-sized pieces for seds with
19620 # small command number limits, like on Digital OSF/1 and HP-UX.
19621 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
19622 ac_file=1 # Number of current file.
19623 ac_beg=1 # First line for current file.
19624 ac_end=$ac_max_sed_cmds # Line after last line for current file.
19625 ac_more_lines=:
19626 ac_sed_cmds=""
19627 while $ac_more_lines; do
19628 if test $ac_beg -gt 1; then
19629 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
19630 else
19631 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
19632 fi
19633 if test ! -s conftest.s$ac_file; then
19634 ac_more_lines=false
19635 rm -f conftest.s$ac_file
19636 else
19637 if test -z "$ac_sed_cmds"; then
19638 ac_sed_cmds="sed -f conftest.s$ac_file"
19639 else
19640 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
19641 fi
19642 ac_file=`expr $ac_file + 1`
19643 ac_beg=$ac_end
19644 ac_end=`expr $ac_end + $ac_max_sed_cmds`
19645 fi
19646 done
19647 if test -z "$ac_sed_cmds"; then
19648 ac_sed_cmds=cat
19649 fi
19650 EOF
19651
19652 cat >> $CONFIG_STATUS <<EOF
19653
19654 CONFIG_FILES=\${CONFIG_FILES-"wx-config
19655 src/make.env
19656 src/makeprog.env
19657 src/makelib.env
19658 Makefile
19659 "}
19660 EOF
19661 cat >> $CONFIG_STATUS <<\EOF
19662 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
19663 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19664 case "$ac_file" in
19665 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19666 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19667 *) ac_file_in="${ac_file}.in" ;;
19668 esac
19669
19670 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
19671
19672 # Remove last slash and all that follows it. Not all systems have dirname.
19673 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19674 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19675 # The file is in a subdirectory.
19676 test ! -d "$ac_dir" && mkdir "$ac_dir"
19677 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
19678 # A "../" for each directory in $ac_dir_suffix.
19679 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
19680 else
19681 ac_dir_suffix= ac_dots=
19682 fi
19683
19684 case "$ac_given_srcdir" in
19685 .) srcdir=.
19686 if test -z "$ac_dots"; then top_srcdir=.
19687 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
19688 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
19689 *) # Relative path.
19690 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
19691 top_srcdir="$ac_dots$ac_given_srcdir" ;;
19692 esac
19693
19694 case "$ac_given_INSTALL" in
19695 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19696 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
19697 esac
19698
19699 echo creating "$ac_file"
19700 rm -f "$ac_file"
19701 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
19702 case "$ac_file" in
19703 *Makefile*) ac_comsub="1i\\
19704 # $configure_input" ;;
19705 *) ac_comsub= ;;
19706 esac
19707
19708 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19709 sed -e "$ac_comsub
19710 s%@configure_input@%$configure_input%g
19711 s%@srcdir@%$srcdir%g
19712 s%@top_srcdir@%$top_srcdir%g
19713 s%@INSTALL@%$INSTALL%g
19714 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
19715 fi; done
19716 rm -f conftest.s*
19717
19718 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19719 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19720 #
19721 # ac_d sets the value in "#define NAME VALUE" lines.
19722 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19723 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
19724 ac_dC='\3'
19725 ac_dD='%g'
19726 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
19727 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19728 ac_uB='\([ ]\)%\1#\2define\3'
19729 ac_uC=' '
19730 ac_uD='\4%g'
19731 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19732 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19733 ac_eB='$%\1#\2define\3'
19734 ac_eC=' '
19735 ac_eD='%g'
19736
19737 if test "${CONFIG_HEADERS+set}" != set; then
19738 EOF
19739 cat >> $CONFIG_STATUS <<EOF
19740 CONFIG_HEADERS="setup.h:setup.h.in"
19741 EOF
19742 cat >> $CONFIG_STATUS <<\EOF
19743 fi
19744 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
19745 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19746 case "$ac_file" in
19747 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19748 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19749 *) ac_file_in="${ac_file}.in" ;;
19750 esac
19751
19752 echo creating $ac_file
19753
19754 rm -f conftest.frag conftest.in conftest.out
19755 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19756 cat $ac_file_inputs > conftest.in
19757
19758 EOF
19759
19760 # Transform confdefs.h into a sed script conftest.vals that substitutes
19761 # the proper values into config.h.in to produce config.h. And first:
19762 # Protect against being on the right side of a sed subst in config.status.
19763 # Protect against being in an unquoted here document in config.status.
19764 rm -f conftest.vals
19765 cat > conftest.hdr <<\EOF
19766 s/[\\&%]/\\&/g
19767 s%[\\$`]%\\&%g
19768 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
19769 s%ac_d%ac_u%gp
19770 s%ac_u%ac_e%gp
19771 EOF
19772 sed -n -f conftest.hdr confdefs.h > conftest.vals
19773 rm -f conftest.hdr
19774
19775 # This sed command replaces #undef with comments. This is necessary, for
19776 # example, in the case of _POSIX_SOURCE, which is predefined and required
19777 # on some systems where configure will not decide to define it.
19778 cat >> conftest.vals <<\EOF
19779 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
19780 EOF
19781
19782 # Break up conftest.vals because some shells have a limit on
19783 # the size of here documents, and old seds have small limits too.
19784
19785 rm -f conftest.tail
19786 while :
19787 do
19788 ac_lines=`grep -c . conftest.vals`
19789 # grep -c gives empty output for an empty file on some AIX systems.
19790 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
19791 # Write a limited-size here document to conftest.frag.
19792 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
19793 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
19794 echo 'CEOF
19795 sed -f conftest.frag conftest.in > conftest.out
19796 rm -f conftest.in
19797 mv conftest.out conftest.in
19798 ' >> $CONFIG_STATUS
19799 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
19800 rm -f conftest.vals
19801 mv conftest.tail conftest.vals
19802 done
19803 rm -f conftest.vals
19804
19805 cat >> $CONFIG_STATUS <<\EOF
19806 rm -f conftest.frag conftest.h
19807 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
19808 cat conftest.in >> conftest.h
19809 rm -f conftest.in
19810 if cmp -s $ac_file conftest.h 2>/dev/null; then
19811 echo "$ac_file is unchanged"
19812 rm -f conftest.h
19813 else
19814 # Remove last slash and all that follows it. Not all systems have dirname.
19815 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19816 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19817 # The file is in a subdirectory.
19818 test ! -d "$ac_dir" && mkdir "$ac_dir"
19819 fi
19820 rm -f $ac_file
19821 mv conftest.h $ac_file
19822 fi
19823 fi; done
19824
19825 EOF
19826 cat >> $CONFIG_STATUS <<EOF
19827
19828 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
19829 LN_S="${LN_S}"
19830
19831
19832 EOF
19833 cat >> $CONFIG_STATUS <<\EOF
19834
19835 if test ! -h wx-config; then
19836 chmod +x wx-config
19837 mv wx-config wx${TOOLCHAIN_NAME}-config
19838 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
19839 fi
19840
19841 if test ! -d lib; then
19842 mkdir lib
19843 fi
19844 if test ! -d lib/wx; then
19845 mkdir lib/wx
19846 fi
19847 if test ! -d lib/wx/include; then
19848 mkdir lib/wx/include
19849 fi
19850 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
19851 mkdir lib/wx/include/${TOOLCHAIN_NAME}
19852 fi
19853 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
19854 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
19855 fi
19856 if test -f setup.h; then
19857 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
19858 fi
19859
19860 exit 0
19861 EOF
19862 chmod +x $CONFIG_STATUS
19863 rm -fr confdefs* $ac_clean_files
19864 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
19865
19866 if test "$no_recursion" != yes; then
19867
19868 # Remove --cache-file and --srcdir arguments so they do not pile up.
19869 ac_sub_configure_args=
19870 ac_prev=
19871 for ac_arg in $ac_configure_args; do
19872 if test -n "$ac_prev"; then
19873 ac_prev=
19874 continue
19875 fi
19876 case "$ac_arg" in
19877 -cache-file | --cache-file | --cache-fil | --cache-fi \
19878 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19879 ac_prev=cache_file ;;
19880 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19881 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
19882 ;;
19883 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19884 ac_prev=srcdir ;;
19885 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19886 ;;
19887 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
19888 esac
19889 done
19890
19891 for ac_config_dir in demos samples utils contrib; do
19892
19893 # Do not complain, so a configure script can configure whichever
19894 # parts of a large source tree are present.
19895 if test ! -d $srcdir/$ac_config_dir; then
19896 continue
19897 fi
19898
19899 echo configuring in $ac_config_dir
19900
19901 case "$srcdir" in
19902 .) ;;
19903 *)
19904 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
19905 else
19906 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
19907 fi
19908 ;;
19909 esac
19910
19911 ac_popdir=`pwd`
19912 cd $ac_config_dir
19913
19914 # A "../" for each directory in /$ac_config_dir.
19915 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
19916
19917 case "$srcdir" in
19918 .) # No --srcdir option. We are building in place.
19919 ac_sub_srcdir=$srcdir ;;
19920 /*) # Absolute path.
19921 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
19922 *) # Relative path.
19923 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
19924 esac
19925
19926 # Check for guested configure; otherwise get Cygnus style configure.
19927 if test -f $ac_sub_srcdir/configure; then
19928 ac_sub_configure=$ac_sub_srcdir/configure
19929 elif test -f $ac_sub_srcdir/configure.in; then
19930 ac_sub_configure=$ac_configure
19931 else
19932 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
19933 ac_sub_configure=
19934 fi
19935
19936 # The recursion is here.
19937 if test -n "$ac_sub_configure"; then
19938
19939 # Make the cache file name correct relative to the subdirectory.
19940 case "$cache_file" in
19941 /*) ac_sub_cache_file=$cache_file ;;
19942 *) # Relative path.
19943 ac_sub_cache_file="$ac_dots$cache_file" ;;
19944 esac
19945 case "$ac_given_INSTALL" in
19946 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19947 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
19948 esac
19949
19950 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
19951 # The eval makes quoting arguments work.
19952 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
19953 then :
19954 else
19955 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
19956 fi
19957 fi
19958
19959 cd $ac_popdir
19960 done
19961 fi
19962
19963